[PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin,stdout,stderr} symlinks
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Feb 22 12:34:51 GMT 2022
Hi Johannes,
On Feb 21 14:36, Johannes Schindelin wrote:
> These symbolic links are crucial e.g. to support process substitution (Bash's
> very nice `<(SOME-COMMAND)` feature).
>
> For various reasons, it is a bit cumbersome (or impossible) to generate these
> symbolic links in all circumstances where Git for Windows wants to use its
> close fork of the Cygwin runtime.
>
> Therefore, let's just handle these symbolic links as implicit, virtual ones.
>
> If there is appetite for it, I wonder whether we should do something similar
> for `/dev/shm` and `/dev/mqueue`? Are these even still used in Cygwin?
"still used"? These are the dirs to store POSIX semaphors, message
queues and shared mem objects. These have to be real on-disk dirs.
> Johannes Schindelin (2):
> Implicitly support the /dev/fd symlink and friends
> Regenerate devices.cc
>
> winsup/cygwin/Makefile.am | 1 +
> winsup/cygwin/devices.cc | 1494 ++++++++++++++++--------------
> winsup/cygwin/devices.h | 3 +-
> winsup/cygwin/devices.in | 4 +
> winsup/cygwin/dtable.cc | 3 +
> winsup/cygwin/fhandler.h | 28 +
> winsup/cygwin/fhandler_dev_fd.cc | 53 ++
> 7 files changed, 879 insertions(+), 707 deletions(-)
> create mode 100644 winsup/cygwin/fhandler_dev_fd.cc
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list