Mercurial > dovecot > original-hg > dovecot-1.2
annotate src/lib/lib.h @ 56:62fc6c729962 HEAD
64bit off_t fixes
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 28 Aug 2002 02:39:53 +0300 |
parents | d493b9cc265e |
children | 2d2e2594e60f |
rev | line source |
---|---|
0 | 1 #ifndef __LIB_H |
2 #define __LIB_H | |
3 | |
4 /* default system includes - keep these at minimum.. */ | |
5 #include <string.h> /* strcmp() etc. */ | |
6 #include <stdarg.h> /* va_list is used everywhere */ | |
56 | 7 #include <limits.h> /* INT_MAX, etc. */ |
0 | 8 #include <errno.h> /* error checking is good */ |
9 #include <sys/types.h> /* many other includes want this */ | |
10 | |
11 typedef struct _IOLoop *IOLoop; | |
12 typedef struct _IO *IO; | |
13 typedef struct _Timeout *Timeout; | |
14 | |
15 typedef struct _IPADDR IPADDR; | |
16 typedef struct _IOBuffer IOBuffer; | |
17 typedef struct _TempString TempString; | |
18 | |
19 /* default lib includes */ | |
20 #ifdef HAVE_CONFIG_H | |
21 # include "../../config.h" | |
22 #endif | |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
23 |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
24 #if defined (UOFF_T_INT) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
25 typedef unsigned int uoff_t; |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
26 #elif defined (UOFF_T_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
27 typedef unsigned long uoff_t; |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
28 #elif defined (UOFF_T_LONG_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
29 typedef unsigned long long uoff_t; |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
30 #else |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
31 # error uoff_t size not set |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
32 #endif |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
33 |
0 | 34 #include "compat.h" |
35 #include "macros.h" | |
36 #include "failures.h" | |
37 | |
38 #include "mempool.h" | |
39 #include "temp-mempool.h" | |
40 #include "imem.h" | |
41 | |
42 #include "strfuncs.h" | |
43 | |
44 unsigned int nearest_power(unsigned int num); | |
45 | |
46 void lib_init(void); | |
47 void lib_deinit(void); | |
48 | |
49 #endif |