UNISTD(3)
π UNISTD(3) β the manual page, bestie edition
okay so this is unistd(3), from the Library Functions Manual, and honestly? it's kind of the main character of POSIX. let's get into it π«Ά
β¨ NAME β¨
unistd β standard symbolic constants and types. that's it, that's the vibe. iconic behavior, no notes π
π SYNOPSIS π
#include <unistd.h>
literally one line and it changes your whole life, no cap β¨
π¦ DESCRIPTION π¦
okay so the <unistd.h> header is the foundation of the Portable Operating System Interface for Unix (POSIX) API. it's giving "everything happens here" energy. it includes definitions for a ton of functions, symbolic constants, and types, and among these you'll find:
- the implementation-defined
NULLpointer constant πΈ - types like
size_t,ssize_t,pid_t, andintptr_tβ yes bestie, the whole friend group π - various limits and other symbolic constants, all described over in
pathconf(2)andsysconf(3)(go read those, iykyk) - prototypes for several important system calls and library routines, like
chown(2),dup(2),execl(3),fork(2),pipe(2),rmdir(2),setuid(2), andwrite(2)π₯ absolute legends, every single one - the symbolic constant
_POSIX_VERSION, which defines the version of the POSIX standard that the implementation conforms to β this is the "which era of the standards are we in" check π - various other
_POSIX-prefixed symbolic constants that indicate whether the system implements some optional part of the standard. examples include constants such as_POSIX_IPV6forinet6(4)functionality and_POSIX_ASYNCHRONOUS_IOforaio(3)π§ so like, a vibe check for optional features, fr fr
lowkey the whole point is: this header tells you what your system actually supports before you go assuming anything π
π SEE ALSO π
go read them, they're the supporting cast and they ate π
β STANDARDS β
the <unistd.h> header conforms to IEEE Std 1003.1-2001 (βPOSIX.1β) β periodt, that's the standard, no debate π―
and that's the whole page bestie!! this version came from Debian, dated August 9, 2011, and the page is UNISTD(3) β ok bye, go include the header, ily ππ
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2011 Jukka Ruohonen <jruohonen@iki.fi>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms