Add PAGE_SIZE, PAGE_SHIFT, PAGE_MASK to sys/param.h
Thu Oct 30 09:11:00 GMT 2003
On Wed, Oct 29, 2003 at 07:02:28PM -0500, Nicholas Wourms wrote:
> Still, perhaps Brian's
> suggestion has some merit?
Yes. The Solaris-like definition has its point. Using sysconf or
getpagesize in the macro is fine.
> Which brings up another matter, asm/socket.h. Can someone point me to
> what source we should use when defining if ioctl macros in asm/socket.h.
Aren't these BSD based? However, when I introduced SIOCGIFADDR and
friends back in 1998, I didn't look anywhere besides the already existing
definitions for SIOCGIFCONF and SIOCGIFFLAGS in Cygwin's asm/socket.h.
I've just used the next values in the row and they were accepted that
way by Geoff.
> Both bind and bsd seem to have very different definitions in terms of
> the read/write capabilities of the ioctls...
Don't bother. Is it a value which could be changed in Cygwin or Winsock?
What are you trying to implement? I'm really curious.
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:email@example.com
Red Hat, Inc.
More information about the Cygwin-patches