From: Ian Zimmerman <itz@buug.org>
To: caml-list@inria.fr
Subject: stat in Unix library
Date: 28 Nov 2004 16:06:56 -0800 [thread overview]
Message-ID: <87y8glecwv.fsf@buug.org> (raw)
I am looking at the 3.08 source and something about the code for stat
doesn't seem right.
The st_dev member of type Unix.stats is declared as int. But according
to the Single Unix spec, the corresponding member of the C struct has
a defined type, dev_t; and in fact recent Linux kernels define dev_t
to a 64 bit type, even on 32 bit architectures. So it looks like
the Ocaml function will lose the high order bits.
I came across this as I was trying to write a Unix interface for another
(unnamed) functional language :)
--
"It's not true or not." A reality show producer (real quote)
next reply other threads:[~2004-11-29 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 0:06 Ian Zimmerman [this message]
2004-11-29 6:18 ` [Caml-list] " David Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y8glecwv.fsf@buug.org \
--to=itz@buug.org \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).