Use getdtablesize module.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2008 14:58:03 +0000 (16:58 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2008 14:58:03 +0000 (16:58 +0200)
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

index f21c6fb..70a4152 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 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.
        * tests/test-getdtablesize.c: New file.
 
index d2a03e8..3566047 100644 (file)
 #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"
index e861960..688873f 100644 (file)
 #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"
index 08482ba..2f63bc3 100644 (file)
 #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"
index 865e6c5..b85eacf 100644 (file)
@@ -9,6 +9,7 @@ m4/posix_spawn.m4
 
 Depends-on:
 spawn
+getdtablesize
 
 configure.ac:
 gl_POSIX_SPAWN
index 3b8a7a0..35a67e8 100644 (file)
@@ -9,6 +9,7 @@ m4/posix_spawn.m4
 
 Depends-on:
 spawn
+getdtablesize
 
 configure.ac:
 gl_POSIX_SPAWN
index 99656ce..c715c71 100644 (file)
@@ -9,6 +9,7 @@ m4/posix_spawn.m4
 
 Depends-on:
 spawn
+getdtablesize
 
 configure.ac:
 gl_POSIX_SPAWN