summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 19:30:57 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-14 19:30:57 +0800
commite2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0 (patch)
treed7803e24a2aca264a386097e66b5824cd1942f8e /include
parent31b9bab65b95c6ccabff24b90fa80dc3a8344122 (diff)
downloadpttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar.gz
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar.bz2
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar.lz
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar.xz
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.tar.zst
pttbbs-e2e4bfa7a26b8b90d03b1e1167d24096e7ff9ea0.zip
* more robust check of SHM version and size
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4843 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/cmbbs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/cmbbs.h b/include/cmbbs.h
index 7ea98e7a..26f695fe 100644
--- a/include/cmbbs.h
+++ b/include/cmbbs.h
@@ -45,7 +45,8 @@ extern int stamplink(char *fpath, fileheader_t * fh);
#define getbottomtotal(bid) SHM->n_bottom[bid-1]
extern unsigned int safe_sleep(unsigned int seconds);
extern void *attach_shm(int shmkey, int shmsize);
-extern void attach_SHM(void);
+#define attach_SHM() attach_check_SHM(SHM_VERSION, sizeof(SHM_t))
+extern void attach_check_SHM(int version, int SHM_t_size);
extern void add_to_uhash(int n, const char *id);
extern void remove_from_uhash(int n);
extern int dosearchuser(const char *userid, char *rightid);