Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   UNIX header files to Windows header files (http://www.velocityreviews.com/forums/t442556-unix-header-files-to-windows-header-files.html)

anand.ba@gmail.com 05-01-2006 02:13 PM

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!


CBFalconer 05-01-2006 03:33 PM

Re: UNIX header files to Windows header files
 
anand.ba@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/>


Eric Sosman 05-01-2006 03:41 PM

Re: UNIX header files to Windows header files
 


anand.ba@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.

--
Eric.Sosman@sun.com


Walter Roberson 05-01-2006 03:57 PM

Re: UNIX header files to Windows header files
 
In article <1146492782.846317.215930@i40g2000cwc.googlegroups .com>,
<anand.ba@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


All times are GMT. The time now is 10:38 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57