1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Move Linux kernel version conditionals to kernel-features.h.

This commit is contained in:
Joseph Myers
2012-08-10 15:53:27 +00:00
parent 77480c6ba5
commit 121dce05fe
5 changed files with 33 additions and 10 deletions

View File

@ -1,5 +1,5 @@
/* Get file-specific information about a file. Linux version.
Copyright (C) 2003,2004,2006 2008,2009,2011 Free Software Foundation, Inc.
Copyright (C) 2003-2012 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
@ -88,11 +88,11 @@ __sysconf (int name)
return HAS_CPUCLOCK (name);
case _SC_ARG_MAX:
#if __LINUX_KERNEL_VERSION < 0x020617
/* Determine whether this is a kernel 2.6.23 or later. Only
then do we have an argument limit determined by the stack
size. */
if (GLRO(dl_discover_osversion) () >= 0x020617)
#if !__ASSUME_ARG_MAX_STACK_BASED
/* Determine whether this is a kernel with an argument limit
determined by the stack size. */
if (GLRO(dl_discover_osversion) ()
>= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL)
#endif
/* Use getrlimit to get the stack limit. */
if (__getrlimit (RLIMIT_STACK, &rlimit) == 0)