/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | glob.c | 537 glob2(pathbuf, pathbuf_last, pathend, pathend_last, pattern, in glob2() argument 539 Char *pathbuf, *pathbuf_last, *pathend, *pathend_last; in glob2() 554 *pathend = EOS; 561 *pathend++ = SEP; 562 *pathend = EOS; 567 pathend[-1] != SEP) && (S_ISDIR(sb.st_mode) || 571 if (pathend+1 > pathend_last) 573 *pathend++ = SEP; 574 *pathend = EOS; 581 q = pathend; [all …]
|
/titanic_41/usr/src/lib/libc/port/regex/ |
H A D | glob.c | 749 glob2(wcat_t *pathbuf, wcat_t *pathbuf_last, wcat_t *pathend, in glob2() argument 763 pathend->w_at = 0; in glob2() 764 pathend->w_wc = EOS; in glob2() 769 pathend->w_at = 0; in glob2() 770 (pathend++)->w_wc = SEP; in glob2() 771 pathend->w_at = 0; in glob2() 772 pathend->w_wc = EOS; in glob2() 779 (pathend[-1].w_at != 0 || in glob2() 780 pathend[-1].w_wc != SEP)) && in glob2() 785 if (pathend+1 > pathend_last) in glob2() [all …]
|
/titanic_41/usr/src/cmd/rm/ |
H A D | rm.c | 63 int pathend; /* Offset of name end in the pathbuffer */ member 188 p = pathbuf + cur->up->pathend; in pushfilename() 204 cur->pathend = p - pathbuf; in pushfilename() 276 pathbuf[cur->up->pathend] = '\0'; in popdir() 487 entry = &pathbuf[caller->up->pathend + 1]; in rm()
|
/titanic_41/usr/src/cmd/devfsadm/ |
H A D | cfg_link.c | 690 char *pathend = NULL; in pci_cfg_ap_path() local 765 pathend = pathptr; in pci_cfg_ap_path() 801 if (chasflag && pathend != NULL) { in pci_cfg_ap_path() 802 if ((strncmp(pathend + iob_pre_len, AP_PATH_IOB_SEP, in pci_cfg_ap_path() 804 (strlen(pathend) < ap_pathsz)) { in pci_cfg_ap_path() 805 (void) strlcpy(ap_path, pathend, ap_pathsz); in pci_cfg_ap_path()
|
/titanic_41/usr/src/cmd/pcidr/ |
H A D | pcidr.c | 369 char *path, *pathp, *pathend; in parse_path() local 385 pathend = &path[pathlen - 1]; in parse_path() 415 if (pathp < pathend) { in parse_path()
|
/titanic_41/usr/src/cmd/backup/restore/ |
H A D | utilities.c | 106 char *pathend; in renameit() local 117 if ((pathend = strrchr(from, '/')) != NULL) { in renameit() 118 strncpy(tobuf, from, pathend - from + 1); in renameit() 119 tobuf[pathend - from + 1] = NULL; in renameit()
|
/titanic_41/usr/src/cmd/svc/configd/ |
H A D | backend.c | 655 char *pathend; in backend_backup_get_prev() local 669 pathend = pathname + pathlen; in backend_backup_get_prev() 670 b_end = *pathend; in backend_backup_get_prev() 671 *pathend = '\0'; in backend_backup_get_prev() 676 assert(pathend > pathname && basename < pathend); in backend_backup_get_prev() 777 *pathend = b_end; in backend_backup_get_prev()
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | kobj.c | 4345 expand_libmacro(char *tail, char *path, char *pathend) in expand_libmacro() argument 4386 (void) strcpy(pathend, tail); in expand_libmacro() 4399 bcopy(tail, pathend, diff); in expand_libmacro() 4400 pathend += diff; in expand_libmacro() 4401 *(pathend) = '\0'; in expand_libmacro() 4402 return (expand_libmacro(p2, path, pathend)); in expand_libmacro() 4421 bcopy(tail, pathend, diff); in expand_libmacro() 4422 path2 = pathend + diff; in expand_libmacro()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 9303 char *pathend; in writeconf() local 9311 pathend = strrchr(dstpath, '/'); in writeconf() 9315 if (pathend == NULL) { in writeconf() 9325 } else if (pathend == dstpath) { in writeconf() 9336 *pathend = NULL; in writeconf() 9345 *pathend = '/'; in writeconf()
|