libc/sysdeps/unix/sysv/linux getsysstats.c
Wed Apr 15 15:57:00 GMT 2009

CVSROOT:	/cvs/glibc
Module name:	libc
Changes by:	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.


More information about the Glibc-cvs mailing list