2
* See the file LICENSE for redistribution information.
4
* Copyright (c) 1997-2002
5
* Sleepycat Software. All rights reserved.
11
static const char revid[] = "$Id$";
14
#ifndef NO_SYSTEM_INCLUDES
25
* Return the last path separator in the path or NULL if none found.
27
* PUBLIC: char *__db_rpath __P((const char *));
39
* VxWorks devices can be rooted at any name. We want to
40
* skip over the device name and not take into account any
41
* PATH_SEPARATOR characters that might be in that name.
44
* VxWorks supports having a filename directly follow a device
45
* name with no separator. I.e. to access a file 'xxx' in
46
* the top level directory of a device mounted at "mydrive"
47
* you could say "mydrivexxx" or "mydrive/xxx" or "mydrive\xxx".
48
* We do not support the first usage here.
51
if ((dummy = iosDevFind((char *)path, &ptail)) == NULL)
60
if (PATH_SEPARATOR[1] != '\0') {
61
for (; s[0] != '\0'; ++s)
62
if (strchr(PATH_SEPARATOR, s[0]) != NULL)
65
for (; s[0] != '\0'; ++s)
66
if (s[0] == PATH_SEPARATOR[0])
68
return ((char *)last);