summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-06 20:01:42 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2007-01-06 20:01:42 +0800
commit0abd9b3e52bc47a05af81c82aa054d60f7011019 (patch)
treefdba66ee09b01313fc376a736406eb0ce4770021 /include
parent1890ffe3700b894e97681145d3618930b309d49a (diff)
downloadpttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar.gz
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar.bz2
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar.lz
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar.xz
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.tar.zst
pttbbs-0abd9b3e52bc47a05af81c82aa054d60f7011019.zip
Automatically delete cross post
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3464 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index 79d1a9b7..eb3b3628 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -60,6 +60,7 @@ int inc_badsale(const char *, int num);
//void set_assess(int uid, unsigned char num, int type);
/* bbs */
+void delete_allpost();
int invalid_brdname(const char *brd);
void chomp(char *src);
int del_range(int ent, const fileheader_t *fhdr, const char *direct);
@@ -499,11 +500,13 @@ int substitute_record(const char *fpath, const void *rptr, int size, int id);
int lock_substitute_record(const char *fpath, void *rptr, int size, int id, int);
int get_record(const char *fpath, void *rptr, int size, int id);
int get_record_keep(const char *fpath, void *rptr, int size, int id, int *fd);
+int get_record_keep_seek(const char *fpath, void *rptr, int size, int id, int *fd, int toseek);
int append_record(const char *fpath, const fileheader_t *record, int size);
int stampfile(char *fpath, fileheader_t *fh);
void stampdir(char *fpath, fileheader_t *fh);
int get_num_records(const char *fpath, int size);
int get_records(const char *fpath, void *rptr, int size, int id, int number);
+int get_records_fd(const char *fpath, void *rptr, int size, int id, int number, int *use_fd);
void stamplink(char *fpath, fileheader_t *fh);
int delete_record(const char fpath[], int size, int id);
int delete_files(const char* dirname, int (*filecheck)(), int record);