libc/sysdeps/unix/sysv/linux getsysstats.c

drepper@sourceware.org drepper@sourceware.org
Wed Apr 15 15:57:00 GMT 2009


CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	drepper@sourceware.org	2009-04-15 15:57:29

Modified files:
	sysdeps/unix/sysv/linux: getsysstats.c 

Log message:
	(__get_nprocs): Check
	__libc_use_alloca (8192), if the stack is too small use 512 bytes
	instead of 8K.  Stop searching in /proc/stat after hitting first
	line not starting with cpu.
	(next_line): Truncate too long
	lines at buffer size * 3/4 instead of pretending there were line
	breaks inside of large lines.
	
	(next_line): Make sure there are always at least 4 bytes in the
	returned line.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/unix/sysv/linux/getsysstats.c.diff?cvsroot=glibc&r1=1.32&r2=1.33



More information about the Glibc-cvs mailing list