This section specifies behaviors in which there is optional behavior in one of the standards on which the LSB relies, and where the LSB requires a specific behavior.
Note: The LSB does not require the kernel to be Linux; the set of mandated options reflects current existing practice, but may be modified in future releases.
LSB conforming implementations shall support the following options defined within the ISO POSIX (2003):
function shall consume a file descriptor in the same
fashion as open(), and therefore may fail with
characters shall be changeable, as
described as optional behavior in the "General Terminal Interface"
section of the
ISO POSIX (2003).
The access() function
function shall fail with
EINVAL if the
amode argument contains bits other than
those set by the bitwise inclusive OR of
The link() function shall require access to the existing file in order to succeed, as described as optional behavior in the ISO POSIX (2003).
Calling unlink() on a directory shall fail. Calling link() specifying a directory as the first argument shall fail. See also unlink.
Note: Linux allows rename() on a directory without having write access, but the LSB does not require this.
LSB conforming systems shall enforce certain special additional restrictions above and beyond those required by ISO POSIX (2003).
Note: These additional restrictions are required in order to support the testing and certification programs associated with the LSB. In each case, these are values that defined macros must not have; conforming applications that use these values shall trigger a failure in the interface that is otherwise described as a "may fail".
The fcntl() function shall treat the "cmd" value -1 as invalid.
The whence value
shall be an invalid value for the
lseek(), fseek() and
-5 shall be an invalid signal number.
If the sigaddset() or
sigdelset() functions are passed an
invalid signal number, they shall return with EINVAL.
are only required to enforce this requirement for signal numbers which
are specified to be invalid by this specification (such as the
The mode value
-1 to the access()
function shall be treated as
A value of
-1 shall be an invalid "_PC_..." value for
A value of
-1 shall be an invalid "_SC..." value for
The nl_item value
shall be invalid for nl_langinfo().
-1 shall be an invalid "_CS_..." value for
"a" shall be an invalid mode
argument to popen().