2 * Sherlock Library -- Main Include File
4 * (c) 1997--2004 Martin Mares <mj@ucw.cz>
8 * This file should be included as the very first include in all
9 * source files, especially before all OS includes since it sets
10 * up libc feature macros.
13 #ifndef _SHERLOCK_LIB_H
14 #define _SHERLOCK_LIB_H
18 #ifdef CONFIG_MAX_CONTEXTS
19 #define CONFIG_CONTEXTS
24 #define SHER_VER SHERLOCK_VERSION SHERLOCK_VERSION_SUFFIX
28 typedef u32 oid_t; /* Object ID */
30 #ifdef CONFIG_LARGE_FILES /* File positions */
32 #define bgeto(f) bget5(f)
33 #define bputo(f,l) bput5(f,l)
34 #define GET_O(p) GET_U40(p)
35 #define PUT_O(p,x) PUT_U40(p,x)
38 #define bgeto(f) bgetl(f)
39 #define bputo(f,l) bputl(f,l)
40 #define GET_O(p) GET_U32(p)
41 #define PUT_O(p,x) PUT_U32(p,x)
51 typedef struct { } area_t;
52 #define AREA_NONE (area_t){}
53 #define AREA_ANY (area_t){}
56 /* An alias for the libucw logging function */