From: Yutaka OIWA <oiwa@yl.is.s.u-tokyo.ac.jp>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Unix.stat problem
Date: Mon, 24 May 2004 15:08:24 +0900 [thread overview]
Message-ID: <vfibrkexspz.fsf@tuba.is.s.u-tokyo.ac.jp> (raw)
In-Reply-To: <1085378165.6065.249.camel@pelican.wigram> (skaller's message of "24 May 2004 15:56:05 +1000")
Hi John,
>> On 24 May 2004 15:56:05 +1000, skaller <skaller@users.sourceforge.net> said:
skaller> Unix.stat (or my brain:) isn't working correctly on my system:
skaller> CVS Ocaml, Linux, Redhat 9:
skaller> gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
From Linux man stat(2):
stat stats the file pointed to by file_name and fills in
buf.
lstat is identical to stat, except in the case of a sym-
bolic link, where the link itself is stat-ed, not the file
that it refers to.
So what you want is probably
val lstat : string -> stats
(** Same as {!Unix.stat}, but in case the file is a symbolic link,
return the informations for the link itself. *)
this one...
--
Yutaka Oiwa Yonezawa Lab., Dept. of Computer Science,
Graduate School of Information Sci. & Tech., Univ. of Tokyo.
<oiwa@yl.is.s.u-tokyo.ac.jp>, <yutaka@oiwa.jp>
PGP fingerprint = C9 8D 5C B8 86 ED D8 07 EA 59 34 D8 F4 65 53 61
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2004-05-24 6:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-24 5:56 skaller
2004-05-24 6:08 ` Yutaka OIWA [this message]
2004-05-24 7:08 ` skaller
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=vfibrkexspz.fsf@tuba.is.s.u-tokyo.ac.jp \
--to=oiwa@yl.is.s.u-tokyo.ac.jp \
--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