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
[WISH] Unix.fstat and symlinks for win32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christopher A. Watford <christopher.watford@g...>
Subject: Re: [Caml-list] [WISH] Unix.fstat and symlinks for win32
On Wed, 02 Feb 2005 13:52:08 +0100 (CET), Christophe TROESTLER
<> wrote:
> Maybe the manual could be updated to reflect that?  [IMHO, it would be
>  nice if the windows peculiarities were in the ocamldoc comments -- I
>  usually use ocamlbrowser...]
> > (I'm not even sure the latter is implementable at all with the
> > Win32 API.)
> Windows gurus here?  (My goal with fstat was to know whether stdin was
> connected to a socket or a pipe.)

BOOL isPipe = ((hStdin != NULL && hStdin != INVALID_HANDLE_VALUE) ?
   GetNamedPipeInfo(hStdin, NULL, NULL, NULL, NULL) :

> Regards,
> ChriS

There is some dirty code to check if the handle for stdin is using
named pipe functions or if it is using read/write file functions. Yep,

Christopher A. Watford