2007-01-02 Tor Lillqvist <tml@novell.com>
* glib-genmarshal.c (main): Add comment about dup(0) and
lack of /dev/stdin on Win32. (#407431)
svn path=/trunk/; revision=5335
2007-01-02 Tor Lillqvist <tml@novell.com>
* glib-genmarshal.c (main): Handle "/dev/stdin" by dup()ing fd 0
- so that it works on Win32, too.
+ so that it works on Win32 and other systems without
+ /dev/stdin. (#407431)
2006-12-29 Matthias Clasen <mclasen@redhat.com>
gint fd;
if (strcmp (file, "/dev/stdin") == 0)
+ /* Mostly for Win32. This is equivalent to opening /dev/stdin */
fd = dup (0);
else
fd = open (file, O_RDONLY);