[PATCH] cygwin: export __getpagesize

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Mar 29 10:16:00 GMT 2016


On Mar 29 10:11, Corinna Vinschen wrote:
> On Mar 28 12:48, Yaakov Selkowitz wrote:
> > 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>
> 
> Looks good, please apply.

I pushed it myself to avoid a collision in version.h.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20160329/3f10e9ce/attachment.sig>


More information about the Cygwin-patches mailing list