summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-19 10:38:21 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-06-19 10:38:21 +0800
commit61a95bca5bfeb8426bcb6616d10f5eacfc9de612 (patch)
tree3b4082529f14af89a8acde1c03c24036eff5739d /include
parent8cb29110950daa71ef6247ed5d0ba1ea9320fa20 (diff)
downloadpttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar.gz
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar.bz2
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar.lz
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar.xz
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.tar.zst
pttbbs-61a95bca5bfeb8426bcb6616d10f5eacfc9de612.zip
Move stamp* to common library, with weak symbols
Remove stamplink Header file cleanup git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4379 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/cmbbs.h7
-rw-r--r--include/cmsys.h4
-rw-r--r--include/proto.h3
-rw-r--r--include/pttstruct.h1
4 files changed, 9 insertions, 6 deletions
diff --git a/include/cmbbs.h b/include/cmbbs.h
index 52a5709e..149a6ae9 100644
--- a/include/cmbbs.h
+++ b/include/cmbbs.h
@@ -1,6 +1,8 @@
#ifndef _LIBBBS_H_
#define _LIBBBS_H_
+#include "pttstruct.h" /* for fileheader_t */
+
/* name.c */
extern int is_validuserid(const char *id);
@@ -32,4 +34,9 @@ extern void obfuscate_ipstr(char *s);
/* time.c */
extern const char *Now(); // m3 flavor time string
+/* fhdr_stamp.c */
+extern int stampfile(char *fpath, fileheader_t * fh);
+extern int stampdir(char *fpath, fileheader_t * fh);
+//extern int stamplink(char *fpath, fileheader_t * fh);
+
#endif
diff --git a/include/cmsys.h b/include/cmsys.h
index d1014291..572ce2a8 100644
--- a/include/cmsys.h
+++ b/include/cmsys.h
@@ -3,10 +3,8 @@
#include <stdint.h>
#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
#include <stdbool.h>
+#include <time.h>
#include "osdep.h"
#include "config.h" // XXX for TIMET64, but config.h has too much thing I don't want ...
diff --git a/include/proto.h b/include/proto.h
index bda24a0d..ff7d4bcb 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -472,9 +472,6 @@ void EnumTagFhdr(fileheader_t *fhdr, char *direct, int locus);
void UnTagger (int locus);
/* record */
int stampfile_u(char *fpath, fileheader_t *fh);
-inline int stampfile(char *fpath, fileheader_t *fh);
-void stampdir(char *fpath, fileheader_t *fh);
-void stamplink(char *fpath, fileheader_t *fh);
int delete_files(const char* dirname, int (*filecheck)(), int record);
void set_safedel_fhdr(fileheader_t *fhdr);
#ifdef SAFE_ARTICLE_DELETE
diff --git a/include/pttstruct.h b/include/pttstruct.h
index 1743f5bd..1c7df5d8 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -2,6 +2,7 @@
#ifndef INCLUDE_STRUCT_H
#define INCLUDE_STRUCT_H
+#include <netinet/in.h>
#include "cmsys.h" // for time4_t
#include "config.h" // various sizes in SHM
#include "statistic.h" // for MAX_STATS