75 |
if (mode == 1) |
if (mode == 1) |
76 |
_nextkey = 1; |
_nextkey = 1; |
77 |
else { |
else { |
78 |
char *p = dbop_get(dbop, NEXTKEY); |
const char *p = dbop_get(dbop, NEXTKEY); |
79 |
|
|
80 |
if (p == NULL) |
if (p == NULL) |
81 |
die("nextkey not found in GPATH."); |
die("nextkey not found in GPATH."); |
110 |
* i) path path name |
* i) path path name |
111 |
* r) file id |
* r) file id |
112 |
*/ |
*/ |
113 |
char * |
const char * |
114 |
gpath_path2fid(path) |
gpath_path2fid(path) |
115 |
const char *path; |
const char *path; |
116 |
{ |
{ |
123 |
* i) fid file id |
* i) fid file id |
124 |
* r) path name |
* r) path name |
125 |
*/ |
*/ |
126 |
char * |
const char * |
127 |
gpath_fid2path(fid) |
gpath_fid2path(fid) |
128 |
const char *fid; |
const char *fid; |
129 |
{ |
{ |
138 |
gpath_delete(path) |
gpath_delete(path) |
139 |
const char *path; |
const char *path; |
140 |
{ |
{ |
141 |
char *fid; |
const char *fid; |
142 |
|
|
143 |
assert(opened == 1); |
assert(opened == 1); |
144 |
assert(_mode == 2); |
assert(_mode == 2); |
216 |
* |
* |
217 |
* r) path |
* r) path |
218 |
*/ |
*/ |
219 |
char * |
const char * |
220 |
gfind_read(void) |
gfind_read(void) |
221 |
{ |
{ |
222 |
assert(gfind_opened == 1); |
assert(gfind_opened == 1); |