Lines Matching refs:db
74 do_notfound (struct database_dyn *db, int fd, request_header *req, in do_notfound() argument
84 timeout = time (NULL) + db->negtimeout; in do_notfound()
89 dataset = mempool_alloc (db, sizeof (struct dataset) + req->key_len, 1); in do_notfound()
95 total, db->negtimeout); in do_notfound()
113 addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, in addgetnetgrentX() argument
148 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX()
349 cacheable = do_notfound (db, fd, req, key, &dataset, &total, &timeout, in addgetnetgrentX()
361 db->postimeout); in addgetnetgrentX()
397 = (struct dataset *) mempool_alloc (db, total + req->key_len, 1); in addgetnetgrentX()
424 if (db->persistent) in addgetnetgrentX()
434 true, db, uid, he == NULL); in addgetnetgrentX()
436 pthread_rwlock_unlock (&db->lock); in addgetnetgrentX()
451 addinnetgrX (struct database_dyn *db, int fd, request_header *req, in addinnetgrX() argument
478 db, uid); in addinnetgrX()
493 timeout = addgetnetgrentX (db, -1, &req_get, group, uid, NULL, NULL, in addinnetgrX()
502 = (struct indataset *) mempool_alloc (db, in addinnetgrX()
566 pthread_rwlock_unlock (&db->lock); in addinnetgrX()
583 if (db->persistent) in addinnetgrX()
594 true, db, uid, he == NULL); in addinnetgrX()
596 pthread_rwlock_unlock (&db->lock); in addinnetgrX()
610 addgetnetgrentX_ignore (struct database_dyn *db, int fd, request_header *req, in addgetnetgrentX_ignore() argument
616 time_t timeout = addgetnetgrentX (db, fd, req, key, uid, he, dh, in addgetnetgrentX_ignore()
623 addgetnetgrent (struct database_dyn *db, int fd, request_header *req, in addgetnetgrent() argument
626 addgetnetgrentX_ignore (db, fd, req, key, uid, NULL, NULL); in addgetnetgrent()
631 readdgetnetgrent (struct database_dyn *db, struct hashentry *he, in readdgetnetgrent() argument
640 (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdgetnetgrent()
645 addinnetgr (struct database_dyn *db, int fd, request_header *req, in addinnetgr() argument
648 addinnetgrX (db, fd, req, key, uid, NULL, NULL); in addinnetgr()
653 readdinnetgr (struct database_dyn *db, struct hashentry *he, in readdinnetgr() argument
662 return addinnetgrX (db, -1, &req, db->data + he->key, he->owner, he, dh); in readdinnetgr()