/openbsd/bin/mkdir/ |
H A D | mkdir.c | 91 char *slash; in main() local 94 slash = strrchr(*argv, '\0'); in main() 95 while (--slash > *argv && *slash == '/') in main() 96 *slash = '\0'; in main() 130 char *slash; in mkpath() local 133 slash = path; in mkpath() 136 slash += strspn(slash, "/"); in mkpath() 137 slash += strcspn(slash, "/"); in mkpath() 139 done = (*slash == '\0'); in mkpath() 140 *slash = '\0'; in mkpath() [all …]
|
/openbsd/usr.bin/mg/ |
H A D | dir.c | 118 char *slash; in do_makedir() local 124 slash = strrchr(path, '\0'); in do_makedir() 125 while (--slash > path && *slash == '/') in do_makedir() 126 *slash = '\0'; in do_makedir() 128 slash = path; in do_makedir() 135 slash += strspn(slash, "/"); in do_makedir() 136 slash += strcspn(slash, "/"); in do_makedir() 138 finished = (*slash == '\0'); in do_makedir() 139 *slash = '\0'; in do_makedir() 148 *slash = '/'; in do_makedir() [all …]
|
/openbsd/usr.bin/rsync/ |
H A D | mkpath.c | 48 char *slash; in mkpath() local 51 slash = path; in mkpath() 54 slash += strspn(slash, "/"); in mkpath() 55 slash += strcspn(slash, "/"); in mkpath() 57 done = (*slash == '\0'); in mkpath() 58 *slash = '\0'; in mkpath() 78 *slash = '/'; in mkpath()
|
/openbsd/usr.bin/patch/ |
H A D | mkpath.c | 49 char *slash; in mkpath() local 52 slash = path; in mkpath() 55 slash += strspn(slash, "/"); in mkpath() 56 slash += strcspn(slash, "/"); in mkpath() 58 done = (*slash == '\0'); in mkpath() 59 *slash = '\0'; in mkpath() 72 *slash = '/'; in mkpath()
|
/openbsd/usr.sbin/rpki-client/ |
H A D | mkdir.c | 49 char *path, *slash; in mkpathat() local 55 slash = path; in mkpathat() 58 slash += strspn(slash, "/"); in mkpathat() 59 slash += strcspn(slash, "/"); in mkpathat() 61 done = (*slash == '\0'); in mkpathat() 62 *slash = '\0'; in mkpathat() 72 *slash = '/'; in mkpathat()
|
/openbsd/lib/libc/gen/ |
H A D | fnmatch.c | 149 const int slash = !!(flags & FNM_PATHNAME); in fnmatch_ch() local 183 if (slash && (**pattern == '/')) in fnmatch_ch() 216 if (!**pattern || (slash && (**pattern == '/'))) in fnmatch_ch() 255 if (!**string || (slash && (**string == '/'))) in fnmatch_ch() 288 const int slash = !!(flags & FNM_PATHNAME); in fnmatch() local 309 if (slash && (*pattern == '/') && (*string == '/')) { in fnmatch() 333 if (slash) { in fnmatch() 350 if (slash && ((*pattern == '/') || in fnmatch() 380 (slash && ((*matchptr == '/') || in fnmatch() 440 if (slash && ((*string == '/') || in fnmatch() [all …]
|
H A D | authenticate.c | 330 char *slash; in auth_usercheck() local 351 if ((slash = strchr(name, '/')) != NULL) { in auth_usercheck() 352 *slash = '\0'; in auth_usercheck() 354 *slash = '/'; in auth_usercheck() 400 char *slash, pwbuf[_PW_BUF_LEN]; in auth_userchallenge() local 422 if ((slash = strchr(name, '/')) != NULL) { in auth_userchallenge() 423 *slash = '\0'; in auth_userchallenge() 425 *slash = '/'; in auth_userchallenge()
|
/openbsd/usr.bin/make/ |
H A D | direxpand.c | 115 const char *slash; /* keep track of first slash before wildcard */ in DirExpandWildi() local 117 slash = memchr(word, '/', eword - word); in DirExpandWildi() 118 if (slash == NULL) { in DirExpandWildi() 128 slash = word; in DirExpandWildi() 131 slash = cp; in DirExpandWildi() 134 if (slash != word) { in DirExpandWildi() 140 dirpath = Dir_FindFilei(word, slash+1, path); in DirExpandWildi() 157 PathMatchFilesi(slash+1, eword, &temp, in DirExpandWildi()
|
/openbsd/usr.sbin/radiusd/ |
H A D | util.c | 35 char *servp, *nodep, *slash, buf[256]; in addrport_parse() local 51 slash = strrchr(servp, '/'); in addrport_parse() 52 if (slash != NULL) { in addrport_parse() 56 *slash = '\0'; in addrport_parse() 57 slash++; in addrport_parse()
|
/openbsd/gnu/usr.bin/binutils/binutils/ |
H A D | bucomm.c | 395 char *slash = strrchr (filename, '/'); in make_tempname() local 402 if (slash == NULL || (bslash != NULL && bslash > slash)) in make_tempname() 403 slash = bslash; in make_tempname() 404 if (slash == NULL && filename[0] != '\0' && filename[1] == ':') in make_tempname() 405 slash = filename + 1; in make_tempname() 409 if (slash != (char *) NULL) in make_tempname() 411 c = *slash; in make_tempname() 412 *slash = 0; in make_tempname() 446 if (slash != (char *) NULL) in make_tempname() 447 *slash = c; in make_tempname()
|
/openbsd/gnu/usr.bin/binutils-2.17/binutils/ |
H A D | bucomm.c | 396 char *slash = strrchr (filename, '/'); in make_tempname() local 403 if (slash == NULL || (bslash != NULL && bslash > slash)) in make_tempname() 404 slash = bslash; in make_tempname() 405 if (slash == NULL && filename[0] != '\0' && filename[1] == ':') in make_tempname() 406 slash = filename + 1; in make_tempname() 410 if (slash != (char *) NULL) in make_tempname() 412 c = *slash; in make_tempname() 413 *slash = 0; in make_tempname() 447 if (slash != (char *) NULL) in make_tempname() 448 *slash = c; in make_tempname()
|
/openbsd/usr.bin/skey/ |
H A D | skey.c | 43 char buf[33], *seed, *slash, *algo; in main() local 99 slash = strchr(argv[i], '/'); in main() 100 if (slash == NULL) in main() 102 *slash++ = '\0'; in main() 103 seed = slash; in main()
|
/openbsd/usr.bin/units/ |
H A D | units.c | 287 char *divider, *slash; in addunit() local 291 for (slash = scratch + 1; *slash; slash++) in addunit() 292 if (*slash == '-' && in addunit() 293 (tolower((unsigned char)*(slash - 1)) != 'e' || in addunit() 294 !strchr(".0123456789", *(slash + 1)))) in addunit() 295 *slash = ' '; in addunit() 296 slash = strchr(scratch, '/'); in addunit() 297 if (slash) in addunit() 298 *slash = 0; in addunit() 361 if (slash) { in addunit() [all …]
|
/openbsd/usr.sbin/npppd/common/ |
H A D | net_utils.c | 93 char *servp, *nodep, *slash; in addrport_parse() local 109 slash = strrchr(servp, '/'); in addrport_parse() 110 if (slash != NULL) { in addrport_parse() 114 *slash = '\0'; in addrport_parse() 115 slash++; in addrport_parse()
|
/openbsd/libexec/ld.so/ |
H A D | trace.c | 85 const char *basename, *slash; in _dl_trace_object_setup() local 93 slash = _dl_strchr(basename, '/'); in _dl_trace_object_setup() 94 if (slash == NULL) in _dl_trace_object_setup() 96 basename = slash; in _dl_trace_object_setup()
|
/openbsd/gnu/usr.bin/binutils/ld/ |
H A D | ldfile.c | 49 char * slash = ""; variable 52 char * slash = "\\"; variable 54 char * slash = "/"; variable 59 char * slash = ":"; variable 338 + strlen (slash) in ldfile_open_file_search() 346 sprintf (string, "%s%s%s%s%s%s", search->name, slash, in ldfile_open_file_search() 349 sprintf (string, "%s%s%s", search->name, slash, entry->filename); in ldfile_open_file_search() 472 sprintf (buffer, "%s%s%s", search->name, slash, name); in ldfile_find_command_file()
|
/openbsd/lib/libutil/ |
H A D | opendev.c | 53 char *slash, *prefix; in opendev() local 65 if ((slash = strchr(path, '/'))) { in opendev() 86 if (!slash && fd == -1 && errno == ENOENT) { in opendev()
|
/openbsd/usr.bin/less/ |
H A D | filename.c | 509 char *slash; in last_component() local 511 for (slash = name + strlen(name); slash > name; ) { in last_component() 512 --slash; in last_component() 513 if (*slash == '/') in last_component() 514 return (slash + 1); in last_component()
|
/openbsd/bin/csh/ |
H A D | exec.c | 104 bool slash; in doexec() local 139 slash = any(short2str(expath), '/'); in doexec() 189 if (pathv == 0 || pathv->vec[0] == 0 || slash) in doexec() 206 if (!slash && pv[0][0] == '/' && havhash) { in doexec() 490 bool slash = any(short2str(name), '/'); in iscommand() local 494 if (v == 0 || v->vec[0] == 0 || slash) in iscommand() 503 if (!slash && pv[0][0] == '/' && havhash) { in iscommand() 677 bool slash = any(short2str(sp->word), '/'); in tellmewhat() local 680 if (v == 0 || v->vec[0] == 0 || slash) in tellmewhat() 688 if (!slash) { in tellmewhat()
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | read-rtl.c | 702 const char *slash; local 703 for (slash = fn; *slash; slash ++) 704 if (*slash == '/' || *slash == '\\' || *slash == ':') 705 fn = slash + 1;
|
/openbsd/gnu/usr.bin/binutils-2.17/ld/ |
H A D | ldfile.c | 48 static char * slash = ""; variable 51 static char * slash = "\\"; variable 53 static char * slash = "/"; variable 345 + strlen (slash) in ldfile_open_file_search() 353 sprintf (string, "%s%s%s%s%s%s", search->name, slash, in ldfile_open_file_search() 356 sprintf (string, "%s%s%s", search->name, slash, entry->filename); in ldfile_open_file_search() 479 sprintf (buffer, "%s%s%s", search->name, slash, name); in ldfile_find_command_file()
|
/openbsd/gnu/usr.bin/perl/cpan/Pod-Simple/t/ |
H A D | whine.t | 46 my $input = "=pod\n\nAmbiguous slash: L<I/O Operators|op/io>\n"; 66 my $input = "=pod\n\nLE<lt>E<sol>E<gt> containing only slash: L< / >\n"; 71 "warning for L< / > containing only a slash",
|
/openbsd/gnu/usr.bin/binutils/gprof/ |
H A D | sym_ids.c | 177 char *slash; local 181 slash = strchr (id->spec, '/'); 182 if (slash) 184 parse_spec (slash + 1, &id->right.sym); 185 *slash = '\0';
|
/openbsd/gnu/usr.bin/binutils-2.17/gprof/ |
H A D | sym_ids.c | 172 char *slash; in parse_id() local 176 slash = strchr (id->spec, '/'); in parse_id() 177 if (slash) in parse_id() 179 parse_spec (slash + 1, &id->right.sym); in parse_id() 180 *slash = '\0'; in parse_id()
|
/openbsd/gnu/usr.bin/cvs/windows-NT/ |
H A D | ndir.c | 45 char *slash = ""; in opendir() local 57 slash = "/"; /* save to insert slash between path and "*.*" */ in opendir() 60 strcat (strcat (strcpy (name_buf, name), slash), "*.*"); in opendir()
|