POSIX (Portable Operating System Interface)
Description
POSIX is an IEEE and ISO/IEC standard that defines a programming environment for use by portable software running on UNIX-like systems. It includes specifications for the system headers, the shell, and some utility programs.
GNU/Linux is POSIX-compatible for most practical purposes, although it has not been officially certified. The same applies to FreeBSD, OpenBSD and NetBSD.
The latest version of POSIX is POSIX.1-2008, also known as IEEE Std 1003.1-2008 and the Open Group Base Specifications issue 7. It is technically identical to ISO/IEC/IEEE 9945:2009.
microHOWTOs
- Atomically rewrite the content of a file
- Capture the output of a child process in C
- Cause a process to become a daemon
- Cause a process to become a daemon in C
- Convert an IP address to a human-readable string in C
- Convert an IP address to the corresponding domain name in C
- Establish a TCP connection in C
- Ignore SIGPIPE without affecting other threads in a process
- Listen for and accept TCP connections in C
- Listen for and receive UDP datagrams in C
- Listen on a TCP port with connections in the TIME-WAIT state
- Prevent a process from terminating when writing to a broken pipe
- Reap zombie processes using a SIGCHLD handler
- Send a UDP datagram in C
- Send an arbitrary IPv4 datagram using a raw socket in C
Further reading
- Base Specifications, Issue 7, The Open Group, 2008