This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] cygwin: export __getpagesize


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

Attachment: signature.asc
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]