This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] handle _SC_LEVEL4_CACHE_LINESIZE for the posix sysconf


Hi,

the posix implementation of sysconf returns 0 for all the cache-related 
constants, except for _SC_LEVEL4_CACHE_LINESIZE. The attached patch 
returns 0 for it as well.

Thanks,
-- 
Pino Toscano
sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE

2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>

	* sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
	_SC_LEVEL4_CACHE_LINESIZE.
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -1227,6 +1227,7 @@ __sysconf (name)
     case _SC_LEVEL3_CACHE_LINESIZE:
     case _SC_LEVEL4_CACHE_SIZE:
     case _SC_LEVEL4_CACHE_ASSOC:
+    case _SC_LEVEL4_CACHE_LINESIZE:
       /* In general we cannot determine these values.  Therefore we
 	 return zero which indicates that no information is
 	 available.  */

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]