Opens, rewinds, or closes the protocols database file. Syntax: #include <netdb.h> void setprotoent (int stay_open);