1 /* $OpenBSD: os-inline.c,v 1.3 2005/03/28 22:41:51 niallo Exp $ */
2
3 /*
4 * This file contains functions which can be inlined if the compiler
5 * has an "inline" modifier. Because of this, this file is both a
6 * header file and a compilable module.
7 *
8 * Only inlineable functions should be defined in here. They must all
9 * include the INLINE modifier.
10 *
11 * If the compiler supports inline, this file will be #included as a
12 * header file from os.h to create all the inline function
13 * definitions. INLINE will be defined to whatever is required on
14 * function definitions to make them inline declarations.
15 *
16 * If the compiler does not support inline, this file will be compiled
17 * as a normal C file into libos.a (along with os.c). In this case
18 * INLINE will _not_ be set so we can use this to test if we are
19 * compiling this source file.
20 */
21
22 #ifndef INLINE
23 #define INLINE
24
25 /* Anything required only when compiling */
26 #include "ap_config.h"
27
28 #endif
29
30 INLINE int
ap_os_is_path_absolute(const char * file)31 ap_os_is_path_absolute(const char *file)
32 {
33 return file[0] == '/';
34 }
35