X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fspawn_faction_addopen.c;h=ad7240388fd31601360796864254985cf613d0f5;hb=0e37faa962c9da84e85e24f409c2ff3836ba28d6;hp=08482ba192b6f06fb204741cef366c55b5951b58;hpb=eab7b90dfe48d5081a52f723a429cd414dcc97a4;p=gnulib.git diff --git a/lib/spawn_faction_addopen.c b/lib/spawn_faction_addopen.c index 08482ba19..ad7240388 100644 --- a/lib/spawn_faction_addopen.c +++ b/lib/spawn_faction_addopen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2009-2011 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,8 +32,8 @@ `open' for the given file during the `spawn' call. */ int posix_spawn_file_actions_addopen (posix_spawn_file_actions_t *file_actions, - int fd, const char *path, int oflag, - mode_t mode) + int fd, const char *path, int oflag, + mode_t mode) { int maxfd = __sysconf (_SC_OPEN_MAX); struct __spawn_action *rec;