public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin,stdout,stderr} symlinks
@ 2022-02-21 13:36 Johannes Schindelin
  2022-02-21 13:36 ` [PATCH 1/2] Implicitly support the /dev/fd symlink and friends Johannes Schindelin
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Johannes Schindelin @ 2022-02-21 13:36 UTC (permalink / raw)
  To: cygwin-patches

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?

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


base-commit: ba7b912feba3178e530a484afea4cb127e7f2ae7
Published-As: https://github.com/dscho/msys2-runtime/releases/tag/virtual-dev-fd-cygwin-v1
Fetch-It-Via: git fetch https://github.com/dscho/msys2-runtime virtual-dev-fd-cygwin-v1

--
2.35.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2023-03-28  8:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 13:36 [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin,stdout,stderr} symlinks Johannes Schindelin
2022-02-21 13:36 ` [PATCH 1/2] Implicitly support the /dev/fd symlink and friends Johannes Schindelin
2022-02-21 13:36 ` [PATCH 2/2] Regenerate devices.cc Johannes Schindelin
2022-02-22 12:34 ` [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin,stdout,stderr} symlinks Corinna Vinschen
2022-02-25 15:46   ` [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin, stdout, stderr} symlinks Johannes Schindelin
2022-02-28  9:24     ` Corinna Vinschen
2022-02-28  9:57       ` Corinna Vinschen
2023-03-28  8:34         ` Johannes Schindelin
2022-02-25 18:35 ` [PATCH 0/2] Provide virtual /dev/fd and /dev/{stdin,stdout,stderr} symlinks Brian Inglis
2023-03-28  8:36   ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).