HomeFreeBSD

Cleanup sysconf(3) a bit. sysconf(3) assumes in some places it operates

Description

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.

Details

Provenance
pjdAuthored on Apr 14 2007, 1:06 PM
Parents
rGe774c513f063: Add ports-net-im, ports-net-p2p and ports-ports-mgmt collections.
Branches
Unknown
Tags
Unknown

Event Timeline