]> sourceware.org Git - newlib-cygwin.git/commit
cygwin: export __getpagesize
authorYaakov Selkowitz <yselkowi@redhat.com>
Mon, 28 Mar 2016 17:48:20 +0000 (12:48 -0500)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 29 Mar 2016 10:14:18 +0000 (12:14 +0200)
commit660f84b15babdada62703f47e43f6dba8b4aebe9
treeecbdae58cef66ff78e20bee106c06c03d31bce01
parentecf453f9635fb278cff4d4bae21a1e249313b817
cygwin: export __getpagesize

The inclusion of <sys/cygwin.h> by <sys/shm.h>, besides causing namespace
pollution, also makes it very difficult to get the WINVER-dependent parts
of the former.  This affects code (such as x11vnc -unixpw_nis) which use
both SysV shared memory (e.g. the X11 MIT-SHM extension) and user password
authentication.

getpagesize is the simplest function to retreive this information, but it
is a legacy function and would also pollute the global namespace. The LSB
lists another form which is in the implementation-reserved namespace:

http://refspecs.linuxfoundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/baselib---getpagesize.html

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
winsup/cygwin/common.din
winsup/cygwin/include/cygwin/shm.h
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/shm.cc
This page took 0.029412 seconds and 5 git commands to generate.