613 lines
15 KiB
HTML
613 lines
15 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
|
|
<title>Header Files for UNIX-Type Functions</title>
|
|
<!-- All rights reserved. Licensed Materials Property of IBM -->
|
|
<!-- US Government Users Restricted Rights -->
|
|
<!-- Use, duplication or disclosure restricted by -->
|
|
<!-- GSA ADP Schedule Contract with IBM Corp. -->
|
|
<!-- Begin Header Records ========================================== -->
|
|
<!-- NETMG2 SCRIPT A converted by B2H R4.1 (346) (CMS) by HOLTJM at -->
|
|
<!-- RCHVMW2 on 29 Jan 1999 at 10:01:37 -->
|
|
<!-- Change History: -->
|
|
<!-- 020313 JTROUS Add QP0Lscan, V5R3, DCR98680 -->
|
|
<!-- 030317 ERICKSD Add QP0LRRO, V5R3, DCR99188.04 -->
|
|
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
|
|
</head>
|
|
<body>
|
|
<a name="Top_Of_Page"></a>
|
|
<!-- Java sync-link -->
|
|
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
|
|
</script>
|
|
|
|
<h2>Header Files for UNIX-Type Functions</h2>
|
|
|
|
<p>Programs using the UNIX<SUP>(R)</SUP>-type functions must include one or more header files
|
|
that contain information needed by the functions, such as:</p>
|
|
|
|
<ul>
|
|
<li>Macro definitions</li>
|
|
|
|
<li>Data type definitions</li>
|
|
|
|
<li>Structure definitions</li>
|
|
|
|
<li>Function prototypes</li>
|
|
</ul>
|
|
|
|
<p>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
|
|
<a href="../apiref/conQSYSINC.htm">Include files and the QSYSINC Library</a>.</p>
|
|
|
|
<p>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.</p>
|
|
|
|
<table border width="70%">
|
|
<tr>
|
|
<th align="center" valign="bottom">Name of Header File</th>
|
|
<th align="center" valign="bottom">Name of File in QSYSINC</th>
|
|
<th align="center" valign="bottom">Name of Member</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top" width="35%">arpa/inet.h</td>
|
|
<td align="center" valign="top" width="35%">ARPA</td>
|
|
<td align="center" valign="top" width="35%">INET</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">arpa/nameser.h</td>
|
|
<td align="center" valign="top">ARPA</td>
|
|
<td align="center" valign="top">NAMESER</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">bse.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">BSE</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">bsedos.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">BSEDOS</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">bseerr.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">BSEERR</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">dirent.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">DIRENT</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">errno.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">ERRNO</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">fcntl.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">FCNTL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">grp.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">GRP</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td align="center" valign="top">inttypes.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">INTTYPES
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<td align="center" valign="top">limits.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">LIMITS</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">mman.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">MMAN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netdbh.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">NETDB</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/icmp6.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">ICMP6
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td align="center" valign="top">net/if.h</td>
|
|
<td align="center" valign="top">NET</td>
|
|
<td align="center" valign="top">IF</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/in.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">IN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/ip_icmp.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">IP_ICMP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/ip.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">IP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/ip6.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">IP6</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/tcp.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">TCP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netinet/udp.h</td>
|
|
<td align="center" valign="top">NETINET</td>
|
|
<td align="center" valign="top">UDP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netns/idp.h</td>
|
|
<td align="center" valign="top">NETNS</td>
|
|
<td align="center" valign="top">IDP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netns/ipx.h</td>
|
|
<td align="center" valign="top">NETNS</td>
|
|
<td align="center" valign="top">IPX</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netns/ns.h</td>
|
|
<td align="center" valign="top">NETNS</td>
|
|
<td align="center" valign="top">NS</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">netns/sp.h</td>
|
|
<td align="center" valign="top">NETNS</td>
|
|
<td align="center" valign="top">SP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">net/route.h</td>
|
|
<td align="center" valign="top">NET</td>
|
|
<td align="center" valign="top">ROUTE</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">nettel/tel.h</td>
|
|
<td align="center" valign="top">NETTEL</td>
|
|
<td align="center" valign="top">TEL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">os2.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">OS2</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">os2def.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">OS2DEF</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">pwd.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">PWD</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">Qlg.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QLG</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0lchsg.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LCHSG</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" valign="top">qp0lflop.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LFLOP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0ljrnl.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LJRNL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0lror.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LROR</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0lrro.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LRRO</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0lrtsg.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LRTSG</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0lscan.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LSCAN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">Qp0lstdi.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0LSTDI</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0wpid.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0WPID</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0zdipc.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZDIPC</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0zipc.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZIPC</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0zolip.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZOLIP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0zolsm.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZOLSM</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0zripc.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZRIPC</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0ztrc.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZTRC</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0ztrml.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0ZTRML</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qp0z1170.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QP0Z1170</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qsoasync.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QSOASYNC
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qtnxaapi.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QTNXAAPI</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qtnxadtp.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QTNXADTP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qtomeapi.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QTOMEAPI</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">qtossapi.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">QTOSSAPI</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">resolv.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">RESOLVE</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">semaphore.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">SEMAPHORE</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">signal.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">SIGNAL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">spawn.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">SPAWN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">ssl.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">SSL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/errno.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">ERRNO</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/ioctl.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">IOCTL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/ipc.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">IPC</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/layout.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">LAYOUT</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/limits.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">LIMITS</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/msg.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">MSG</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/param.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">PARAM</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/resource.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">RESOURCE</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/sem.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">SEM</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/setjmp.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">SETJMP</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/shm.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">SHM</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/signal.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">SIGNAL</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/socket.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">SOCKET</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/stat.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">STAT</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/statvfs.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">STATVFS</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/time.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">TIME</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/types.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">TYPES</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/uio.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">UIO</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/un.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">UN</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">sys/wait.h</td>
|
|
<td align="center" valign="top">SYS</td>
|
|
<td align="center" valign="top">WAIT</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">ulimit.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">ULIMIT
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">unistd.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">UNISTD</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" valign="top">utime.h</td>
|
|
<td align="center" valign="top">H</td>
|
|
<td align="center" valign="top">UTIME</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<br>
|
|
<br>
|
|
|
|
|
|
<p>You can display a header file in QSYSINC by using one of the following
|
|
methods:</p>
|
|
|
|
<ul>
|
|
<li>Using your editor. For example, to display the <strong>unistd.h</strong>
|
|
header file using the Source Entry Utility editor, enter the following command:
|
|
|
|
|
|
<pre>
|
|
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(5)
|
|
</pre>
|
|
</li>
|
|
|
|
<li>Using the Display Physical File Member command. For example, to display the
|
|
<strong>sys/stat.h</strong> header file, enter the following command:
|
|
|
|
<pre>
|
|
DSPPFM FILE(QSYSINC/SYS) MBR(STAT)
|
|
</pre>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>You can print a header file in QSYSINC by using one of the following
|
|
methods:</p>
|
|
|
|
<ul>
|
|
<li>Using your editor. For example, to print the <strong>unistd.h</strong>
|
|
header file using the Source Entry Utility editor, enter the following command:
|
|
|
|
|
|
<pre>
|
|
STRSEU SRCFILE(QSYSINC/H) SRCMBR(UNISTD) OPTION(6)
|
|
</pre>
|
|
</li>
|
|
|
|
<li>Using the Copy File command. For example, to print the <strong>
|
|
sys/stat.h</strong> header file, enter the following command:
|
|
|
|
<pre>
|
|
CPYF FROMFILE(QSYSINC/SYS) TOFILE(*PRINT) FROMMBR(STAT)
|
|
</pre>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>Symbolic links to these header files are also provided in directory
|
|
/QIBM/include.</p>
|
|
|
|
<hr>
|
|
<center>
|
|
<table cellpadding="2" cellspacing="2">
|
|
<tr align="center">
|
|
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
|
|
"unix.htm">UNIX-Type APIs</a> | <a href="aplist.htm">APIs by category</a></td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
</body>
|
|
</html>
|
|
|