summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-17 17:09:52 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-05-17 17:09:52 +0800
commitda0575f3a383237dc9192d1c7ea54c7df9a8c8a6 (patch)
tree06c279106b53759b5dbe8dd6931f54a9fb6f3072 /include
parent440d1c00eb77739f182ced3fca9fc312d767cf7f (diff)
downloadpttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar.gz
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar.bz2
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar.lz
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar.xz
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.tar.zst
pttbbs-da0575f3a383237dc9192d1c7ea54c7df9a8c8a6.zip
add stampfilefd() to avoid race condition
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1998 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 c6731ad1..206593cb 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -425,6 +425,7 @@ 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);
+int stampfilefd(char *fpath, fileheader_t *fh);
void stampdir(char *fpath, fileheader_t *fh);
int get_num_records(char *fpath, int size);
int get_records(char *fpath, void *rptr, int size, int id, int number);