monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Re: Removing things from the database


From: pixi
Subject: [Monotone-devel] Re: Removing things from the database
Date: 20 Feb 2005 20:43:42 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Jon Bright <address@hidden> writes:

> Windows can't do pipes as such (afaik), but you could do

it does, although the API is more verbose and clunky than
pipe/fork/exec.  an example at microsoft's online msdn is
http://tinyurl.com/guro

in the example the child calls GetStdHandle() explicitly; that isn't
necessary as those are the handles that the C startup code will use to
hook up the standard i/o objects ({0,stdin,cin}, {1,stdout,cout}).

on the serer side, the HANDLE returned by CreatePipe() can be mapped
to an integer file descriptor with the library function
_open_osfhandle().  this function is supplied with the microsoft and
borland C libraries, i don't know about other vendors.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]