Hi Johannes, Thanks! I located mkfifo in 'core.sys.posix.sys.stat'. I couldn't find anything for named pipes in the standard library, but there is a Windows API project in dsource and the module 'win32.winbase' has declarations for 'CreateNamedPipe', etc. I guess this will do.
Best Regards, Tarun On Mon, Feb 28, 2011 at 3:00 AM, Johannes Pfau <s...@example.com> wrote: > Tarun Ramakrishna wrote: >>Hi, >> >>Is there anything in the standard library to do named pipes IPC in >>both windows and linux ? I am not necessarily looking for a unified >>API, anything that will allow me to setup named pipes on either OS and >>read/write on them will do. >> >>Thanks, >>Tarun > > I'm not sure but I think there's nothing like that in the standard > library. The only thing I can think of is that the new std.process > (https://github.com/kyllingstad/phobos/blob/new-std-process/std/process.d) > uses pipes for IPC (anonymous pipes though, not named pipes) :-( > > at least for posix druntime exports the c api, so you could write a > wrapper for that. (The pipe functions and types are in > core.sys.posix.sys.stat.d (mknod, S_IFIFO)) > > -- > Johannes Pfau >