unistd.h
Sign in to saveIn the C and C++ programming languages, is the name of the header file that provides access to the POSIX operating system API. It is defined by the POSIX.1 standard, the base of the Single Unix Specification, and should therefore be available in any POSIX-compliant operating system and compiler. For instance, this includes Unix and Unix-like operating systems, such as GNU variants, distributions of Linux and BSD, and macOS, and compilers such as GCC and LLVM.
~4 min read
Encyclopedic overview
3 sectionsContents
- Overview of functions
- References
- External links
In the C and C++ programming languages, is the name of the header file that provides access to the POSIX operating system API. It is defined by the POSIX.1 standard, the base of the Single Unix Specification, and should therefore be available in any POSIX-compliant operating system and compiler. For instance, this includes Unix and Unix-like operating systems, such as GNU variants, distributions of Linux and BSD, and macOS, and compilers such as GCC and LLVM.
On Unix-like systems, the interface defined by is typically made up largely of system call wrapper functions such as fork, pipe and I/O primitives (read, write, close, etc.).
Excerpted from Wikipedia’s “unistd.h” article, available under the CC BY-SA 4.0 licence.