| /freebsd/usr.bin/patch/ |
| H A D | mkpath.c | 51 char *slash; in mkpath() local 54 slash = path; in mkpath() 57 slash += strspn(slash, "/"); in mkpath() 58 slash += strcspn(slash, "/"); in mkpath() 60 done = (*slash == '\0'); in mkpath() 61 *slash = '\0'; in mkpath() 74 *slash = '/'; in mkpath()
|
| /freebsd/sbin/ipf/libipf/ |
| H A D | alist_new.c | 16 char *slash; in alist_new() local 46 slash = strchr(host, '/'); in alist_new() 47 if (slash != NULL) { in alist_new() 48 *slash = '\0'; in alist_new() 49 bits = atoi(slash + 1); in alist_new() 81 if (slash != NULL) in alist_new() 82 *slash = '/'; in alist_new() 87 if (slash != NULL) in alist_new() 88 *slash = '/'; in alist_new()
|
| /freebsd/crypto/openssh/openbsd-compat/ |
| H A D | fnmatch.c | 154 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch() local 188 if (slash && (**pattern == '/')) in fnmatch_ch() 221 if (!**pattern || (slash && (**pattern == '/'))) in fnmatch_ch() 260 if (!**string || (slash && (**string == '/'))) in fnmatch_ch() 279 (slash && ((**string == '/') || (**pattern == '/')))) in fnmatch_ch() 293 const int slash = !!(flags & FNM_PATHNAME); in fnmatch() local 312 if (slash && escape && (*pattern == '\\') && (pattern[1] == '/')) in fnmatch() 314 if (slash && (*pattern == '/') && (*string == '/')) { in fnmatch() 338 if (slash) { in fnmatch() 355 if (slash && ((*pattern == '/') || in fnmatch() [all …]
|
| /freebsd/crypto/krb5/src/util/windows/ |
| H A D | libecho.c | 43 char *slash; in echo_files() local 50 while((slash = strrchr(f, '/')) != NULL) in echo_files() 51 *slash = '\\'; in echo_files() 55 slash = strrchr(filepath, '\\'); in echo_files() 57 if (slash) { in echo_files() 58 slash++; in echo_files() 59 *slash = 0; in echo_files()
|
| /freebsd/usr.sbin/ppp/ |
| H A D | auth.c | 175 const char *slash; in auth_SetPhoneList() local 201 if ((slash = strrchr(name, '\\')) != NULL && slash[1]) { in auth_SetPhoneList() 203 name = slash + 1; in auth_SetPhoneList() 220 const char *slash; in auth_Select() local 270 if ((slash = strrchr(name, '\\')) != NULL && slash[1]) { in auth_Select() 272 name = slash + 1; in auth_Select() 303 const char *slash; in auth_Validate() local 326 if ((slash = strrchr(name, '\\')) != NULL && slash[1]) { in auth_Validate() 328 name = slash + 1; in auth_Validate() 354 const char *slash; in auth_GetSecret() local [all …]
|
| /freebsd/sys/contrib/openzfs/lib/libspl/ |
| H A D | mkdirp.c | 53 char *endptr, *ptr, *slash, *str; in mkdirp() local 73 slash = strrchr(str, '/'); in mkdirp() 77 while (slash != NULL) { in mkdirp() 79 ptr = slash; in mkdirp() 90 slash = strrchr(str, '/'); in mkdirp() 94 if (slash == NULL || slash == str) { in mkdirp()
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | path.c | 52 const char *slash, *backslash; in find_sep() local 54 slash = strrchr(path, '/'); in find_sep() 56 if (slash != NULL && backslash != NULL) in find_sep() 57 return (slash > backslash) ? slash : backslash; in find_sep() 59 return (slash != NULL) ? slash : backslash; in find_sep()
|
| /freebsd/crypto/openssl/apps/lib/ |
| H A D | win32_init.c | 60 int i, slash, udlen; in process_glob() local 73 for (slash = 0, i = 0; i < wlen; i++) in process_glob() 75 slash = i + 1; in process_glob() 79 for (i = slash; i < wlen; i++) in process_glob() 93 if (slash) in process_glob() 94 udlen = WideCharToMultiByte(CP_UTF8, 0, wstr, slash, in process_glob() 126 WideCharToMultiByte(CP_UTF8, 0, wstr, slash, in process_glob()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | getcap.c | 334 int c, slash; in getent() local 348 slash = 0; in getent() 379 if (slash) { in getent() 380 slash = 0; in getent() 386 if (slash) { in getent() 387 slash = 0; in getent() 402 slash = 1; in getent() 700 static int slash; variable 712 slash = 0; in cgetclose() 763 slash = 0; [all …]
|
| /freebsd/usr.bin/units/ |
| H A D | units.c | 313 char *divider, *slash, *offset; in addunit() local 320 for (slash = scratch + 1; *slash; slash++) in addunit() 321 if (*slash == '-' && in addunit() 322 (tolower(*(slash - 1)) != 'e' || in addunit() 323 !strchr(".0123456789", *(slash + 1)))) in addunit() 324 *slash = ' '; in addunit() 325 slash = strchr(scratch, '/'); in addunit() 326 if (slash) in addunit() [all...] |
| /freebsd/contrib/less/ |
| H A D | filename.c | 429 constant char *slash; in fcomplete() local 431 for (slash = s+strlen(s)-1; slash > s; slash--) in fcomplete() 432 if (*slash == *PATHNAME_SEP || *slash == '/') in fcomplete() 436 if (strchr(slash, '.') == NULL) in fcomplete() 1130 constant char *slash; in last_component() local 1132 for (slash = name + strlen(name); slash > name; ) in last_component() 1134 --slash; in last_component() 1135 if (*slash == *PATHNAME_SEP || *slash == '/') in last_component() 1136 return (slash + 1); in last_component()
|
| /freebsd/libexec/tftpd/ |
| H A D | tftpd.c | 429 char *slash, *ptr; in reduce_path() local 432 while ((slash = strstr(fn, "/./")) != NULL) { in reduce_path() 433 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--) in reduce_path() 435 slash += 2; in reduce_path() 436 while (*slash) in reduce_path() 437 *++ptr = *++slash; in reduce_path() 441 while ((slash = strstr(fn, "/../")) != NULL) { in reduce_path() 442 if (slash == fn) in reduce_path() 444 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--) in reduce_path() 451 slash += 3; in reduce_path() [all …]
|
| /freebsd/contrib/ntp/libntp/lib/isc/unix/ |
| H A D | file.c | 513 char *dir, *file, *slash; in isc_file_splitpath() local 517 slash = strrchr(path, '/'); in isc_file_splitpath() 519 if (slash == path) { in isc_file_splitpath() 520 file = ++slash; in isc_file_splitpath() 522 } else if (slash != NULL) { in isc_file_splitpath() 523 file = ++slash; in isc_file_splitpath() 524 dir = isc_mem_allocate(mctx, slash - path); in isc_file_splitpath() 526 strlcpy(dir, path, slash - path); in isc_file_splitpath()
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | kmp_debug.cpp | 46 char const *slash = strrchr(file, '/'); in __kmp_debug_assert() local 47 if (slash != NULL) { in __kmp_debug_assert() 48 file = slash + 1; in __kmp_debug_assert()
|
| H A D | kmp_str.cpp | 252 char *slash = NULL; // Pointer to the last character of dir. in __kmp_str_fname_init() local 262 slash = strrchr(fname->dir, '/'); in __kmp_str_fname_init() 264 slash == NULL) { // On Windows* OS, if slash not found, in __kmp_str_fname_init() 267 slash = &fname->dir[1]; in __kmp_str_fname_init() 270 base = (slash == NULL ? fname->dir : slash + 1); in __kmp_str_fname_init()
|
| /freebsd/usr.sbin/crunch/crunchgen/ |
| H A D | crunched_main.c | 106 const char *slash = strrchr(exe_path, '/'); in get_basename() 107 return (slash ? slash + 1 : exe_path); in get_basename() 105 const char *slash = strrchr(exe_path, '/'); get_basename() local
|
| /freebsd/lib/libc/gen/ |
| H A D | getcap.c | 621 static int slash; variable 633 slash = 0; in cgetclose() 687 slash = 0; in cgetnext() 691 *line == ':' || *line == '#' || slash) { in cgetnext() 693 slash = 1; in cgetnext() 695 slash = 0; in cgetnext() 699 slash = 1; in cgetnext() 701 slash = 0; in cgetnext()
|
| /freebsd/bin/pax/ |
| H A D | options.c | 979 char *slash; in mkpath() local 982 slash = path; in mkpath() 985 slash += strspn(slash, "/"); in mkpath() 986 slash += strcspn(slash, "/"); in mkpath() 988 done = (*slash == '\0'); in mkpath() 989 *slash = '\0'; in mkpath() 1002 *slash = '/'; in mkpath()
|
| /freebsd/contrib/tcsh/ |
| H A D | sh.exec.c | 150 int slash, gflag, rehashed; in doexec() local 186 slash = any(short2str(expath), '/'); in doexec() 251 if (v == NULL || v->vec == NULL || v->vec[0] == NULL || slash) in doexec() 277 if (!slash && ABSOLUTEP(pv[0]) && havhash) { in doexec() 816 int slash = any(short2str(name), '/'); in iscommand() local 820 if (v == NULL || v->vec == NULL || v->vec[0] == NULL || slash) in iscommand() 832 if (!slash && ABSOLUTEP(pv[0]) && havhash) { in iscommand() 1009 int slash = any(short2str(sp->word), '/'); in tellmewhat() local 1012 if (v == NULL || v->vec == NULL || v->vec[0] == NULL || slash) in tellmewhat() 1019 if (!slash) { in tellmewhat()
|
| /freebsd/sbin/reboot/ |
| H A D | reboot.c | 138 char *slash; in write_nextboot() local 140 slash = strchr(sfs.f_mntfromname, '/'); in write_nextboot() 141 if (slash != NULL) in write_nextboot() 142 *slash = '\0'; in write_nextboot()
|
| /freebsd/sys/contrib/openzfs/cmd/zinject/ |
| H A D | translate.c | 223 char *slash; in translate_record() local 303 if ((slash = strchr(poolname, '/')) != NULL) in translate_record() 304 *slash = '\0'; in translate_record()
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | TokenConcatenation.cpp | 79 TokenInfo[tok::slash ] |= aci_custom_firstchar; in TokenConcatenation() 113 TokenInfo[tok::slash ] |= aci_avoid_equal; // /= in TokenConcatenation() 280 case tok::slash: //, /*, // in AvoidConcat()
|
| /freebsd/contrib/libucl/tests/basic/ |
| H A D | 17.res | 1 string = "that ends in slash\\";
|
| H A D | 17.in | 2 string that ends in slash\
|
| /freebsd/usr.bin/fetch/ |
| H A D | fetch.c | 435 const char *slash; in fetch() local 721 if ((slash = strrchr(path, '/')) == NULL) in fetch() 722 slash = path; in fetch() 724 ++slash; in fetch() 728 (int)(slash - path), path, slash); in fetch() 730 if (mkstemps(tmppath, strlen(slash) + 1) == -1) { in fetch()
|