• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/bin/uniconv/

Lines Matching defs:path

77 static int veto(const char *path)
83 if ((path == NULL))
88 if ((j>0) && (path[j] == '\0'))
92 if (veto_str[i] != path[j]) {
244 static int check_adouble(DIR *curdir, char * path _U_)
330 static int checkdir(DIR *curdir, char *path, cnid_t cur_did)
341 chdir(path);
343 check_adouble(curdir, path);
347 fprintf( stdout, "\nchecking DIR '%s' with ID %u\n", path, ntohl(cur_did));
371 chdir(path);
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));
385 static int init(char* path)
389 if (NULL == (cdb = cnid_open (path, 0, cnid_type, 0, "localhost", "4700")) ) {
390 fprintf (stderr, "ERROR: cannot open CNID database in '%s'\n", path);
397 startdir = opendir(path);
398 strlcpy(curpath, path, sizeof(curpath));
399 checkdir (startdir, path, cdir_id);
409 fprintf( stderr, "usage:\t%s [-ndv] -c cnid -f fromcode -t tocode [-m maccode] path\n", name );
422 fprintf (stdout, "\nUsage: uniconv [-ndv] -c cnid -f fromcode -t tocode [-m maccode] path\n\n");
424 fprintf (stdout, " uniconv -c dbd -f ASCII -t UTF8 -m MAC_ROMAN /path/to/share\n");
425 fprintf (stdout, " uniconv -c cdb -f ISO-8859-1 -t UTF8 -m MAC_ROMAN /path/to/share\n");
426 fprintf (stdout, " uniconv -c cdb -f ISO-8859-ADAPTED -t ASCII -m MAC_ROMAN /path/to/share\n");
427 fprintf (stdout, " uniconv -f UTF8 -t ASCII -m MAC_ROMAN /path/to/share\n\n");
452 char path[MAXPATHLEN];
455 path[0]= 0;
519 /* get path */
520 strlcpy(path, argv[optind], sizeof(path));
522 /* deal with relative path */
523 if (chdir(path)) {
524 fprintf (stderr, "ERROR: cannot chdir to '%s'\n", path);
528 if (NULL == (getcwd(path, sizeof(path))) ) {
552 init(path);