/nscd/ |
A D | connections.c | 577 fd = -1; in nscd_init() 596 if (fd != -1) in nscd_init() 617 int fd; in nscd_init() local 745 fd = -1; in nscd_init() 1287 if (fd < 0) in read_cmdline() 1330 close (fd); in read_cmdline() 1471 int fd; member 1619 int fd = it->fd; in nscd_run_worker() local 1733 fdlist[inner].fd = fd; in fd_ready() 2075 conns[firstfree].fd = fd; in main_loop_poll() [all …]
|
A D | nscd.h | 273 extern void send_stats (int fd, struct database_dyn dbs[lastdb]); 284 extern time_t prune_cache (struct database_dyn *table, time_t now, int fd); 289 extern void addpwbyuid (struct database_dyn *db, int fd, request_header *req, 299 extern void addgrbygid (struct database_dyn *db, int fd, request_header *req, 311 extern void addhstbynamev6 (struct database_dyn *db, int fd, 313 extern void addhstbyaddrv6 (struct database_dyn *db, int fd, 325 extern void addhstai (struct database_dyn *db, int fd, request_header *req, 332 extern void addinitgroups (struct database_dyn *db, int fd, 338 extern void addservbyname (struct database_dyn *db, int fd, 342 extern void addservbyport (struct database_dyn *db, int fd, [all …]
|
A D | servicescache.c | 64 cache_addserv (struct database_dyn *db, int fd, request_header *req, in cache_addserv() argument 106 if (fd != -1 in cache_addserv() 107 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addserv() 238 assert (fd == -1); in cache_addserv() 278 assert (fd != -1); in cache_addserv() 280 if (writeall (fd, &dataset->resp, dataset->head.recsize) in cache_addserv() 341 addservbyX (struct database_dyn *db, int fd, request_header *req, in addservbyX() argument 385 addservbyname (struct database_dyn *db, int fd, request_header *req, in addservbyname() argument 388 addservbyX (db, fd, req, key, uid, NULL, NULL); in addservbyname() 407 addservbyport (struct database_dyn *db, int fd, request_header *req, in addservbyport() argument [all …]
|
A D | hstcache.c | 92 cache_addhst (struct database_dyn *db, int fd, request_header *req, in cache_addhst() argument 136 if (fd != -1 in cache_addhst() 137 && TEMP_FAILURE_RETRY (send (fd, resp, total, in cache_addhst() 302 assert (fd == -1); in cache_addhst() 350 assert (fd != -1); in cache_addhst() 352 if (writeall (fd, &dataset->resp, dataset->head.recsize) in cache_addhst() 428 addhstbyX (struct database_dyn *db, int fd, request_header *req, in addhstbyX() argument 488 addhstbyX (db, fd, req, key, uid, NULL, NULL); in addhstbyname() 510 addhstbyX (db, fd, req, key, uid, NULL, NULL); in addhstbyaddr() 532 addhstbyX (db, fd, req, key, uid, NULL, NULL); in addhstbynamev6() [all …]
|
A D | netgroupcache.c | 74 do_notfound (struct database_dyn *db, int fd, request_header *req, in do_notfound() argument 86 if (fd != -1) in do_notfound() 87 TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL)); in do_notfound() 376 assert (fd == -1); in addgetnetgrentX() 412 if (he == NULL && fd != -1) in addgetnetgrentX() 418 writeall (fd, &dataset->resp, dataset->head.recsize); in addgetnetgrentX() 451 addinnetgrX (struct database_dyn *db, int fd, request_header *req, in addinnetgrX() argument 575 assert (fd != -1); in addinnetgrX() 626 addgetnetgrentX_ignore (db, fd, req, key, uid, NULL, NULL); in addgetnetgrent() 645 addinnetgr (struct database_dyn *db, int fd, request_header *req, in addinnetgr() argument [all …]
|
A D | nscd_stat.c | 106 send_stats (int fd, struct database_dyn dbs[lastdb]) in send_stats() argument 154 if (TEMP_FAILURE_RETRY (send (fd, &data, sizeof (data), MSG_NOSIGNAL)) in send_stats() 170 int fd; in receive_print_stats() local 194 fd = nscd_open_socket (); in receive_print_stats() 195 if (fd == -1) in receive_print_stats() 202 nbytes = TEMP_FAILURE_RETRY (send (fd, &req, sizeof (request_header), in receive_print_stats() 207 close (fd); in receive_print_stats() 212 if (TEMP_FAILURE_RETRY (read (fd, &data, sizeof (data))) != sizeof (data) in receive_print_stats() 219 close (fd); in receive_print_stats() 329 close (fd); in receive_print_stats()
|
A D | pwdcache.c | 76 cache_addpw (struct database_dyn *db, int fd, request_header *req, in cache_addpw() argument 118 if (fd != -1 in cache_addpw() 119 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addpw() 255 assert (fd == -1); in cache_addpw() 293 assert (fd != -1); in cache_addpw() 295 if (writeall (fd, &dataset->resp, dataset->head.recsize) in cache_addpw() 389 addpwbyX (struct database_dyn *db, int fd, request_header *req, in addpwbyX() argument 436 addpwbyname (struct database_dyn *db, int fd, request_header *req, in addpwbyname() argument 441 addpwbyX (db, fd, req, u, key, c_uid, NULL, NULL); in addpwbyname() 461 addpwbyuid (struct database_dyn *db, int fd, request_header *req, in addpwbyuid() argument [all …]
|
A D | grpcache.c | 70 cache_addgr (struct database_dyn *db, int fd, request_header *req, in cache_addgr() argument 112 if (fd != -1 in cache_addgr() 113 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in cache_addgr() 271 assert (fd == -1); in cache_addgr() 315 assert (fd != -1); in cache_addgr() 317 if (writeall (fd, &dataset->resp, dataset->head.recsize) in cache_addgr() 411 addgrbyX (struct database_dyn *db, int fd, request_header *req, in addgrbyX() argument 457 addgrbyname (struct database_dyn *db, int fd, request_header *req, in addgrbyname() argument 462 addgrbyX (db, fd, req, u, key, uid, NULL, NULL); in addgrbyname() 482 addgrbygid (struct database_dyn *db, int fd, request_header *req, in addgrbygid() argument [all …]
|
A D | initgrcache.c | 52 addinitgroupsX (struct database_dyn *db, int fd, request_header *req, in addinitgroupsX() argument 195 if (fd != -1 in addinitgroupsX() 196 && TEMP_FAILURE_RETRY (send (fd, ¬found, total, in addinitgroupsX() 305 assert (fd == -1); in addinitgroupsX() 343 assert (fd != -1); in addinitgroupsX() 345 if (writeall (fd, &dataset->resp, dataset->head.recsize) in addinitgroupsX() 386 addinitgroups (struct database_dyn *db, int fd, request_header *req, void *key, in addinitgroups() argument 389 addinitgroupsX (db, fd, req, key, uid, NULL, NULL); in addinitgroups()
|
A D | selinux.h | 39 extern int nscd_request_avc_has_perm (int fd, request_type req); 55 # define nscd_request_avc_has_perm(fd, req) 0 argument
|
A D | nscd.c | 94 static int monitor_child (int fd); 198 int fd[2]; in main() local 200 if (pipe (fd) != 0) in main() 210 close (fd[1]); in main() 211 exit (monitor_child (fd[0])); in main() 216 close (fd[0]); in main() 217 parent_fd = fd[1]; in main() 633 monitor_child (int fd) in monitor_child() argument 636 int ret = read (fd, &child_ret, sizeof (child_ret)); in monitor_child() 664 close (fd); in monitor_child()
|
A D | nscd_helper.c | 54 fds[0].fd = sock; in wait_on_socket() 85 __readall (int fd, void *buf, size_t len) in __readall() argument 92 ret = TEMP_FAILURE_RETRY (__read (fd, buf, n)); in __readall() 97 && wait_on_socket (fd, EXTRA_RECEIVE_TIME) > 0) in __readall() 111 __readvall (int fd, const struct iovec *iov, int iovcnt) in __readvall() argument 113 ssize_t ret = TEMP_FAILURE_RETRY (__readv (fd, iov, iovcnt)); in __readvall() 146 r = TEMP_FAILURE_RETRY (__readv (fd, iovp, iovcnt)); in __readvall() 151 && wait_on_socket (fd, EXTRA_RECEIVE_TIME) > 0) in __readvall() 229 fds[0].fd = sock; in open_socket()
|
A D | aicache.c | 47 addhstaiX (struct database_dyn *db, int fd, request_header *req, in addhstaiX() argument 386 assert (fd == -1); in addhstaiX() 426 assert (fd != -1); in addhstaiX() 428 writeall (fd, &dataset->resp, dataset->head.recsize); in addhstaiX() 462 if (fd != -1) in addhstaiX() 463 TEMP_FAILURE_RETRY (send (fd, ¬found, total, MSG_NOSIGNAL)); in addhstaiX() 523 addhstai (struct database_dyn *db, int fd, request_header *req, void *key, in addhstai() argument 526 addhstaiX (db, fd, req, key, uid, NULL, NULL); in addhstai()
|
A D | cache.c | 247 prune_cache (struct database_dyn *table, time_t now, int fd) in prune_cache() argument 254 if (fd != -1) in prune_cache() 258 writeall (fd, &resp, sizeof (resp)); in prune_cache() 434 if (__glibc_unlikely (fd != -1)) in prune_cache() 439 writeall (fd, &resp, sizeof (resp)); in prune_cache()
|
A D | nscd-client.h | 442 extern ssize_t __readall (int fd, void *buf, size_t len) 444 extern ssize_t __readvall (int fd, const struct iovec *iov, int iovcnt) 446 extern ssize_t writeall (int fd, const void *buf, size_t len)
|
A D | cachedumper.c | 68 int fd; in nscd_print_cache() local 77 fd = open (name, O_RDONLY); in nscd_print_cache() 79 the_cache = mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); in nscd_print_cache()
|
A D | selinux.c | 365 nscd_request_avc_has_perm (int fd, request_type req) in nscd_request_avc_has_perm() argument 401 if (getpeercon (fd, &scon) < 0) in nscd_request_avc_has_perm()
|