Mercurial > gnulib
changeset 30275:767106b52f9e
Use getdtablesize module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 05 Oct 2008 16:58:03 +0200 |
parents | c154fabf8cad |
children | c2b7be3b5110 |
files | ChangeLog lib/spawn_faction_addclose.c lib/spawn_faction_adddup2.c lib/spawn_faction_addopen.c modules/posix_spawn_file_actions_addclose modules/posix_spawn_file_actions_adddup2 modules/posix_spawn_file_actions_addopen |
diffstat | 7 files changed, 16 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sun Oct 05 16:52:15 2008 +0200 +++ b/ChangeLog Sun Oct 05 16:58:03 2008 +0200 @@ -1,3 +1,13 @@ +2008-10-05 Bruno Haible <bruno@clisp.org> + + * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always. + * lib/spawn_faction_adddup2.c (__sysconf): Likewise. + * lib/spawn_faction_addopen.c (__sysconf): Likewise. + * modules/posix_spawn_file_actions_addclose (Depends-on): Add + getdtablesize. + * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise. + * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise. + 2008-10-05 Bruno Haible <bruno@clisp.org> * modules/getdtablesize-tests: New file.
--- a/lib/spawn_faction_addclose.c Sun Oct 05 16:52:15 2008 +0200 +++ b/lib/spawn_faction_addclose.c Sun Oct 05 16:58:03 2008 +0200 @@ -23,12 +23,7 @@ #include <unistd.h> #if !_LIBC -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -# include <stdio.h> -# define __sysconf(open_max) _getmaxstdio () -# else -# define __sysconf(open_max) getdtablesize () -# endif +# define __sysconf(open_max) getdtablesize () #endif #include "spawn_int.h"
--- a/lib/spawn_faction_adddup2.c Sun Oct 05 16:52:15 2008 +0200 +++ b/lib/spawn_faction_adddup2.c Sun Oct 05 16:58:03 2008 +0200 @@ -23,12 +23,7 @@ #include <unistd.h> #if !_LIBC -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -# include <stdio.h> -# define __sysconf(open_max) _getmaxstdio () -# else -# define __sysconf(open_max) getdtablesize () -# endif +# define __sysconf(open_max) getdtablesize () #endif #include "spawn_int.h"
--- a/lib/spawn_faction_addopen.c Sun Oct 05 16:52:15 2008 +0200 +++ b/lib/spawn_faction_addopen.c Sun Oct 05 16:58:03 2008 +0200 @@ -23,12 +23,7 @@ #include <unistd.h> #if !_LIBC -# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ -# include <stdio.h> -# define __sysconf(open_max) _getmaxstdio () -# else -# define __sysconf(open_max) getdtablesize () -# endif +# define __sysconf(open_max) getdtablesize () #endif #include "spawn_int.h"
--- a/modules/posix_spawn_file_actions_addclose Sun Oct 05 16:52:15 2008 +0200 +++ b/modules/posix_spawn_file_actions_addclose Sun Oct 05 16:58:03 2008 +0200 @@ -9,6 +9,7 @@ Depends-on: spawn +getdtablesize configure.ac: gl_POSIX_SPAWN