473,320 Members | 2,071 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,320 software developers and data experts.

UNIX header files to Windows header files

Hi,

I need to port some C code from UNIX SGI to Windows (MS VC++ compiler).
The following header files arent available in windows:
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netdb.h>
#include <arpa/inet.h>
Does anyone have any suggestions on how to get windows versions of
these? Thanks!

May 1 '06 #1
3 39660


an******@gmail.com wrote On 05/01/06 10:13,:
Hi,

I need to port some C code from UNIX SGI to Windows (MS VC++ compiler).
The following header files arent available in windows:
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netdb.h>
#include <arpa/inet.h>
Bad news, Anand: They're not available in Standard C,
either.
Does anyone have any suggestions on how to get windows versions of
these? Thanks!


Um, er, maybe somebody in a newsgroup that has "windows"
or "microsoft" in its name might know? Naaah -- that's too
obvious; try alt.rec.underwater.barbecue or something like it.

--
Er*********@sun.com

May 1 '06 #2
an******@gmail.com wrote:

I need to port some C code from UNIX SGI to Windows (MS VC++ compiler).
The following header files arent available in windows:
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netdb.h>
#include <arpa/inet.h>

Does anyone have any suggestions on how to get windows versions of
these? Thanks!


Those headers are not available in standard C, as discussed here.
Your code is not portable. What you need is the appropriate
libraries and their header files, not just the headers. For that
go to a group covering your peculiar system. It may well have
Microsoft in its name.

You will probably be better off avoiding windoze entirely and
switching to a linux system. Certainly cheaper and more reliable.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>

May 1 '06 #3
In article <11**********************@i40g2000cwc.googlegroups .com>,
<an******@gmail.com> wrote:
I need to port some C code from UNIX SGI to Windows (MS VC++ compiler).
The following header files arent available in windows:
#include <sys/param.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <netdb.h>
#include <arpa/inet.h> Does anyone have any suggestions on how to get windows versions of
these? Thanks!


You can't, not really.

See however,

http://en.wikipedia.org/wiki/Cygwin
http://www.research.att.com/sw/tools/uwin/

--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
May 1 '06 #4

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

Similar topics

0
by: Pieter Claerhout | last post by:
Hi all, I'm trying to use PIL to convert windows icon files to PNG. This mostly works, but it doesn't preserve the transparancy. Any tips or tricks on how to preserve the transparancy? ...
2
by: christos panagiotou | last post by:
hi all I am trying to open some .raw files that represent images (256x256, 8 bit per pixel, no header) in a c++ program I cannot copy paste the module here as it uses a method from the VTK...
0
by: B.Sathish Kumar | last post by:
hi, i tried to install Visual Studio .NET 2002. .NET Framework Version is 1.0.3705, IIS 5 in Windows 2000 Professional SP4. after installing, ASPX files gives header like output (shown below) in...
3
by: Jackie | last post by:
Hi all, I am new to visual c++, and found that each C++ project automatically generates source files and resource files, what are their roles, respectively? Thanks a lot.
3
by: utab | last post by:
Dear all, What are the advantages of binary files over text files? I would like to search for a specific value of a variable in an output file, I was doing this lately by the string library...
1
by: raghu | last post by:
Hello Every one I am working on VxWorks while building a C program which includes header files as windows.h and process.h giving me an Error saying cannot find the files. Both header files are...
4
by: stef | last post by:
hello, is there a Python library for easy reading and writing windows ini-files ? thanks, Stef Mientki
2
by: rameshvummadi | last post by:
Hi, I want to transfer a file from ny unix server to windows server. But FTP service is not available on my windows server. Is it possible to transfer a file with out FTP service running on the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
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...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.