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