mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
Handle "/dev/stdin" by dup()ing fd 0 so that it works on Win32, too.
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. svn path=/trunk/; revision=5185
This commit is contained in:
parent
470152f268
commit
5ff1e1d80b
@ -1,3 +1,8 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2006-12-29 Matthias Clasen <mclasen@redhat.com>
|
2006-12-29 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtypemodule.h: Define G_DEFINE_DYNAMIC_TYPE and
|
* gtypemodule.h: Define G_DEFINE_DYNAMIC_TYPE and
|
||||||
|
@ -654,7 +654,12 @@ main (int argc,
|
|||||||
for (slist = files; slist; slist = slist->next)
|
for (slist = files; slist; slist = slist->next)
|
||||||
{
|
{
|
||||||
gchar *file = slist->data;
|
gchar *file = slist->data;
|
||||||
gint fd = open (file, O_RDONLY);
|
gint fd;
|
||||||
|
|
||||||
|
if (strcmp (file, "/dev/stdin") == 0)
|
||||||
|
fd = dup (0);
|
||||||
|
else
|
||||||
|
fd = open (file, O_RDONLY);
|
||||||
|
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user