/freebsd-11-stable/lib/libc/gen/ |
H A D | ftok.c | 36 ftok(const char *path, int id) argument 40 if (stat(path, &st) < 0)
|
H A D | libc_dlopen.c | 44 libc_dlopen(const char *path, int mode) argument 51 return (dlopen(path, mode));
|
/freebsd-11-stable/sbin/hastd/ |
H A D | hooks.h | 47 void hook_exec(const char *path, ...); 48 void hook_execv(const char *path, va_list ap);
|
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | scaffold.h | 15 extern int check_path(char *path, struct stat *st);
|
/freebsd-11-stable/contrib/llvm-project/lld/Common/ |
H A D | Reproduce.cpp | 19 // Makes a given pathname an absolute path first, and then remove 22 // Returned string is a forward slash separated path even on Windows to avoid 23 // a mess with backslash-as-escape and backslash-as-path-separator. 24 std::string lld::relativeToRoot(StringRef path) { argument 25 SmallString<128> abs = path; 27 return path; 28 path::remove_dots(abs, /*remove_dot_dot=*/true); 34 StringRef root = path::root_name(abs); 40 path::append(res, path [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Darwin/ |
H A D | CFBundle.h | 21 CFBundle(const char *path = NULL); 25 bool SetPath(const char *path);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_realpath.c | 47 const char *path; member in struct:__anon3592 83 ptr = realpath(paths[i].path, buf); 89 atf_tc_fail("realpath failed for '%s'", paths[i].path); 100 atf_tc_set_md_var(tc, "descr", "Test huge path with realpath(3)"); 123 char path[MAXPATHLEN] = { 0 }; local 129 ATF_REQUIRE_MSG(getcwd(path, sizeof(path)) != NULL, 130 "getcwd(path) failed: %s", strerror(errno)); 134 (void)getcwd(path, sizeof(path)); [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mknod.c | 45 static char path[] = "node"; variable 68 ATF_REQUIRE_ERRNO(EINVAL, mknod(path, S_IFCHR, -1) == -1); 83 (void)unlink(path); 108 ATF_REQUIRE(mknod(path, S_IFCHR, 0) == 0); 111 ATF_REQUIRE_ERRNO(EEXIST, mknod(path, S_IFCHR, 0) == -1); 113 ATF_REQUIRE(unlink(path) == 0); 118 (void)unlink(path); 132 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFCHR, 0) == -1); 135 ATF_REQUIRE_ERRNO(EPERM, mknod(path, S_IFBLK, 0) == -1); 140 (void)unlink(path); [all...] |
/freebsd-11-stable/bin/realpath/ |
H A D | realpath.c | 47 const char *path; local 63 path = *argv != NULL ? *argv++ : "."; 66 if ((p = realpath(path, buf)) == NULL) { 68 warn("%s", path); 72 } while ((path = *argv++) != NULL); 80 (void)fprintf(stderr, "usage: realpath [-q] [path ...]\n");
|
/freebsd-11-stable/lib/libc/stdlib/ |
H A D | tsearch_path.h | 36 * Bookkeeping for storing a path in a balanced binary search tree from 42 * two uintptr_t's provide sufficient space to store the path from the 45 struct path { struct 50 /* Initializes the path structure with a zero-length path. */ 52 path_init(struct path *p) 60 /* Pushes a step to the left to the end of the path. */ 62 path_taking_left(struct path *p) 70 /* Pushes a step to the right to the end of the path. */ 72 path_taking_right(struct path * [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | fixprogs | 42 ($cmd, $path, $est) = /^\"([^\"]+)\"\s+([\w\/_-]+)\s+([\d\.\-]+)/o; 50 exec $path @args; 57 $path = "undef"; 62 print "Evaluating '$path $mostargs'\n"; 63 @ent = qx{$path $mostargs | $entcmd -b -t}; 69 print OUT "\"$cmd\" $path $est\n";
|
/freebsd-11-stable/usr.sbin/ngctl/ |
H A D | status.c | 53 "status <path>", 54 "Get human readable status information from the node at <path>", 65 char *path; local 71 path = av[1]; 78 if (NgSendMsg(csock, path, NGM_GENERIC_COOKIE, 96 printf("No status available for \"%s\"\n", path); 98 printf("Status for \"%s\":\n%s\n", path, status);
|
/freebsd-11-stable/contrib/ntp/sntp/tests/ |
H A D | keyFile.c | 73 const char * path = CreatePath("key-test-empty", INPUT_DIR); local 75 TEST_ASSERT_NOT_NULL(path); 76 TEST_ASSERT_EQUAL(0, auth_init(path, &keys)); 79 DestroyPath(path); 88 const char * path = CreatePath("key-test-ascii", INPUT_DIR); local 90 TEST_ASSERT_NOT_NULL(path); 91 TEST_ASSERT_EQUAL(2, auth_init(path, &keys)); 94 DestroyPath(path); 112 const char * path = CreatePath("key-test-hex", INPUT_DIR); local 116 TEST_ASSERT_NOT_NULL(path); 147 const char * path = CreatePath("key-test-comments", INPUT_DIR); local 173 const char * path = CreatePath("key-test-invalid-hex", INPUT_DIR); local [all...] |
/freebsd-11-stable/usr.sbin/ckdist/ |
H A D | ckdist.c | 68 #define isstdin(path) ((path)[0] == '-' && !(path)[1]) 79 static int ckdist(const char *path, int type); 80 static int chkmd5(FILE * fp, const char *path); 81 static int chkinf(FILE * fp, const char *path); 82 static int report(const char *path, const char *name, int error); 83 static const char *distname(const char *path, const char *name, 85 static const char *stripath(const char *path); 86 static int distfile(const char *path); 186 ckdist(const char *path, int type) argument 223 chkmd5(FILE * fp, const char *path) argument 268 chkinf(FILE * fp, const char *path) argument 323 report(const char *path, const char *name, int error) argument 356 distname(const char *path, const char *name, const char *ext) argument 399 stripath(const char *path) argument 408 distfile(const char *path) argument 433 fail(const char *path, const char *msg) argument [all...] |
/freebsd-11-stable/gnu/usr.bin/gdb/kgdb/ |
H A D | kld.c | 65 kld_ok (char *path) argument 69 if (stat(path, &sb) == 0 && S_ISREG(sb.st_mode)) 87 check_kld_path (char *path, size_t path_size) argument 92 ep = path + strlen(path); 95 if (strlcat(path, *suffix, path_size) < path_size) { 96 if (kld_ok(path)) 100 /* Restore original path to remove suffix. */ 108 * Try to find the path for a kld by looking in the kernel's directory and 109 * in the various paths in the module path 112 find_kld_path(char *filename, char *path, size_t path_size) argument 221 load_kld(char *path, CORE_ADDR base_addr, int from_tty) argument 274 char path[PATH_MAX]; local 342 char *path; local 443 char path[PATH_MAX]; local [all...] |
H A D | main.c | 94 char path[PATH_MAX]; local 106 snprintf(path, sizeof(path), "%s/kernel.%d", crashdir, nr); 107 if (stat(path, &st) == 0) { 109 kernel = strdup(path); 113 snprintf(path, sizeof(path), "%s/kernel.%d/kernel", 115 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { 116 kernel = strdup(path); 129 snprintf(path, sizeo 273 char path[PATH_MAX]; local 301 char path[PATH_MAX]; local [all...] |
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | save_file.c | 14 char *path; member in struct:file_opts_s 43 ctx->path = strdup(strings[0] + 6); 44 ctx->fp = fopen(ctx->path, "ab"); 46 ctx->path = strdup(strings[0] + 7); 47 ctx->fp = fopen(ctx->path, "a"); 69 if (strcmp(f1->path, f2->path)) 96 printf("%s", file->path); 110 if (file->path != NULL) 111 free(file->path); [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_ruleset.c | 110 int c = strcmp(a->path, b->path); 160 pf_find_anchor(const char *path) argument 167 strlcpy(key->path, path, sizeof(key->path)); 174 pf_find_ruleset(const char *path) argument 178 while (*path == '/') 179 path++; 180 if (!*path) 190 pf_find_or_create_ruleset(const char *path) argument 313 char *p, *path; local [all...] |
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_util/ |
H A D | fs-util.c | 53 is_canonical_abspath(const char *path, size_t path_len) argument 58 if (path[0] != '/') 64 if (path[path_len - 1] == '/') 68 end = path + path_len - 1; 69 for (; path != end; ++path) 70 if ((path[0] == '/') && (path[1] == '/')) 77 svn_fs__is_canonical_abspath(const char *path) argument 80 if (! path) 92 svn_fs__canonicalize_abspath(const char *path, apr_pool_t *pool) argument 171 svn_fs__next_entry_name(const char **next_p, const char *path, apr_pool_t *pool) argument 241 const char *path = apr_hash_this_key(hi); local [all...] |
/freebsd-11-stable/usr.sbin/trim/ |
H A D | trim.c | 51 static off_t getsize(const char *path); 52 static int opendev(const char *path, int flags); 53 static int trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose); 153 opendev(const char *path, int flags) argument 158 if ((fd = open(path, flags)) < 0) { 159 if (errno == ENOENT && path[0] != '/') { 160 if (asprintf(&tstr, "%s%s", _PATH_DEV, path) < 0) 168 err(EX_NOINPUT, "open failed: %s", path); 174 getsize(const char *path) argument 180 fd = opendev(path, O_RDONL 206 trim(const char *path, off_t offset, off_t length, bool dryrun, bool verbose) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/ |
H A D | IntervalMap.cpp | 19 assert(!path.empty() && "Can't replace missing root"); 20 path.front() = Entry(Root, Size, Offsets.first); 21 path.insert(path.begin() + 1, Entry(subtree(0), Offsets.second)); 31 while (l && path[l].offset == 0) 35 if (path[l].offset == 0) 39 NodeRef NR = path[l].subtree(path[l].offset - 1); 54 while (path[l].offset == 0) { 59 // end() may have created a height=0 path [all...] |
H A D | Path.cpp | 36 using llvm::sys::path::is_separator; 37 using llvm::sys::path::Style; 59 StringRef find_first_component(StringRef path, Style style) { argument 66 if (path.empty()) 67 return path; 71 if (path.size() >= 2 && 72 std::isalpha(static_cast<unsigned char>(path[0])) && path[1] == ':') 73 return path.substr(0, 2); 77 if ((path 137 parent_path_end(StringRef path, Style style) argument 222 namespace path { namespace in namespace:llvm::sys 224 begin(StringRef path, Style style) argument 233 end(StringRef path) argument [all...] |
/freebsd-11-stable/gnu/usr.bin/grep/ |
H A D | savedir.c | 76 char *path; variable 88 path = calloc (dirlen + 1 + filelen + 1, sizeof (*path)); 91 strcpy (path, dir); 92 slash = (path[dirlen] != '/'); 93 path[dirlen] = '/'; 94 strcpy (path + dirlen + slash , file); 95 status = isdir (path); 144 && !excluded_filename (included_patterns, path, 0)) 147 && excluded_filename (excluded_patterns, path, [all...] |
/freebsd-11-stable/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-11-stable/usr.bin/pathchk/ |
H A D | pathchk.c | 99 check(const char *path) argument 106 if ((pathd = strdup(path)) == NULL) 112 warnx("%s: empty pathname", path); 116 warnx("%s: contains a component starting with '-'", path); 136 warnx("%s: %s: component too long (limit %ld)", path, 142 warn("%s: %.*s", path, (int)(strlen(pathd) - 149 "character", path, p); 170 pathmax = pathconf(path, _PC_PATH_MAX); 175 if (pathmax != -1 && strlen(path) >= (size_t)pathmax) { 176 warnx("%s: path to 191 portable(const char *path) argument [all...] |