In contrast to developing programs in the BS2000 environment (SDF), no special provisions are required for using the POSIX library functions in the POSIX environment. The following actions are executed automatically:
Setzen des Präprozessor-Defines
_OSD_POSIX
merging in the standard header files supplied with CRTE and POSIX-HEADER from the standard directories
/usr/include
or/usr/include/sys
. These depend on the language mode:language mode
searched directories
all C modes
/usr/include
/usr/include/sys
Cfront C++
/usr/include
/usr/include/sys
C++ V3
/usr/include/CC
/usr/include
/usr/include/sysC++ 2017 / C++ 2020
library version 1
/usr/include/CXX01
/usr/include
/usr/include/sys
C++ 2017 / C++ 2020
library version 2
/usr/include/CXX02
/usr/include
/usr/include/sys
The default setting can be overwritten by specifying
-Y -I
.- linking in the POSIX link switches
posix.o
andpostime.o
(corresponds to the PLAM library SYSLNK.CRTE.POSIX in the BS2000 environment)
The PROGRAM-ENVIRONMENT variable is set to “Shell” when the program is started.
Please refer to the manual “C Library Functions for POSIX Applications” [2] for further details.