Home
last modified time | relevance | path

Searched refs:fullpath (Results 1 – 25 of 45) sorted by relevance

12

/netbsd-src/external/cddl/osnet/dist/cmd/zinject/
H A Dtranslate.c92 char fullpath[MAXPATHLEN]; in parse_pathname() local
94 compress_slashes(inpath, fullpath); in parse_pathname()
96 if (fullpath[0] != '/') { in parse_pathname()
98 "path\n", fullpath); in parse_pathname()
103 if (strlen(fullpath) >= MAXPATHLEN) { in parse_pathname()
108 if (stat64(fullpath, statbuf) != 0) { in parse_pathname()
110 fullpath, strerror(errno)); in parse_pathname()
114 if (statfs(fullpath, &sfs) == -1) { in parse_pathname()
116 fullpath, strerror(errno)); in parse_pathname()
122 "filesystem\n", fullpath); in parse_pathname()
[all …]
/netbsd-src/external/gpl2/texinfo/dist/info/
H A Dnodes.c162 node->filename = file_buffer->fullpath; in info_get_node_of_file_buffer()
229 || (FILENAME_CMP (filename, file_buffer->fullpath) == 0) in info_find_file_internal()
232 filename_non_directory (file_buffer->fullpath)) in info_find_file_internal()
250 if (stat (file_buffer->fullpath, &new_info) == -1) in info_find_file_internal()
313 char *fullpath, *contents; in info_load_file_internal() local
321 fullpath = info_find_fullpath (filename); in info_load_file_internal()
324 retcode = stat (fullpath, &finfo); in info_load_file_internal()
348 fullpath = info_find_fullpath (lowered_name); in info_load_file_internal()
350 retcode = stat (fullpath, &finfo); in info_load_file_internal()
362 contents = filesys_read_info_file (fullpath, &filesize, &finfo, &compressed); in info_load_file_internal()
[all …]
H A Ddir.c129 char *fullpath = xmalloc (3 + strlen (this_dir) + namelen); in maybe_build_dir_node() local
131 strcpy (fullpath, this_dir); in maybe_build_dir_node()
132 if (!IS_SLASH (fullpath[strlen (fullpath) - 1])) in maybe_build_dir_node()
133 strcat (fullpath, "/"); in maybe_build_dir_node()
134 strcat (fullpath, from_file); in maybe_build_dir_node()
136 statable = (stat (fullpath, &finfo) == 0); in maybe_build_dir_node()
143 char *contents = filesys_read_info_file (fullpath, &filesize, in maybe_build_dir_node()
153 free (fullpath); in maybe_build_dir_node()
H A Dnodes.h105 char *fullpath; /* The full pathname of this info file. */ member
/netbsd-src/external/gpl2/texinfo/dist/makeinfo/
H A Dfiles.c111 char *fullpath; in get_file_info_in_path() local
119 fullpath = xmalloc (2 + strlen (dir) + strlen (filename)); in get_file_info_in_path()
120 sprintf (fullpath, "%s/%s", dir, filename); in get_file_info_in_path()
123 result = stat (fullpath, finfo); in get_file_info_in_path()
126 return fullpath; in get_file_info_in_path()
128 free (fullpath); in get_file_info_in_path()
198 char *fullpath, *result; in find_and_load() local
201 result = fullpath = NULL; in find_and_load()
203 fullpath in find_and_load()
207 if (!fullpath) in find_and_load()
[all …]
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_disk.c242 wchar_t *fullpath; in DEFINE_TEST() local
324 assert((fullpath = malloc((l + 20) * sizeof(wchar_t))) != NULL); in DEFINE_TEST()
325 assert((l = GetCurrentDirectoryW(l, fullpath)) != 0); in DEFINE_TEST()
326 wcscat(fullpath, L"\\f:i*l?e\"f<i>l|e"); in DEFINE_TEST()
328 archive_entry_copy_pathname_w(ae, fullpath); in DEFINE_TEST()
333 free(fullpath); in DEFINE_TEST()
337 assert((fullpath = malloc((l + 30) * sizeof(wchar_t))) != NULL); in DEFINE_TEST()
338 assert((l = GetCurrentDirectoryW(l, fullpath)) != 0); in DEFINE_TEST()
339 wcscat(fullpath, L"\\d:i*r?e\"c<t>o|ry/file1"); in DEFINE_TEST()
341 archive_entry_copy_pathname_w(ae, fullpath); in DEFINE_TEST()
[all …]
H A Dtest_read_disk_directory_traversals.c92 wchar_t *wcwd, *wp, *fullpath; in test_basic() local
436 fullpath = malloc(sizeof(wchar_t) * (wcslen(wcwd) + 32)); in test_basic()
437 wcscpy(fullpath, L"//?/"); in test_basic()
438 wcscat(fullpath, wcwd); in test_basic()
439 wcscat(fullpath, L"/dir1/file1"); in test_basic()
441 assertEqualIntA(a, ARCHIVE_OK, archive_read_disk_open_w(a, fullpath)); in test_basic()
442 while ((wcwd = wcschr(fullpath, L'\\')) != NULL) in test_basic()
448 assertEqualWString(archive_entry_pathname_w(ae), fullpath); in test_basic()
462 free(fullpath); in test_basic()
468 fullpath = malloc(sizeof(wchar_t) * (wcslen(wcwd) + 32)); in test_basic()
[all …]
/netbsd-src/external/bsd/libarchive/dist/libarchive/
H A Dfilter_fork_windows.c81 struct archive_string fullpath; in __archive_create_child() local
92 archive_string_init(&fullpath); in __archive_create_child()
116 if (archive_string_ensure(&fullpath, fl) == NULL) in __archive_create_child()
119 fl = SearchPathA(NULL, acmd->path, ext, fl, fullpath.s, in __archive_create_child()
187 if (CreateProcessA(fullpath.s, cmdline.s, NULL, NULL, TRUE, 0, in __archive_create_child()
208 archive_string_free(&fullpath); in __archive_create_child()
224 archive_string_free(&fullpath); in __archive_create_child()
/netbsd-src/sbin/fsck_msdos/
H A Ddir.c93 static char *fullpath(struct dosDirEntry *);
163 fullpath(struct dosDirEntry *dir) in fullpath() function
408 fullpath(dir), dir->size, physicalSize); in checksize()
420 fullpath(dir)); in checksize()
525 fullpath(dir)); in readDosDirSection()
636 fullpath(dir), 2); in readDosDirSection()
676 fullpath(&dirent), 0); in readDosDirSection()
692 fullpath(&dirent)); in readDosDirSection()
718 fullpath(&dirent)); in readDosDirSection()
722 fullpath(&dirent), in readDosDirSection()
[all …]
/netbsd-src/external/bsd/pkg_install/dist/lib/
H A Dplist.c726 char *fullpath, *oldvalue, *newvalue; in add_pkgdir() local
728 fullpath = xasprintf("%s/%s", prefix, path); in add_pkgdir()
729 oldvalue = pkgdb_retrieve(fullpath); in add_pkgdir()
734 pkgdb_remove(fullpath); in add_pkgdir()
738 pkgdb_store(fullpath, newvalue); in add_pkgdir()
740 free(fullpath); in add_pkgdir()
748 char *fullpath, *oldvalue, *newvalue, *iter; in delete_pkgdir() local
750 fullpath = xasprintf("%s/%s", prefix, path); in delete_pkgdir()
751 oldvalue = pkgdb_retrieve(fullpath); in delete_pkgdir()
768 pkgdb_remove(fullpath); in delete_pkgdir()
[all …]
/netbsd-src/usr.sbin/mtree/
H A Dmtree.c64 char fullpath[MAXPATHLEN]; variable
286 if ((cflag || sflag) && !getcwd(fullpath, sizeof(fullpath))) in main()
H A Dextern.h95 extern char fullpath[];
H A Dcreate.c121 user, host, fullpath, ctime(&clocktime)); in cwalk()
173 mtree_err("%s checksum: %u", fullpath, crc_total); in cwalk()
H A Dverify.c174 warnx("%s checksum: %u", fullpath, crc_total); in vwalk()
/netbsd-src/crypto/external/bsd/openssl.old/dist/apps/
H A Drehash.c193 static int handle_symlink(const char *filename, const char *fullpath) in handle_symlink() argument
221 n = readlink(fullpath, linktarget, sizeof(linktarget)); in handle_symlink()
232 static int do_file(const char *filename, const char *fullpath, enum Hash h) in do_file() argument
254 if ((b = BIO_new_file(fullpath, "r")) == NULL) { in do_file()
/netbsd-src/crypto/external/bsd/openssl/dist/apps/
H A Drehash.c195 static int handle_symlink(const char *filename, const char *fullpath) in handle_symlink() argument
223 n = readlink(fullpath, linktarget, sizeof(linktarget)); in handle_symlink()
234 static int do_file(const char *filename, const char *fullpath, enum Hash h) in do_file() argument
256 if ((b = BIO_new_file(fullpath, "r")) == NULL) { in do_file()
/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_diff.c495 char fullpath[MAXPATHLEN]; in find_shares_object() local
498 (void) strlcpy(fullpath, di->dsmnt, MAXPATHLEN); in find_shares_object()
499 (void) strlcat(fullpath, ZDIFF_SHARESDIR, MAXPATHLEN); in find_shares_object()
501 if (stat64(fullpath, &sb) != 0) { in find_shares_object()
504 dgettext(TEXT_DOMAIN, "Cannot stat %s"), fullpath); in find_shares_object()
/netbsd-src/external/gpl2/dtc/dist/
H A Dchecks.c96 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg()
98 xasprintf_append(&str, "%s: ", node->fullpath); in check_msg()
140 TRACE(c, "%s", node->fullpath); in check_nodes_props()
414 ((prop) ? "' in " : ""), (node)->fullpath
539 phandle, other->fullpath); in check_explicit_phandles()
637 path = refnode->fullpath; in fixup_path_references()
790 c_addr_cells, node->parent->fullpath, in check_ranges_format()
795 c_size_cells, node->parent->fullpath, in check_ranges_format()
1255 FAIL(c, dti, childb, "duplicate unit-address (also used in node %s)", childa->fullpath); in check_unique_unit_address_common()
1418 provider_node->fullpath, in check_property_phandle_args()
[all …]
H A Ddtc.c38 tree->fullpath = join_path(prefix, tree->name); in fill_fullpaths()
47 fill_fullpaths(child, tree->fullpath); in fill_fullpaths()
H A Dlivetree.c851 data_copy_escape_string(node->fullpath, in generate_label_tree_internal()
852 strlen(node->fullpath)), in generate_label_tree_internal()
898 if (strchr(node->fullpath, ':') || strchr(prop->name, ':')) in add_fixup_entry()
902 node->fullpath, prop->name, m->offset); in add_fixup_entry()
H A Ddtc.h159 char *fullpath; member
/netbsd-src/external/bsd/mdocml/dist/
H A Dcgi.c905 pg_show(struct req *req, const char *fullpath) in pg_show() argument
910 if ((file = strchr(fullpath, '/')) == NULL) { in pg_show()
915 manpath = mandoc_strndup(fullpath, file - fullpath); in pg_show()
/netbsd-src/external/apache2/llvm/dist/clang/utils/
H A DFindSpecRefs823 fullpath = os.path.join(dirpath, filename)
824 references.extend(list(scanFile(fullpath, filename)))
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgengtype-state.cc1955 char *fullpath = concat (srcdir, dirsepstr, path, NULL); in read_state_fileloc() local
1956 floc->file = input_file_by_name (fullpath); in read_state_fileloc()
1957 free (fullpath); in read_state_fileloc()
2532 char *fullpath = concat (srcdir, dirsepstr, fnam, NULL); in read_state_files_list() local
2533 curgt = input_file_by_name (fullpath); in read_state_files_list()
2534 free (fullpath); in read_state_files_list()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgengtype-state.c1923 char *fullpath = concat (srcdir, dirsepstr, path, NULL); in read_state_fileloc() local
1924 floc->file = input_file_by_name (fullpath); in read_state_fileloc()
1925 free (fullpath); in read_state_fileloc()
2496 char *fullpath = concat (srcdir, dirsepstr, fnam, NULL); in read_state_files_list() local
2497 curgt = input_file_by_name (fullpath); in read_state_files_list()
2498 free (fullpath); in read_state_files_list()

12