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
file permission integer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-03-29 (08:08)
From: Manuel Fahndrich <maf@m...>
Subject: file permission integer

The OCAML core contains a function

	open_out_gen : open_flag list -> int -> string -> out_channel

where the integer corresponds to the file permissions set when a new file is
created. How is this integer interpreted? Does it vary from platform to
platform? (Unix vs Windows).

Similarly, under the Unix module, there is the type file_perm = int, serving
the same purpose. Are these integers interpreted with the standard Unix
octal file permission bits? How about under Windows?

If this information is described in the doc, I apologize, but I couldn't
find it.