/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/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 | 52 char *endptr, *ptr, *slash, *str; in mkdirp() local 72 slash = strrchr(str, '/'); in mkdirp() 76 while (slash != NULL) { in mkdirp() 78 ptr = slash; in mkdirp() 89 slash = strrchr(str, '/'); in mkdirp() 93 if (slash == NULL || slash == str) { in mkdirp()
|
/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() 127 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/contrib/less/ |
H A D | filename.c | 429 constant char *slash; in fcomplete() 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() 1129 constant char *slash; 1131 for (slash = name + strlen(name); slash > nam 407 char *slash; fcomplete() local 1109 char *slash; last_component() local [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/libexec/tftpd/ |
H A D | tftpd.c | 425 char *slash, *ptr; in reduce_path() local 428 while ((slash = strstr(fn, "/./")) != NULL) { in reduce_path() 429 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--) in reduce_path() 431 slash += 2; in reduce_path() 432 while (*slash) in reduce_path() 433 *++ptr = *++slash; in reduce_path() 437 while ((slash = strstr(fn, "/../")) != NULL) { in reduce_path() 438 if (slash == fn) in reduce_path() 440 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--) in reduce_path() 447 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/sbin/reboot/ |
H A D | reboot.c | 135 char *slash; in write_nextboot() local 137 slash = strchr(sfs.f_mntfromname, '/'); in write_nextboot() 138 if (slash != NULL) in write_nextboot() 139 *slash = '\0'; in write_nextboot()
|
/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/sys/contrib/openzfs/cmd/zinject/ |
H A D | translate.c | 222 char *slash; in translate_record() local 302 if ((slash = strchr(poolname, '/')) != NULL) in translate_record() 303 *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/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()
|
/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/contrib/bmake/ |
H A D | parse.c | 1173 char *fullname, *incdir, *slash, *newName; in FindInDirOfIncludingFile() local 1178 slash = strrchr(incdir, '/'); in FindInDirOfIncludingFile() 1179 if (slash != NULL) { in FindInDirOfIncludingFile() 1180 *slash = '\0'; in FindInDirOfIncludingFile() 1186 slash = strrchr(incdir + 1, '/'); in FindInDirOfIncludingFile() 1187 if (slash == NULL || strcmp(slash, "/..") == 0) in FindInDirOfIncludingFile() 1189 *slash = '\0'; in FindInDirOfIncludingFile() 2043 const char *slash, *basename; in SetFilenameVars() local 2046 slash = strrchr(filename, '/'); in SetFilenameVars() 2047 if (slash == NULL) { in SetFilenameVars() [all …]
|
/freebsd/contrib/file/tests/ |
H A D | arj.result | 1 ARJ archive data, v11, slash-switched, created 5 1980+48, original name: example_m0.arj, os: Unix
|