Date: Sat, 14 Apr 2007 13:06:57 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen sysconf.c Message-ID: <200704141306.l3ED6vtD067228@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
pjd 2007-04-14 13:06:57 UTC FreeBSD src repository Modified files: lib/libc/gen sysconf.c Log: Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operates on int, but in fact it should operate on long. - Introduce 'lvalue' variable, which is long. - Fix _SC_XOPEN_SHM for 64bit archs. - Fix _SC_PHYS_PAGES for 64bit archs. Reported by: simokawa - Use lvalue for pathconf(3), as it returns long. - Cast value explicitly to long on return. Revision Changes Path 1.25 +18 -21 src/lib/libc/gen/sysconf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704141306.l3ED6vtD067228>