Header Files for UNIX-Type Functions

Programs using the UNIX-type functions must include one or more header files that contain information needed by the functions, such as:

The header files are provided in the QSYSINC library, which is optionally installable. Make sure QSYSINC is on your system before compiling programs that use these header files. For information on installing the QSYSINC library, see Data structures and the QSYSINC Library.

Figure 1-1 shows the file and member name in the QSYSINC library for each header file used by the UNIX-type APIs in this publication.

Figure 1-1. Where to Find Header Files
Name of Header File Name of File in QSYSINC Name of Member
arpa/inet.h ARPA INET
arpa/nameser.h ARPA NAMESER
bse.h H BSE
bsedos.h H BSEDOS
bseerr.h H BSEERR
dirent.h H DIRENT
errno.h 1 H ERRNO
fcntl.h H FCNTL
grp.h H GRP
limits.h 1 H LIMITS
netdbh.h H NETDB
net/if.h NET IF
netinet/in.h NETINET IN
netinet/ip_icmp.h NETINET IP_ICMP
netinet/ip.h NETINET IP
netinet/tcp.h NETINET TCP
netinet/udp.h NETINET UDP
netns/idp.h NETNS IDP
netns/ipx.h NETNS IPX
netns/ns.h NETNS NS
netns/sp.h NETNS SP
net/route.h NET ROUTE
os2.h H OS2
os2def.h H OS2DEF
pwd.h H PWD
Qlg.h H QLG
Qp0lstdi.h H QP0LSTDI
qp0wpid.h H QP0WPID
qp0ztrc.h H QP0ZTRC
qp0ztrml.h H QP0ZTRML
qp0z1170.h H QP0Z1170
qtomeapi.h H QTOMEAPI
qtossapi.h H QTOSSAPI
resolv.h H RESOLVE
semaphore.h H SEMAPHORE
spawn.h H SPAWN
sys/ioctl.h SYS IOCTL
sys/ipc.h SYS IPC
sys/msg.h SYS MSG
sys/param.h SYS PARAM
sys/sem.h SYS SEM
sys/setjmp.h 2 SYS SETJMP
sys/shm.h SYS SHM
sys/signal.h 2 SYS SIGNAL
sys/socket.h SYS SOCKET
sys/stat.h SYS STAT
sys/statvfs.h SYS STATVFS
sys/time.h SYS TIME
sys/types.h SYS TYPES
sys/uio.h SYS UIO
sys/un.h SYS UN
sys/wait.h SYS WAIT
unistd.h H UNISTD
utime.h H UTIME
Note:

  1. The QSYSINC library provided by OS/400 and the QCLE library provided by ILE C each contain an errno.h and a limits.h file. The files in QSYSINC are OS/400 extensions of the compiler version of the files in QCLE. The errno.h and limits.h files in QCLE automatically embed the errno.h and limits.h files from QSYSINC.

  2. When you include the setjmp.h file from QCLE, it automatically embeds the sys/setjmp.h file from QSYSINC. Similarly, the signal.h file from QCLE automatically embeds the sys/signal.h file from QSYSINC.

You can display a header file in QSYSINC by using one of the following methods:

You can print a header file in QSYSINC by using one of the following methods:


Top | UNIX-Type APIs | APIs by category


[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]