/nscd/ |
A D | mem.c | 107 gc (struct database_dyn *db) in gc() argument 412 <= db->data + db->head->first_free); in gc() 415 <= db->data + db->head->first_free); in gc() 427 dbnames[db - dbs]); in gc() 431 db->head->first_free = (char *) moves->to + moves->size - db->data; in gc() 471 > db->head->first_free) in gc() 486 if (db->persistent) in gc() 487 msync (db->head, db->data + db->head->first_free - (char *) db->head, in gc() 527 res = db->data + db->head->first_free; in mempool_alloc() 529 if (__glibc_unlikely (db->head->first_free + len > db->head->data_size)) in mempool_alloc() [all …]
|
A D | nscd.h | 293 extern time_t readdpwbyuid (struct database_dyn *db, struct hashentry *he, 311 extern void addhstbynamev6 (struct database_dyn *db, int fd, 313 extern void addhstbyaddrv6 (struct database_dyn *db, int fd, 327 extern time_t readdhstai (struct database_dyn *db, struct hashentry *he, 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, 352 extern void addgetnetgrent (struct database_dyn *db, int fd, 358 extern void *mempool_alloc (struct database_dyn *db, size_t len, 360 extern void gc (struct database_dyn *db); [all …]
|
A D | pwdcache.c | 137 db->negtimeout); in cache_addpw() 146 if (db->persistent) in cache_addpw() 200 if (db->propagate) in cache_addpw() 207 if (he == NULL && db->propagate) in cache_addpw() 222 db->postimeout); in cache_addpw() 306 if (db->persistent) in cache_addpw() 325 db, owner, he == NULL) < 0) in cache_addpw() 349 false, db, owner, false); in cache_addpw() 354 if (he == NULL && db->propagate) in cache_addpw() 456 return addpwbyX (db, -1, &req, u, db->data + he->key, he->owner, he, dh); in readdpwbyname() [all …]
|
A D | grpcache.c | 130 db->negtimeout); in cache_addgr() 139 if (db->persistent) in cache_addgr() 207 if (db->propagate) in cache_addgr() 214 if (he == NULL && db->propagate) in cache_addgr() 239 db->postimeout); in cache_addgr() 327 if (db->persistent) in cache_addgr() 346 db, owner, he == NULL) < 0) in cache_addgr() 371 false, db, owner, false); in cache_addgr() 376 if (he == NULL && db->propagate) in cache_addgr() 477 return addgrbyX (db, -1, &req, u, db->data + he->key, he->owner, he, dh); in readdgrbyname() [all …]
|
A D | servicescache.c | 96 timeout = dh->timeout = t + db->postimeout; in cache_addserv() 125 db->negtimeout); in cache_addserv() 134 if (db->persistent) in cache_addserv() 144 &dataset->head, true, db, owner, he == NULL); in cache_addserv() 146 pthread_rwlock_unlock (&db->lock); in cache_addserv() 208 db->postimeout); in cache_addserv() 290 if (db->persistent) in cache_addserv() 302 pthread_rwlock_unlock (&db->lock); in cache_addserv() 388 addservbyX (db, fd, req, key, uid, NULL, NULL); in addservbyname() 402 return addservbyX (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdservbyname() [all …]
|
A D | hstcache.c | 156 ? db->negtimeout : ttl)); in cache_addhst() 165 if (db->persistent) in cache_addhst() 177 pthread_rwlock_unlock (&db->lock); in cache_addhst() 256 ttl == INT32_MAX ? db->postimeout : ttl); in cache_addhst() 324 = (struct dataset *) mempool_alloc (db, in cache_addhst() 368 if (db->persistent) in cache_addhst() 394 pthread_rwlock_unlock (&db->lock); in cache_addhst() 502 return addhstbyX (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdhstbyname() 524 return addhstbyX (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdhstbyaddr() 546 return addhstbyX (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdhstbynamev6() [all …]
|
A D | initgrcache.c | 189 timeout = dh->timeout = time (NULL) + db->postimeout; in addinitgroupsX() 214 db->negtimeout); in addinitgroupsX() 223 if (db->persistent) in addinitgroupsX() 233 &dataset->head, true, db, uid, he == NULL); in addinitgroupsX() 235 pthread_rwlock_unlock (&db->lock); in addinitgroupsX() 273 db->postimeout); in addinitgroupsX() 356 if (db->persistent) in addinitgroupsX() 366 db, uid, he == NULL); in addinitgroupsX() 368 pthread_rwlock_unlock (&db->lock); in addinitgroupsX() 389 addinitgroupsX (db, fd, req, key, uid, NULL, NULL); in addinitgroups() [all …]
|
A D | netgroupcache.c | 84 timeout = time (NULL) + db->negtimeout; in do_notfound() 95 total, db->negtimeout); in do_notfound() 361 db->postimeout); in addgetnetgrentX() 424 if (db->persistent) in addgetnetgrentX() 434 true, db, uid, he == NULL); in addgetnetgrentX() 436 pthread_rwlock_unlock (&db->lock); in addgetnetgrentX() 478 db, uid); in addinnetgrX() 583 if (db->persistent) in addinnetgrX() 594 true, db, uid, he == NULL); in addinnetgrX() 640 (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdgetnetgrent() [all …]
|
A D | aicache.c | 47 addhstaiX (struct database_dyn *db, int fd, request_header *req, in addhstaiX() argument 160 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 332 dataset = (struct dataset *) mempool_alloc (db, total in addhstaiX() 365 ttl == INT32_MAX ? db->postimeout : ttl); in addhstaiX() 406 = (struct dataset *) mempool_alloc (db, total + req->key_len, in addhstaiX() 479 total, db->negtimeout); in addhstaiX() 495 if (db->persistent) in addhstaiX() 505 true, db, uid, he == NULL); in addhstaiX() 507 pthread_rwlock_unlock (&db->lock); in addhstaiX() 526 addhstaiX (db, fd, req, key, uid, NULL, NULL); in addhstai() [all …]
|
A D | nscd.conf | 56 max-db-size passwd 33554432 66 max-db-size group 33554432 76 max-db-size hosts 33554432 85 max-db-size services 33554432 94 max-db-size netgroup 33554432
|
A D | connections.c | 216 struct database_dyn *db; member 997 if (db->ro_fd == -1) in send_ro_fd() 1026 *ip = db->ro_fd; in send_ro_fd() 1089 struct database_dyn *db = reqinfo[req->type].db; in handle_request() local 1114 db->disabled_iov->iov_len, in handle_request() 1131 ++db->head->rdlockdelayed; in handle_request() 1132 pthread_rwlock_rdlock (&db->lock); in handle_request() 1138 db, uid); in handle_request() 1151 pthread_rwlock_unlock (&db->lock); in handle_request() 1156 pthread_rwlock_unlock (&db->lock); in handle_request() [all …]
|
A D | nscd.init | 51 [ -d /var/db/nscd ] || mkdir /var/db/nscd
|
A D | nscd_setup_thread.c | 22 setup_thread (struct database_dyn *db) in setup_thread() argument
|