#include <netconfig.h> struct netconfig *getnetconfig(void *);
The getnetconfig() function returns the pointer to the current record in the netconfig file and increments its pointer to the next record.
No authorization is required.
netconfig | getnetconfig() was successful. A pointer to the current netconfig structure in the netconfig file is returned. |
NULL | getnetconfig() was not successful. A NULL pointer is returned. The errno global variable is set to indicate the error. |
If getnetconfig() is not successful, errno usually indicates one of the following errors. Under some conditions, errno could indicate an error other than those listed here.
[EUNKNOWN] | Unknown system state. 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. |
Message ID | Error Message Text |
---|---|
CPE3418 E | Possible APAR condition or hardware failure. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF9872 E | Program or service program &1 in library &2 ended. Reason code &3. |
For more information, see the example for endnetconfig()--Release the Pointer in the Netconfig File.
Top | Remote Procedure Call (RPC) APIs | APIs by category |