summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
author(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-04 16:13:43 +0800
committer(no author) <(no author)@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-09-04 16:13:43 +0800
commit157642992e5f2d5dc367b6905a7d453a4ea66845 (patch)
treee04f35001131f3a84cbe477d4be908da0063e335 /include
parenta81645961f0ab104dc8b09825aa9379083308c14 (diff)
downloadpttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar.gz
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar.bz2
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar.lz
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar.xz
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.tar.zst
pttbbs-157642992e5f2d5dc367b6905a7d453a4ea66845.zip
add get_record_keep().
we don't need to open/close the same file every time in title search mode. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1155 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h
index 84db664c..073e9520 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -366,6 +366,7 @@ void UnTagger (int locus);
int substitute_record(char *fpath, void *rptr, int size, int id);
int lock_substitute_record(char *fpath, void *rptr, int size, int id, int);
int get_record(char *fpath, void *rptr, int size, int id);
+int get_record_keep(char *fpath, void *rptr, int size, int id, int *fd);
void prints(char *fmt, ...) GCC_CHECK_FORMAT(1,2);
int append_record(char *fpath, fileheader_t *record, int size);
int stampfile(char *fpath, fileheader_t *fh);