Searched defs:slash (Results 1 - 25 of 67) sorted by relevance

123

/illumos-gate/usr/src/lib/libgen/common/
H A Drmdirp.c58 char *slash; local
60 slash = strrchr(d, '/');
68 if (slash == NULL) {
77 } else { /* If there's a slash before it */
80 if (slash != d) {
81 if (++slash == strrchr(d, '\0')) {
82 *(--slash) = '\0';
83 slash = strrchr(d, '/');
86 slash--;
92 if (dotdot(++slash)) {
[all...]
H A Dmkdirp.c54 char *endptr, *ptr, *slash, *str; local
74 slash = strrchr(str, '/');
78 while (slash != NULL) {
80 ptr = slash;
91 slash = strrchr(str, '/');
95 if (slash == NULL || slash == str) {
/illumos-gate/usr/src/cmd/eeprom/sparc/
H A Dloadlogo.c57 char slash; local
83 c = fscanf(f, "%c", &slash);
84 if (slash == '/')
87 (void) ungetc(slash, f);
/illumos-gate/usr/src/cmd/backup/dump/
H A Dpartial.c159 char *slash; local
171 if (slash = strrchr(dotdot, '/'))
173 if (slash == dotdot)
174 slash[1] = 0;
177 slash[0] = 0;
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_string.c71 static char slash[] = "/"; local
82 return (slash);
/illumos-gate/usr/src/cmd/sh/
H A Dexpand.c67 BOOL slash; local
80 slash = 0;
92 if (rcnt && slash)
98 slash++;
112 if (rcnt > slash)
156 slashsav = cs++; /* remember where first slash in as is */
194 slash + 1);
225 * Restore first slash before the first metacharacter
/illumos-gate/usr/src/lib/print/libhttp-core/common/
H A Dhttp-support.c97 *slash; /* Separator */ local
132 * If the method contains a period or slash, then it's probably
188 if ((slash = strchr(uri, '/')) == NULL)
189 slash = uri + strlen(uri);
191 if ((atsign = strchr(uri, '@')) != NULL && atsign < slash)
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_string.c100 static char slash[] = "/"; local
111 return (slash);
/illumos-gate/usr/src/lib/libwrap/
H A Dhosts_access.c294 char *slash; local
321 if (slash = strchr(tok, '/')) {
322 *slash = '\0';
323 mask = atoi(slash+1);
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_appinit.c303 /* If leading slash, start over. */ \
306 slash = 0; \
310 if (slash) \
314 slash = strchr(PATH_SEPARATOR, p[-1]) == NULL; \
338 int data_entry, ret, slash, tmp_create, tmp_free; local
486 slash = 0;
/illumos-gate/usr/src/cmd/logadm/
H A Dglob.c225 char *slash; local
241 if ((slash = strchr(sp, '/')) != NULL) {
242 *slash++ = '\0';
244 while (*slash == '/')
245 slash++;
286 if (slash &&
307 if (slash)
317 sp = slash;
318 } while (slash);
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c99 char *slash; local
103 * remove the trailing slash if presnt.
115 if ((slash = strrchr(arg, '/')) == NULL) {
119 *slash = '\0';
121 fname = strdup(slash + 1);
/illumos-gate/usr/src/cmd/csh/
H A Dsh.exec.c56 bool slash; local
78 slash = gflag;
98 slash |= any('/', av[0]);
118 if (v == 0 || v->vec[0] == 0 || slash)
134 if (!slash && pv[0][0] == '/' && havhash) {
H A Dsh.dir.c173 int slash; /* slashes in the argument */ local
175 tchar *slashcp; /* cp string prepended with a slash */
185 * If the directory argument has a slash in it,
189 slash = any('/', cp);
194 * has a slash in it.
200 && (!havhash2 || slash)) {
225 && havhash2 && !slash) {
243 * Only look at those path beginning with a slash
504 bool slash, dotdot, hardpaths; local
526 sp = p; /* save slash addres
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dexpand.c219 char *slash, *pgn, *pn; local
231 slash = strchr(spec, '/');
232 if (slash == NULL) {
236 *slash = '\0';
238 pn = slash + 1;
/illumos-gate/usr/src/cmd/tcpd/
H A Dtcpdchk.c429 char *slash = strchr(pat, '/'); local
433 if (slash != NULL) {
434 *slash = '\0';
435 mask = atoi(slash + 1);
444 if (slash) *slash = '/';
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c335 char *slash; local
343 slash = strrchr(dir, '/');
344 if (slash == NULL)
346 *slash = '\0';
348 *slash = '/';
/illumos-gate/usr/src/cmd/zinject/
H A Dtranslate.c336 char *slash; local
416 if ((slash = strchr(poolname, '/')) != NULL)
417 *slash = '\0';
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dlocaleimpl.c314 char *slash, *cm; local
327 if ((slash = strchr(locname, '/')) != NULL) {
328 for (cnt = category; cnt && slash != NULL; cnt--) {
329 locname = slash + 1;
330 slash = strchr(locname, '/');
332 if (slash) {
333 len = slash - locname + 1;
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dlsalib.c100 char *slash; local
110 if ((slash = strchr(account, '\\')) != NULL) {
111 *slash = '\0';
113 (void) strlcpy(nambuf, slash + 1, sizeof (nambuf));
114 *slash = '\\';
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_arg.c137 char *slash; local
144 if (lwps != NULL && (slash = strrchr(arg, '/')) != NULL) {
149 *slash = '\0';
155 *lwps = slash + 1;
156 *slash = '/';
177 *lwps = slash + 1;
178 *slash = '/';
197 *slash = '/';
/illumos-gate/usr/src/lib/nsswitch/ad/common/
H A Dgetpwnam.c120 int i, slash = 0; local
146 if (slash)
147 slash = 0;
149 slash = 1;
154 slash = 0;
/illumos-gate/usr/src/cmd/fs.d/autofs/
H A Dautomount.c540 char *slash; local
546 slash = strrchr(dir, '/');
547 if (slash == NULL)
549 *slash = '\0';
551 *slash++ = '/';
552 if (err || !*slash)
/illumos-gate/usr/src/uts/sparc/os/
H A Dcpr_sparc.c359 char *position = in_path + 1; /* Skip the leading slash. */
429 char *slash; local
435 if ((slash = strchr(*path, '/'))) {
436 len = slash - *path;
439 *path += len + 1; /* Position beyond the slash. */
/illumos-gate/usr/src/tools/cscope-fast/
H A Ddisplay.c634 char *s, *slash; local
642 while ((slash = strchr(s, '/')) != NULL) {
643 *slash = '\0';
644 if ((int)strlen(s) >= 3 && strncmp(slash - 3, ".ss", 3) == 0) {
646 s = slash + 1;
647 if ((slash = strchr(s, '/')) != NULL) {
649 *slash = '\0';
653 s = slash + 1;

Completed in 265 milliseconds

123