Home
last modified time | relevance | path

Searched refs:resp (Results 1 – 10 of 10) sorted by relevance

/nscd/
A Dhstcache.c105 hst_response_header resp; in cache_addhst() member
159 memcpy (&dataset->resp, resp, total); in cache_addhst()
254 total - offsetof (struct dataset, resp), in cache_addhst()
258 dataset->resp.version = NSCD_VERSION; in cache_addhst()
259 dataset->resp.found = 1; in cache_addhst()
260 dataset->resp.h_name_len = h_name_len; in cache_addhst()
261 dataset->resp.h_aliases_cnt = h_aliases_cnt; in cache_addhst()
262 dataset->resp.h_addrtype = hst->h_addrtype; in cache_addhst()
263 dataset->resp.h_length = hst->h_length; in cache_addhst()
265 dataset->resp.error = NETDB_SUCCESS; in cache_addhst()
[all …]
A Dservicescache.c77 serv_response_header resp; in cache_addserv() member
128 memcpy (&dataset->resp, &notfound, total); in cache_addserv()
206 total - offsetof (struct dataset, resp), in cache_addserv()
210 dataset->resp.version = NSCD_VERSION; in cache_addserv()
211 dataset->resp.found = 1; in cache_addserv()
212 dataset->resp.s_name_len = s_name_len; in cache_addserv()
213 dataset->resp.s_proto_len = s_proto_len; in cache_addserv()
214 dataset->resp.s_port = serv->s_port; in cache_addserv()
215 dataset->resp.s_aliases_cnt = s_aliases_cnt; in cache_addserv()
242 && memcmp (&dataset->resp, dh->data, in cache_addserv()
[all …]
A Dpwdcache.c89 pw_response_header resp; in cache_addpw() member
140 memcpy (&dataset->resp, &notfound, total); in cache_addpw()
220 total - offsetof (struct dataset, resp), in cache_addpw()
224 dataset->resp.version = NSCD_VERSION; in cache_addpw()
225 dataset->resp.found = 1; in cache_addpw()
226 dataset->resp.pw_name_len = pw_name_len; in cache_addpw()
228 dataset->resp.pw_uid = pwd->pw_uid; in cache_addpw()
229 dataset->resp.pw_gid = pwd->pw_gid; in cache_addpw()
230 dataset->resp.pw_gecos_len = pw_gecos_len; in cache_addpw()
231 dataset->resp.pw_dir_len = pw_dir_len; in cache_addpw()
[all …]
A Dnetgroupcache.c64 netgroup_response_header resp; member
363 dataset->resp.version = NSCD_VERSION; in addgetnetgrentX()
364 dataset->resp.found = 1; in addgetnetgrentX()
365 dataset->resp.nresults = nentries; in addgetnetgrentX()
380 && memcmp (&dataset->resp, dh->data, in addgetnetgrentX()
500 innetgroup_response_header resp; in addinnetgrX() member
521 dataset->resp.version = NSCD_VERSION; in addinnetgrX()
522 dataset->resp.found = result->resp.found; in addinnetgrX()
524 dataset->resp.result = 0; in addinnetgrX()
528 if (dataset->resp.found) in addinnetgrX()
[all …]
A Dinitgrcache.c67 initgr_response_header resp; in addinitgroupsX() member
217 memcpy (&dataset->resp, &notfound, total); in addinitgroupsX()
271 total - offsetof (struct dataset, resp), in addinitgroupsX()
275 dataset->resp.version = NSCD_VERSION; in addinitgroupsX()
276 dataset->resp.found = 1; in addinitgroupsX()
277 dataset->resp.ngrps = start; in addinitgroupsX()
308 && total - offsetof (struct dataset, resp) == dh->recsize in addinitgroupsX()
309 && memcmp (&dataset->resp, dh->data, in addinitgroupsX()
310 dh->allocsize - offsetof (struct dataset, resp)) == 0) in addinitgroupsX()
345 if (writeall (fd, &dataset->resp, dataset->head.recsize) in addinitgroupsX()
A Dgrpcache.c83 gr_response_header resp; in cache_addgr() member
133 memcpy (&dataset->resp, &notfound, total); in cache_addgr()
237 total - offsetof (struct dataset, resp), in cache_addgr()
241 dataset->resp.version = NSCD_VERSION; in cache_addgr()
242 dataset->resp.found = 1; in cache_addgr()
243 dataset->resp.gr_name_len = gr_name_len; in cache_addgr()
244 dataset->resp.gr_passwd_len = gr_passwd_len; in cache_addgr()
245 dataset->resp.gr_gid = grp->gr_gid; in cache_addgr()
246 dataset->resp.gr_mem_cnt = gr_mem_cnt; in cache_addgr()
275 && memcmp (&dataset->resp, dh->data, in cache_addgr()
[all …]
A Daicache.c61 ai_response_header resp; in addhstaiX() member
363 total - offsetof (struct dataset, resp), in addhstaiX()
368 dataset->resp.version = NSCD_VERSION; in addhstaiX()
369 dataset->resp.found = 1; in addhstaiX()
370 dataset->resp.naddrs = naddrs; in addhstaiX()
371 dataset->resp.addrslen = addrslen; in addhstaiX()
372 dataset->resp.canonlen = canonlen; in addhstaiX()
373 dataset->resp.error = NETDB_SUCCESS; in addhstaiX()
390 && memcmp (&dataset->resp, dh->data, in addhstaiX()
392 resp)) == 0) in addhstaiX()
[all …]
A Dcache.c257 int32_t resp = 0; in prune_cache() local
258 writeall (fd, &resp, sizeof (resp)); in prune_cache()
438 int32_t resp = 0; in prune_cache() local
439 writeall (fd, &resp, sizeof (resp)); in prune_cache()
A Dnscd.c368 int32_t resp = 0; in invalidate_db() local
369 nbytes = TEMP_FAILURE_RETRY (read (sock, &resp, sizeof (resp))); in invalidate_db()
370 if (nbytes != 0 && nbytes != sizeof (resp)) in invalidate_db()
379 if (resp != 0) in invalidate_db()
380 error (EXIT_FAILURE, resp, _("invalidation failed")); in invalidate_db()
A Dconnections.c944 int32_t resp; in invalidate_cache() local
973 resp = EINVAL; in invalidate_cache()
974 writeall (fd, &resp, sizeof (resp)); in invalidate_cache()
986 resp = 0; in invalidate_cache()
987 writeall (fd, &resp, sizeof (resp)); in invalidate_cache()

Completed in 25 milliseconds