Lines Matching refs:ped

59 protoent_data_clear(struct protoent_data *ped)  in NETDB_THREAD_ALLOC()
61 if (ped->fp) { in NETDB_THREAD_ALLOC()
62 fclose(ped->fp); in NETDB_THREAD_ALLOC()
63 ped->fp = NULL; in NETDB_THREAD_ALLOC()
70 struct protoent_data *ped = ptr; in protoent_data_free() local
72 protoent_data_clear(ped); in protoent_data_free()
73 free(ped); in protoent_data_free()
337 __setprotoent_p(int f, struct protoent_data *ped) in __setprotoent_p() argument
339 if (ped->fp == NULL) in __setprotoent_p()
340 ped->fp = fopen(_PATH_PROTOCOLS, "re"); in __setprotoent_p()
342 rewind(ped->fp); in __setprotoent_p()
343 ped->stayopen |= f; in __setprotoent_p()
347 __endprotoent_p(struct protoent_data *ped) in __endprotoent_p() argument
349 if (ped->fp) { in __endprotoent_p()
350 fclose(ped->fp); in __endprotoent_p()
351 ped->fp = NULL; in __endprotoent_p()
353 ped->stayopen = 0; in __endprotoent_p()
357 __getprotoent_p(struct protoent *pe, struct protoent_data *ped) in __getprotoent_p() argument
363 if (ped->fp == NULL && (ped->fp = fopen(_PATH_PROTOCOLS, "re")) == NULL) in __getprotoent_p()
366 if ((p = fgets(ped->line, sizeof ped->line, ped->fp)) == NULL) in __getprotoent_p()
387 q = pe->p_aliases = ped->aliases; in __getprotoent_p()
395 if (q < &ped->aliases[_MAXALIASES - 1]) in __getprotoent_p()
410 struct protoent_data *ped; in files_getprotoent_r() local
422 if ((ped = __protoent_data_init()) == NULL) { in files_getprotoent_r()
427 if (__getprotoent_p(&pe, ped) != 0) { in files_getprotoent_r()
444 struct protoent_data *ped; in files_setprotoent() local
448 if ((ped = __protoent_data_init()) == NULL) in files_setprotoent()
451 __setprotoent_p(f, ped); in files_setprotoent()
458 struct protoent_data *ped; in files_endprotoent() local
460 if ((ped = __protoent_data_init()) == NULL) in files_endprotoent()
463 __endprotoent_p(ped); in files_endprotoent()