Home
last modified time | relevance | path

Searched refs:dirlen (Results 1 – 12 of 12) sorted by relevance

/external/openssl/crypto/
DLPdir_win.c67 size_t dirlen = strlen (directory); in LP_find_file() local
69 if (dirlen == 0) in LP_find_file()
83 if (directory[dirlen-1] != '*') in LP_find_file()
85 extdirbuf = (char *)malloc(dirlen + 3); in LP_find_file()
93 if (directory[dirlen-1] != '/' && directory[dirlen-1] != '\\') in LP_find_file()
/external/chromium_org/third_party/icu/source/tools/genrb/
Dgenrb.c462 int32_t dirlen = 0; in processFile() local
478 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
498 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
501 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
503 if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in processFile()
504 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
524 if( (filename[0] != U_FILE_SEP_CHAR) && (inputDir[dirlen-1] !='.')){ in processFile()
526 openFileName[dirlen] = U_FILE_SEP_CHAR; in processFile()
528 openFileName[dirlen + 1] = '\0'; in processFile()
530 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in processFile()
[all …]
Dparse.cpp663 int32_t dirlen = 0; in importFromDataFile() local
694 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in importFromDataFile()
714 dirlen = (int32_t)uprv_strlen(genrbdata->inputDir); in importFromDataFile()
717 dirlen = (int32_t)uprv_strlen(genrbdata->inputDir); in importFromDataFile()
719 if(genrbdata->inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in importFromDataFile()
720 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in importFromDataFile()
740 if( (filename[0] != U_FILE_SEP_CHAR) && (genrbdata->inputDir[dirlen-1] !='.')){ in importFromDataFile()
742 openFileName[dirlen] = U_FILE_SEP_CHAR; in importFromDataFile()
744 openFileName[dirlen + 1] = '\0'; in importFromDataFile()
746 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in importFromDataFile()
/external/icu/icu4c/source/tools/genrb/
Dgenrb.c477 int32_t dirlen = 0; in processFile() local
493 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
513 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
516 dirlen = (int32_t)uprv_strlen(inputDir); in processFile()
518 if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in processFile()
519 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in processFile()
539 if( (filename[0] != U_FILE_SEP_CHAR) && (inputDir[dirlen-1] !='.')){ in processFile()
541 openFileName[dirlen] = U_FILE_SEP_CHAR; in processFile()
543 openFileName[dirlen + 1] = '\0'; in processFile()
545 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in processFile()
[all …]
Dparse.cpp700 int32_t dirlen = 0; in getRules() local
731 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in getRules()
752 dirlen = (int32_t)uprv_strlen(inputDir); in getRules()
755 dirlen = (int32_t)uprv_strlen(inputDir); in getRules()
757 if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in getRules()
758 openFileName = (char *) uprv_malloc(dirlen + filelen + 2); in getRules()
778 if( (filename[0] != U_FILE_SEP_CHAR) && (inputDir[dirlen-1] !='.')){ in getRules()
780 openFileName[dirlen] = U_FILE_SEP_CHAR; in getRules()
782 openFileName[dirlen + 1] = '\0'; in getRules()
784 openFileName = (char *) uprv_malloc(dirlen + filelen + 1); in getRules()
/external/elfutils/0.153/libdwfl/
Ddwfl_build_id_find_elf.c106 size_t dirlen = strlen (dir); in __libdwfl_open_by_build_id() local
107 char *name = malloc (dirlen + sizeof id_name); in __libdwfl_open_by_build_id()
110 memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name); in __libdwfl_open_by_build_id()
/external/chromium_org/third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/
Ddwarf2-line.c176 size_t dirlen; in dwarf2_dbgfmt_add_file() local
182 dirlen = yasm__splitpath(pathname, &filename); in dwarf2_dbgfmt_add_file()
183 if (dirlen > 0) { in dwarf2_dbgfmt_add_file()
186 if (strncmp(dbgfmt_dwarf2->dirs[dir-1], pathname, dirlen) == 0 in dwarf2_dbgfmt_add_file()
187 && dbgfmt_dwarf2->dirs[dir-1][dirlen] == '\0') in dwarf2_dbgfmt_add_file()
197 dbgfmt_dwarf2->dirs[dir-1] = yasm__xstrndup(pathname, dirlen); in dwarf2_dbgfmt_add_file()
491 unsigned long dirlen, in dwarf2_filename_equals() argument
496 if (dirlen != 0) in dwarf2_filename_equals()
499 if (strncmp(dirs[fn->dir-1], pathname, dirlen) != 0 || in dwarf2_filename_equals()
500 dirs[fn->dir-1][dirlen] != '\0') in dwarf2_filename_equals()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dfinddev.c84 int dirlen; in scan_dir() local
87 dirlen = strlen(dirname); in scan_dir()
92 if (dirlen + strlen(dp->d_name) + 2 >= sizeof(path)) in scan_dir()
/external/e2fsprogs/lib/blkid/
Ddevno.c99 int dirlen; in blkid__scan_dir() local
104 dirlen = strlen(dirname) + 2; in blkid__scan_dir()
106 if (dirlen + strlen(dp->d_name) >= sizeof(path)) in blkid__scan_dir()
/external/chromium_org/third_party/icu/source/tools/toolutil/
Ducbuf.c641 int32_t dirlen = 0; in ucbuf_resolveFileName() local
653 dirlen = (int32_t)uprv_strlen(inputDir); in ucbuf_resolveFileName()
655 if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in ucbuf_resolveFileName()
656 requiredLen = dirlen + filelen + 2; in ucbuf_resolveFileName()
675 if( (fileName[0] != U_FILE_SEP_CHAR) && (inputDir[dirlen-1] !='.')){ in ucbuf_resolveFileName()
677 target[dirlen] = U_FILE_SEP_CHAR; in ucbuf_resolveFileName()
679 target[dirlen + 1] = '\0'; in ucbuf_resolveFileName()
681 requiredLen = dirlen + filelen + 1; in ucbuf_resolveFileName()
/external/icu/icu4c/source/tools/toolutil/
Ducbuf.c641 int32_t dirlen = 0; in ucbuf_resolveFileName() local
653 dirlen = (int32_t)uprv_strlen(inputDir); in ucbuf_resolveFileName()
655 if(inputDir[dirlen-1] != U_FILE_SEP_CHAR) { in ucbuf_resolveFileName()
656 requiredLen = dirlen + filelen + 2; in ucbuf_resolveFileName()
675 if( (fileName[0] != U_FILE_SEP_CHAR) && (inputDir[dirlen-1] !='.')){ in ucbuf_resolveFileName()
677 target[dirlen] = U_FILE_SEP_CHAR; in ucbuf_resolveFileName()
679 target[dirlen + 1] = '\0'; in ucbuf_resolveFileName()
681 requiredLen = dirlen + filelen + 1; in ucbuf_resolveFileName()
/external/elfutils/0.153/src/
Dldgeneric.c360 size_t dirlen = strlen (path->pname); in open_along_path2() local
374 rfname = (char *) alloca (dirlen + 5 + fnamelen + extlen); in open_along_path2()
376 dirlen), in open_along_path2()
397 rfname = (char *) alloca (dirlen + 1 + fnamelen + 1); in open_along_path2()
398 memcpy (stpcpy (mempcpy (rfname, path->pname, dirlen), "/"), in open_along_path2()
443 rfname[dirlen] = '\0'; in open_along_path2()