POSIX systems programming
This part of the C course leaves the standard library for the POSIX calls that a program on Linux uses to talk to the system: processes, signals, pipes, sockets, threads and atomics. It builds a TCP server that answers more than one client.
12.1
Processes
fork, exec, wait, exit status, file descriptors
Open
12.2
Signals
signal handlers, sigaction, SIGINT, SIGTERM, async safety
Open
12.3
Pipes
pipe, dup2, FIFOs, producer and consumer
Open
12.4
Sockets
addresses, socket, connect, bind, listen, accept
Open
12.5
A TCP server
poll, multiple clients, HTTP request, response
Open
12.6
POSIX threads
pthread_create, join, detached threads, arguments
Open
12.7
Mutexes and condition variables
mutex, condition variable, producer and consumer
Open
12.8
Atomics and the memory model
stdatomic, memory_order, races, lock-free counter
Open
12.9
Command-line arguments
argc, argv, getopt, options and operands
Open