summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/common.din
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-28 12:48:20 -0500
committerCorinna Vinschen <corinna@vinschen.de>2016-03-29 12:14:18 +0200
commit660f84b15babdada62703f47e43f6dba8b4aebe9 (patch)
treeecbdae58cef66ff78e20bee106c06c03d31bce01 /winsup/cygwin/common.din
parentecf453f9635fb278cff4d4bae21a1e249313b817 (diff)
downloadcygnal-660f84b15babdada62703f47e43f6dba8b4aebe9.tar.gz
cygnal-660f84b15babdada62703f47e43f6dba8b4aebe9.tar.bz2
cygnal-660f84b15babdada62703f47e43f6dba8b4aebe9.zip
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>
Diffstat (limited to 'winsup/cygwin/common.din')
-rw-r--r--winsup/cygwin/common.din1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din
index fe714d874..7e72abe50 100644
--- a/winsup/cygwin/common.din
+++ b/winsup/cygwin/common.din
@@ -60,6 +60,7 @@ __freading NOSIGFE
__fsetlocking SIGFE
__fwritable NOSIGFE
__fwriting NOSIGFE
+__getpagesize = getpagesize SIGFE
__getreent NOSIGFE
__gnu_basename NOSIGFE
__infinity NOSIGFE