Re: limits.h

From: David C. (shamino_at_techie.com)
Date: 08/04/05


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



Relevant Pages

  • Re: learning unix w/ fbsd?
    ... Commando taught me that the flag options were both useful ... > Given the loss of commando in OS X and the improvements in FreeBSD ... > Mac, but that was never the point of FreeBSD. ... It is instructive to recall what the first /killer app/ for AT&T unix ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Intel Macs and FreeBSD?
    ... Just install Mac Developer Tools (included in the Applications ... At the risk of digressing on this topic, I want to add that I am actually at this point deciding between FreeBSD for the migration and Ubuntu. ... I considered migrating to OSX on the mini, and I do maintain an OSX Server machine at work, but I don't like the lack of a port system. ...
    (freebsd-questions)
  • Re: MAC OS X connection to FreeBSD?
    ... MAC OS X connection to FreeBSD? ... then used it all as the MAC OS X core (without the GUI of course)? ... they used it all as the Darwin core. ...
    (freebsd-questions)
  • Re: Intel Macs, FreeBSD, and drivers
    ... will that driver work under FreeBSD? ... a very new Intel Mac has a new disk controller, ...
    (freebsd-questions)
  • Re: Mac UFS partition unreadable
    ... under OS-X and left about half of the space unallocated. ... with the normal HFS+ formatting. ... I then moved the disk to FreeBSD. ... So if I've been using it under FBSD and want to use it on the Mac, ...
    (freebsd-hackers)