Using the paging space allocation mode programming interface
The programming interface that controls the paging space allocation mode uses the PSALLOC environment variable.
To ensure that an application always runs under the desired mode
(with or without early paging space allocation), do the following:
- Use the getenv subroutine to examine the current state of the PSALLOC environment variable.
- If the value of the PSALLOC environment
variable is not the value required by the application, use the setenv subroutine
to alter the value of the environment variable. Because only the execve subroutine examines the state of the PSALLOC environment variable, call the execve subroutine with the same set of parameters and environment received by the application. When the application reexamines the state of the PSALLOC environment variable and finds the correct value, the application continues normally.
- If the getenv subroutine reveals that the current
state of the PSALLOC environment variable is correct,
no modification is needed. The application continues normally.