473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

<unistd.h> for windows platform

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
Jul 22 '05 #1
2 12586
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

"Samuel" <sa****@gmail.com> wrote in message
news:dc**************************@posting.google.c om...
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

Jul 22 '05 #2
On 10 Sep 2004 07:33:23 -0700, sa****@gmail.com (Samuel) wrote:
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
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Stefan Höhne | last post by:
Hi, as I recon, std::vector::clear()'s semantics changed from MS VC++ 6.0 to MS' DOT.NET - compiler. In the 6.0 version the capacity() of the vector did not change with the call to...
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
8
by: Benjamin Bécar | last post by:
Hello everyone. I have to find a correct architecture to achieve this XML <=Text conversion platform. The platform (based on Win2003Server) will have to deal with 21 million XML files and 16...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
1
by: Mike | last post by:
According to http://www.opengroup.org/pubs/online/7908799/xsh/pread.html , pread() function should be declared in <unistd.h>. But when I preprocessed following case: #include <unistd.h>...
35
by: Lee Crabtree | last post by:
This seems inconsistent and more than a little bizarre. Array.Clear sets all elements of the array to their default values (0, null, whatever), whereas List<>.Clear removes all items from the...
4
mithuncm
by: mithuncm | last post by:
hai all, i had read a file using ---- { int i =open (char* ,O_RDONLY ); . . close(i); }
1
by: sa33jj | last post by:
how I can use # include <unistd.h> in c++ for windows xp - workstation
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.