Lines Matching refs:protoent

53 DECLARE_TEST_DATA(protoent)
54 DECLARE_TEST_FILE_SNAPSHOT(protoent)
55 DECLARE_1PASS_TEST(protoent)
56 DECLARE_2PASS_TEST(protoent)
58 static void clone_protoent(struct protoent *, struct protoent const *);
59 static int compare_protoent(struct protoent *, struct protoent *, void *);
60 static void dump_protoent(struct protoent *);
61 static void free_protoent(struct protoent *);
63 static void sdump_protoent(struct protoent *, char *, size_t);
64 static int protoent_read_snapshot_func(struct protoent *, char *);
67 struct protoent *);
69 static int protoent_test_correctness(struct protoent *, void *);
70 static int protoent_test_getprotobyname(struct protoent *, void *);
71 static int protoent_test_getprotobynumber(struct protoent *, void *);
72 static int protoent_test_getprotoent(struct protoent *, void *);
76 IMPLEMENT_TEST_DATA(protoent)
77 IMPLEMENT_TEST_FILE_SNAPSHOT(protoent)
78 IMPLEMENT_1PASS_TEST(protoent)
79 IMPLEMENT_2PASS_TEST(protoent)
82 clone_protoent(struct protoent *dest, struct protoent const *src)
90 memset(dest, 0, sizeof(struct protoent));
116 free_protoent(struct protoent *pe)
130 compare_protoent(struct protoent *pe1, struct protoent *pe2, void *mdata)
170 sdump_protoent(struct protoent *pe, char *buffer, size_t buflen)
201 protoent_read_snapshot_func(struct protoent *pe, char *line)
213 memset(pe, 0, sizeof(struct protoent));
254 memset(pe, 0, sizeof(struct protoent));
267 dump_protoent(struct protoent *result)
280 struct protoent *pe;
285 TEST_DATA_APPEND(protoent, td, pe);
295 protoent_test_correctness(struct protoent *pe, void *mdata)
328 * associated with several ports. We have to check all the protoent structures
331 protoent_check_ambiguity(struct protoent_test_data *td, struct protoent *pe)
334 return (TEST_DATA_FIND(protoent, td, pe, compare_protoent,
339 protoent_test_getprotobyname(struct protoent *pe_model, void *mdata)
342 struct protoent *pe;
382 protoent_test_getprotobynumber(struct protoent *pe_model, void *mdata)
384 struct protoent *pe;
407 protoent_test_getprotoent(struct protoent *pe, void *mdata)
459 TEST_DATA_INIT(protoent, &td, clone_protoent, free_protoent);
460 TEST_DATA_INIT(protoent, &td_snap, clone_protoent, free_protoent);
479 TEST_SNAPSHOT_FILE_READ(protoent, snapshot_file,
490 rv = DO_1PASS_TEST(protoent, &td,
493 rv = DO_1PASS_TEST(protoent, &td_snap,
498 rv = DO_1PASS_TEST(protoent, &td,
501 rv = DO_1PASS_TEST(protoent, &td_snap,
506 rv = DO_1PASS_TEST(protoent, &td,
509 rv = DO_2PASS_TEST(protoent, &td, &td_snap,
513 TEST_DATA_INIT(protoent, &td_2pass, clone_protoent,
517 rv = DO_2PASS_TEST(protoent, &td, &td_2pass,
519 TEST_DATA_DESTROY(protoent, &td_2pass);
523 rv = TEST_SNAPSHOT_FILE_WRITE(protoent, snapshot_file, &td,
532 TEST_DATA_DESTROY(protoent, &td_snap);
533 TEST_DATA_DESTROY(protoent, &td);