X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawn_faction_addclose.c;h=f89209f7696992b3541f58f25e6e9df897fe00d2;hb=542af6b9ca1011a9d304139cb8f5e7b6cf217c47;hp=d2a03e81aa1b67ce25dfb4eddf60da5888af37ac;hpb=b69271fcc2ad65d62be67f4cdbfd7d02103d40cb;p=gnulib.git diff --git a/lib/spawn_faction_addclose.c b/lib/spawn_faction_addclose.c index d2a03e81a..f89209f76 100644 --- a/lib/spawn_faction_addclose.c +++ b/lib/spawn_faction_addclose.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. This program is free software: you can redistribute it and/or modify @@ -23,12 +23,7 @@ #include #if !_LIBC -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -# include -# define __sysconf(open_max) _getmaxstdio () -# else -# define __sysconf(open_max) getdtablesize () -# endif +# define __sysconf(open_max) getdtablesize () #endif #include "spawn_int.h" @@ -37,7 +32,7 @@ `close' for the given file descriptor during the `spawn' call. */ int posix_spawn_file_actions_addclose (posix_spawn_file_actions_t *file_actions, - int fd) + int fd) { int maxfd = __sysconf (_SC_OPEN_MAX); struct __spawn_action *rec;