The following table shows the include files used for HP-UX and MPE/iX applications.
Table 1-1 Include Files Used for HP-UX and MPE/iX Applications
| HP-UX Name | MPE/iX Name |
|---|
| <sys/types.h> | types.h.sys |
| <sys/socket.h> | socket.h.sys |
| <sys/un.h> | un.h.sys |
| <sys/file.h> | file.h.sys |
| <sys/errno.h> | errno.h.sys |
| <sys/ioctl.h> | ioctl.h.sys |
| <netinet/in.h> | in.h.sys |
| <netinet/tcp.h> | tcp.h.sys |
| <unistd.h>
| unistd.h.sys
|
| <fcntl.h>
| fcntl.h.sys
|
| <time.h>
| time.h.sys
|
| <uio.h>
| uio.h.sys
|
| <netdb.h>
| netdb.h.sys
|
The name service routines and BSD socket routines are stored in a native mode relocatable library file name SOCKETRL.NET.SYS. When linking your programs, you should include this file in the link list. For example,
link objfile,progfile;rl=socketrl.net.sys,libc.lib.sys |
Ensure that you link with the POSIX library (/lib/libc.a) instead of libc.lib.sys for POSIX programs. Note that if you are using the POSIX library you must use file indirection as
shown in the programming example in Chapter 5.