summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/cmsys.h12
-rw-r--r--include/proto.h11
2 files changed, 12 insertions, 11 deletions
diff --git a/include/cmsys.h b/include/cmsys.h
index 458281e9..1e866630 100644
--- a/include/cmsys.h
+++ b/include/cmsys.h
@@ -135,4 +135,16 @@ extern struct tm localtime4r(const time4_t *t);
extern int log_filef(const char *fn, int flag, const char *fmt,...) GCC_CHECK_FORMAT(3,4);
extern int log_file(const char *fn, int flag, const char *msg);
+/* record.c */
+int get_num_records(const char *fpath, size_t size);
+int get_records_keep(const char *fpath, void *rptr, size_t size, int id, size_t number, int *fd);
+int get_records(const char *fpath, void *rptr, size_t size, int id, size_t number);
+#define get_record(fpath, rptr, size, id) get_records(fpath, rptr, size, id, 1)
+#define get_record_keep(fpath, rptr, size, id, fd) get_records_keep(fpath, rptr, size, id, 1, fd)
+int substitute_record(const char *fpath, const void *rptr, size_t size, int id);
+int append_record(const char *fpath, const void *record, size_t size);
+int delete_records(const char *fpath, size_t size, int id, size_t num);
+#define delete_record(fpath, size, id) delete_records(fpath, size, id, 1)
+int apply_record(const char *fpath, int (*fptr) (void *item, void *optarg), size_t size, void *arg);
+
#endif
diff --git a/include/proto.h b/include/proto.h
index 70274b94..76f284b0 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -494,20 +494,10 @@ int Tagger(time4_t chrono, int recno, int mode);
void EnumTagFhdr(fileheader_t *fhdr, char *direct, int locus);
void UnTagger (int locus);
/* record */
-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_u(char *fpath, fileheader_t *fh);
inline 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);
void set_safedel_fhdr(fileheader_t *fhdr);
#ifdef SAFE_ARTICLE_DELETE
@@ -519,7 +509,6 @@ int safe_article_delete_range(const char *direct, int from, int to);
#endif
int delete_file(const char *dirname, int size, int ent, int (*filecheck)());
int delete_range(const char *fpath, int id1, int id2);
-int apply_record(const char *fpath, int (*fptr)(void*,void*), int size,void *arg);
int search_rec(const char* dirname, int (*filecheck)());
int append_record_forward(char *fpath, fileheader_t *record, int size, const char *origid);
int get_sum_records(const char* fpath, int size);