Lines Matching refs:cur_did
143 static char *convert_name(char *name, struct stat *st, cnid_t cur_did)
185 from_charset, to_charset, name, ntohl(cur_did));
194 from_charset, to_charset, name, ntohl(cur_did));
203 if (CNID_INVALID != (id = cnid_add(cdb, st, cur_did, buffer, strlen(buffer), 0)))
205 name, buffer, ntohl(id), ntohl(cur_did));
214 static int check_dirent(char** name, cnid_t cur_did)
239 *name = convert_name(*name, &st, cur_did);
279 static cnid_t add_dir_db(char *name, cnid_t cur_did)
284 if (CNID_INVALID != ( id = cnid_get(cdb, cur_did, name, strlen(name))) )
291 did = cur_did;
330 static int checkdir(DIR *curdir, char *path, cnid_t cur_did)
347 fprintf( stdout, "\nchecking DIR '%s' with ID %u\n", path, ntohl(cur_did));
354 ret = check_dirent(&name, cur_did);
356 id = add_dir_db(name, cur_did);
365 fprintf( stderr, "ERROR: cannot open DIR '%s' with ID %u\n", curpath, ntohl(cur_did));
373 fprintf( stdout, "returned to DIR '%s' with ID %u\n", path, ntohl(cur_did));
380 fprintf( stdout, "leaving DIR '%s' with ID %u\n\n", path, ntohl(cur_did));