Home
last modified time | relevance | path

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

123

/src/tools/test/stress2/misc/
H A Dfullpath.sh38 sed '1,/^EOF/d' < $odir/$0 > fullpath.c
39 mycc -o fullpath -Wall fullpath.c
40 rm -f fullpath.c
44 /tmp/fullpath &
63 rm -f /tmp/fullpath
/src/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c208 char rawpath[PATH_MAX], fullpath[PATH_MAX]; in zfs_process_add() local
320 (void) snprintf(fullpath, sizeof (fullpath), "%llu", in zfs_process_add()
326 (void) strlcpy(fullpath, path, sizeof (fullpath)); in zfs_process_add()
328 char *spath = zfs_strip_partition(fullpath); in zfs_process_add()
335 (void) strlcpy(fullpath, spath, sizeof (fullpath)); in zfs_process_add()
346 if (zpool_vdev_online(zhp, fullpath, online_flag, &newstate) == 0 && in zfs_process_add()
351 "%s", fullpath, physpath, (newstate == VDEV_STATE_HEALTHY) ? in zfs_process_add()
369 (void) zpool_vdev_online(zhp, fullpath, ZFS_ONLINE_FORCEFAULT, in zfs_process_add()
372 "not a blank disk for '%s' ('%s')", fullpath, in zfs_process_add()
389 int err = zpool_vdev_online(zhp, fullpath, in zfs_process_add()
[all …]
/src/tools/tools/nanobsd/
H A Dfill_pkg.sh50 local outputfile dumpdir type fullpath pkgname p
58 fullpath=$p
63 fullpath=${PORTSDIR}/$p
68 fullpath=$p
73 fullpath=$dumpdir/$p
78 fullpath=$dumpdir/$p.pkg
88 cd "$fullpath"
107 deps=`pkg info -dF "$fullpath" | grep -v "$pkgname:"`
/src/sys/contrib/openzfs/cmd/zinject/
H A Dtranslate.c90 char fullpath[MAXPATHLEN]; in parse_pathname() local
92 compress_slashes(inpath, fullpath); in parse_pathname()
94 if (fullpath[0] != '/') { in parse_pathname()
96 "path\n", fullpath); in parse_pathname()
101 if (getextmntent(fullpath, &mp, statbuf) != 0) { in parse_pathname()
103 fullpath); in parse_pathname()
109 "filesystem\n", fullpath); in parse_pathname()
113 if (strncmp(fullpath, mp.mnt_mountp, strlen(mp.mnt_mountp)) != 0) { in parse_pathname()
115 "doesn't match path\n", fullpath); in parse_pathname()
121 rel = fullpath + strlen(mp.mnt_mountp); in parse_pathname()
/src/tools/test/stress2/testcases/run/
H A Drun.c84 char fullpath[MAXPATHLEN+1]; in test() local
100 snprintf(fullpath, sizeof(fullpath), "%s/%s", home, in test()
102 if (execv(fullpath, mkargv(basename(op->argv[i]))) == -1) in test()
103 err(1, "execl(%s), %s:%d", fullpath, __FILE__, in test()
/src/contrib/libarchive/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 …]
/src/usr.sbin/pmcstat/
H A Dpmcpl_gprof.c183 char fullpath[PATH_MAX]; in pmcstat_gmon_create_name() local
189 (void) snprintf(fullpath, sizeof(fullpath), in pmcstat_gmon_create_name()
193 return (pmcstat_string_intern(fullpath)); in pmcstat_gmon_create_name()
385 char fullpath[PATH_MAX]; in pmcpl_gmon_newpmc() local
393 (void) snprintf(fullpath, sizeof(fullpath), "%s/%s", args.pa_samplesdir, in pmcpl_gmon_newpmc()
397 if (stat(fullpath, &st) == 0 && S_ISDIR(st.st_mode)) in pmcpl_gmon_newpmc()
400 if (mkdir(fullpath, S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH) < 0) in pmcpl_gmon_newpmc()
402 fullpath); in pmcpl_gmon_newpmc()
/src/sys/dev/hwt/
H A Dhwt_record.c75 entry->fullpath = strdup(ent->fullpath, M_HWT_RECORD); in hwt_record_clone()
95 strncpy(usr->fullpath, ent->fullpath, MAXPATHLEN); in hwt_record_to_user()
184 free(entry->fullpath, M_HWT_RECORD); in hwt_record_entry_free()
288 entry->fullpath = strdup(kobase[i].pm_file, M_HWT_RECORD); in hwt_record_kernel_objects()
/src/contrib/libarchive/libarchive/
H A Darchive_write_open_filename.c138 wchar_t *fullpath; in file_open() local
161 fullpath = __la_win_permissive_name_w(wcs); in file_open()
162 if (fullpath != NULL) { in file_open()
163 mine->fd = _wopen(fullpath, flags, 0666); in file_open()
164 free(fullpath); in file_open()
H A Darchive_read_open_filename.c303 wchar_t *fullpath; in file_open() local
304 fullpath = __la_win_permissive_name_w(wfilename); in file_open()
305 if (fullpath != NULL) { in file_open()
306 fd = _wopen(fullpath, O_RDONLY | O_BINARY); in file_open()
307 free(fullpath); in file_open()
/src/sys/contrib/openzfs/lib/libzfs/os/linux/
H A Dlibzfs_util_os.c197 char fullpath[MAXPATHLEN]; in find_shares_object() local
200 (void) strlcpy(fullpath, di->dsmnt, MAXPATHLEN); in find_shares_object()
201 (void) strlcat(fullpath, ZDIFF_SHARESDIR, MAXPATHLEN); in find_shares_object()
203 if (stat64(fullpath, &sb) != 0) { in find_shares_object()
205 dgettext(TEXT_DOMAIN, "Cannot stat %s"), fullpath); in find_shares_object()
/src/sbin/fsck_msdosfs/
H A Ddir.c95 static char *fullpath(struct dosDirEntry *);
162 fullpath(struct dosDirEntry *dir) in fullpath() function
403 fullpath(dir), dir->size, dir->head); in checksize()
437 fullpath(dir), dir->size, (uintmax_t)physicalSize); in checksize()
449 fullpath(dir)); in checksize()
636 fullpath(dir)); in readDosDirSection()
773 fullpath(dir), 2); in readDosDirSection()
813 fullpath(&dirent), 0); in readDosDirSection()
853 fullpath(&dirent), in readDosDirSection()
857 fullpath(&dirent)); in readDosDirSection()
[all …]
/src/sys/fs/procfs/
H A Dprocfs_map.c82 char *fullpath, *freepath, *type; in procfs_doprocmap() local
154 fullpath = "-"; in procfs_doprocmap()
189 vn_fullpath(vp, &fullpath, &freepath); in procfs_doprocmap()
220 type, fullpath, in procfs_doprocmap()
H A Dprocfs.c68 char *fullpath, *freepath, *binpath; in procfs_doprocfile() local
74 error = proc_get_binpath(p, binpath, &fullpath, &freepath); in procfs_doprocfile()
76 sbuf_cat(sb, fullpath); in procfs_doprocfile()
/src/usr.sbin/pw/
H A Drm_r.c65 const char *fullpath; in rm_r() local
68 fullpath = path; in rm_r()
105 skipped = try_dataset_remove(fullpath); in rm_r()
/src/contrib/llvm-project/lldb/bindings/interface/
H A DSBModuleExtensions.i179 if comp_unit.file.fullpath == key:
188 fullpath = comp_unit.file.fullpath
189 if fullpath:
190 re_match = key.search(fullpath)
/src/contrib/mtree/
H A Dmtree.c64 char fullpath[MAXPATHLEN]; variable
282 if ((cflag || sflag) && !getcwd(fullpath, sizeof(fullpath))) in main()
/src/contrib/sendmail/makemap/
H A Dmakemap.c169 readcf(cfile, mapfile, fullpath) in readcf() argument
172 bool fullpath;
192 if (!fullpath && mapfile != NULL)
280 if (!fullpath)
294 if (!isspace(*b) && fullpath)
296 if (!fullpath && !(SM_IS_DIR_DELIM(*b) || isspace(*b)))
/src/sys/kern/
H A Dcoredump_vnode.c446 char *fullpath, *freepath = NULL; in coredump_vnode() local
521 if (vn_fullpath_global(p->p_textvp, &fullpath, &freepath) != 0) in coredump_vnode()
524 devctl_safe_quote_sb(sb, fullpath); in coredump_vnode()
536 if (vn_getcwd(freepath, &fullpath, &fullpathsize) != 0) { in coredump_vnode()
540 devctl_safe_quote_sb(sb, fullpath); in coredump_vnode()
/src/sys/fs/fdescfs/
H A Dfdesc_vnops.c635 char *freepath, *fullpath; in fdesc_readlink() local
656 error = vn_fullpath(vp, &fullpath, &freepath); in fdesc_readlink()
659 fullpath = "anon_inode:[unknown]"; in fdesc_readlink()
664 pathlen = strlen(fullpath); in fdesc_readlink()
665 error = uiomove(fullpath, pathlen, uio); in fdesc_readlink()
/src/sys/contrib/openzfs/cmd/zpool/
H A Dzpool_iter.c545 char fullpath[MAXPATHLEN]; in vdev_run_cmd_thread() local
556 if (snprintf(fullpath, sizeof (fullpath), in vdev_run_cmd_thread()
560 if (access(fullpath, X_OK) == 0) { in vdev_run_cmd_thread()
561 vdev_run_cmd(data, fullpath); in vdev_run_cmd_thread()
/src/usr.sbin/jail/
H A Dconfig.c286 char *fullpath = NULL; in include_config() local
297 fullpath = emalloc(dirlen + strlen(cfname) + 1); in include_config()
298 strncpy(fullpath, outer_cfname, dirlen); in include_config()
299 strcpy(fullpath + dirlen, cfname); in include_config()
300 cfname = fullpath; in include_config()
315 if (fullpath) in include_config()
316 free(fullpath); in include_config()
/src/crypto/openssl/apps/
H A Drehash.c195 static int handle_symlink(const char *filename, const char *fullpath) in handle_symlink() argument
224 n = readlink(fullpath, linktarget, sizeof(linktarget)); in handle_symlink()
235 static int do_file(const char *filename, const char *fullpath, enum Hash h) in do_file() argument
257 if ((b = BIO_new_file(fullpath, "r")) == NULL) { in do_file()
/src/sys/sys/
H A Dhwt_record.h54 char *fullpath; member

123