Skip to content

Commit

Permalink
[SPARC]: Kill CHILD_MAX.
Browse files Browse the repository at this point in the history
It's definition is wrong (-1 means "no limit" not 999),
only the Sparc SunOS/Solaris compat code uses it, so
let's just kill it off completely from limits.h and
all referencing code.

Noticed by Ulrich Drepper.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Dec 23, 2005
1 parent 0b57ee9 commit 597d1f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/sparc/kernel/sys_sunos.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ asmlinkage long sunos_sysconf (int name)
ret = ARG_MAX;
break;
case _SC_CHILD_MAX:
ret = CHILD_MAX;
ret = -1; /* no limit */
break;
case _SC_CLK_TCK:
ret = HZ;
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/kernel/sys_sunos32.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ asmlinkage s32 sunos_sysconf (int name)
ret = ARG_MAX;
break;
case _SC_CHILD_MAX:
ret = CHILD_MAX;
ret = -1; /* no limit */
break;
case _SC_CLK_TCK:
ret = HZ;
Expand Down
2 changes: 1 addition & 1 deletion arch/sparc64/solaris/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ asmlinkage int solaris_sysconf(int id)
{
switch (id) {
case SOLARIS_CONFIG_NGROUPS: return NGROUPS_MAX;
case SOLARIS_CONFIG_CHILD_MAX: return CHILD_MAX;
case SOLARIS_CONFIG_CHILD_MAX: return -1; /* no limit */
case SOLARIS_CONFIG_OPEN_FILES: return OPEN_MAX;
case SOLARIS_CONFIG_POSIX_VER: return 199309;
case SOLARIS_CONFIG_PAGESIZE: return PAGE_SIZE;
Expand Down

0 comments on commit 597d1f0

Please sign in to comment.