Searched refs:mdata (Results 1 - 25 of 40) sorted by relevance

12

/freebsd-10-stable/lib/libc/net/
H A Dnss_compat.c84 __nss_compat_getgrnam_r(void *retval, void *mdata, va_list ap) argument
94 fn = mdata;
109 __nss_compat_getgrgid_r(void *retval, void *mdata, va_list ap) argument
119 fn = mdata;
134 __nss_compat_getgrent_r(void *retval, void *mdata, va_list ap) argument
145 fn = mdata;
161 __nss_compat_setgrent(void *retval, void *mdata, va_list ap) argument
165 ((int (*)(void))mdata)();
171 __nss_compat_endgrent(void *retval, void *mdata, va_list ap) argument
175 ((int (*)(void))mdata)();
185 __nss_compat_getpwnam_r(void *retval, void *mdata, va_list ap) argument
210 __nss_compat_getpwuid_r(void *retval, void *mdata, va_list ap) argument
235 __nss_compat_getpwent_r(void *retval, void *mdata, va_list ap) argument
262 __nss_compat_setpwent(void *retval, void *mdata, va_list ap) argument
272 __nss_compat_endpwent(void *retval, void *mdata, va_list ap) argument
[all...]
H A Dnscache.c48 __nss_cache_handler(void *retval, void *mdata, va_list ap) argument
54 __nss_common_cache_read(void *retval, void *mdata, va_list ap) argument
67 cache_data = (nss_cache_data *)mdata;
81 cache_info->mdata);
134 ap_new, cache_info->mdata);
158 __nss_common_cache_write(void *retval, void *mdata, va_list ap) argument
171 cache_data = (nss_cache_data *)mdata;
196 cache_info->mdata);
227 __nss_common_cache_write_negative(void *mdata) argument
236 cache_data = (nss_cache_data *)mdata;
260 __nss_mp_cache_read(void *retval, void *mdata, va_list ap) argument
328 __nss_mp_cache_write(void *retval, void *mdata, va_list ap) argument
392 __nss_mp_cache_write_submit(void *retval, void *mdata, va_list ap) argument
412 __nss_mp_cache_end(void *retval, void *mdata, va_list ap) argument
[all...]
H A Dgetservent.c272 files_servent(void *retval, void *mdata, va_list ap) argument
282 (void *)((struct servent_mdata *)mdata)->how },
285 (void *)((struct servent_mdata *)mdata)->how },
310 serv_mdata = (struct servent_mdata *)mdata;
438 files_setservent(void *retval, void *mdata, va_list ap) argument
448 switch ((enum constants)mdata) {
489 db_servent(void *retval, void *mdata, va_list ap) argument
511 how = (enum nss_lookup_type)mdata;
617 db_setservent(void *retval, void *mdata, va_list ap) argument
628 switch ((enum constants)mdata) {
662 nis_servent(void *retval, void *mdata, va_list ap) argument
800 nis_setservent(void *result, void *mdata, va_list ap) argument
826 compat_setservent(void *retval, void *mdata, va_list ap) argument
1112 static const struct servent_mdata mdata = { nss_lt_name, 0 }; local
1149 static const struct servent_mdata mdata = { nss_lt_id, 0 }; local
1186 static const struct servent_mdata mdata = { nss_lt_all, 0 }; local
[all...]
H A Dnsdispatch.c574 const char *method, const ns_dtab disp_tab[], void **mdata)
583 *mdata = disp_tab[i].mdata;
594 *mdata = match->mdata;
599 *mdata = NULL;
619 void *mdata; local
659 method_name, disp_tab, &mdata);
679 method_name, disp_tab, &mdata);
692 cache_data.info = (nss_cache_info const *)mdata;
573 nss_method_lookup(const char *source, const char *database, const char *method, const ns_dtab disp_tab[], void **mdata) argument
[all...]
/freebsd-10-stable/tools/regression/lib/libc/nss/
H A Dtestutil.h62 #define TEST_DATA_FOREACH(ent, td, f, mdata)\
63 __##ent##_test_data_foreach(td, f, mdata)
64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\
65 __##ent##_test_data_compare(td1, td2, fcmp, mdata);
66 #define TEST_DATA_FIND(ent, td, d, fcmp, mdata)\
67 __##ent##_test_data_find(td, d, fcmp, mdata)
110 int (*forf)(struct ent *, void *), void *mdata) \
120 rv = forf(&e->data, mdata); \
130 int (*cmp_func)(struct ent *, struct ent *, void *), void *mdata)\
151 rv = cmp_func(&e1->data, &e2->data, mdata); \
[all...]
H A Dtest-getserv.c135 compare_servent(struct servent *serv1, struct servent *serv2, void *mdata) argument
166 if ((debug) && (mdata == NULL)) {
308 servent_test_correctness(struct servent *serv, void *mdata) argument
355 servent_test_getservbyname(struct servent *serv_model, void *mdata) argument
370 (servent_check_ambiguity((struct servent_test_data *)mdata, serv)
382 (struct servent_test_data *)mdata, serv) != 0))
398 servent_test_getservbyport(struct servent *serv_model, void *mdata) argument
410 (servent_check_ambiguity((struct servent_test_data *)mdata, serv)
423 servent_test_getservent(struct servent *serv, void *mdata) argument
H A Dtest-getproto.c130 compare_protoent(struct protoent *pe1, struct protoent *pe2, void *mdata) argument
160 if ((debug) && (mdata == NULL)) {
295 protoent_test_correctness(struct protoent *pe, void *mdata) argument
339 protoent_test_getprotobyname(struct protoent *pe_model, void *mdata) argument
354 (protoent_check_ambiguity((struct protoent_test_data *)mdata, pe)
366 (struct protoent_test_data *)mdata, pe) != 0))
382 protoent_test_getprotobynumber(struct protoent *pe_model, void *mdata) argument
394 (protoent_check_ambiguity((struct protoent_test_data *)mdata, pe)
407 protoent_test_getprotoent(struct protoent *pe, void *mdata) argument
H A Dtest-getrpc.c130 compare_rpcent(struct rpcent *rpc1, struct rpcent *rpc2, void *mdata) argument
160 if ((debug) && (mdata == NULL)) {
295 rpcent_test_correctness(struct rpcent *rpc, void *mdata) argument
339 rpcent_test_getrpcbyname(struct rpcent *rpc_model, void *mdata) argument
354 (rpcent_check_ambiguity((struct rpcent_test_data *)mdata, rpc)
366 (struct rpcent_test_data *)mdata, rpc) != 0))
382 rpcent_test_getrpcbynumber(struct rpcent *rpc_model, void *mdata) argument
394 (rpcent_check_ambiguity((struct rpcent_test_data *)mdata, rpc)
407 rpcent_test_getrpcent(struct rpcent *rpc, void *mdata) argument
H A Dtest-getgr.c136 compare_group(struct group *grp1, struct group *grp2, void *mdata) argument
167 if ((debug) && (mdata == NULL)) {
309 group_test_correctness(struct group *grp, void *mdata) argument
351 group_test_getgrnam(struct group *grp_model, void *mdata) argument
365 (group_check_ambiguity((struct group_test_data *)mdata, grp)
381 group_test_getgrgid(struct group *grp_model, void *mdata) argument
393 (group_check_ambiguity((struct group_test_data *)mdata, grp)
406 group_test_getgrent(struct group *grp, void *mdata) argument
H A Dtest-getpw.c101 compare_passwd(struct passwd *pwd1, struct passwd *pwd2, void *mdata) argument
254 passwd_test_correctness(struct passwd *pwd, void *mdata) argument
305 passwd_test_getpwnam(struct passwd *pwd_model, void *mdata) argument
319 (passwd_check_ambiguity((struct passwd_test_data *)mdata, pwd)
335 passwd_test_getpwuid(struct passwd *pwd_model, void *mdata) argument
347 (passwd_check_ambiguity((struct passwd_test_data *)mdata, pwd)
360 passwd_test_getpwent(struct passwd *pwd, void *mdata) argument
/freebsd-10-stable/lib/libc/tests/nss/
H A Dtestutil.h62 #define TEST_DATA_FOREACH(ent, td, f, mdata)\
63 __##ent##_test_data_foreach(td, f, mdata)
64 #define TEST_DATA_COMPARE(ent, td1, td2, fcmp, mdata)\
65 __##ent##_test_data_compare(td1, td2, fcmp, mdata);
66 #define TEST_DATA_FIND(ent, td, d, fcmp, mdata)\
67 __##ent##_test_data_find(td, d, fcmp, mdata)
110 int (*forf)(struct ent *, void *), void *mdata) \
120 rv = forf(&e->data, mdata); \
130 int (*cmp_func)(struct ent *, struct ent *, void *), void *mdata)\
151 rv = cmp_func(&e1->data, &e2->data, mdata); \
[all...]
H A Dgetserv_test.c131 compare_servent(struct servent *serv1, struct servent *serv2, void *mdata) argument
162 if (mdata == NULL) {
303 servent_test_correctness(struct servent *serv, void *mdata __unused)
346 servent_test_getservbyname(struct servent *serv_model, void *mdata) argument
359 (servent_check_ambiguity((struct servent_test_data *)mdata, serv)
371 (struct servent_test_data *)mdata, serv) != 0))
385 servent_test_getservbyport(struct servent *serv_model, void *mdata) argument
395 (servent_check_ambiguity((struct servent_test_data *)mdata, serv)
406 servent_test_getservent(struct servent *serv, void *mdata __unused)
H A Dgetproto_test.c127 compare_protoent(struct protoent *pe1, struct protoent *pe2, void *mdata) argument
157 if (mdata == NULL) {
291 protoent_test_correctness(struct protoent *pe, void *mdata __unused)
331 protoent_test_getprotobyname(struct protoent *pe_model, void *mdata) argument
344 (protoent_check_ambiguity((struct protoent_test_data *)mdata, pe)
356 (struct protoent_test_data *)mdata, pe) != 0))
370 protoent_test_getprotobynumber(struct protoent *pe_model, void *mdata) argument
380 (protoent_check_ambiguity((struct protoent_test_data *)mdata, pe)
391 protoent_test_getprotoent(struct protoent *pe, void *mdata __unused)
H A Dgetrpc_test.c126 compare_rpcent(struct rpcent *rpc1, struct rpcent *rpc2, void *mdata) argument
156 if (mdata == NULL) {
290 rpcent_test_correctness(struct rpcent *rpc, void *mdata __unused)
331 rpcent_test_getrpcbyname(struct rpcent *rpc_model, void *mdata) argument
344 (rpcent_check_ambiguity((struct rpcent_test_data *)mdata, rpc)
356 (struct rpcent_test_data *)mdata, rpc) != 0))
370 rpcent_test_getrpcbynumber(struct rpcent *rpc_model, void *mdata) argument
380 rpcent_check_ambiguity((struct rpcent_test_data *)mdata, rpc)
391 rpcent_test_getrpcent(struct rpcent *rpc, void *mdata __unused)
H A Dgetgr_test.c131 compare_group(struct group *grp1, struct group *grp2, void *mdata) argument
162 if (mdata == NULL) {
305 group_test_correctness(struct group *grp, void *mdata __unused)
343 group_test_getgrnam(struct group *grp_model, void *mdata) argument
355 group_check_ambiguity((struct group_test_data *)mdata, grp) != 0)
365 group_test_getgrgid(struct group *grp_model, void *mdata) argument
375 group_check_ambiguity((struct group_test_data *)mdata, grp) != 0)) {
383 group_test_getgrent(struct group *grp, void *mdata __unused)
H A Dgetpw_test.c100 compare_passwd(struct passwd *pwd1, struct passwd *pwd2, void *mdata __unused)
256 passwd_test_correctness(struct passwd *pwd, void *mdata __unused)
310 passwd_test_getpwnam(struct passwd *pwd_model, void *mdata) argument
324 (passwd_check_ambiguity((struct passwd_test_data *)mdata, pwd)
341 passwd_test_getpwuid(struct passwd *pwd_model, void *mdata) argument
353 (passwd_check_ambiguity((struct passwd_test_data *)mdata, pwd)
368 passwd_test_getpwent(struct passwd *pwd, void *mdata __unused)
/freebsd-10-stable/lib/libc/include/
H A Dnscache.h48 void *mdata; member in struct:_nss_cache_info
150 #define NS_COMMON_CACHE_INFO_INITIALIZER(name, mdata, if, mf, uf) \
151 {#name, mdata, if, mf, uf, NULL, NULL, NULL, NULL}
152 #define NS_MP_CACHE_INFO_INITIALIZER(name, mdata, mf, uf) \
153 {#name, mdata, NULL, mf, uf, name##_set_mp_ws, name##_get_mp_ws,\
/freebsd-10-stable/include/
H A Dnsswitch.h122 void *mdata; /* Data passed to method */ member in struct:_ns_dtab
170 void *mdata; member in struct:_ns_mtab
/freebsd-10-stable/usr.sbin/nscd/
H A Dmp_rs_query.c74 if (qstate->mdata != NULL) {
77 (cache_mp_read_session)qstate->mdata);
170 void *mdata; local
242 mdata = mp_agent->mp_init_func();
258 mdata);
303 qstate->mdata = rs;
427 (cache_mp_read_session)qstate->mdata, NULL,
434 (cache_mp_read_session)qstate->mdata,
530 close_cache_mp_read_session((cache_mp_read_session)qstate->mdata);
532 qstate->mdata
[all...]
H A Dmp_ws_query.c75 if (qstate->mdata != NULL) {
78 (cache_mp_write_session)qstate->mdata);
239 qstate->mdata = ws;
429 (cache_mp_write_session)qstate->mdata,
485 abandon_cache_mp_write_session((cache_mp_write_session)qstate->mdata);
487 qstate->mdata = INVALID_CACHE_MP_WRITE_SESSION;
504 close_cache_mp_write_session((cache_mp_write_session)qstate->mdata);
506 qstate->mdata = INVALID_CACHE_MP_WRITE_SESSION;
H A Dquery.h56 void *mdata; member in struct:query_state
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/
H A Dt_db.sh152 mdata=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
153 echo $mdata |
159 echo d$mdata
183 mdata=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
184 echo $mdata |
190 echo d$mdata
211 mdata=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
212 echo $mdata |
215 echo $mdata |
751 mdata
[all...]
/freebsd-10-stable/lib/libc/db/test/
H A Drun.test101 mdata=abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
102 echo $mdata |
109 echo d$mdata
122 echo $mdata |
535 mdata=abcdefghijklmnopqrstuvwxy
536 echo $mdata |
543 echo d$mdata
/freebsd-10-stable/lib/libc/gen/
H A Dgetgrent.c453 getgroupmembership_fallback(void *retval, void *mdata, va_list ap) argument
456 { mdata, NS_SUCCESS },
798 files_setgrent(void *retval, void *mdata, va_list ap) argument
806 switch ((enum constants)mdata) {
828 files_group(void *retval, void *mdata, va_list ap) argument
842 how = (enum nss_lookup_type)mdata;
937 dns_group(void *retval, void *mdata, va_list ap) argument
954 how = (enum nss_lookup_type)mdata;
1075 nis_group(void *retval, void *mdata, va_list ap) argument
1089 how = (enum nss_lookup_type)mdata;
1217 compat_setgrent(void *retval, void *mdata, va_list ap) argument
1279 compat_group(void *retval, void *mdata, va_list ap) argument
[all...]
/freebsd-10-stable/usr.sbin/nscd/agents/
H A Dpasswd.c46 static void passwd_mp_destroy_func(void *mdata);
206 passwd_mp_lookup_func(char **buffer, size_t *buffer_size, void *mdata) argument
224 passwd_mp_destroy_func(void *mdata) argument

Completed in 199 milliseconds

12