Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Porting UNIX Applications to the OSS Environment
Open System Services Porting Guide520573-006
7-17
OSS C Run-Time Library
Functions on page 5-5 or the Open System Services Programmers Guide for more
information on these functions.
When porting UNIX programs to the OSS environment, use only the OSS C run-time
library functions. If you wish to access a routine in the Guardian C run-time library, you
must use mixed-module programming techniques, discussed in Section 5,
Interoperating Between Programming Environments.
The semantics and syntax of the OSS C run-time library routines are described in the
Open System Services Library Calls Reference Manual. The semantics and syntax of
the Guardian C run-time library routines are described in the Guardian Native C Library
Calls Reference Manual.
OSS and Guardian APIs
The complete set of standard functions available in the OSS API is provided in the
Open System Services Programmer’s Guide, which includes two API interoperability
tables, listing the OSS and Guardian C run-time library calls. A great amount of
interoperability exists between the OSS and Guardian APIs. The behavior of a function
or macro can depend on the module and process from which it is called.
Section 5, Interoperating Between Programming Environments, discusses the API
interoperability tables further, as well as the interoperability between OSS and
Guardian files and processes.
System and Process Limit Values
For UNIX environments, system and process limit values are generally defined in
/usr/include/limits.h. However, in the OSS environment, some limit values are
configuration-dependent and are not defined in the limits.h header file.
The values of the following limits are obtained for the OSS environment using the
sysconf() function:
ARG_MAX Maximum length, in bytes, of the arguments for one of the exec or
tdm_execve sets of functions, including the environment data
CHILD_MAX Maximum number of simultaneous processes for each real user ID
CLK_TCK Number of clock ticks per second
OPEN_MAX Maximum number of files that one process can have open at one
time
STREAM_MAX Maximum number of streams that one process can have open at one
time