etc: add generic linux compatibility code
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 28 Feb 2009 18:50:05 +0000 (18:50 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sat, 28 Feb 2009 18:50:05 +0000 (18:50 +0000)
commit56822c002f28b38712f0ae483485e42c41189a7f
tree43565174dd3b4987424a3d03d917dc4f81f2cf81
parent1aab38ca3866b1eea104ba117aecac9eb004ae2d
etc: add generic linux compatibility code

To support the porting of OFED code, such as the infiniband-diags, provide a
set of linux compatible include files and functions.

This adds a set of header files under inc/user/linux so #include statements
in code will find them.  In some cases, the header files are blank, but in
others, they contain mappings between the linux calls and equivalent windows
calls.

Where more complex functionality is needed, source files are added under
etc/user to provide it, similar to what was done for getopt.

These headers and source files are used to support the OFED infiniband-diags
in the WinOF build environment.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1993 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
etc/user/inet.c [new file with mode: 0644]
inc/user/linux/_string.h [new file with mode: 0644]
inc/user/linux/arpa/inet.h [new file with mode: 0644]
inc/user/linux/inttypes.h [new file with mode: 0644]
inc/user/linux/netinet/in.h [new file with mode: 0644]
inc/user/linux/unistd.h [new file with mode: 0644]