/freebsd-current/sys/contrib/openzfs/module/zcommon/ |
H A D | zfs_namecheck.c | 51 * in the amount of nesting a path can have. zfs_max_dataset_nesting 67 * Looks at a path and returns its level of nesting (depth). 70 get_dataset_depth(const char *path) argument 72 const char *loc = path; 77 * path or found the snapshot/bookmark separator. 98 zfs_component_namecheck(const char *path, namecheck_err_t *why, char *what) argument 102 if (strlen(path) >= ZFS_MAX_DATASET_NAME_LEN) { 108 if (path[0] == '\0') { 114 for (loc = path; *loc; loc++) { 135 permset_namecheck(const char *path, namecheck_err_ argument 161 dataset_nestcheck(const char *path) argument 182 entity_namecheck(const char *path, namecheck_err_t *why, char *what) argument 300 dataset_namecheck(const char *path, namecheck_err_t *why, char *what) argument 319 bookmark_namecheck(const char *path, namecheck_err_t *why, char *what) argument 338 snapshot_namecheck(const char *path, namecheck_err_t *why, char *what) argument 361 mountpoint_namecheck(const char *path, namecheck_err_t *why) argument [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_file.cpp | 79 static void RecursiveCreateParentDirs(char *path) { argument 80 if (path[0] == '\0') 82 for (int i = 1; path[i] != '\0'; ++i) { 83 char save = path[i]; 84 if (!IsPathSeparator(path[i])) 86 path[i] = '\0'; 87 if (!DirExists(path) && !CreateDir(path)) { 90 WriteToFile(kStderrFd, path, internal_strlen(path)); 97 SetReportPath(const char *path) argument 209 const char *path = GetEnv("PATH"); local 237 __sanitizer_set_report_path(const char *path) argument [all...] |
/freebsd-current/usr.sbin/ckdist/ |
H A D | ckdist.c | 63 #define isstdin(path) ((path)[0] == '-' && !(path)[1]) 74 static int ckdist(const char *path, int type); 75 static int chkmd5(FILE * fp, const char *path); 76 static int chkinf(FILE * fp, const char *path); 77 static int report(const char *path, const char *name, int error); 78 static const char *distname(const char *path, const char *name, 80 static const char *stripath(const char *path); 81 static int distfile(const char *path); 181 ckdist(const char *path, int type) argument 218 chkmd5(FILE * fp, const char *path) argument 263 chkinf(FILE * fp, const char *path) argument 318 report(const char *path, const char *name, int error) argument 351 distname(const char *path, const char *name, const char *ext) argument 394 stripath(const char *path) argument 403 distfile(const char *path) argument 428 fail(const char *path, const char *msg) argument [all...] |
/freebsd-current/contrib/kyua/store/ |
H A D | migrate_test.cpp | 40 #include "utils/fs/path.hpp" 49 store::detail::backup_database(fs::path("test.db"), 13); 50 ATF_REQUIRE(fs::exists(fs::path("test.db"))); 51 ATF_REQUIRE(fs::exists(fs::path("test.db.v13.backup"))); 61 store::detail::backup_database(fs::path("test.db"), 1); 62 ATF_REQUIRE(fs::exists(fs::path("test.db"))); 63 ATF_REQUIRE(fs::exists(fs::path("test.db.v1.backup"))); 73 store::detail::backup_database(fs::path("foo.db"), 5)); 89 store::detail::backup_database(fs::path("dir/test.db"), 13)); 105 ATF_REQUIRE_EQ(fs::path(KYUA_STOREDI [all...] |
/freebsd-current/contrib/kyua/utils/fs/ |
H A D | auto_cleaners.cpp | 34 #include "utils/fs/path.hpp" 46 /// The path to the directory being managed. 47 fs::path _directory; 55 impl(const path& directory_) : 92 fs::auto_directory::auto_directory(const path& directory_) : 113 /// \param path_template The template for the temporary path, which is a 124 const fs::path directory_ = fs::mkdtemp_public(path_template); 136 /// \return The path to the managed directory. 137 const fs::path& 158 /// The path t [all...] |
/freebsd-current/tools/test/stress2/testcases/creat/ |
H A D | creat.c | 40 static char path[128]; variable 53 path[0] = 0; 88 sprintf(path,"%s.%05d", getprogname(), getpid()); 89 if (mkdir(path, 0770) < 0) 90 err(1, "mkdir(%s), %s:%d", path, __FILE__, __LINE__); 92 if (chdir(path) == -1) 93 err(1, "chdir(%s), %s:%d", path, __FILE__, __LINE__); 102 if (path[0] != 0 && rmdir(path) == -1) { 103 warn("rmdir(%s), %s:%d", path, __FILE_ [all...] |
/freebsd-current/sbin/ipf/libipf/ |
H A D | save_file.c | 14 char *path; member in struct:file_opts_s 42 ctx->path = strdup(strings[0] + 6); 43 ctx->fp = fopen(ctx->path, "ab"); 45 ctx->path = strdup(strings[0] + 7); 46 ctx->fp = fopen(ctx->path, "a"); 67 if (strcmp(f1->path, f2->path)) 92 printf("%s", file->path); 105 if (file->path != NULL) 106 free(file->path); [all...] |
/freebsd-current/sys/sys/ |
H A D | kernel.h | 319 const char *path; member in struct:tunable_int 322 #define TUNABLE_INT(path, var) \ 324 (path), \ 331 #define TUNABLE_INT_FETCH(path, var) getenv_int((path), (var)) 338 const char *path; member in struct:tunable_long 341 #define TUNABLE_LONG(path, var) \ 343 (path), \ 350 #define TUNABLE_LONG_FETCH(path, var) getenv_long((path), (va 357 const char *path; member in struct:tunable_ulong 376 const char *path; member in struct:tunable_int64 395 const char *path; member in struct:tunable_uint64 414 const char *path; member in struct:tunable_quad 433 const char *path; member in struct:tunable_bool 449 const char *path; member in struct:tunable_str [all...] |
/freebsd-current/sys/fs/ext2fs/ |
H A D | ext2_extents.c | 184 ext4_ext_print_path(struct inode *ip, struct ext4_extent_path *path) argument 188 depth = path->ep_depth; 193 for (k = 0; k <= depth && error == 0; k++, path++) { 194 if (path->ep_index) { 195 error = ext4_ext_walk_index(ip, path->ep_index, 197 } else if (path->ep_ext) { 198 error = ext4_ext_walk_extent(ip, path->ep_ext); 495 ext4_ext_binsearch_index(struct ext4_extent_path *path, int blk) argument 500 eh = path->ep_header; 516 path 520 ext4_ext_binsearch_ext(struct ext4_extent_path *path, int blk) argument 548 ext4_ext_fill_path_bdata(struct ext4_extent_path *path, struct buf *bp, uint64_t blk) argument 563 ext4_ext_fill_path_buf(struct ext4_extent_path *path, struct buf *bp) argument 573 ext4_ext_drop_refs(struct ext4_extent_path *path) argument 589 ext4_ext_path_free(struct ext4_extent_path *path) argument 604 struct ext4_extent_path *path; local 737 ext4_ext_blkpref(struct inode *ip, struct ext4_extent_path *path, e4fs_daddr_t block) argument 791 ext4_ext_next_leaf_block(struct inode *ip, struct ext4_extent_path *path) argument 814 ext4_ext_dirty(struct inode *ip, struct ext4_extent_path *path) argument 844 ext4_ext_insert_index(struct inode *ip, struct ext4_extent_path *path, uint32_t lblk, e4fs_daddr_t blk) argument 924 ext4_ext_split(struct inode *ip, struct ext4_extent_path *path, struct ext4_extent *newext, int at) argument 1082 ext4_ext_grow_indepth(struct inode *ip, struct ext4_extent_path *path, struct ext4_extent *newext) argument 1143 ext4_ext_create_new_leaf(struct inode *ip, struct ext4_extent_path *path, struct ext4_extent *newext) argument 1197 ext4_ext_correct_indexes(struct inode *ip, struct ext4_extent_path *path) argument 1235 ext4_ext_insert_extent(struct inode *ip, struct ext4_extent_path *path, struct ext4_extent *newext) argument 1400 struct ext4_extent_path *path; local 1531 ext4_ext_rm_index(struct inode *ip, struct ext4_extent_path *path) argument 1548 ext4_ext_rm_leaf(struct inode *ip, struct ext4_extent_path *path, uint64_t start) argument 1674 ext4_ext_more_to_rm(struct ext4_extent_path *path) argument 1695 struct ext4_extent_path *path; local [all...] |
/freebsd-current/contrib/bmake/mk/ |
H A D | meta2deps.sh | 20 # # Meta data file "path" 28 # E "pid" "path" 29 # R "pid" "path" 31 # R "pid" "path" 40 # be prefixed to any "path" which is not absolute. 42 # If the "path" being read ends in '.srcrel' it is the content 46 # Any "path" which lies outside of the sandbox "SB" is generally 68 # DPDEPS_$path += $RELDIR 71 # with "$path" geting turned into reldir's, so that we can end 253 while read op pid path jun [all...] |
H A D | meta2deps.py | 76 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 78 Return an absolute path, resolving via cwd or last_dir if needed. 82 while path.endswith('/.'): 83 path = path[0:-2] 84 if len(path) > 0 and path[0] == '/': 85 if os.path.exists(path): 86 return path [all...] |
/freebsd-current/share/mk/ |
H A D | meta2deps.sh | 20 # # Meta data file "path" 28 # E "pid" "path" 29 # R "pid" "path" 31 # R "pid" "path" 40 # be prefixed to any "path" which is not absolute. 42 # If the "path" being read ends in '.srcrel' it is the content 46 # Any "path" which lies outside of the sandbox "SB" is generally 68 # DPDEPS_$path += $RELDIR 71 # with "$path" geting turned into reldir's, so that we can end 253 while read op pid path jun [all...] |
H A D | meta2deps.py | 76 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): 78 Return an absolute path, resolving via cwd or last_dir if needed. 82 while path.endswith('/.'): 83 path = path[0:-2] 84 if len(path) > 0 and path[0] == '/': 85 if os.path.exists(path): 86 return path [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libzutil/os/linux/ |
H A D | zutil_device_path_os.c | 41 * Append partition suffix to an otherwise fully qualified device path. 42 * This is used to generate the name the full path as its stored in 44 * of 'path' will be returned on error a negative value is returned. 47 zfs_append_partition(char *path, size_t max_len) argument 49 int len = strlen(path); 51 if ((strncmp(path, UDISK_ROOT, strlen(UDISK_ROOT)) == 0) || 52 (strncmp(path, ZVOL_ROOT, strlen(ZVOL_ROOT)) == 0)) { 56 (void) strcat(path, "-part1"); 62 if (isdigit(path[len-1])) { 63 (void) strcat(path, "p 84 zfs_strip_partition(const char *path) argument 120 zfs_strip_partition_path(const char *path) argument 152 zfs_strip_path(const char *path) argument 218 char *path = NULL; local 316 char *path = NULL; local 429 char *path = NULL; local 654 is_mpath_whole_disk(const char *path) argument 684 is_mpath_whole_disk(const char *path) argument [all...] |
/freebsd-current/contrib/kyua/examples/ |
H A D | syntax_test.cpp | 44 #include "utils/fs/path.hpp" 60 /// Gets the path to an example file. 64 /// \return A path to the desired example file. This can either be inside the 67 static fs::path 70 const fs::path examplesdir(utils::getenv_with_default( 129 fs::mkdir(fs::path("root"), 0755); 130 const fs::path source_path = example_file("Kyuafile.top"); 134 fs::mkdir(fs::path("root/subdir"), 0755); 137 fs::path("root/Kyuafile"), none, engine::default_config(), handle); 138 ATF_REQUIRE_EQ(fs::path("roo [all...] |
/freebsd-current/contrib/llvm-project/llvm/lib/Support/ |
H A D | IntervalMap.cpp | 20 assert(!path.empty() && "Can't replace missing root"); 21 path.front() = Entry(Root, Size, Offsets.first); 22 path.insert(path.begin() + 1, Entry(subtree(0), Offsets.second)); 32 while (l && path[l].offset == 0) 36 if (path[l].offset == 0) 40 NodeRef NR = path[l].subtree(path[l].offset - 1); 55 while (path[l].offset == 0) { 60 // end() may have created a height=0 path [all...] |
/freebsd-current/usr.sbin/trim/ |
H A D | trim.c | 49 static off_t getsize(const char *path); 50 static int opendev(const char *path, int flags); 51 static int trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose); 151 opendev(const char *path, int flags) argument 156 if ((fd = open(path, flags)) < 0) { 157 if (errno == ENOENT && path[0] != '/') { 158 if (asprintf(&tstr, "%s%s", _PATH_DEV, path) < 0) 166 err(EX_NOINPUT, "open failed: %s", path); 172 getsize(const char *path) argument 178 fd = opendev(path, O_RDONL 204 trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose) argument [all...] |
/freebsd-current/contrib/ofed/libibmad/ |
H A D | portid.c | 77 n += sprintf(buf + n, "DR path "); 83 int str2drpath(ib_dr_path_t * path, char *routepath, int drslid, int drdlid) argument 88 path->cnt = -1; 100 path->p[++path->cnt] = (uint8_t) atoi(str); 108 path->drdlid = drdlid ? drdlid : 0xffff; 109 path->drslid = drslid ? drslid : 0xffff; 111 return path->cnt; 114 char *drpath2str(ib_dr_path_t * path, char *dstr, size_t dstr_size) argument 118 path [all...] |
/freebsd-current/usr.bin/pathchk/ |
H A D | pathchk.c | 96 check(const char *path) argument 103 if ((pathd = strdup(path)) == NULL) 109 warnx("%s: empty pathname", path); 113 warnx("%s: contains a component starting with '-'", path); 133 warnx("%s: %s: component too long (limit %ld)", path, 139 warn("%s: %.*s", path, (int)(strlen(pathd) - 146 "character", path, p); 167 pathmax = pathconf(path, _PC_PATH_MAX); 172 if (pathmax != -1 && strlen(path) >= (size_t)pathmax) { 173 warnx("%s: path to 188 portable(const char *path) argument [all...] |
/freebsd-current/usr.sbin/pw/ |
H A D | rm_r.c | 59 rm_r(int rootfd, const char *path, uid_t uid) argument 68 fullpath = path; 69 if (*path == '/') 70 path++; 72 dirfd = openat(rootfd, path, O_DIRECTORY); 97 if (fstatat(rootfd, path, &st, AT_SYMLINK_NOFOLLOW) != 0) 100 if (unlinkat(rootfd, path, 0) == -1) 103 if (unlinkat(rootfd, path, AT_REMOVEDIR) == -1) { 121 try_dataset_remove(const char *path) argument 134 /* see if this is an absolute path (to [all...] |
/freebsd-current/sys/contrib/openzfs/cmd/zpool/os/linux/ |
H A D | zpool_vdev_os.c | 34 * disk=(path=..., devid=...) 35 * file=(path=...) 217 check_sector_size_database(char *path, int *sector_size) argument 240 if ((fd = open(path, O_RDONLY|O_DIRECT)) < 0) 265 check_slice(const char *path, blkid_cache cache, int force, boolean_t isspare) argument 271 value = blkid_get_tag_value(cache, "TYPE", path); 281 err = check_file(path, force, isspare); 288 "type '%s'\n"), path, value); 307 * not implemented. Instead only the device path as given is checked. 310 check_disk(const char *path, blkid_cach argument 389 check_device(const char *path, boolean_t force, boolean_t isspare, boolean_t iswholedisk) argument 426 zpool_sysfs_gets(char *path) argument 474 zpool_sysfs_puts(char *path, char *str) argument 531 char *path = NULL; local 595 char *path = zpool_power_sysfs_path(zhp, vdev); local [all...] |
/freebsd-current/contrib/lib9p/ |
H A D | rfuncs.c | 55 * the length of the basename of the supplied <path> equals or 64 r_basename(const char *path, char *buf, size_t bufsize) argument 70 * NULL or empty path means ".". This is perhaps overly 74 if (path == NULL || *path == '\0') { 80 * the top of the path and it's still a trailing 82 * path is just "/" (or "//", or "///", etc). 84 endp = path + strlen(path) - 1; 85 while (*endp == '/' && endp > path) 159 r_dirname(const char *path, char *buf, size_t bufsize) argument [all...] |
/freebsd-current/contrib/kyua/model/ |
H A D | test_program.hpp | 61 test_program(const std::string&, const utils::fs::path&, 62 const utils::fs::path&, const std::string&, 67 const utils::fs::path& root(void) const; 68 const utils::fs::path& relative_path(void) const; 69 const utils::fs::path absolute_path(void) const; 93 test_program_builder(const std::string&, const utils::fs::path&, 94 const utils::fs::path&, const std::string&);
|
/freebsd-current/contrib/netbsd-tests/fs/common/ |
H A D | fstest_zfs.c | 100 zfs_fstest_mount(const atf_tc_t *tc, void *buf, const char *path, int flags) argument 108 ZFSDEV, path); 112 while (*path == '/') 113 path++; 117 path, ZFSDEV); 127 zfs_fstest_unmount(const atf_tc_t *tc, const char *path, int flags) argument 130 unmount(path, flags);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_ftok.c | 41 static const char *path = "ftok"; variable 68 fd = open(path, O_RDONLY | O_CREAT, 0600); 72 ATF_REQUIRE(link(path, hlnk) == 0); 73 ATF_REQUIRE(symlink(path, slnk) == 0); 75 k1 = ftok(path, key); 89 ATF_REQUIRE(unlink(path) == 0); 96 (void)unlink(path);
|