473,323 Members | 1,537 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,323 software developers and data experts.

header for C - unistd.h

Dear

I need to modify a program that is written by other people, and I see
#include <unistd.h>
#include <zlib.h>

which is not a standard C++ header.

Could someone kindly tell me which header files in C++ are compatible
with the above?

Thankyou in advance

Jul 23 '05 #1
1 10493
Pasacco schrieb:
Dear

I need to modify a program that is written by other people, and I see
#include <unistd.h>
#include <zlib.h>

which is not a standard C++ header. Right, they are OS (unistd.h) and library (zlib.h) specific.
Could someone kindly tell me which header files in C++ are compatible
with the above?

There are various C++ wrappers for zlib that you could use, GIYF.
I don't know of any wrapper for all of unistd.h but then, it's not
really needed. I'm not aware of any variant of that header that doesn't
have an extern "C" around all function declarations if compiled by a C++
compiler. If you're worried by the fact that it's platform-specific,
you'd have to go through the code, check what functions of unistd.h it
uses and replace them with portable alternatives.

Cheers,
Malte
Jul 23 '05 #2

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

Similar topics

2
by: Samuel | last post by:
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
2
by: clusardi2k | last post by:
Hello, I'm trying to understand someone else code. The below compiles and works fine and dandy. #include <sys/types.h> #include "unistd.h" #include "stdio.h"
6
by: Al-Burak | last post by:
I have a class that uses unistd.h functions for file I/O handling, I have not used this class in a long time, but it worked just fine in LINUX and CYGWIN, but under MINGW32 it doesn't even...
2
by: Al-Burak | last post by:
I hava a library based on unistd, and functions like access(...) are not found in the C library. I use this function to test if a file exists, is there a function simmilar in 'C' or WIN32 to do...
5
by: Tiger | last post by:
Hi, I try to send a packet with raw socket but I have an error with ethereal sniffer on windows xp. I can't find any solution on the net. :( Could anybody help with that problem? my code :...
3
by: bangaw | last post by:
i'm currently using c++ on windowsXP, unistd.h doesnt work for windows what other substitute for it could i use to replace it Pls. Help me Pls pls the code goes as follows #include <stdio.h>...
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>...
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.