00001 /*- 00002 * See the file LICENSE for redistribution information. 00003 * 00004 * Copyright (c) 1997-2005 00005 * Sleepycat Software. All rights reserved. 00006 * 00007 * $Id: os_abs.c,v 12.1 2005/06/16 20:23:23 bostic Exp $ 00008 */ 00009 00010 #include "db_config.h" 00011 00012 #ifndef NO_SYSTEM_INCLUDES 00013 #include <sys/types.h> 00014 #endif 00015 00016 #include "db_int.h" 00017 00018 /* 00019 * __os_abspath -- 00020 * Return if a path is an absolute path. 00021 * 00022 * PUBLIC: int __os_abspath __P((const char *)); 00023 */ 00024 int 00025 __os_abspath(path) 00026 const char *path; 00027 { 00028 return (path[0] == '/'); 00029 }