2 * See the file LICENSE for redistribution information.
4 * Copyright (c) 1997-2009 Oracle. All rights reserved.
17 * Return the last path separator in the path or NULL if none found.
28 * VxWorks devices can be rooted at any name. We want to
29 * skip over the device name and not take into account any
30 * PATH_SEPARATOR characters that might be in that name.
33 * VxWorks supports having a filename directly follow a device
34 * name with no separator. I.e. to access a file 'xxx' in
35 * the top level directory of a device mounted at "mydrive"
36 * you could say "mydrivexxx" or "mydrive/xxx" or "mydrive\xxx".
37 * We do not support the first usage here.
40 if ((dummy = iosDevFind(path, (const char**)&ptail)) == NULL)
46 if (PATH_SEPARATOR[1] != '\0') {
47 for (; s[0] != '\0'; ++s)
48 if (strchr(PATH_SEPARATOR, s[0]) != NULL)
51 for (; s[0] != '\0'; ++s)
52 if (s[0] == PATH_SEPARATOR[0])
54 return ((char *)last);