Re: Typo in mmap(2) : _SC_PAGE_SIZE -> _SC_PAGESIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Hugues,

On 4/30/19 4:38 AM, Hugues Evrard wrote:
Hi,

mmap(2) currently reads:

     offset must be a multiple of the page size as returned by
sysconf(_SC_PAGE_SIZE).

Yet sysconf(3) only advertise a _SC_PAGESIZE variable, so I think
mmap(2) should be corrected to:

     offset must be a multiple of the page size as returned by
sysconf(_SC_PAGESIZE).

The fault rather is in the sysconf(3) page, which should more clearly
advertise that PAGESIZE and PAGE_SIZE are synonyms. I've adjusted the page to say:

   PAGESIZE - _SC_PAGESIZE
          Size of a page in bytes.  Must not be less than 1.

   PAGE_SIZE - _SC_PAGE_SIZE
          A  synonym  for  PAGESIZE/_SC_PAGESIZE.  (Both PAGESIZE and
          PAGE_SIZE are specified in POSIX.)


Thanks,

Michael



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux