Standard POSIX 1003.1-2024 has been approved

After seven years of development, the IEEE Computer Society and the Open Group Consortium approved new version of the standard POSIX 1003.1-2024, aimed at ensuring program portability between UNIX-like systems. The standard defines software interfaces between operating systems and application programs, and covers a set of library functions, shell capabilities, and utilities.

The text of the standard is currently only available in PDF format for paying customers, educational institutions and users with an account on the IEEE website. In the near future the text of the standard will be published publicly on the Open Group website (so far only the previous edition of POSIX 1003.1-2017, released in 2017, is publicly available).

From changes in POSIX 1003.1-2024, in addition to bug fixes, it can be noted implementation in shell drain $'…', addition readlink and realpath utilities, appearing in find utility options “-print0” and “-iname”, adding the “-0” option to xargs (using the null character as a delimiter, for example, generated via find -print0), to read – the “-d” (separator) option, to sed options “-E” (extended regular expressions), in set – options “-o pipefail“.

For programs in the C language, support has been added for the SIGWINCH constant, tools for creating shared objects, functions tcgetwinsize (determining the size of the terminal window), gettext (organizing multilingual interfaces), asprintf (formats a string and allocates a buffer taking into account the size of the output), strlcpy and strlcat (analogues strncpy and strncat, which contain buffer overflow protection and set the trailing null byte). In the make utility appeared support for nested macros, allowed specifying multiple files in the include directive, added new targets .NOTPARALLEL, .PHONY and .WAIT, added the CURDIR macro pointing to the current directory, added macro and variable assignment operators “::=”, “:::= “, “+=”, “?=” and “!=”.

Thanks for reading: