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] lstat on windows native
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-25 (08:55)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] lstat on windows native
 skaller [25 May 2004]:
 > Currently, I need to use lstat (as pointed out in previous
 > email) but it isn't implemented on Windows native port
 > according to 3.07 documentation.
 > If I understand correctly this means my program won't
 > compile/link on Win32, which isn't very nice.

No, using unimplemented features of the Unix module will never prevent
your program to compile nor link. The module signature is the same on
all platforms. However, it will probably raise an exception at runtime
(like Invalid_argument "foo not implemented").

Concerning lstat, it is a bit different, lstat is defined as:

 let lstat = stat

 > if Sys.os_type = "Win32" then stat else lstat

that's fine too, of course.


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