summaryrefslogtreecommitdiffstats
path: root/util/userlist.c
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-08 16:55:54 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-08 16:55:54 +0800
commit8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a (patch)
treec0e12c11e4aa726ea3ff950b007de9edb4ffd6e0 /util/userlist.c
parentbf85ed1d1979c65a6bb93ae965dd50282e6326a5 (diff)
downloadpttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar.gz
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar.bz2
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar.lz
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar.xz
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.tar.zst
pttbbs-8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a.zip
add support for hugetblpage of Linux 2.6
do not use this if you do not know what this is git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/userlist.c')
-rw-r--r--util/userlist.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/userlist.c b/util/userlist.c
index aa549a8a..cecc3ee6 100644
--- a/util/userlist.c
+++ b/util/userlist.c
@@ -6,7 +6,11 @@ SHM_t *SHM;
int main(int argc, char **argv) {
int i, shm, counter;
- shm = shmget(SHM_KEY, USHM_SIZE, SHM_R | SHM_W);
+ shm = shmget(SHM_KEY, USHM_SIZE,
+#ifdef USE_HUGETLB
+ SHM_HUGETLB |
+#endif
+ SHM_R | SHM_W);
if(shm == -1) {
perror("shmget");
exit(0);