z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


setprotoent()

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

The setprotoent() call opens the hlq.ETC.PROTO data set and sets it to the data set starting point. If the stayopen flag is nonzero, the hlq.ETC.PROTO data set remains open after every call.
Note: The hlq.ETC.PROTO data set is described in the z/OS Communications Server: IP Configuration Reference.
#include <manifest.h>
#include <socket.h>
 
int setprotoent(int stayopen)
Parameter
Description
stayopen
A flag that can be set to prevent data set hlq.ETC.PROTO closing after every call to setprotoent().

Return values

The value 0 indicates success; the value -1 indicates an error. Errno identifies the specific error, returning the errno value of the fopen() call.

Related calls

endprotoent(), getprotobyname(), getprotobynumber(), getprotoent()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014