Searched refs:lastslash (Results 1 – 8 of 8) sorted by relevance
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | metasplitname.c | 40 char *lastslash; in splitname() local 43 lastslash = strrchr(name, '/'); in splitname() 44 if (lastslash != NULL) { in splitname() 45 prefixlen = lastslash - name; in splitname() 55 lastslash = META_LONGDISKNAME_STR; in splitname() 57 suffixlen = strlen(lastslash); in splitname() 58 (void) memcpy(SPN_SUFFIX(spn).suf_data, lastslash, suffixlen); in splitname() 62 (void) memcpy(SPN_SUFFIX(spn).suf_data, lastslash + 1, in splitname()
|
/titanic_41/usr/src/tools/pmodes/ |
H A D | pmodes.c | 181 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_41/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did_props.c | 336 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_41/usr/src/cmd/fs.d/cachefs/mdbug/ |
H A D | dbug.c | 1154 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_41/usr/src/lib/libdevice/ |
H A D | devctl.c | 1003 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_41/usr/src/cmd/tar/ |
H A D | tar.c | 1776 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_41/usr/src/cmd/cpio/ |
H A D | cpio.c | 1557 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_41/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 3882 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()
|