After seven years of development, the IEEE Computer Society and the Open Group Consortium have approved a new version of the POSIX 1003.1-2024 standard, which aims to ensure portability between UNIX-like operating systems. The POSIX standard (Portable Operating System Interface) defines the software interface between the operating system and application programs.
Advertisement
POSIX is divided into four parts. The base definitions are a list of conventions, definitions and concepts used in the standard. The system interface describes the C system calls with the associated header files. The third part contains the definitions of command line interpreters and auxiliary programs, i.e. shell functions and utilities. Finally, a part provides explanations about the standard. In the heyday of mutually incompatible commercial Unix variants, POSIX conformance was an important criterion when choosing an operating system for the desired software. Since current Linux and BSD variants are largely POSIX-compatible, the standard that has now been published incorporates and standardizes many additions to those already implemented.
The committees expanded the scope of shale processing to include two equipment readlink
to display the contents of a symbolic link and realpath
to resolve the pathname of a file. Also new to the tool are: find
Option -print0
To output the path name with a trailing null byte -iname
for a case-insensitive search. on xargs
The limit of arguments via option is zero bytes -0
Now there too. But read
can be done via -d
define the limiter, sed
uses through -E
Advanced Regular Expressions and set
knows the options -o pipefail
,
Constants are now available to C programs SIGWINCH
and tools for creating shared objects. Some new features have also been added:
tcgetwinsize
(Setting the terminal window size)gettext
(Organization of multilingual interface)asprintf
(formatting a string and allocating a buffer taking into account the size of the output)strlcpy
Andstrlcat
(identicalstrncpy
Andstrncat
which adds a zero byte at the end to protect against buffer overflow)
Definition for α make
Now includes nested macros, which are allowed include
The -A directive specifying multiple files, among other things, also knows new targets .NOTPARALLEL, .PHONY
And .WAIT.
gross CURDIR
points to the current directory and with "::=", ":::=", "+=", "?="
And "!="
There are new assignment operators for macros and variables.
The text of the standard currently exists As PDF on the IEEE website Only for paying customers, educational institutions and registered users with an account. The text of the standard is expected to be published on the Open Group website “in the near future”. So far only the previous version of POSIX 1003.1-2017 is publicly available here.
(AVR)