/freebsd-current/lib/libc/stdio/ |
H A D | mktemp.c | 52 mkostempsat(int dfd, char *path, int slen, int oflags) argument 56 return (_gettemp(dfd, path, &fd, 0, slen, oflags) ? fd : -1); 60 mkostemps(char *path, int slen, int oflags) argument 64 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, oflags) ? fd : -1); 68 mkstemps(char *path, int slen) argument 72 return (_gettemp(AT_FDCWD, path, &fd, 0, slen, 0) ? fd : -1); 76 mkostemp(char *path, int oflags) argument 80 return (_gettemp(AT_FDCWD, path, &fd, 0, 0, oflags) ? fd : -1); 84 mkstemp(char *path) argument 88 return (_gettemp(AT_FDCWD, path, 92 mkdtemp(char *path) argument 98 _mktemp(char *path) argument 107 mktemp(char *path) argument 113 _gettemp(int dfd, char *path, int *doopen, int domkdir, int slen, int oflags) argument [all...] |
/freebsd-current/crypto/openssl/fuzz/ |
H A D | helper.py | 21 THIS_DIR = os.path.abspath(os.path.dirname(__file__)) 22 CORPORA_DIR = os.path.abspath(os.path.join(THIS_DIR, "corpora")) 24 FUZZER_DIR = os.path.abspath(os.path.join(CORPORA_DIR, FUZZER)) 25 if not os.path.isdir(FUZZER_DIR): 31 dd = os.path.abspath(os.path.join(CORPORA_DIR, d)) 32 if not os.path [all...] |
/freebsd-current/crypto/openssh/regress/unittests/misc/ |
H A D | test_parse.c | 29 char *user, *host, *path; local 32 ASSERT_INT_EQ(parse_user_host_path("someuser@some.host:some/path", 33 &user, &host, &path), 0); 36 ASSERT_STRING_EQ(path, "some/path"); 37 free(user); free(host); free(path); 41 ASSERT_INT_EQ(parse_user_host_path("someuser@1.22.33.144:some/path", 42 &user, &host, &path), 0); 45 ASSERT_STRING_EQ(path, "some/path"); [all...] |
/freebsd-current/crypto/openssh/openbsd-compat/ |
H A D | mktemp.c | 70 mktemp_internal(char *path, int slen, int mode) argument 79 len = strlen(path); 84 ep = path + len - slen; 87 for (start = ep; start > path && start[-1] == 'X'; start--) { 101 if (lstat(path, &sb) != 0) 105 fd = open(path, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR); 110 if (mkdir(path, S_IRUSR|S_IWUSR|S_IXUSR) == 0) 126 _mktemp(char *path) 128 if (mktemp_internal(path, 0, MKTEMP_NAME) == -1) 130 return(path); 144 mkstemp(char *path) argument 150 mkstemps(char *path, int slen) argument 156 mkdtemp(char *path) argument [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | dosmode_readonly_write.c | 48 const char *path; local 55 path = argv[1]; 56 fd = open(path, O_CREAT|O_RDWR, 0777); 58 err(EXIT_FAILURE, "%s: open failed", path); 62 err(EXIT_FAILURE, "%s: ZFS_IOC_SETDOSFLAGS failed", path); 64 if (chflags(path, UF_READONLY) == -1) 65 err(EXIT_FAILURE, "%s: chflags failed", path); 68 err(EXIT_FAILURE, "%s: write failed", path); 70 err(EXIT_FAILURE, "%s: close failed", path);
|
/freebsd-current/contrib/llvm-project/lldb/source/API/ |
H A D | SBReproducer.cpp | 65 const char *SBReproducer::Capture(const char *path) { argument 66 LLDB_INSTRUMENT_VA(path) 70 const char *SBReproducer::PassiveReplay(const char *path) { argument 71 LLDB_INSTRUMENT_VA(path) 75 const char *SBReproducer::Replay(const char *path) { argument 76 LLDB_INSTRUMENT_VA(path) 80 const char *SBReproducer::Replay(const char *path, bool skip_version_check) { argument 81 LLDB_INSTRUMENT_VA(path, skip_version_check) 85 const char *SBReproducer::Replay(const char *path, argument 87 LLDB_INSTRUMENT_VA(path, option 91 Finalize(const char *path) argument 111 SetWorkingDirectory(const char *path) argument [all...] |
/freebsd-current/contrib/blocklist/port/ |
H A D | pidfile.c | 86 /* Given a new pidfile name in 'path', deletes any previously-created pidfile 93 cleanup_old_pidfile(const char* path) argument 96 if (strcmp(pidfile_path, path) != 0) { 114 * path to the pidfile; NULL on failure. */ 118 char *path; local 124 if (asprintf(&path, "%s%s.pid", _PATH_VARRUN, bname) == -1) 126 return path; 136 create_pidfile(const char* path) argument 143 if (cleanup_old_pidfile(path) == 0) 146 pidfile_path = strdup(path); 165 pidfile(const char *path) argument [all...] |
/freebsd-current/contrib/kyua/utils/ |
H A D | stacktrace.hpp | 49 utils::optional< utils::fs::path > find_gdb(void); 51 utils::optional< utils::fs::path > find_core(const utils::fs::path&, 53 const utils::fs::path&); 57 void dump_stacktrace(const utils::fs::path&, 61 void dump_stacktrace_if_available(const utils::fs::path&,
|
/freebsd-current/contrib/bmake/unit-tests/ |
H A D | dir-expand-path.exp | 1 dir-expand-path.dir.1/file1.src 2 dir-expand-path.dir.1/file2.src 3 dir-expand-path.dir.2/file3.src
|
/freebsd-current/contrib/mandoc/ |
H A D | compat_mkdtemp.c | 29 mkdtemp(char *path) argument 34 start = strchr(path, '\0'); 35 while (start > path && start[-1] == 'X') 39 if (mktemp(path) == NULL) 41 if (mkdir(path, S_IRUSR | S_IWUSR | S_IXUSR) == 0) 42 return path;
|
/freebsd-current/usr.bin/patch/ |
H A D | mkpath.c | 45 * path - path 48 mkpath(char *path) argument 54 slash = path; 63 if (stat(path, &sb)) { 64 if (errno != ENOENT || (mkdir(path, 0777) && 66 warn("%s", path); 70 warnx("%s: %s", path, strerror(ENOTDIR));
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/os/freebsd/ |
H A D | getmntany.c | 42 getextmntent(const char *path, struct extmnttab *entry, struct stat64 *statbuf) argument 46 if (strlen(path) >= MAXPATHLEN) { 51 if (stat64(path, statbuf) != 0) { 53 path, zfs_strerror(errno)); 57 if (statfs(path, &sfs) != 0) { 58 (void) fprintf(stderr, "%s: %s\n", path,
|
/freebsd-current/sys/cam/ |
H A D | cam_xpt.h | 47 * Definition of a CAM path. Paths are created from bus, target, and lun ids 66 struct cam_path *path, void *args); 79 struct cam_path *path, 83 struct cam_path *path, 96 struct cam_path *path); 97 void xpt_free_path(struct cam_path *path); 98 void xpt_path_counts(struct cam_path *path, uint32_t *bus_ref, 103 int xpt_path_comp_dev(struct cam_path *path, 105 char * xpt_path_string(struct cam_path *path, char *str, 107 void xpt_path_sbuf(struct cam_path *path, struc 152 xpt_path_inq(struct ccb_pathinq *cpi, struct cam_path *path) argument [all...] |
/freebsd-current/sbin/pfctl/ |
H A D | pf_ruleset.c | 93 int c = strcmp(a->path, b->path); 144 pf_find_anchor(const char *path) argument 151 strlcpy(key->path, path, sizeof(key->path)); 158 pf_find_ruleset(const char *path) argument 162 while (*path == '/') 163 path++; 164 if (!*path) 174 pf_find_or_create_ruleset(const char *path) argument 322 _pf_find_eth_anchor(struct pfctl_eth_anchor *anchor, const char *path) argument 344 pf_find_eth_anchor(const char *path) argument 350 pf_find_eth_ruleset(const char *path) argument 366 pf_find_or_create_eth_ruleset(const char *path) argument 438 char *p, *path; local 494 char *p, *path; local [all...] |
/freebsd-current/contrib/kyua/utils/process/ |
H A D | child.hpp | 83 static std::auto_ptr< child > fork_files_aux(const fs::path&, 84 const fs::path&); 96 static std::auto_ptr< child > fork_files(Hook, const fs::path&, 97 const fs::path&); 100 const fs::path&, const args_vector&); 102 const fs::path&, const args_vector&, const fs::path&, const fs::path&);
|
/freebsd-current/contrib/kyua/utils/fs/ |
H A D | path.cpp | 29 #include "utils/fs/path.hpp" 41 /// Normalizes an input string to a valid path. 43 /// A normalized path cannot have empty components; i.e. there can be at most 48 /// \return The normalized string, representing a path. 50 /// \throw utils::fs::invalid_path_error If the path is empty. 84 /// Creates a new path object from a textual representation of a path. 86 /// \param text A valid representation of a path in textual form. 89 /// valid path. 90 fs::path function in class:fs::path [all...] |
H A D | auto_cleaners.hpp | 56 explicit auto_directory(const path&); 61 const path& directory(void) const; 76 explicit auto_file(const path&); 81 const path& file(void) const;
|
/freebsd-current/stand/libsa/ |
H A D | bootparam.h | 4 int bp_getfile(int sock, char *key, struct in_addr *addrp, char *path);
|
/freebsd-current/usr.bin/bmake/tests/shell/builtin/ |
H A D | Makefile.test | 9 .SHELL: path="${.CURDIR}/sh"
|
/freebsd-current/usr.bin/env/ |
H A D | envopts.h | 33 void search_paths(char *path, char **argv);
|
/freebsd-current/lib/libc/gen/ |
H A D | exect.c | 33 exect(const char *path, char *const argv[], char *const envp[]) argument 41 return (execve(path, argv, envp));
|
H A D | libc_dlopen.c | 40 libc_dlopen(const char *path, int mode) argument 47 return (dlopen(path, mode));
|
/freebsd-current/contrib/bmake/ |
H A D | realpath.c | 60 * char *realpath(const char *path, char *resolved); 62 * Find the real name of path, by removing all ".", ".." and symlink 64 * in which case the path which caused trouble is left in (resolved). 67 realpath(const char * __restrict path, char * __restrict resolved) argument 77 if (path == NULL) { 91 * Build real path one by one with paying an attention to ., 101 if (*path == '\0') { 107 /* If relative path, start from current working directory. */ 108 if (*path != '/') { 122 while (*path [all...] |
/freebsd-current/contrib/tcsh/ |
H A D | dotlock.c | 49 char path[MAXPATHLEN], hostname[MAXHOSTNAMELEN + 1]; local 72 (void)snprintf(path, sizeof(path), "%.*s.%s.%lx", 79 fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_SYNC, 0); 91 * We link the path to the name 93 if (link(path, fname) == -1) 100 if (stat(path, &st) == -1) 103 (void)unlink(path); 117 (void)unlink(path); 129 char path[MAXPATHLE local 175 char path[MAXPATHLEN]; local [all...] |
/freebsd-current/crypto/heimdal/lib/roken/ |
H A D | chown.c | 39 chown(const char *path, uid_t owner, gid_t group) argument
|