Operating Systems and Embedded Software · Operating system interface standard
POSIX
Portable Operating System Interface
Also known as POSIX.1, IEEE Std 1003.1, Single UNIX Specification, ISO/IEC 9945, PSE51
A family of IEEE and The Open Group standards (POSIX.1 is IEEE Std 1003.1) that defines a common operating-system interface (system services, C headers, a shell and utilities) so applications can be ported at source-code level.
Explanation
POSIX specifies what an application can rely on: processes and threads, files, signals, timers, real-time scheduling, inter-process communication, and a command shell with common utilities. The current base specification, POSIX.1-2024, is simultaneously IEEE Std 1003.1-2024 and The Open Group Base Specifications Issue 8. It is maintained by the Austin Group, a joint working group of the IEEE, The Open Group and ISO/IEC JTC 1, and its core also forms ISO/IEC 9945 and the Single UNIX Specification.
For embedded systems, POSIX provides portability between operating systems such as QNX, Linux and several RTOSs. AUTOSAR's Adaptive Platform bases applications on a restricted POSIX profile (PSE51) plus the C++ standard library, so different POSIX operating systems can sit underneath.
Conformance is a spectrum. Many systems implement large parts of POSIX without formal certification, and support for optional feature groups varies, so portability claims should name the profile and options actually supported.
How it works
The standard defines interfaces and required behaviour, not implementations. An application written against POSIX headers and functions such as pthread_create, clock_nanosleep or sched_setscheduler compiles on any conforming system, and each OS implements those calls on its own kernel. Optional feature groups, such as threads or real-time scheduling, are advertised through option macros, so applications can check at build time what is available.
Automotive applications
- Porting middleware between Linux and QNX
- Application portability on AUTOSAR Adaptive platforms
- Real-time threading through pthread and scheduling APIs
- Build tooling that relies on the POSIX shell and utilities
Example
A perception middleware written with POSIX threads, clock_nanosleep and message queues compiles unchanged for a Linux development PC and for a QNX target ECU. Only the toolchain and build configuration differ.
An illustrative example: any figures in it are worked numbers, not measurements.
Standard details
- Standard
- IEEE Std 1003.1 / The Open Group Base Specifications (POSIX.1)
- Edition
- IEEE Std 1003.1-2024 (Base Specifications Issue 8)
- Publication status
- Published
- Scope
- Defines a standard operating-system interface and environment, including a shell and common utilities, to support application portability at source-code level.
- How this was checked
- Edition taken from The Open Group online edition of Issue 8. No standards.ieee.org product page was fetched; standards retailers returned by web search list the 2024 revision as active.
References
- The Open Group Base Specifications Issue 8 (IEEE Std 1003.1-2024): Base Definitions, Introduction (opens in a new tab)
“POSIX.1-2024 defines a standard operating system interface and environment”
- The Open Group Base Specifications Issue 8: Introduction (frontmatter) (opens in a new tab)
- AUTOSAR Adaptive Platform (opens in a new tab)
Definitions are original summaries. Standards text is not reproduced; follow the links for the official publications.