<unistd.h> for windows platform

S

Samuel

Does anyone know if it exists for windows? Can I only use it on linux?

unistd.h is a library for process control and has functions like pipe and fork.
Thanks
 
M

Moonlit

Hi,

I don't believe it exists on MS-Windows however windows does have a lot of
unix like functions like _pipe, _popen connect etc.

These functions are contained in io.h dosio.h etc.

I don't believe fork exists however MS-Windows has a similar function to
create processes ( CreateProcess ).

Regards, Ron AF Greve
 
T

Tom Widmer

Does anyone know if it exists for windows? Can I only use it on linux?

unistd.h is a library for process control and has functions like pipe and fork.

I believe you get that with cygwin: http://www.cygwin.com/

Alternatively, you can manually port the code to Win32 (which has
pipes, but you'll have to use a threading API rather than fork I
think).

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top