cvs commit: src/lib/libc/gen sysconf.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Apr 14 13:06:57 UTC 2007


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


More information about the cvs-src mailing list