include <asm/uaccess.h>
include <asm/system.h>
include <linux/types.h>
include <linux/kernel.h>
include <linux/string.h>
include <linux/mm.h>
include <linux/socket.h>
include <linux/in.h>
include <linux/inet.h>
include <linux/netdevice.h>
include <linux/fcdevice.h>
include <linux/skbuff.h>
include <linux/errno.h>
include <linux/timer.h>
include <linux/net.h>
include <linux/proc_fs.h>
include <linux/init.h>
include <net/arp.h>

Recommended Answers

All 3 Replies

In many cases there are no equivalent header files. MS-Windows compilers do not normally support POSIX standartds or functions. However the MS-Windows port of GCC has ported many of the *nix POSIX functions to MinGW compiler.

If you want to find out what header file contains a specific function then google for "msdn function_name", replacing function_name with the name of the function you are interested in. Once you find the page on MSDN scroll down towards the bottom of the page and it will tell you the names of the required header files and library files.

This makes porting programs from *nix to MS-Windows difficult and time consuming.

There aren't equivalent headers unless you're using a compatibility layer. A better approach would be to port your code based on features, and look for equivalent features in the Windows APIs.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.