X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpipe.c;h=6d075a6925e0588db6c86160c3bd8e415f5cc330;hb=5d0b385594bc914e6233988bfb6bc1b92a2184b5;hp=77643b0051cbab0fade968f46e982dc51031da3c;hpb=eb750bc6d41e92b253f1084ce2b8faffddd9441f;p=gnulib.git diff --git a/lib/pipe.c b/lib/pipe.c index 77643b005..6d075a692 100644 --- a/lib/pipe.c +++ b/lib/pipe.c @@ -1,5 +1,5 @@ /* Creation of subprocesses, communicating via pipes. - Copyright (C) 2001-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -17,9 +17,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef HAVE_CONFIG_H -# include -#endif +#include /* Specification. */ #include "pipe.h" @@ -31,7 +29,6 @@ #include #include "error.h" -#include "exit.h" #include "fatal-signal.h" #include "wait-process.h" #include "gettext.h" @@ -47,17 +44,17 @@ #else /* Unix API. */ -# ifdef HAVE_POSIX_SPAWN +# if HAVE_POSIX_SPAWN # include # else -# ifdef HAVE_VFORK_H +# if HAVE_VFORK_H # include # endif # endif #endif -#ifndef HAVE_ENVIRON_DECL +#if ! HAVE_ENVIRON_DECL extern char **environ; #endif @@ -71,6 +68,11 @@ extern char **environ; # define STDERR_FILENO 2 #endif +/* The results of open() in this file are not used with fchdir, + therefore save some unnecessary work in fchdir.c. */ +#undef open +#undef close + #ifdef EINTR