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:
- Macro definitions
- Data type definitions
- Structure definitions
- Function prototypes
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 about installing the QSYSINC library, see Include files and the QSYSINC library.
The table below shows the file and member name in the QSYSINC library for each header file used by the UNIX-type APIs in this publication.
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 | H | ERRNO |
fcntl.h | H | FCNTL |
grp.h | H | GRP |
inttypes.h | H | INTTYPES |
limits.h | H | LIMITS |
netdbh.h | H | NETDB |
netinet/icmp6.h | NETINET | ICMP6 |
net/if.h | NET | IF |
netinet/in.h | NETINET | IN |
netinet/ip_icmp.h | NETINET | IP_ICMP |
netinet/ip.h | NETINET | IP |
netinet/ip6.h | NETINET | IP6 |
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 |
nettel/tel.h | NETTEL | TEL |
os2.h | H | OS2 |
os2def.h | H | OS2DEF |
pwd.h | H | PWD |
Qlg.h | H | QLG |
qp0lchsg.h | H | QP0LCHSG |
qp0lflop.h | H | QP0LFLOP |
qp0ljrnl.h | H | QP0LJRNL |
qp0lror.h | H | QP0LROR |
qp0lrro.h | H | QP0LRRO |
qp0lrtsg.h | H | QP0LRTSG |
qp0lscan.h | H | QP0LSCAN |
Qp0lstdi.h | H | QP0LSTDI |
qp0wpid.h | H | QP0WPID |
qp0zdipc.h | H | QP0ZDIPC |
qp0zipc.h | H | QP0ZIPC |
qp0zolip.h | H | QP0ZOLIP |
qp0zolsm.h | H | QP0ZOLSM |
qp0zripc.h | H | QP0ZRIPC |
qp0ztrc.h | H | QP0ZTRC |
qp0ztrml.h | H | QP0ZTRML |
qp0z1170.h | H | QP0Z1170 |
qsoasync.h | H | QSOASYNC |
qtnxaapi.h | H | QTNXAAPI |
qtnxadtp.h | H | QTNXADTP |
qtomeapi.h | H | QTOMEAPI |
qtossapi.h | H | QTOSSAPI |
resolv.h | H | RESOLV |
semaphore.h | H | SEMAPHORE |
signal.h | H | SIGNAL |
spawn.h | H | SPAWN |
ssl.h | H | SSL |
sys/errno.h | H | ERRNO |
sys/ioctl.h | SYS | IOCTL |
sys/ipc.h | SYS | IPC |
sys/layout.h | SYS | LAYOUT |
sys/limits.h | H | LIMITS |
sys/mman.h | SYS | MMAN |
sys/msg.h | SYS | MSG |
sys/param.h | SYS | PARAM |
sys/resource.h | SYS | RESOURCE |
sys/sem.h | SYS | SEM |
sys/setjmp.h | SYS | SETJMP |
sys/shm.h | SYS | SHM |
sys/signal.h | 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 |
ulimit.h | H | ULIMIT |
unistd.h | H | UNISTD |
utime.h | H | UTIME |
You can display a header file in QSYSINC by using one of the following methods:
- Using your editor. For example, to display the unistd.h
header file using the Source Entry Utility editor, enter the following command:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(5)
- Using the Display Physical File Member command. For example, to display the
sys/stat.h header file, enter the following command:
DSPPFM FILE(QSYSINC/SYS) MBR(STAT)
You can print a header file in QSYSINC by using one of the following methods:
- Using your editor. For example, to print the unistd.h
header file using the Source Entry Utility editor, enter the following command:
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(6)
- Using the Copy File command. For example, to print the
sys/stat.h header file, enter the following command:
CPYF FROMFILE(QSYSINC/SYS) TOFILE(*PRINT) FROMMBR(STAT)
Symbolic links to these header files are also provided in directory /QIBM/include.