Description | Description If command is a POSIX command, the environment of the executed command will be as if a child process were created using
where shell_path must be replaced by the pathname of the
BS2000 | |
Return val. | Exit status of the command interpreter | |
if command is not a null pointer and the command was successfully executed. The exit status of the command interpreter is returned in the format specified by | ||
| if command is a null pointer and a command interpreter exists. | |
| -1 | if a child process cannot be created or if the command interpreter has no exit status. |
BS2000 | ||
0 | if command was executed successfully (return value of the BS2000 command: 0). | |
-1 | if the BS2000 command was not executed successfully (return value of the command: error code | |
undefined | if control is not returned to the program following the BS2000 command (see "Notes"). (End) | |
Errors |
| |
| The system does not have the resources required to create a further process or the system-specific limit for the maximum number of simultaneously executing processes for the system or an individual user ID | |
Extension | ||
|
| |
| Not enough memory is available. | |
Notes | If the return value of The following function can be used to determine whether or not an XPG4-conformant environment is present: Note that, while Ignoring Blocking The context in which the command is ultimately executed may differ from that in which
There is no defined way for an application to find the specific path for the shell. However, BS2000 In the case of some BS2000 commands (e.g. START-PROG, LOAD-PROG, CALL-PROCEDURE, DO, HELP-SDF), control is not returned to the calling program after they are called. Programs that permit premature terminations should therefore flush all buffers (
| |
See also |
|