From aeb2153cd6ab300de1b241cd1528a3f6f260ad37 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 8 Jan 2006 09:39:29 +0000 Subject: [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. --- sysdeps/posix/sysconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps/posix') 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: -- cgit v1.1