void setservent_p(int stayopen, struct net_data *net_data) { struct irs_sv *sv; if (!net_data || !(sv = net_data->sv)) return; (*sv->rewind)(sv); net_data->sv_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); }
void setprotoent_p(int stayopen, struct net_data *net_data) { struct irs_pr *pr; if (!net_data || !(pr = net_data->pr)) return; (*pr->rewind)(pr); net_data->pr_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); }
void setnetent_p(int stayopen, struct net_data *net_data) { struct irs_nw *nw; if (!net_data || !(nw = net_data->nw)) return; freepvt(net_data); (*nw->rewind)(nw); net_data->nw_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); }
int setgroupent_p(int stayopen, struct net_data *net_data) { struct irs_gr *gr; if (!net_data || !(gr = net_data->gr)) return (0); (*gr->rewind)(gr); net_data->gr_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); return (1); }
int setpassent_p(int stayopen, struct net_data *net_data) { struct irs_pw *pw; if (!net_data || !(pw = net_data->pw)) return (0); (*pw->rewind)(pw); net_data->pw_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); return (1); }
void sethostent_p(int stayopen, struct net_data *net_data) { struct irs_ho *ho; if (!net_data || !(ho = net_data->ho)) return; freepvt(net_data); (*ho->rewind)(ho); net_data->ho_stayopen = (stayopen != 0); if (stayopen == 0) net_data_minimize(net_data); }