Home
last modified time | relevance | path

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

/nscd/
A Dnscd_gethst_r.c244 int n; in nscd_gethst_r() local
302 n = 1; in nscd_gethst_r()
308 vec[n].iov_base = (void *) aliases_len; in nscd_gethst_r()
312 ++n; in nscd_gethst_r()
317 vec[n].iov_base = resultbuf->h_addr_list[0]; in nscd_gethst_r()
322 ++n; in nscd_gethst_r()
329 vec[n].iov_base = ignore; in nscd_gethst_r()
334 ++n; in nscd_gethst_r()
337 vec[n].iov_base = resultbuf->h_addr_list[0]; in nscd_gethst_r()
342 ++n; in nscd_gethst_r()
[all …]
A Dnscd_helper.c56 int n = __poll (fds, 1, usectmo); in wait_on_socket() local
57 if (n == -1 && __builtin_expect (errno == EINTR, 0)) in wait_on_socket()
69 n = __poll (fds, 1, timeout); in wait_on_socket()
70 if (n != -1 || errno != EINTR) in wait_on_socket()
80 return n; in wait_on_socket()
87 size_t n = len; in __readall() local
103 n -= ret; in __readall()
105 while (n > 0); in __readall()
106 return ret < 0 ? ret : len - n; in __readall()
318 if (__glibc_unlikely (n != keylen && n != keylen + sizeof (mapsize))) in __nscd_get_mapping()
[all …]
A Dgrpcache.c173 ssize_t n; in cache_addgr() local
178 n = snprintf (buf, buf_len, "%d%c%n%s", grp->gr_gid, '\0', in cache_addgr()
220 if (! __libc_use_alloca (alloca_used + total + n)) in cache_addgr()
222 dataset = malloc (total + n); in cache_addgr()
230 dataset = alloca_account (total + n, alloca_used); in cache_addgr()
236 timeout = datahead_init_pos (&dataset->head, total + n, in cache_addgr()
260 memcpy (cp, buf, n); in cache_addgr()
273 if (total + n == dh->allocsize in cache_addgr()
294 = (struct dataset *) mempool_alloc (db, total + n, 1); in cache_addgr()
302 dataset = memcpy (newp, dataset, total + n); in cache_addgr()
[all …]
A Dpwdcache.c178 ssize_t n; in cache_addpw() local
182 n = snprintf (buf, buf_len, "%d%c%n%s", pwd->pw_uid, '\0', in cache_addpw()
202 dataset = (struct dataset *) mempool_alloc (db, total + n, 1); in cache_addpw()
213 dataset = (struct dataset *) alloca (total + n); in cache_addpw()
219 timeout = datahead_init_pos (&dataset->head, total + n, in cache_addpw()
244 memcpy (cp, buf, n); in cache_addpw()
273 = (struct dataset *) mempool_alloc (db, total + n, 1); in cache_addpw()
280 dataset = memcpy (newp, dataset, total + n); in cache_addpw()
311 ((uintptr_t) dataset & pagesize_m1) + total + n, in cache_addpw()
A Dnscd_getserv_r.c205 int n; in nscd_getserv_r() local
244 n = 1; in nscd_getserv_r()
267 vec[n].iov_base = (void *) aliases_len; in nscd_getserv_r()
268 vec[n].iov_len = serv_resp.s_aliases_cnt * sizeof (uint32_t); in nscd_getserv_r()
271 ++n; in nscd_getserv_r()
274 if ((size_t) __readvall (sock, vec, n) != total_len) in nscd_getserv_r()
A Dnscd_getgr_r.c194 size_t n = gr_resp.gr_name_len + gr_resp.gr_passwd_len; in nscd_getgr_r() local
195 if (__builtin_expect (__readall (sock, resultbuf->gr_name, n) in nscd_getgr_r()
196 != (ssize_t) n, 0)) in nscd_getgr_r()
214 size_t n = __readvall (sock, vec, 2); in nscd_getgr_r() local
215 if (__glibc_unlikely (n != total_len)) in nscd_getgr_r()
A Dnscd_conf.c79 ssize_t n = getline (&line, &len, fp); in nscd_parse_file() local
80 if (n < 0) in nscd_parse_file()
82 if (line[n - 1] == '\n') in nscd_parse_file()
83 line[n - 1] = '\0'; in nscd_parse_file()
A Dconnections.c268 size_t n = len; in writeall() local
276 n -= ret; in writeall()
278 while (n > 0); in writeall()
1072 if (n <= 0) in handle_request()
1317 if (n == -1) in read_cmdline()
1325 if (n == 0) in read_cmdline()
1435 if (n != -1) in restart()
2062 if (n > 0) in main_loop_poll()
2090 --n; in main_loop_poll()
2113 --n; in main_loop_poll()
[all …]
A Dnscd.c596 int n; in check_pid() local
598 n = fscanf (fp, "%d", &pid); in check_pid()
605 if ((n != 1 || kill (pid, 0) == 0) && pid != getpid ()) in check_pid()
A Dcache.c38 extern void *xcalloc (size_t n, size_t s);

Completed in 23 milliseconds