Searched refs:slash (Results 1 - 25 of 79) sorted by relevance

1234

/freebsd-10.0-release/usr.bin/patch/
H A Dmkpath.c50 char *slash; local
53 slash = path;
56 slash += strspn(slash, "/");
57 slash += strcspn(slash, "/");
59 done = (*slash == '\0');
60 *slash = '\0';
73 *slash = '/';
/freebsd-10.0-release/usr.sbin/crunch/crunchgen/
H A Dcrunched_main.c53 char *slash, *basename; local
59 slash = strrchr(argv[0], '/');
60 basename = slash? slash+1 : argv[0];
77 char *slash, *basename; local
80 slash = strrchr(path, '/');
81 basename = slash? slash+1 : path;
93 char *slash; local
100 slash
[all...]
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dalist_new.c16 char *slash; local
46 slash = strchr(host, '/');
47 if (slash != NULL) {
48 *slash = '\0';
49 bits = atoi(slash + 1);
81 if (slash != NULL)
82 *slash = '/';
87 if (slash != NULL)
88 *slash = '/';
/freebsd-10.0-release/cddl/compat/opensolaris/misc/
H A Dmkdirp.c57 char *endptr, *ptr, *slash, *str; local
77 slash = strrchr(str, '/');
81 while (slash != NULL) {
83 ptr = slash;
94 slash = strrchr(str, '/');
98 if (slash == NULL || slash == str) {
/freebsd-10.0-release/contrib/subversion/subversion/libsvn_subr/
H A Ddebug.c64 const char *slash = strrchr(file, '/'); local
66 if (slash == NULL)
67 slash = strrchr(file, '\\');
68 if (slash)
69 debug_file = slash + 1;
/freebsd-10.0-release/contrib/apr/strings/
H A Dapr_fnmatch.c79 const int slash = !!(flags & APR_FNM_PATHNAME); local
115 if (slash && (**pattern == '/'))
129 * or ranges containing a slash in FNM_PATHNAME mode pattern
132 if (!**pattern || (slash && (**pattern == '/')))
166 if (!**string || (slash && (**string == '/')))
182 /* Refuse to advance over trailing slash or nulls
184 if (!**string || !**pattern || (slash && ((**string == '/') || (**pattern == '/'))))
198 const int slash = !!(flags & APR_FNM_PATHNAME); local
218 if (slash && escape && (*pattern == '\\') && (pattern[1] == '/'))
220 if (slash
[all...]
/freebsd-10.0-release/usr.sbin/ppp/
H A Dauth.c169 const char *slash; local
195 if ((slash = strrchr(name, '\\')) != NULL && slash[1]) {
197 name = slash + 1;
214 const char *slash; local
264 if ((slash = strrchr(name, '\\')) != NULL && slash[1]) {
266 name = slash + 1;
297 const char *slash; local
320 if ((slash
348 const char *slash; local
[all...]
/freebsd-10.0-release/contrib/opie/
H A Dopiekey.c142 char *slash; local
147 if (slash = strchr(argv[0], '/'))
148 slash++;
150 slash = argv[0];
152 if (!strcmp(slash, "key") || strstr(slash, "md4"))
155 if (strstr(slash, "md5"))
158 if (strstr(slash, "sha"))
/freebsd-10.0-release/contrib/llvm/lib/Support/Unix/
H A DPath.inc377 // Find the last slash
378 std::string::size_type slash = path.rfind('/');
379 if (slash == std::string::npos)
380 slash = 0;
382 slash++;
385 if (dot == std::string::npos || dot < slash)
386 return StringRef(path).substr(slash);
388 return StringRef(path).substr(slash, dot - slash);
393 // Find the last slash
[all...]
/freebsd-10.0-release/gnu/usr.bin/grep/
H A Dsavedir.c82 int slash; local
91 slash = (path[dirlen] != '/');
93 strcpy (path + dirlen + slash , file);
/freebsd-10.0-release/contrib/binutils/binutils/
H A Dbucomm.c401 const char *slash = strrchr (path, '/');
410 if (slash == NULL || (bslash != NULL && bslash > slash))
411 slash = bslash;
412 if (slash == NULL && path[0] != '\0' && path[1] == ':')
413 slash = path + 1;
417 if (slash != (char *) NULL)
419 len = slash - path;
424 /* If tmpname is "X:", appending a slash will make it a root
397 const char *slash = strrchr (path, '/'); local
/freebsd-10.0-release/lib/libipsec/
H A Dpolicy_token.l69 slash \/
118 {slash} { return(SLASH); }
/freebsd-10.0-release/sbin/setkey/
H A Dtoken.l76 slash \/
85 ipaddrmask {slash}{digit}{1,3}
201 {slash} { return SLASH; }
/freebsd-10.0-release/usr.sbin/rrenumd/
H A Dlexer.l77 slash \/
90 ipaddrmask {slash}{digit}{1,3}
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dgetcap.c334 int c, slash; local
348 slash = 0;
379 if (slash) {
380 slash = 0;
386 if (slash) {
387 slash = 0;
402 slash = 1;
700 static int slash; variable
712 slash = 0;
763 slash
[all...]
/freebsd-10.0-release/contrib/less/
H A Dfilename.c430 char *slash; local
432 for (slash = s+strlen(s)-1; slash > s; slash--)
433 if (*slash == *PATHNAME_SEP || *slash == '/')
437 if (strchr(slash, '.') == NULL)
1108 char *slash; local
1110 for (slash = name + strlen(name); slash > nam
[all...]
/freebsd-10.0-release/usr.bin/units/
H A Dunits.c303 char *divider, *slash, *offset; local
310 for (slash = scratch + 1; *slash; slash++)
311 if (*slash == '-' &&
312 (tolower(*(slash - 1)) != 'e' ||
313 !strchr(".0123456789", *(slash + 1))))
314 *slash = ' ';
315 slash = strchr(scratch, '/');
316 if (slash)
[all...]
/freebsd-10.0-release/libexec/tftpd/
H A Dtftpd.c437 char *slash, *ptr; local
440 while ((slash = strstr(fn, "/./")) != NULL) {
441 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--)
443 slash += 2;
444 while (*slash)
445 *++ptr = *++slash;
449 while ((slash = strstr(fn, "/../")) != NULL) {
450 if (slash == fn)
452 for (ptr = slash; ptr > fn && ptr[-1] == '/'; ptr--)
459 slash
[all...]
/freebsd-10.0-release/contrib/groff/font/devdvi/
H A DTBI23 slash@for@l l -311075
24 slash@for@l L -402826
247 slash@for@l 311075,466034 0 0040
H A DTI24 slash@for@l l -267968
25 slash@for@l L -336125
248 slash@for@l 267968,451470 0 0040
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Basic/
H A DOperatorPrecedence.cpp69 case tok::slash:
/freebsd-10.0-release/contrib/binutils/ld/
H A Dldfile.c48 static char * slash = ""; variable
51 static char * slash = "\\"; variable
53 static char * slash = "/"; variable
349 + strlen (slash)
357 sprintf (string, "%s%s%s%s%s%s", search->name, slash,
360 sprintf (string, "%s%s%s", search->name, slash, entry->filename);
483 sprintf (buffer, "%s%s%s", search->name, slash, name);
/freebsd-10.0-release/usr.bin/bluetooth/rfcomm_sppd/
H A Drfcomm_sppd.c364 char pty[PATH_MAX], *slash; local
381 slash = strrchr(pty, '/');
382 if (slash == NULL || slash[1] == '\0') {
387 slash[1] = 'p';
/freebsd-10.0-release/bin/pax/
H A Doptions.c979 char *slash; local
982 slash = path;
985 slash += strspn(slash, "/");
986 slash += strcspn(slash, "/");
988 done = (*slash == '\0');
989 *slash = '\0';
1002 *slash = '/';
/freebsd-10.0-release/contrib/llvm/lib/Support/Windows/
H A DPath.inc32 // Another invariant is that a path ends with a slash if and only if the path
33 // is a root directory. Any other use of a trailing slash is stripped. Unlike
90 // Look for a UNC path, and if found adjust our notion of the root slash.
104 // Remove trailing slash, unless it's a root slash.
329 // Find the last slash
330 size_t slash = path.rfind('/');
331 if (slash == std::string::npos)
332 slash = 0;
334 slash
[all...]

Completed in 755 milliseconds

1234