summaryrefslogtreecommitdiffstats
path: root/mbbsd/passwd.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-05 03:46:16 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-07-05 03:46:16 +0800
commit849e8bdccab33fa65d599b8f0bddf8819f499553 (patch)
treea9376a18fae9b4774b68d28ec7b0a8061dc4128c /mbbsd/passwd.c
parentd5c9ccc6c80d8aa8ed5ba8533ddfb9629c55b237 (diff)
downloadpttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar.gz
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar.bz2
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar.lz
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar.xz
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.tar.zst
pttbbs-849e8bdccab33fa65d599b8f0bddf8819f499553.zip
remove mmap
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@411 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/passwd.c')
-rw-r--r--mbbsd/passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/passwd.c b/mbbsd/passwd.c
index 4291fa3e..06a26d32 100644
--- a/mbbsd/passwd.c
+++ b/mbbsd/passwd.c
@@ -1,4 +1,4 @@
-/* $Id: passwd.c,v 1.5 2002/07/02 19:17:31 in2 Exp $ */
+/* $Id: passwd.c,v 1.6 2002/07/04 19:46:16 in2 Exp $ */
#include "bbs.h"
static int semid = -1;
@@ -20,7 +20,7 @@ union semun {
};
#endif
-int passwd_mmap() {
+int passwd_init() {
semid = semget(PASSWDSEM_KEY, 1, SEM_R | SEM_A | IPC_CREAT | IPC_EXCL);
if(semid == -1) {
if(errno == EEXIST) {