Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Unix.chmod => what codes for what mode?!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-23 (18:01)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Unix.chmod => what codes for what mode?!
On Fri, Apr 23, 2004 at 07:16:34PM +0200, Oliver Bandel wrote:
> Hello,
> The Unix.chmod function is bad documented.
> Seems that I have to try out all possible values
> and check the results with the command line tools?
> Or is there any possibility to predict it's behaviour?!

Almost certainly you're not using octal numbers right.  The format
for octal numbers in OCaml is different from C, for example:

Unix.chmod filename 0o755

would have the same effect as:

% chmod 755 filename


Richard Jones.
Merjis Ltd. - improving website return on investment
MOD_CAML lets you run type-safe Objective CAML programs inside the Apache

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: