#include <qp0z1170.h>
int Qp0zGetAllSysEnv(char *list_buf, int *list_buf_size,
int *ccsid_buf, int *ccsid_buf_size,
void *reserved);
|
The Qp0zGetAllSysEnv() function fills in the list_buf with a list of all the system-level environment variables. The list consists of multiple null-terminated name=value strings followed by an ending null-terminator. The coded character set identifier (CCSID) associated with each name=value string is returned in the ccsid_buf buffer.
Authorities
None
Parameters
Return Value
Error Conditions
If Qp0zGetAllSysEnv() is not successful, errval indicates one of the following errors.
In attempting to use an argument in a call, the system detected an address that is not valid.
While attempting to access a parameter passed to this function, the system detected an address that is not valid.
A parameter passed to this function is not valid.
The value for the reserved parameter was not NULL.
The directory or a component of the path name specified does not exist.
A named file or directory does not exist or is an empty string.
There were no system-level environment variables.
The requested operations required additional space on the device and there is no space left. This could also be caused by exceeding the user profile storage limit when creating or transferring ownership of an object.
Insufficient space remains to hold the intended file, directory, or link.
The size of the buffers to receive the list and the CCSIDs was not enough. The list_buf_size and ccsid_buf_size parameters indicate the exact size needed for the list_buf ccsid_buf respectively.
The operation failed because of an unknown system state. See any messages in the job log and correct any errors that are indicated, then retry the operation.
Usage Notes
Example
| Top | Environment Variable APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |