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.
#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()