summaryrefslogtreecommitdiffstats
path: root/util/util.h
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-03-07 23:13:44 +0800
commitae31e19f92e717919ac8e3db9039eb38d2b89aae (patch)
treec70164d6a1852344f44b04a653ae2815043512af /util/util.h
downloadpttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.gz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.bz2
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.lz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.xz
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.tar.zst
pttbbs-ae31e19f92e717919ac8e3db9039eb38d2b89aae.zip
Initial revision
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/util.h')
-rw-r--r--util/util.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/util/util.h b/util/util.h
new file mode 100644
index 00000000..9128e575
--- /dev/null
+++ b/util/util.h
@@ -0,0 +1,31 @@
+/* $Id: util.h,v 1.1 2002/03/07 15:13:46 in2 Exp $ */
+#ifndef INCLUDE_UTIL_H
+#define INCLUDE_UTIL_H
+
+int searchuser(char *userid);
+int stampfile(char *fpath, fileheader_t *fh);
+int append_record(char *fpath, fileheader_t *record, int size);
+int get_record(char *fpath, void *rptr, int size, int id);
+int substitute_record(char *fpath, void *rptr, int size, int id);
+void resolve_boards();
+int getbnum(char *bname);
+void inbtotal(int bid, int add);
+void *attach_shm(int shmkey, int shmsize);
+void reload_pttcache();
+void resolve_fcache();
+void attach_uhash();
+void stamplink(char *fpath, fileheader_t *fh);
+void resolve_utmp();
+void remove_from_uhash(int n);
+void setuserid(int num, char *userid);
+
+int passwd_mmap();
+int passwd_update(int num, userec_t *buf);
+int passwd_query(int num, userec_t *buf);
+int passwd_apply(int (*fptr)(userec_t *));
+int passwd_apply2(int (*fptr)(int, userec_t *));
+void passwd_lock();
+void passwd_unlock();
+
+#endif
+