diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-20 10:42:36 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-08-20 10:42:36 +0800 |
commit | 70148db3434a3d889218972a490437d2f3363036 (patch) | |
tree | bd2f9f0695968b8a34524e6fdb84d025b03b928b /include | |
parent | 0b5909999dcc7f79f44e1fda88223d24dc612ccf (diff) | |
download | pttbbs-70148db3434a3d889218972a490437d2f3363036.tar pttbbs-70148db3434a3d889218972a490437d2f3363036.tar.gz pttbbs-70148db3434a3d889218972a490437d2f3363036.tar.bz2 pttbbs-70148db3434a3d889218972a490437d2f3363036.tar.lz pttbbs-70148db3434a3d889218972a490437d2f3363036.tar.xz pttbbs-70148db3434a3d889218972a490437d2f3363036.tar.zst pttbbs-70148db3434a3d889218972a490437d2f3363036.zip |
remove OUTTA_CACHE
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@480 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/bbs.h | 3 | ||||
-rw-r--r-- | include/outtacache.h | 28 | ||||
-rw-r--r-- | include/proto.h | 7 |
3 files changed, 1 insertions, 37 deletions
diff --git a/include/bbs.h b/include/bbs.h index a56ee944..09ce1982 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -45,9 +45,6 @@ #ifndef INCLUDE_VAR_H #include "var.h" #endif -#ifdef OUTTA_CACHE - #include "outtacache.h" -#endif #ifdef FreeBSD #include <machine/limits.h> #else diff --git a/include/outtacache.h b/include/outtacache.h deleted file mode 100644 index 6865935b..00000000 --- a/include/outtacache.h +++ /dev/null @@ -1,28 +0,0 @@ -#ifndef INCLUDE_OUTTACACHE_H -#define INCLUDE_OUTTACACHE_H - -#define CACHE_BUFSIZE (20000000) -#define OC_HEADERLEN (sizeof(OCkey_t) + sizeof(int)) -#define OC_KEYLEN (sizeof(OCkey_t)) -#define OC_pidadd 10000000 -#define OC_msto 5111 -#define OC_mtos 5112 - -typedef struct { - pid_t pid; - char cacheid; -} OCkey_t; - -typedef struct { - OCkey_t key; - int length; - char buf[CACHE_BUFSIZE]; -} OCbuf_t; - - -typedef struct { - time_t mtime; - OCbuf_t data; -} OCstore_t; - -#endif diff --git a/include/proto.h b/include/proto.h index 858f0a8b..fe8bad6c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -1,4 +1,4 @@ -/* $Id: proto.h,v 1.26 2002/08/17 12:31:55 in2 Exp $ */ +/* $Id: proto.h,v 1.27 2002/08/20 02:42:36 in2 Exp $ */ #ifndef INCLUDE_PROTO_H #define INCLUDE_PROTO_H @@ -117,11 +117,6 @@ int get_fileheader_cache(int bid, char *direct, fileheader_t *headers, int recbase, int nlines); void *attach_shm(int shmkey, int shmsize); void attach_SHM(void); -#ifdef OUTTA_CACHE -void *outta_malloc(size_t size, char id); -void outta_swapout(void **inptr); -void *outta_swapin(void **inptr, char cacheid); -#endif /* cal */ int give_tax(int money); |