Searched refs:db (Results 1 – 4 of 4) sorted by relevance
/busybox-1.35.0/libpwdgrp/ |
D | pwd_grp.c | 112 struct passdb db[2 + ENABLE_USE_BB_SHADOW]; member 124 free(S.db[0].malloced); in free_static() 125 free(S.db[1].malloced); in free_static() 127 free(S.db[2].malloced); in free_static() 137 memcpy(&S.db[0], &const_pw_db, sizeof(const_pw_db)); in get_S() 138 memcpy(&S.db[1], &const_gr_db, sizeof(const_gr_db)); in get_S() 140 memcpy(&S.db[2], &const_sp_db, sizeof(const_sp_db)); in get_S() 188 static char *parse_common(FILE *fp, struct passdb *db, in parse_common() argument 197 if (tokenize(buf, ':') != db->numfields) { in parse_common() 199 bb_error_msg("%s: bad record", db->filename); in parse_common() [all …]
|
/busybox-1.35.0/modutils/ |
D | modutils.h | 42 #define moddb_foreach_module(db, module, index) \ argument 44 for (module = (db)->buckets[index]; module; module = module->next) 46 module_entry *moddb_get(module_db *db, const char *s) FAST_FUNC; 47 module_entry *moddb_get_or_create(module_db *db, const char *s) FAST_FUNC; 48 void moddb_free(module_db *db) FAST_FUNC;
|
D | modutils.c | 18 static module_entry *helper_get_module(module_db *db, const char *module, int create) in helper_get_module() argument 31 for (e = db->buckets[hash]; e; e = e->next) in helper_get_module() 39 e->next = db->buckets[hash]; in helper_get_module() 40 db->buckets[hash] = e; in helper_get_module() 45 module_entry* FAST_FUNC moddb_get(module_db *db, const char *module) in moddb_get() argument 47 return helper_get_module(db, module, 0); in moddb_get() 49 module_entry* FAST_FUNC moddb_get_or_create(module_db *db, const char *module) in moddb_get_or_create() argument 51 return helper_get_module(db, module, 1); in moddb_get_or_create() 54 void FAST_FUNC moddb_free(module_db *db) in moddb_free() argument 60 for (e = db->buckets[i]; e; e = n) { in moddb_free()
|
D | modprobe.c | 184 module_db db; member 211 return moddb_get_or_create(&G.db, module); in get_or_add_modentry() 532 m = moddb_get(&G.db, bb_get_last_path_component_nostrip(tokens[0])); in load_modules_dep() 722 moddb_free(&G.db); in modprobe_main()
|