/freebsd-current/crypto/openssh/regress/ |
H A D | check-perm.c | 35 safely_chroot(const char *path, uid_t uid) argument 41 if (*path != '/') 42 fatal("chroot path does not begin at root"); 43 if (strlen(path) >= sizeof(component)) 44 fatal("chroot path too long"); 47 * Descend the path, checking that each component is a 50 for (cp = path; cp != NULL;) { 52 strlcpy(component, path, sizeof(component)); 55 memcpy(component, path, cp - path); 161 const char *path = "."; local [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | nfsdepth.sh | 100 mkDir(char *path, int level) { 106 r = mkdir(path, 0770); 108 warn("mkdir(%s) l%d", path, __LINE__); 114 (void)rmdir(path); 118 warn("mkdir(%s), pid %d, l%d", path, getpid(), __LINE__); 123 r = chdir (path); 125 warn("chdir(%s) .%d", path, __LINE__); 132 err(1, "chdir(%s), pid %d, l%d", path, getpid(), __LINE__); 142 rmDir(char *path, int level) { 157 warn("chdir(%s) l%d", path, __LINE_ [all...] |
H A D | mkfifo6.sh | 72 static char *path; 85 if((fd = open(path, O_RDONLY)) == -1) 88 path); 90 warn("open(%s) ro", path); 126 if ((fd = open(path, O_WRONLY)) == -1) 129 path); 131 warn("open(%s) wr", path); 165 path = argv[1]; 168 unlink(path); 169 if (mkfifo(path, 064 [all...] |
/freebsd-current/sbin/mksnap_ffs/ |
H A D | mksnap_ffs.c | 66 isdir(const char *path, struct stat *stbufp) argument 69 if (stat(path, stbufp) < 0) 77 issamefs(const char *path, struct statfs *stfsp) argument 82 if (isdir(path, &stbuf) != 1) 84 if (statfs(path, &stfsbuf) < 0) 94 char errmsg[255], path[PATH_MAX]; local 121 strlcpy(path, ".", PATH_MAX); 123 strlcpy(path, "/", PATH_MAX); 125 strlcpy(path, snapname, cp - snapname + 1); 127 if (statfs(path, [all...] |
/freebsd-current/sys/contrib/libsodium/packaging/dotnet-core/ |
H A D | prepare.py | 3 import os.path namespace 51 self.builddir = os.path.join(BUILDDIR, libsodium_version) 52 self.tempdir = os.path.join(TEMPDIR, libsodium_version) 53 self.projfile = os.path.join(self.builddir, '{0}.{1}.pkgproj'.format(PACKAGE, package_version)) 54 self.propsfile = os.path.join(self.builddir, '{0}.props'.format(PACKAGE)) 55 self.pkgfile = os.path.join(BUILDDIR, '{0}.{1}.nupkg'.format(PACKAGE, package_version)) 61 self.cachefile = os.path.join(CACHEDIR, re.sub(r'[^A-Za-z0-9.]', '-', self.url)) 62 self.packfile = os.path.join(version.builddir, 'runtimes', rid, 'native', LIBRARY + '.dll') 64 self.tempdir = os.path.join(version.tempdir, rid) 65 self.tempfile = os.path [all...] |
/freebsd-current/contrib/bmake/unit-tests/ |
H A D | modmisc.mk | 7 path= :/bin:/tmp::/:.:/no/such/dir:. macro 8 # strip cwd from path. 24 @echo "path='${path}'" 25 @echo "path='${path:${MOD_NODOT}}'" 26 @echo "path='${path:S,home,homes,:${MOD_NODOT}}'" 27 @echo "path=${path [all...] |
/freebsd-current/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_fopen.c | 43 static const char *path = "fopen"; variable 61 fd = open(path, O_RDWR | O_CREAT, 0600); 70 ATF_REQUIRE(unlink(path) == 0); 75 (void)unlink(path); 88 fd = open(path, O_RDONLY | O_CREAT, 0600); 105 (void)unlink(path); 110 (void)unlink(path); 129 fd = open(path, O_RDWR | O_CREAT, 0600); 140 ATF_REQUIRE(unlink(path) == 0); 145 (void)unlink(path); [all...] |
/freebsd-current/usr.bin/stat/tests/ |
H A D | stat_test.sh | 70 for path in $paths; do 71 atf_check -o save:$ls_out ls -ldT $path 73 atf_check -o save:$stat_out stat -l $path 147 for path in $paths; do 150 eval $(stat -s $path) 183 local path=$1; shift 185 local atime_s=$(x_output_date -f '%Sa' $path) 186 local btime_s=$(x_output_date -f '%SB' $path) 187 local ctime_s=$(x_output_date -f '%Sc' $path) 188 local devid=$(stat -f '%Hd,%Ld' $path) [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libzfs/os/linux/ |
H A D | libzfs_pool_os.c | 60 zpool_relabel_disk(libzfs_handle_t *hdl, const char *path, const char *msg) argument 64 if ((fd = open(path, O_RDWR|O_DIRECT|O_CLOEXEC)) < 0) { 66 "relabel '%s': unable to open device: %d"), path, errno); 84 "relabel '%s': unable to read disk capacity"), path); 99 const char *path; local 104 if (nvlist_lookup_string(config, ZPOOL_CONFIG_PATH, &path) != 0) 108 strrchr(path, '/')); 156 zpool_label_disk_check(char *path) argument 161 if ((fd = open(path, O_RDONLY|O_DIRECT|O_CLOEXEC)) < 0) 208 * stripped of any leading /dev path 213 char path[MAXPATHLEN]; local [all...] |
/freebsd-current/contrib/kyua/cli/ |
H A D | main.hpp | 48 utils::fs::path default_log_name(void);
|
/freebsd-current/contrib/kyua/engine/ |
H A D | requirements.hpp | 45 const std::string&, const utils::fs::path&);
|
/freebsd-current/contrib/kyua/utils/fs/ |
H A D | lua_module.hpp | 41 #include "utils/fs/path.hpp" 48 void open_fs(lutok::state&, const fs::path&);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/stdlib/ |
H A D | t_system.c | 40 static const char *path = "system"; variable 60 fd = open(path, O_RDONLY); 69 ATF_REQUIRE(unlink(path) == 0); 74 (void)unlink(path);
|
/freebsd-current/tools/test/stress2/tools/ |
H A D | fstool.c | 49 mkDir2(char *path) { argument 54 if (mkdir(path, 0700) == -1) 55 err(1, "mkdir(%s)", path); 56 if (chdir(path) == -1) 57 err(1, "chdir(%s) @ %d", path, __LINE__); 96 char path[MAXPATHLEN + 1]; local 99 sprintf(path,"fstool.%06d.%d", pid, i); 100 mkDir2(path); 122 rmDir2(char *path) { argument 126 if (chdir(path) 151 char path[MAXPATHLEN + 1]; local [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libshare/ |
H A D | smb.h | 40 char path[PATH_MAX]; /* Share path */ member in struct:smb_share_s
|
/freebsd-current/lib/libc/posix1e/ |
H A D | mac_get.c | 52 mac_get_file(const char *path, struct mac *label) argument 55 return (__mac_get_file(path, label)); 59 mac_get_link(const char *path, struct mac *label) argument 62 return (__mac_get_link(path, label));
|
/freebsd-current/sbin/nvmecontrol/ |
H A D | nsid.c | 66 char *path; local 74 get_nsid(fd, &path, &nsid); 76 printf("%s\t%u\n", path, nsid); 77 free(path);
|
H A D | reset.c | 57 char *path; local 63 get_nsid(fd, &path, &nsid); 66 open_dev(path, &fd, 1, 1); 68 free(path);
|
/freebsd-current/lib/libc/sys/ |
H A D | shm_open.c | 46 shm_open(const char *path, int flags, mode_t mode) argument 48 return (__sys_shm_open2(path, flags | O_CLOEXEC, mode, 0, NULL)); 52 shm_create_largepage(const char *path, int flags, int psind, int alloc_policy, argument 58 fd = __sys_shm_open2(path, flags | O_CREAT, mode, SHM_LARGEPAGE, NULL);
|
/freebsd-current/contrib/llvm-project/lld/ELF/ |
H A D | Driver.h | 36 std::optional<std::string> findFromSearchPaths(StringRef path); 37 std::optional<std::string> searchScript(StringRef path); 38 std::optional<std::string> searchLibraryBaseName(StringRef path); 39 std::optional<std::string> searchLibrary(StringRef path);
|
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_unlink.c | 43 static char path[] = "unlink"; variable 59 fd = open(path, O_RDWR | O_CREAT, 0666); 63 ATF_REQUIRE(unlink(path) == 0); 66 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1); 72 (void)unlink(path); 103 (void)unlink(path); 115 ATF_REQUIRE(mkfifo(path, 0666) == 0); 116 ATF_REQUIRE(unlink(path) == 0); 119 ATF_REQUIRE_ERRNO(ENOENT, open(path, O_RDONLY) == -1); 124 (void)unlink(path); [all...] |
/freebsd-current/contrib/netbsd-tests/fs/umapfs/ |
H A D | t_basic.c | 32 xtouch(const char *path) argument 36 fd = rump_sys_open(path, O_CREAT | O_RDWR, 0777); 38 atf_tc_fail_errno("create %s", path); 43 xchown(const char *path, uid_t uid, gid_t gid) argument 46 if (rump_sys_chown(path, uid, gid) == -1) 47 atf_tc_fail_errno("chown %s failed", path); 51 testuidgid(const char *path, uid_t uid, gid_t gid) argument 55 if (rump_sys_stat(path, &sb) == -1) 56 atf_tc_fail_errno("stat %s", path); 60 path, ui [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libzutil/ |
H A D | zutil_device_path.c | 36 zfs_basename(const char *path) argument 38 const char *bn = strrchr(path, '/'); 39 return (bn ? bn + 1 : path); 44 zfs_dirnamelen(const char *path) argument 46 const char *end = strrchr(path, '/'); 47 return (end ? end - path : -1); 53 * one is found, store its fully qualified path in the 'path' buffer passed 57 zfs_resolve_shortname(const char *name, char *path, size_t len) argument 66 (void) snprintf(path, le [all...] |
/freebsd-current/contrib/kyua/store/ |
H A D | read_backend.hpp | 49 utils::sqlite::database open_and_setup(const utils::fs::path&, const int); 67 static read_backend open_ro(const utils::fs::path&);
|
/freebsd-current/contrib/kyua/model/ |
H A D | context_test.cpp | 37 #include "utils/fs/path.hpp" 48 const model::context context(fs::path("/foo/bar"), env); 49 ATF_REQUIRE_EQ(fs::path("/foo/bar"), context.cwd()); 59 const model::context context1(fs::path("/foo/bar"), env); 60 const model::context context2(fs::path("/foo/bar"), env); 61 const model::context context3(fs::path("/foo/baz"), env); 63 const model::context context4(fs::path("/foo/bar"), env); 77 const model::context context(fs::path("/foo/bar"), env); 91 const model::context context(fs::path("/foo/bar"), env);
|