| /dflybsd-src/contrib/gcc-8.0/libstdc++-v3/include/bits/ |
| H A D | fs_ops.h | 48 path absolute(const path& __p); in _GLIBCXX_VISIBILITY() 49 path absolute(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY() 51 path canonical(const path& __p); in _GLIBCXX_VISIBILITY() 52 path canonical(const path& __p, error_code& __ec); in _GLIBCXX_VISIBILITY() 55 copy(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY() 59 copy(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY() 62 void copy(const path& __from, const path& __to, copy_options __options); in _GLIBCXX_VISIBILITY() 63 void copy(const path& __from, const path& __to, copy_options __options, in _GLIBCXX_VISIBILITY() 67 copy_file(const path& __from, const path& __to) in _GLIBCXX_VISIBILITY() 71 copy_file(const path& __from, const path& __to, error_code& __ec) in _GLIBCXX_VISIBILITY() [all …]
|
| H A D | fs_path.h | 66 class path in _GLIBCXX_VISIBILITY() 109 std::enable_if<__and_<__not_<is_same<remove_cv_t<_Tp1>, path>>, in _GLIBCXX_VISIBILITY() 112 path>::type; in _GLIBCXX_VISIBILITY() 164 path() noexcept { } in _GLIBCXX_VISIBILITY() 166 path(const path& __p) = default; in _GLIBCXX_VISIBILITY() 168 path(path&& __p) noexcept in _GLIBCXX_VISIBILITY() 175 path(string_type&& __source, format = auto_format) in _GLIBCXX_VISIBILITY() 181 path(_Source const& __source, format = auto_format) in _GLIBCXX_VISIBILITY() 188 path(_InputIterator __first, _InputIterator __last, format = auto_format) in _GLIBCXX_VISIBILITY() 195 path(_Source const& __source, const locale& __loc, format = auto_format) in _GLIBCXX_VISIBILITY() [all …]
|
| /dflybsd-src/sys/sys/ |
| H A D | kernel.h | 328 const char *path; member 331 #define TUNABLE_INT(path, var) \ argument 332 _TUNABLE_INT((path), (var), __LINE__) 333 #define _TUNABLE_INT(path, var, line) \ argument 334 __TUNABLE_INT((path), (var), line) 336 #define __TUNABLE_INT(path, var, line) \ argument 338 path, \ 345 #define TUNABLE_INT_FETCH(path, var) kgetenv_int((path), (var)) argument 348 #define TUNABLE_INT_DECL(path, defval, var) \ argument 352 TUNABLE_INT_FETCH((path), &(var)); \ [all …]
|
| /dflybsd-src/sbin/newfs/ |
| H A D | fscopy.c | 56 fsmknode(const char *path) in fsmknode() argument 58 int pathlen = strlen(path); in fsmknode() 66 bcopy(path, node->fs_Name, pathlen + 1); in fsmknode() 67 if (lstat(path, &node->fs_St) < 0) { in fsmknode() 68 fprintf(stderr, "Unable to lstat(\"%s\")\n", path); in fsmknode() 94 char *path; in fshardpath() local 111 asprintf(&path, "%s", hlink->fs_Name); in fshardpath() 113 tmp = path; in fshardpath() 114 asprintf(&path, "%s/%s", scan->fs_Name, tmp); in fshardpath() 120 tmp = path; in fshardpath() [all …]
|
| /dflybsd-src/usr.sbin/ckdist/ |
| H A D | ckdist.c | 65 #define isstdin(path) ((path)[0] == '-' && !(path)[1]) argument 76 static int ckdist(const char *path, int type); 77 static int chkmd5(FILE * fp, const char *path); 78 static int chkinf(FILE * fp, const char *path); 79 static int report(const char *path, const char *name, int error); 80 static const char *distname(const char *path, const char *name, 82 static const char *stripath(const char *path); 83 static int distfile(const char *path); 85 static int fail(const char *path, const char *msg); 183 ckdist(const char *path, int type) in ckdist() argument [all …]
|
| /dflybsd-src/sys/net/pf/ |
| H A D | pf_ruleset.c | 106 int c = strcmp(a->path, b->path); in pf_anchor_compare() 156 pf_find_anchor(const char *path) in pf_find_anchor() argument 162 strlcpy(key->path, path, sizeof(key->path)); in pf_find_anchor() 169 pf_find_ruleset(const char *path) in pf_find_ruleset() argument 173 while (*path == '/') in pf_find_ruleset() 174 path++; in pf_find_ruleset() 175 if (!*path) in pf_find_ruleset() 177 anchor = pf_find_anchor(path); in pf_find_ruleset() 185 pf_find_or_create_ruleset(const char *path) in pf_find_or_create_ruleset() argument 191 if (path[0] == 0) in pf_find_or_create_ruleset() [all …]
|
| /dflybsd-src/contrib/gcc-8.0/gcc/ |
| H A D | tree-ssa-threadupdate.c | 132 vec<jump_thread_edge *> *path; member 147 dump_jump_thread_path (FILE *dump_file, vec<jump_thread_edge *> path, in dump_jump_thread_path() argument 153 (path[0]->type == EDGE_FSM_THREAD ? " FSM": ""), in dump_jump_thread_path() 154 path[0]->e->src->index, path[0]->e->dest->index); in dump_jump_thread_path() 156 for (unsigned int i = 1; i < path.length (); i++) in dump_jump_thread_path() 162 if (path[i]->e == NULL) in dump_jump_thread_path() 165 if (path[i]->type == EDGE_COPY_SRC_JOINER_BLOCK) in dump_jump_thread_path() 167 path[i]->e->src->index, path[i]->e->dest->index); in dump_jump_thread_path() 168 if (path[i]->type == EDGE_COPY_SRC_BLOCK) in dump_jump_thread_path() 170 path[i]->e->src->index, path[i]->e->dest->index); in dump_jump_thread_path() [all …]
|
| /dflybsd-src/lib/libc/stdio/ |
| H A D | mktemp.c | 54 mkstemps(char *path, int slen) in mkstemps() argument 58 return (_gettemp(path, &fd, 0, slen, 0) ? fd : -1); in mkstemps() 62 mkostemps(char *path, int slen, int oflags) in mkostemps() argument 66 return (_gettemp(path, &fd, 0, slen, oflags) ? fd : -1); in mkostemps() 70 mkstemp(char *path) in mkstemp() argument 74 return (_gettemp(path, &fd, 0, 0, 0) ? fd : -1); in mkstemp() 78 mkostemp(char *path, int oflags) in mkostemp() argument 82 return (_gettemp(path, &fd, 0, 0, oflags) ? fd : -1); in mkostemp() 86 mkdtemp(char *path) in mkdtemp() argument 88 return (_gettemp(path, NULL, 1, 0, 0) ? path : NULL); in mkdtemp() [all …]
|
| /dflybsd-src/sys/vfs/hammer2/ |
| H A D | hammer2_ondisk.c | 53 hammer2_lookup_device(const char *path, int rootmount, struct vnode **devvp) in hammer2_lookup_device() argument 59 KKASSERT(path); in hammer2_lookup_device() 60 KKASSERT(*path != '\0'); in hammer2_lookup_device() 63 error = bdevvp(kgetdiskbyname(path), &vp); in hammer2_lookup_device() 65 hprintf("cannot find %s %d\n", path, error); in hammer2_lookup_device() 67 error = nlookup_init(&nd, path, UIO_SYSSPACE, NLC_FOLLOW); in hammer2_lookup_device() 73 hprintf("failed to nlookup %s %d\n", path, error); in hammer2_lookup_device() 81 hprintf("%s not a block device %d\n", path, error); in hammer2_lookup_device() 99 const char *path; in hammer2_open_devvp() local 104 path = e->path; in hammer2_open_devvp() [all …]
|
| /dflybsd-src/contrib/bmake/ |
| H A D | realpath.c | 67 realpath(const char * __restrict path, char * __restrict resolved) in realpath() argument 77 if (path == NULL) { in realpath() 101 if (*path == '\0') { in realpath() 108 if (*path != '/') { in realpath() 122 while (*path == '/') in realpath() 123 path++; in realpath() 125 if (*path == '\0') { in realpath() 133 q = path; in realpath() 139 if (path[0] == '.') { in realpath() 140 if (q - path == 1) { in realpath() [all …]
|
| H A D | dirname.c | 61 xdirname_r(const char *path, char *buf, size_t buflen) in xdirname_r() argument 70 if (path == NULL || *path == '\0') { in xdirname_r() 71 path = "."; in xdirname_r() 77 endp = path + strlen(path) - 1; in xdirname_r() 78 while (endp != path && *endp == '/') in xdirname_r() 82 while (endp > path && *endp != '/') in xdirname_r() 85 if (endp == path) { in xdirname_r() 86 path = *endp == '/' ? "/" : "."; in xdirname_r() 93 while (endp > path && *endp == '/'); in xdirname_r() 95 len = endp - path + 1; in xdirname_r() [all …]
|
| /dflybsd-src/gnu/usr.bin/gdb/kgdb/ |
| H A D | kgdb.c | 94 char path[PATH_MAX]; in kernel_from_dumpnr() local 106 snprintf(path, sizeof(path), "%s/kern.%d", crashdir, nr); in kernel_from_dumpnr() 107 if (stat(path, &st) == 0) { in kernel_from_dumpnr() 109 kernel = strdup(path); in kernel_from_dumpnr() 113 snprintf(path, sizeof(path), "%s/kern.%d/kernel", in kernel_from_dumpnr() 115 if (stat(path, &st) == 0 && S_ISREG(st.st_mode)) { in kernel_from_dumpnr() 116 kernel = strdup(path); in kernel_from_dumpnr() 129 snprintf(path, sizeof(path), "%s/info.%d", crashdir, nr); in kernel_from_dumpnr() 130 info = fopen(path, "r"); in kernel_from_dumpnr() 132 warn("%s", path); in kernel_from_dumpnr() [all …]
|
| H A D | kld.c | 68 kld_ok (char *path) in kld_ok() argument 72 if (stat(path, &sb) == 0 && S_ISREG(sb.st_mode)) in kld_ok() 89 check_kld_path (char *path, size_t path_size) in check_kld_path() argument 94 ep = path + strlen(path); in check_kld_path() 97 if (strlcat(path, *suffix, path_size) < path_size) { in check_kld_path() 98 if (kld_ok(path)) in check_kld_path() 114 find_kld_path (char *filename, char *path, size_t path_size) in find_kld_path() argument 123 snprintf(path, path_size, "%s/%s", kernel_dir, in find_kld_path() 125 if (check_kld_path(path, path_size)) in find_kld_path() 136 snprintf(path, path_size, "%s/%s", module_dir, in find_kld_path() [all …]
|
| /dflybsd-src/contrib/bmake/mk/ |
| H A D | meta2deps.py | 74 def resolve(path, cwd, last_dir=None, debug=0, debug_out=sys.stderr): argument 78 if path.endswith('/.'): 79 path = path[0:-2] 80 if len(path) > 0 and path[0] == '/': 81 if os.path.exists(path): 82 return path 84 print("skipping non-existent:", path, file=debug_out) 86 if path == '.': 88 if path.startswith('./'): 89 return cwd + path[1:] [all …]
|
| H A D | meta2deps.sh | 253 while read op pid path junk 255 : op=$op pid=$pid path=$path 259 ,C) CWD=$path cwd=$path ldir=$path 283 : op=$op path=$path 284 case "$op,$path" in 288 case "$path" in 289 /*) cwd=$path;; 290 *) cwd=`cd $cwd/$path 2> /dev/null && /bin/pwd`;; 298 eval cwd_$path=$cwd ldir_$path=$ldir 301 *) dir=${path%/*} [all …]
|
| /dflybsd-src/stand/boot/common/ |
| H A D | rel_open.c | 79 chdir(const char *path) in chdir() argument 94 len = strlen(path); in chdir() 95 if (path[0] == '/') { in chdir() 97 bcopy(path, base, len + 1); in chdir() 99 while (len && path[len-1] == '/') in chdir() 104 bcopy(path, base + dlen, len); in chdir() 154 rel_open(const char *path, char **abspathp, int flags) in rel_open() argument 162 if (path[0] != '/') { in rel_open() 163 ptr = malloc(strlen(DirBase) + strlen(path) + 1); in rel_open() 164 sprintf(ptr, "%s%s", DirBase, path); in rel_open() [all …]
|
| H A D | ls.c | 59 char *buf, *path; in command_ls() local 84 path = ""; in command_ls() 86 path = argv[1]; in command_ls() 89 fd = ls_getdir(&path); in command_ls() 95 pager_output(path); in command_ls() 103 buf = malloc(strlen(path) + strlen(d->d_name) + 2); in command_ls() 104 if (strlen(path) == 0) in command_ls() 107 sprintf(buf, "%s/%s", path, d->d_name); in command_ls() 125 if (path != NULL) in command_ls() 126 free(path); in command_ls() [all …]
|
| /dflybsd-src/contrib/ncurses/ncurses/tinfo/ |
| H A D | access.c | 45 _nc_rootname(char *path) in NCURSES_EXPORT() 47 char *result = _nc_basename(path); in NCURSES_EXPORT() 73 _nc_is_abs_path(const char *path) in _nc_is_abs_path() argument 81 return is_pathname(path); in _nc_is_abs_path() 88 _nc_pathlast(const char *path) in _nc_pathlast() argument 90 const char *test = strrchr(path, '/'); in _nc_pathlast() 93 test = strrchr(path, '\\'); in _nc_pathlast() 96 test = path; in _nc_pathlast() 99 return (unsigned) (test - path); in _nc_pathlast() 103 _nc_basename(char *path) in _nc_basename() argument [all …]
|
| /dflybsd-src/lib/libc/gen/ |
| H A D | getdevpath.c | 59 char *path = NULL; in getdevpath() local 63 asprintf(&path, "%s", devname); in getdevpath() 65 asprintf(&path, "/dev/%s", devname); in getdevpath() 66 if (lstat(path, &st) < 0) { in getdevpath() 67 free(path); in getdevpath() 68 path = NULL; in getdevpath() 69 finddevlabel(&path, devname); in getdevpath() 70 if (path == NULL) in getdevpath() 71 asprintf(&path, "%s", devname); in getdevpath() 82 if ((flags & GETDEVPATH_RAWDEV) && path) { in getdevpath() [all …]
|
| H A D | dirname.c | 32 dirname(char *path) in dirname() argument 40 if (path == NULL || *path == '\0') in dirname() 44 end = path + strlen(path); in dirname() 45 while (end > path + 1 && end[-1] == '/') in dirname() 49 while (end > path && end[-1] != '/') in dirname() 56 if (end == path) { in dirname() 57 path[0] = '.'; in dirname() 58 path[1] = '\0'; in dirname() 59 return (path); in dirname() 66 while (end > path + 1 && end[-1] == '/') in dirname() [all …]
|
| /dflybsd-src/sys/bus/cam/ |
| H A D | cam_xpt.c | 88 struct cam_path *path, void *args); 750 static void xpt_release_path(struct cam_path *path); 754 struct cam_path *path, 780 static u_int32_t xpt_dev_ccbq_resize(struct cam_path *path, int newopenings); 789 struct cam_path *path, cam_flags flags, 857 static void xpt_devise_transport(struct cam_path *path); 861 static void xpt_toggle_tags(struct cam_path *path); 862 static void xpt_start_tags(struct cam_path *path); 1062 if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, in xptioctl() 1073 xpt_setup_ccb(&ccb->ccb_h, ccb->ccb_h.path, in xptioctl() [all …]
|
| /dflybsd-src/contrib/tcp_wrappers/ |
| H A D | inetcf.c | 62 char *path; local 113 path = user; 115 if ((path = strtok((char *) 0, whitespace)) == 0) 118 if (path[0] == '?') /* IRIX optional service */ 119 path++; 120 if (STR_EQ(path, "internal")) 122 if (path[strspn(path, "-0123456789")] == 0) { 128 if ((path = strtok((char *) 0, whitespace)) == 0) 150 inet_chk(protocol, path, arg0, arg1); 159 static void inet_chk(protocol, path, arg0, arg1) in inet_chk() argument [all …]
|
| /dflybsd-src/usr.sbin/makefs/hammer2/ |
| H A D | hammer2_ondisk.c | 59 hammer2_lookup_device(const char *path, int rootmount, struct m_vnode **devvp) 65 KKASSERT(path); 66 KKASSERT(*path != '\0'); 69 error = bdevvp(kgetdiskbyname(path), &vp); 71 hprintf("cannot find %s %d\n", path, error); 73 error = nlookup_init(&nd, path, UIO_SYSSPACE, NLC_FOLLOW); 79 hprintf("failed to nlookup %s %d\n", path, error); 87 hprintf("%s not a block device %d\n", path, error); 107 const char *path; in hammer2_open_devvp() 112 path = e->path; in hammer2_open_devvp() [all …]
|
| /dflybsd-src/usr.bin/unzip/ |
| H A D | unzip.c | 202 pathdup(const char *path) in pathdup() argument 207 len = strlen(path); in pathdup() 208 while (len && path[len - 1] == '/') in pathdup() 216 str[i] = tolower((unsigned char)path[i]); in pathdup() 218 memcpy(str, path, len); in pathdup() 227 pathcat(const char *prefix, const char *path) in pathcat() argument 233 len = strlen(path) + 1; in pathcat() 242 memcpy(str + prelen, path, len); /* includes zero */ in pathcat() 313 make_dir(const char *path, int mode) in make_dir() argument 317 if (lstat(path, &sb) == 0) { in make_dir() [all …]
|
| /dflybsd-src/test/stress/stress2/testcases/mkfifo/ |
| H A D | mkfifo.c | 42 static char path[MAXPATHLEN+1]; variable 52 if ((fd = open(path, O_RDWR, 0600)) < 0) { in reader() 53 unlink(path); in reader() 54 err(1, "open(%s)", path); in reader() 73 if ((fd = open(path, O_RDWR, 0600)) < 0) { in writer() 74 unlink(path); in writer() 75 err(1, "open(%s)", path); in writer() 112 if (sprintf(path, "fifo.%d.%d", getpid(), i) < 0) in test() 114 if (mkfifo(path, 0600) < 0) in test() 115 err(1, "mkfifo(%s)", path); in test() [all …]
|