[Haskell-cafe] [ANN] Haskell FFI Tutorial
Brandon Allbery
allbery.b at gmail.com
Thu Nov 13 02:07:17 UTC 2014
On Wed, Nov 12, 2014 at 8:41 PM, Donn Cave <donn at avvanta.com> wrote:
> quoth Richard A. O'Keefe,
> ...
> > (This actually strikes me as a flaw in Mac OS X:
> > `typedef unsigned long tcflag_t;' should have been
> > `typedef uint32_t tcflag_t;'
> > because there's no _reason_ for the field size to change
> > this way.)
>
> True, it's crazy to have structures changing size like that
> when the effective size of each field is fixed per standard.
>
For what it's worth, this like many other things was inherited from
FreeBSD. (See /usr/include/sys/_termios.h therein, which I chased down from
/usr/include/termios.h.)
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141112/65d4b795/attachment.html>
More information about the Haskell-Cafe
mailing list