/nscd/ |
A D | servicescache.c | 69 ssize_t total; in cache_addserv() local 98 total = 0; in cache_addserv() 104 total = sizeof (notfound); in cache_addserv() 108 MSG_NOSIGNAL)) != total) in cache_addserv() 124 + req->key_len), total, in cache_addserv() 128 memcpy (&dataset->resp, ¬found, total); in cache_addserv() 171 total = 0; in cache_addserv() 175 total += s_aliases_len[cnt]; in cache_addserv() 206 total - offsetof (struct dataset, resp), in cache_addserv() 240 if (total + req->key_len == dh->allocsize in cache_addserv() [all …]
|
A D | initgrcache.c | 169 ssize_t total; in addinitgroupsX() local 177 total = sizeof (notfound); in addinitgroupsX() 196 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in addinitgroupsX() 197 MSG_NOSIGNAL)) != total) in addinitgroupsX() 213 + req->key_len), total, in addinitgroupsX() 217 memcpy (&dataset->resp, ¬found, total); in addinitgroupsX() 264 dataset = (struct dataset *) alloca (total + req->key_len); in addinitgroupsX() 271 total - offsetof (struct dataset, resp), in addinitgroupsX() 307 if (total + req->key_len == dh->allocsize in addinitgroupsX() 330 dataset = memcpy (newp, dataset, total + req->key_len); in addinitgroupsX() [all …]
|
A D | aicache.c | 94 ssize_t total = 0; in addhstaiX() local 155 total = sizeof (*dataset) + naddrs + addrslen + canonlen; in addhstaiX() 160 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 332 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 363 total - offsetof (struct dataset, resp), in addhstaiX() 380 assert (cp == (char *) dataset + total); in addhstaiX() 388 if (total + req->key_len == dh->allocsize in addhstaiX() 413 dataset = memcpy (newp, dataset, total + req->key_len); in addhstaiX() 460 total = sizeof (notfound); in addhstaiX() 479 total, db->negtimeout); in addhstaiX() [all …]
|
A D | grpcache.c | 75 ssize_t total; in cache_addgr() local 104 total = 0; in cache_addgr() 110 total = sizeof (notfound); in cache_addgr() 114 MSG_NOSIGNAL)) != total) in cache_addgr() 129 + req->key_len), total, in cache_addgr() 133 memcpy (&dataset->resp, ¬found, total); in cache_addgr() 191 total = (offsetof (struct dataset, strdata) in cache_addgr() 222 dataset = malloc (total + n); in cache_addgr() 237 total - offsetof (struct dataset, resp), in cache_addgr() 273 if (total + n == dh->allocsize in cache_addgr() [all …]
|
A D | hstcache.c | 130 ssize_t total = sizeof (notfound); in cache_addhst() local 138 MSG_NOSIGNAL)) != total) in cache_addhst() 154 + req->key_len), total, in cache_addhst() 159 memcpy (&dataset->resp, resp, total); in cache_addhst() 197 ssize_t total; in cache_addhst() local 205 total = 0; in cache_addhst() 209 total += h_aliases_len[cnt]; in cache_addhst() 221 total += (sizeof (struct dataset) in cache_addhst() 304 if (total + req->key_len == dh->allocsize in cache_addhst() 325 total + req->key_len, in cache_addhst() [all …]
|
A D | pwdcache.c | 81 ssize_t total; in cache_addpw() local 110 total = 0; in cache_addpw() 116 total = sizeof (notfound); in cache_addpw() 119 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addpw() 120 MSG_NOSIGNAL)) != total) in cache_addpw() 136 + req->key_len), total, in cache_addpw() 140 memcpy (&dataset->resp, ¬found, total); in cache_addpw() 185 total = (offsetof (struct dataset, strdata) in cache_addpw() 213 dataset = (struct dataset *) alloca (total + n); in cache_addpw() 220 total - offsetof (struct dataset, resp), in cache_addpw() [all …]
|
A D | nscd_getpw_r.c | 164 ssize_t total = p - buffer; in nscd_getpw_r() local 165 if (__glibc_unlikely (pw_name + total > recend)) in nscd_getpw_r() 167 if (__glibc_unlikely (buflen < total)) in nscd_getpw_r() 177 ssize_t nbytes = __readall (sock, buffer, total); in nscd_getpw_r() 179 if (__glibc_unlikely (nbytes != total)) in nscd_getpw_r() 191 memcpy (resultbuf->pw_name, pw_name, total); in nscd_getpw_r()
|
A D | netgroupcache.c | 79 ssize_t total; in do_notfound() local 83 total = sizeof (notfound); in do_notfound() 87 TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL)); in do_notfound() 95 total, db->negtimeout); in do_notfound() 98 memcpy (&dataset->resp, ¬found, total); in do_notfound() 107 *totalp = total; in do_notfound() 130 ssize_t total; in addgetnetgrentX() local 354 total = buffilled; in addgetnetgrentX() 359 total - offsetof (struct dataset, resp), in addgetnetgrentX() 403 dataset = memcpy (newp, dataset, total + req->key_len); in addgetnetgrentX() [all …]
|
A D | nscd_helper.c | 125 size_t total = 0; in __readvall() local 127 total += iov[i].iov_len; in __readvall() 129 if (ret < total) in __readvall() 158 while (ret < total); in __readvall()
|
A D | connections.c | 508 size_t total; in nscd_init() local 535 else if ((total = (sizeof (head) in nscd_init() 540 || total < sizeof (head)) in nscd_init() 558 munmap (mem, total); in nscd_init() 566 dbs[cnt].memsize = total; in nscd_init() 609 size_t total = (sizeof (head) in nscd_init() local 720 || (TEMP_FAILURE_RETRY_VAL (posix_fallocate (fd, 0, total)) in nscd_init() 739 dbs[cnt].memsize = total; in nscd_init()
|