Jump to content

C POSIX library

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fresheneesz (talk | contribs) at 23:33, 12 October 2006 (making page). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The POSIX library adds support for what a POSIX conformant system would typically implement as system calls. These POSIX operations are mapped to the corresponding OSKit COM interfaces. Both the minimal C library (Section 14) and the FreeBSD C library (Section 21) rely on the POSIX library to provide the necessary system level operations. For example, fopen in the C library will chain to open in the POSIX library, which in turn will chain to the appropriate oskit_dir and oskit_file COM operations. All of the pathname operations, file descriptor bookkeeping, locking, and other details normally carried out in a “kernel” implementation of a system call interface, are handled by the POSIX library. Alternatively, the POSIX library bridges differences between the COM interfaces and the functions as defined by POSIX.

Almost all of the functions and definitions provided by the POSIX library implement well-known, well-defined ANSI and POSIX C library interfaces.

ANSI C library header files

<cpio.h>
<dirent.h> Allows the manipulation of directories.
<fcntl.h>
<grp.h>
<pwd.h>
<sys/stat.h>
<sys/times.h>
<sys/types.h>
<sys/utsname.h>
<sys/wait.h>
<tar.h>
<termios.h>
<unistd.h>
<utime.h>

References