bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'getdtablesize'


From: Bruno Haible
Subject: Re: new module 'getdtablesize'
Date: Sun, 5 Oct 2008 17:13:37 +0200
User-agent: KMail/1.5.4

This is the simplification done to the posix_spawn* modules:

2008-10-05  Bruno Haible  <address@hidden>

        * 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.

*** lib/spawn_faction_addclose.c.orig   2008-10-05 16:56:38.000000000 +0200
--- lib/spawn_faction_addclose.c        2008-10-05 16:55:17.000000000 +0200
***************
*** 23,34 ****
  #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
  #endif
  
  #include "spawn_int.h"
--- 23,29 ----
  #include <unistd.h>
  
  #if !_LIBC
! # define __sysconf(open_max) getdtablesize ()
  #endif
  
  #include "spawn_int.h"
*** lib/spawn_faction_adddup2.c.orig    2008-10-05 16:56:38.000000000 +0200
--- lib/spawn_faction_adddup2.c 2008-10-05 16:55:17.000000000 +0200
***************
*** 23,34 ****
  #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
  #endif
  
  #include "spawn_int.h"
--- 23,29 ----
  #include <unistd.h>
  
  #if !_LIBC
! # define __sysconf(open_max) getdtablesize ()
  #endif
  
  #include "spawn_int.h"
*** lib/spawn_faction_addopen.c.orig    2008-10-05 16:56:38.000000000 +0200
--- lib/spawn_faction_addopen.c 2008-10-05 16:55:17.000000000 +0200
***************
*** 23,34 ****
  #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
  #endif
  
  #include "spawn_int.h"
--- 23,29 ----
  #include <unistd.h>
  
  #if !_LIBC
! # define __sysconf(open_max) getdtablesize ()
  #endif
  
  #include "spawn_int.h"
*** modules/posix_spawn_file_actions_addclose.orig      2008-10-05 
16:56:38.000000000 +0200
--- modules/posix_spawn_file_actions_addclose   2008-10-05 16:55:17.000000000 
+0200
***************
*** 9,14 ****
--- 9,15 ----
  
  Depends-on:
  spawn
+ getdtablesize
  
  configure.ac:
  gl_POSIX_SPAWN
*** modules/posix_spawn_file_actions_adddup2.orig       2008-10-05 
16:56:38.000000000 +0200
--- modules/posix_spawn_file_actions_adddup2    2008-10-05 16:55:17.000000000 
+0200
***************
*** 9,14 ****
--- 9,15 ----
  
  Depends-on:
  spawn
+ getdtablesize
  
  configure.ac:
  gl_POSIX_SPAWN
*** modules/posix_spawn_file_actions_addopen.orig       2008-10-05 
16:56:38.000000000 +0200
--- modules/posix_spawn_file_actions_addopen    2008-10-05 16:55:17.000000000 
+0200
***************
*** 9,14 ****
--- 9,15 ----
  
  Depends-on:
  spawn
+ getdtablesize
  
  configure.ac:
  gl_POSIX_SPAWN





reply via email to

[Prev in Thread] Current Thread [Next in Thread]