Home
last modified time | relevance | path

Searched refs:lastslash (Results 1 – 7 of 7) sorted by relevance

/titanic_44/usr/src/tools/pmodes/
H A Dpmodes.c181 char *lastslash = strrchr(*argv, '/'); in main() local
183 if (lastslash != NULL) in main()
184 *lastslash = '\0'; in main()
186 if (lastslash != NULL) in main()
187 *lastslash = '/'; in main()
/titanic_44/usr/src/lib/fm/topo/modules/common/pcibus/
H A Ddid_props.c336 char *lastslash; in dev_path_fix() local
344 lastslash = strrchr(path, '/'); in dev_path_fix()
345 assert(lastslash != NULL); in dev_path_fix()
352 if (strchr(lastslash, '@') != NULL) in dev_path_fix()
382 char *lastslash; in dev_for_hostbridge() local
393 lastslash = strrchr(path, '/'); in dev_for_hostbridge()
394 assert(lastslash != NULL); in dev_for_hostbridge()
400 comma = strchr(lastslash, ','); in dev_for_hostbridge()
/titanic_44/usr/src/cmd/fs.d/cachefs/mdbug/
H A Ddbug.c1154 char *lastslash; in writable() local
1162 lastslash = strrchr(pathname, '/'); in writable()
1163 if (lastslash != NULL) { in writable()
1164 *lastslash = '\0'; in writable()
1171 if (lastslash != NULL) { in writable()
1172 *lastslash = '/'; in writable()
/titanic_44/usr/src/lib/libdevice/
H A Ddevctl.c1003 char *minorname, *lastslash; in devctl_bus_dev_create() local
1016 lastslash = strrchr(devpath, '/'); in devctl_bus_dev_create()
1017 if (*(lastslash + 1) == '\0') { in devctl_bus_dev_create()
1018 *lastslash = '\0'; in devctl_bus_dev_create()
1020 if ((minorname = strchr(lastslash, ':')) != NULL) in devctl_bus_dev_create()
/titanic_44/usr/src/cmd/tar/
H A Dtar.c1776 char *lastslash; in putfile() local
1931 lastslash = strrchr(tmpbuf, '/'); in putfile()
1932 if (lastslash == NULL) { in putfile()
1937 *lastslash = '\0'; /* Terminate the prefix */ in putfile()
1948 lastslash = strrchr(longname, '/'); in putfile()
1949 if (lastslash != NULL) in putfile()
1950 i = strlen(lastslash + 1); in putfile()
1955 (void) strcpy(junkbuf, lastslash + 1); in putfile()
1966 "%d\n"), lastslash == NULL ? in putfile()
1967 longname : lastslash + 1, NAMSIZ); in putfile()
[all …]
/titanic_44/usr/src/cmd/cpio/
H A Dcpio.c1557 char *lastslash; in creat_hdr() local
1564 lastslash = strrchr(Gen.g_nam_p, '/'); in creat_hdr()
1566 if (lastslash != NULL) { in creat_hdr()
1567 namesize = strlen(++lastslash); in creat_hdr()
1571 lastslash = Gen.g_nam_p; in creat_hdr()
1582 lastslash, NAMSIZ); in creat_hdr()
1585 (void) strncpy(&namebuff[0], lastslash, in creat_hdr()
1826 char *lastslash; in creat_spec() local
1896 lastslash = strrchr(nam_p, '/'); in creat_spec()
1898 if (lastslash != NULL) { in creat_spec()
[all …]
/titanic_44/usr/src/lib/libdevinfo/
H A Ddevinfo.c3882 char *copy, *lastslash; in di_lookup_path() local
3891 if ((lastslash = strrchr(copy, '/')) == NULL) { in di_lookup_path()
3897 *lastslash = '\0'; in di_lookup_path()
3905 pname = lastslash + 1; in di_lookup_path()