Commit c6efde4f authored by Tor Lillqvist's avatar Tor Lillqvist Committed by Tor Lillqvist

Add comment about dup(0) and lack of /dev/stdin on Win32. (#407431)

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
parent 8ec7d6ca
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>
......
......@@ -657,6 +657,7 @@ main (int argc,
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment