aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-08 09:39:29 +0000
committerRoland McGrath <roland@gnu.org>2006-01-08 09:39:29 +0000
commitaeb2153cd6ab300de1b241cd1528a3f6f260ad37 (patch)
tree829be0b73c642f466d92bc34501c30a512a05804 /sysdeps/posix
parent9b121343547d646f5e511446588f0ff69b168211 (diff)
downloadglibc-aeb2153cd6ab300de1b241cd1528a3f6f260ad37.zip
glibc-aeb2153cd6ab300de1b241cd1528a3f6f260ad37.tar.gz
glibc-aeb2153cd6ab300de1b241cd1528a3f6f260ad37.tar.bz2
[BZ #1535]
* sysdeps/unix/get_child_max.c: New file. * posix/get_child_max.c: New file. * posix/Makefile (routines): Add it. * include/sys/sysinfo.h (__get_child_max): Declare it. * sysdeps/posix/sysconf.c (__sysconf) [! CHILD_MAX]: Use it.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/sysconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index de72e84..cb5137c 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -1,5 +1,5 @@
-/* Copyright (C) 1991,1993,1995-1997,1999-2003,2004
- Free Software Foundation, Inc.
+/* Copyright (C) 1991,1993,1995-1997,1999-2003,2004,2006
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -68,7 +68,7 @@ __sysconf (name)
#ifdef CHILD_MAX
return CHILD_MAX;
#else
- return -1;
+ return __get_child_max ();
#endif
case _SC_CLK_TCK: