Mercurial > noffle
comparison src/database.c @ 197:24d4cd032da5 noffle
[svn] * AUTHORS,INSTALL,NEWS,README,TODO,docs/NOTES,src/client.c,src/protocol.c,
src/protocol.h,src/server.c: Merge with latest 1.0 branch. I do not
intend to do any further merges from the 1.0 branch; future changes to
1.0 should be carried over by hand if necessary.
* src/configfile.c,src/content.c,src/control.c,src/database.c,
src/dynamicstring.c,src/fetch.c,src/filter.c,src/group.c,
src/itemlist.c,src/lock.c,src/outgoing.c,src/over.c,src/post.c,
src/pseudo.c,src/request.c,src/util.c: Minor includes rearrangement.
author | bears |
---|---|
date | Wed, 31 Oct 2001 11:44:53 +0000 |
parents | fed1334d766b |
children | fbff73fe5b40 |
comparison
equal
deleted
inserted
replaced
196:60a70c16d79c | 197:24d4cd032da5 |
---|---|
1 /* | 1 /* |
2 database.c | 2 database.c |
3 | 3 |
4 $Id: database.c 300 2001-08-05 08:24:22Z bears $ | 4 $Id: database.c 316 2001-10-31 11:44:53Z bears $ |
5 | 5 |
6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was | 6 Uses GNU gdbm library. Using Berkeley db (included in libc6) was |
7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs | 7 cumbersome. It is based on Berkeley db 1.85, which has severe bugs |
8 (e.g. it is not recommended to delete or overwrite entries with | 8 (e.g. it is not recommended to delete or overwrite entries with |
9 overflow pages). | 9 overflow pages). |
12 #if HAVE_CONFIG_H | 12 #if HAVE_CONFIG_H |
13 #include <config.h> | 13 #include <config.h> |
14 #endif | 14 #endif |
15 | 15 |
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include "database.h" | |
18 #include <ctype.h> | 17 #include <ctype.h> |
19 #include <errno.h> | 18 #include <errno.h> |
20 #include <fcntl.h> | 19 #include <fcntl.h> |
21 #include <gdbm.h> | 20 #include <gdbm.h> |
22 #include <unistd.h> | 21 #include <unistd.h> |
23 #include <sys/types.h> | 22 #include <sys/types.h> |
24 #include <sys/stat.h> | 23 #include <sys/stat.h> |
25 #include "configfile.h" | 24 #include "configfile.h" |
25 #include "database.h" | |
26 #include "itemlist.h" | 26 #include "itemlist.h" |
27 #include "log.h" | 27 #include "log.h" |
28 #include "protocol.h" | 28 #include "protocol.h" |
29 #include "util.h" | 29 #include "util.h" |
30 #include "portable.h" | 30 #include "portable.h" |