1*0Sstevel@tonic-gate /*-
2*0Sstevel@tonic-gate * See the file LICENSE for redistribution information.
3*0Sstevel@tonic-gate *
4*0Sstevel@tonic-gate * Copyright (c) 1997, 1998
5*0Sstevel@tonic-gate * Sleepycat Software. All rights reserved.
6*0Sstevel@tonic-gate */
7*0Sstevel@tonic-gate
8*0Sstevel@tonic-gate #include "config.h"
9*0Sstevel@tonic-gate
10*0Sstevel@tonic-gate #ifndef lint
11*0Sstevel@tonic-gate static const char sccsid[] = "@(#)os_abs.c 10.9 (Sleepycat) 7/21/98";
12*0Sstevel@tonic-gate #endif /* not lint */
13*0Sstevel@tonic-gate
14*0Sstevel@tonic-gate #ifndef NO_SYSTEM_INCLUDES
15*0Sstevel@tonic-gate #include <sys/types.h>
16*0Sstevel@tonic-gate #endif
17*0Sstevel@tonic-gate
18*0Sstevel@tonic-gate #include "db_int.h"
19*0Sstevel@tonic-gate
20*0Sstevel@tonic-gate /*
21*0Sstevel@tonic-gate * __os_abspath --
22*0Sstevel@tonic-gate * Return if a path is an absolute path.
23*0Sstevel@tonic-gate *
24*0Sstevel@tonic-gate * PUBLIC: int __os_abspath __P((const char *));
25*0Sstevel@tonic-gate */
26*0Sstevel@tonic-gate int
__os_abspath(path)27*0Sstevel@tonic-gate __os_abspath(path)
28*0Sstevel@tonic-gate const char *path;
29*0Sstevel@tonic-gate {
30*0Sstevel@tonic-gate return (path[0] == '/');
31*0Sstevel@tonic-gate }
32