Re: limits.h
From: David C. (shamino_at_techie.com)
Date: 08/04/05
- Next message: Rudolf Polzer: "Re: coLinux - coFreeBSD available?"
- Previous message: Thomas Schweikle: "Re: coLinux - coFreeBSD available?"
- Next in thread: Torsten Poulin: "Re: limits.h"
- Reply: Torsten Poulin: "Re: limits.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Aug 2005 22:42:31 GMT
Madhusudan Singh <spammers-go-here@spam.invalid> writes:
>
> Hate to bother you again.
>
> Is PIPE_BUF even defined on Mac ? I looked at a FreeBSD system and
> in /usr/include/limits.h, I found only :
>
> #define _POSIX_PIPE_BUF 512
>
> I did not find any PIPE_BUF declaration under /usr/include/machine/limits.h
> or under /usr/include/sys/limits.h either.
1: Mac OS is not FreeBSD. Don't believe anyone who tells you it is.
The UNIX underpinnings of Mac OS X is based on Darwin, which is
derived from BSD. Nevertheless, it is not a FreeBSD distribution.
2: My Mac (10.3.9 with the developer tools installed) has PIPE_BUF
defined in <sys/syslimits.h>, which is included by <limits.h>
As someone else mentioned, POSIX requires PIPE_BUF be defined when
<limits.h> is included. If your FreeBSD distribution doesn't define
this, then it's not POSIX compliant. That's a problem for the FreeBSD
people, not for Apple.
> 2. For FreeBSD (if I am doing all this, I might as well port it to BSD's),
> what is the appropriate #ifdef to test ?
Can't help here. I don't use FreeBSD.
-- David
- Next message: Rudolf Polzer: "Re: coLinux - coFreeBSD available?"
- Previous message: Thomas Schweikle: "Re: coLinux - coFreeBSD available?"
- Next in thread: Torsten Poulin: "Re: limits.h"
- Reply: Torsten Poulin: "Re: limits.h"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|