1 function psi\dbm_open(string $file, int $open_flags, int $file_mode) : object {
2 let file = pathval($file);
3 let open_flags = intval($open_flags);
4 let file_mode = intval($file_mode);
5 return to_object(dbm_open);
8 function psi\dbm_store(object $db, string $key, string $data, int $mode) : int {
10 let key = arrval($key,
14 let content = arrval($data,
18 let store_mode = intval($mode);
19 return to_int(dbm_store);
22 function psi\dbm_fetch(object $db, array $key) : array {
24 let key = arrval($key,
26 dsize = intval($dsize)
28 return to_array(dbm_fetch,
30 to_string(dptr, dsize)
34 function psi\dbm_close(object $db) : void {
36 return void(dbm_close);