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:
|
||
You can display a header file in QSYSINC by using one of the following methods:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(5)
DSPPFM FILE(QSYSINC/SYS) MBR(STAT)
You can print a header file in QSYSINC by using one of the following methods:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(6)
CPYF FROMFILE(QSYSINC/SYS) TOFILE(*PRINT) FROMMBR(STAT)
| Top | UNIX-Type APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |