| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_deadlock_detector2.cpp | 102 void Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath); 359 int npath = 0; in CycleCheck() local 370 npath--; in CycleCheck() 382 pt->path[npath++] = link; in CycleCheck() 385 return Report(pt, lt, npath); // Bingo! in CycleCheck() 398 void DD::Report(DDPhysicalThread *pt, DDLogicalThread *lt, int npath) { in Report() argument 400 rep->n = npath; in Report() 401 for (int i = 0; i < npath; i++) { in Report() 403 Link *link0 = &pt->path[i ? i - 1 : npath - 1]; in Report()
|
| /openbsd-src/bin/ksh/ |
| H A D | exec.c | 844 char *npath; in findcom() local 905 npath = search(name, flags & FC_DEFPATH ? def_path : in findcom() 907 if (npath) { in findcom() 909 tp->val.s = npath; in findcom() 911 tp->val.s = str_save(npath, APERM); in findcom() 912 if (npath != name) in findcom() 913 afree(npath, ATEMP); in findcom() 918 (npath = search(name, fpath, R_OK, in findcom() 928 tp->u.fpath = npath; in findcom()
|
| /openbsd-src/sbin/ncheck_ffs/ |
| H A D | ncheck_ffs.c | 421 char *npath; in searchdir() local 467 if (asprintf(&npath, "%s/%s", path, dp->d_name) == -1) in searchdir() 469 scanonedir(dp->d_ino, npath); in searchdir() 470 free(npath); in searchdir()
|
| /openbsd-src/usr.sbin/vmd/ |
| H A D | vioqcow2.c | 143 virtio_qcow2_get_base(int fd, char *path, size_t npath, const char *dpath) 165 if (backingsz >= npath - 1) { in virtio_qcow2_get_base() 182 strlcpy(path, expanded, npath) >= npath) { in virtio_qcow2_get_base() 198 if (npath < PATH_MAX || in virtio_qcow2_get_base() 146 virtio_qcow2_get_base(int fd,char * path,size_t npath,const char * dpath) virtio_qcow2_get_base() argument
|
| H A D | virtio.c | 494 virtio_get_base(int fd, char *path, size_t npath, int type, const char *dpath) in virtio_init() 500 return virtio_qcow2_get_base(fd, path, npath, dpath); in virtio_init() 478 virtio_get_base(int fd,char * path,size_t npath,int type,const char * dpath) virtio_get_base() argument
|
| /openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/lib/ExtUtils/ |
| H A D | MM_VMS.pm | 2135 my($npath) = unixify($path); 2137 $npath =~ s{\0$}{}; 2143 while ($npath =~ m#(.*?)\$\((\S+?)\)(.*)#gs) { 2163 $npath = "$head$macro$tail"; 2166 if ($complex) { $npath =~ s#\cB(.*?)\cB#\${$1}#gs; } 2167 $npath;
|
| /openbsd-src/usr.sbin/rpki-client/ |
| H A D | main.c | 408 char *mftaki, *nfile, *npath = NULL; in queue_add_from_mft() 418 if ((npath = strdup(mft->path)) == NULL) in queue_add_from_mft() 424 entityq_add(npath, nfile, f->type, f->location, rp, NULL, 0, in queue_add_from_mft() 495 char *nfile, *npath, *host; in queue_add_from_cert() 542 npath = NULL; in queue_add_from_cert() 546 if ((npath = strndup(uri, file - uri)) == NULL) in queue_add_from_cert() 552 entityq_add(npath, nfile, RTYPE_MFT, DIR_UNKNOWN, repo, NULL, 0, in queue_add_from_cert() 409 char *mftaki, *nfile, *npath = NULL; queue_add_from_mft() local 496 char *nfile, *npath, *host; queue_add_from_cert() local
|
| /openbsd-src/usr.bin/ssh/ |
| H A D | sftp-server.c | 1521 char *path, *npath; in process_extended_expand() local 1544 npath = xstrdup(path + 2); in process_extended_expand() 1546 xasprintf(&path, "%s/%s", cwd, npath); in process_extended_expand() 1547 free(npath); in process_extended_expand() 1550 if (tilde_expand(path, pw->pw_uid, &npath) != 0) { in process_extended_expand() 1556 path = npath; in process_extended_expand() 1560 xasprintf(&npath, "%s/%s", cwd, path); in process_extended_expand() 1562 path = npath; in process_extended_expand()
|
| /openbsd-src/sbin/pfctl/ |
| H A D | pfctl.c | 843 char *npath, *p; in pfctl_show_rules() local 862 if ((npath = calloc(1, PATH_MAX)) == NULL) in pfctl_show_rules() 864 strlcpy(npath, anchorname, PATH_MAX); in pfctl_show_rules() 870 npath = path; in pfctl_show_rules() 873 memcpy(pr.anchor, npath, sizeof(pr.anchor)); in pfctl_show_rules() 941 pfctl_show_rules(dev, npath, opts, format, in pfctl_show_rules() 975 memcpy(prs.path, npath, sizeof(prs.path)); in pfctl_show_rules() 986 pfctl_show_rules(dev, npath, opts, in pfctl_show_rules() 996 if (path != npath) in pfctl_show_rules() 997 free(npath); in pfctl_show_rules()
|
| /openbsd-src/usr.bin/openssl/ |
| H A D | apps.c | 1222 char opath[PATH_MAX], npath[PATH_MAX]; in rotate_serial() local 1224 if (snprintf(npath, sizeof npath, "%s.%s", serialfile, in rotate_serial() 1225 new_suffix) >= sizeof npath) { in rotate_serial() 1245 if (rename(npath, serialfile) == -1) { in rotate_serial() 1247 npath, serialfile); in rotate_serial()
|
| /openbsd-src/libexec/ftpd/ |
| H A D | ftpd.c | 2037 char npath[PATH_MAX * 2]; in replydirname() local 2039 p = npath; in replydirname() 2040 ep = &npath[sizeof(npath) - 1]; in replydirname() 2054 reply(257, "\"%s\" %s", npath, message); in replydirname()
|
| /openbsd-src/usr.sbin/bgpd/ |
| H A D | rde.c | 1975 struct ibuf attrbuf, tmpbuf, *npath = NULL; in rde_attr_parse() 2049 if ((npath = aspath_inflate(&attrbuf)) == NULL) in rde_attr_parse() 2051 ibuf_from_ibuf(&tmpbuf, npath); in rde_attr_parse() 2071 ibuf_free(npath); in rde_attr_parse() 1935 struct ibuf attrbuf, tmpbuf, *npath = NULL; rde_attr_parse() local
|