/freebsd/usr.sbin/nscd/agents/ |
H A D | services.c | 124 enum nss_lookup_type lookup_type; in services_lookup_func() 137 if (key_size < sizeof(enum nss_lookup_type)) { in services_lookup_func() 141 memcpy(&lookup_type, key, sizeof(enum nss_lookup_type)); in services_lookup_func() 145 size = key_size - sizeof(enum nss_lookup_type); in services_lookup_func() 148 memcpy(name, key + sizeof(enum nss_lookup_type), size); in services_lookup_func() 158 if (key_size < sizeof(enum nss_lookup_type) + in services_lookup_func() 164 memcpy(&port, key + sizeof(enum nss_lookup_type), in services_lookup_func() 167 size = key_size - sizeof(enum nss_lookup_type) - sizeof(int); in services_lookup_func() 171 memcpy(proto, key + sizeof(enum nss_lookup_type) + in services_lookup_func()
|
H A D | group.c | 121 enum nss_lookup_type lookup_type; in group_lookup_func() 132 if (key_size < sizeof(enum nss_lookup_type)) { in group_lookup_func() 136 memcpy(&lookup_type, key, sizeof(enum nss_lookup_type)); in group_lookup_func() 140 size = key_size - sizeof(enum nss_lookup_type) + 1; in group_lookup_func() 143 memcpy(name, key + sizeof(enum nss_lookup_type), size - 1); in group_lookup_func() 146 if (key_size < sizeof(enum nss_lookup_type) + in group_lookup_func() 152 memcpy(&gid, key + sizeof(enum nss_lookup_type), sizeof(gid_t)); in group_lookup_func()
|
H A D | passwd.c | 130 enum nss_lookup_type lookup_type; in passwd_lookup_func() 141 if (key_size < sizeof(enum nss_lookup_type)) { in passwd_lookup_func() 145 memcpy(&lookup_type, key, sizeof(enum nss_lookup_type)); in passwd_lookup_func() 149 size = key_size - sizeof(enum nss_lookup_type) + 1; in passwd_lookup_func() 152 memcpy(login, key + sizeof(enum nss_lookup_type), size - 1); in passwd_lookup_func() 155 if (key_size < sizeof(enum nss_lookup_type) + in passwd_lookup_func() 161 memcpy(&uid, key + sizeof(enum nss_lookup_type), sizeof(uid_t)); in passwd_lookup_func()
|
/freebsd/lib/libc/net/ |
H A D | getnetnamadr.c | 67 enum nss_lookup_type lookup_type; in NETDB_THREAD_ALLOC() 70 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in NETDB_THREAD_ALLOC() 76 desired_size = sizeof(enum nss_lookup_type) + size + 1; in NETDB_THREAD_ALLOC() 82 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in NETDB_THREAD_ALLOC() 83 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); in NETDB_THREAD_ALLOC() 91 desired_size = sizeof(enum nss_lookup_type) + in NETDB_THREAD_ALLOC() 98 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in NETDB_THREAD_ALLOC() 99 memcpy(buffer + sizeof(enum nss_lookup_type), &net, in NETDB_THREAD_ALLOC() 101 memcpy(buffer + sizeof(enum nss_lookup_type) + sizeof(uint32_t), in NETDB_THREAD_ALLOC() 133 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in net_marshal_func() [all …]
|
H A D | getprotoent.c | 91 enum nss_lookup_type lookup_type; in __proto_id_func() 94 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in __proto_id_func() 100 desired_size = sizeof(enum nss_lookup_type) + size + 1; in __proto_id_func() 106 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in __proto_id_func() 107 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); in __proto_id_func() 114 desired_size = sizeof(enum nss_lookup_type) + sizeof(int); in __proto_id_func() 120 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in __proto_id_func() 121 memcpy(buffer + sizeof(enum nss_lookup_type), &proto, in __proto_id_func() 152 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in __proto_marshal_func() 238 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in __proto_unmarshal_func()
|
H A D | getservent.c | 69 enum nss_lookup_type how; 494 enum nss_lookup_type how; in db_servent() 506 how = (enum nss_lookup_type)(uintptr_t)mdata; in db_servent() 666 enum nss_lookup_type how; in nis_servent() 679 how = (enum nss_lookup_type)(uintptr_t)mdata; in nis_servent() 873 enum nss_lookup_type lookup_type; in serv_id_func() 876 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in serv_id_func() 883 desired_size = sizeof(enum nss_lookup_type) + size + 1; in serv_id_func() 895 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in serv_id_func() 896 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); in serv_id_func() [all …]
|
H A D | gethostnamadr.c | 169 enum nss_lookup_type lookup_type; in host_id_func() 177 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in host_id_func() 185 sizeof(enum nss_lookup_type) + sizeof(int) + size + 1; in host_id_func() 200 memcpy(p, &lookup_type, sizeof(enum nss_lookup_type)); in host_id_func() 216 sizeof(enum nss_lookup_type) + sizeof(int) + in host_id_func() 231 memcpy(p, &lookup_type, sizeof(enum nss_lookup_type)); in host_id_func() 268 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in host_marshal_func() 375 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in host_unmarshal_func()
|
/freebsd/lib/libc/rpc/ |
H A D | getrpcent.c | 222 enum nss_lookup_type how; in files_rpcent() 224 how = (enum nss_lookup_type)(uintptr_t)mdata; in files_rpcent() 401 enum nss_lookup_type how; in nis_rpcent() 404 how = (enum nss_lookup_type)(uintptr_t)mdata; in nis_rpcent() 605 enum nss_lookup_type lookup_type; in rpc_id_func() 608 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in rpc_id_func() 614 desired_size = sizeof(enum nss_lookup_type) + size + 1; in rpc_id_func() 620 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in rpc_id_func() 621 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); in rpc_id_func() 628 desired_size = sizeof(enum nss_lookup_type) + sizeof(int); in rpc_id_func() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | getpwent.c | 92 int __pw_match_entry(const char *, size_t, enum nss_lookup_type, 110 static int pwdb_match_entry_v3(char *, size_t, enum nss_lookup_type, 113 static int pwdb_match_entry_v4(char *, size_t, enum nss_lookup_type, 119 int (*match)(char *, size_t, enum nss_lookup_type, const char *, 167 static int nis_map(char *, enum nss_lookup_type, char *, size_t, int *); 195 static int compat_redispatch(struct compat_state *, enum nss_lookup_type, 196 enum nss_lookup_type, const char *, const char *, uid_t, 211 enum nss_lookup_type lookup_type; in pwd_id_func() 213 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in pwd_id_func() 218 desired_size = sizeof(enum nss_lookup_type) + size + 1; in pwd_id_func() [all …]
|
H A D | getgrent.c | 78 int __gr_match_entry(const char *, size_t, enum nss_lookup_type, 163 enum nss_lookup_type lookup_type; in grp_id_func() 166 lookup_type = (enum nss_lookup_type)(uintptr_t)cache_mdata; in grp_id_func() 171 desired_size = sizeof(enum nss_lookup_type) + size + 1; in grp_id_func() 177 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in grp_id_func() 178 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1); in grp_id_func() 184 desired_size = sizeof(enum nss_lookup_type) + sizeof(gid_t); in grp_id_func() 190 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type)); in grp_id_func() 191 memcpy(buffer + sizeof(enum nss_lookup_type), &gid, in grp_id_func() 219 switch ((enum nss_lookup_type)(uintptr_t)cache_mdata) { in grp_marshal_func() [all …]
|
/freebsd/include/ |
H A D | nsswitch.h | 190 enum nss_lookup_type { enum
|