From: "David Allsopp" <dra-news@metastack.com>
To: <caml-list@inria.fr>
Subject: RE: [Caml-list] Re: Pipes and Standard Output / Input on Windows
Date: Thu, 29 May 2008 23:11:38 +0100 [thread overview]
Message-ID: <F90A1E866B2B4F23838234A2BE20C257@countertenor> (raw)
In-Reply-To: <slrng3tfrc.6bg.sylvain@gallu.homelinux.org>
> Yep, on windows GetStdHandle doesn't always return the same kind of
> handle depending on the context:
> - if the output/input is console, it is console handle (i.e. need to be
> manipulated through console function)
> - if the output/input is a pipe, it is a pipe handle (i.e. need to be
> manipulated through pipe function)
Both these kinds of HANDLE work transparently with ReadFile/WriteFile API
functions so should be fine with the underlying OCaml calls (OCaml's file
I/O is based on the C I/O routines which won't be using
ReadConsole/WriteConsole) - what scenario are you referring to where the
difference between a console handle and a pipe would be a problem?
David
next prev parent reply other threads:[~2008-05-29 22:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 13:39 John Whitington
2008-05-29 14:36 ` Sylvain Le Gall
2008-05-29 22:11 ` David Allsopp [this message]
2008-05-30 15:12 ` Sylvain Le Gall
2008-05-29 22:16 ` [Caml-list] " David Allsopp
2008-06-01 21:06 ` Sylvain Le Gall
2008-06-02 7:36 ` [Caml-list] " John Whitington
[not found] ` <4CA29E0FF2BC43FC9A7585F496BE65EF@countertenor>
2008-06-02 12:00 ` 'Sylvain Le Gall'
2008-06-02 12:46 ` David Allsopp
2008-06-02 17:57 ` John Whitington
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=F90A1E866B2B4F23838234A2BE20C257@countertenor \
--to=dra-news@metastack.com \
--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