shmem (461:4d7e73b40330) shmem (566:6ff12ca9e17e)
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6NXT_SHM_PREFIX="/"
7
8# FreeBSD, Solaris, MacOSX

--- 71 unchanged lines hidden (view full) ---

80 if [ $nxt_found = yes ]; then
81 NXT_SHM_PREFIX="/tmp/"
82 fi
83fi
84
85nxt_shm_open_found=$nxt_found
86
87
1
2# Copyright (C) Igor Sysoev
3# Copyright (C) NGINX, Inc.
4
5
6NXT_SHM_PREFIX="/"
7
8# FreeBSD, Solaris, MacOSX

--- 71 unchanged lines hidden (view full) ---

80 if [ $nxt_found = yes ]; then
81 NXT_SHM_PREFIX="/tmp/"
82 fi
83fi
84
85nxt_shm_open_found=$nxt_found
86
87
88# FreeBSD 8.0
89
90nxt_feature="shm_open(SHM_ANON)"
91nxt_feature_name=NXT_HAVE_SHM_OPEN_ANON
92nxt_feature_libs=
93nxt_feature_test="#include <sys/mman.h>
94 #include <fcntl.h>
95 #include <sys/stat.h>
96
97 int main() {
98 int fd = shm_open(SHM_ANON, O_RDWR, S_IRUSR | S_IWUSR);
99 if (fd == -1)
100 return 1;
101
102 return 0;
103 }"
104. auto/feature
105
106if [ "$nxt_shm_open_found" = no ]; then
107 nxt_shm_open_found=$nxt_found
108fi
109
110
88# Linux
89
90nxt_feature="memfd_create()"
91nxt_feature_name=NXT_HAVE_MEMFD_CREATE
92nxt_feature_run=yes
93nxt_feature_incs=
94nxt_feature_libs=
95nxt_feature_test="#include <linux/memfd.h>

--- 21 unchanged lines hidden ---
111# Linux
112
113nxt_feature="memfd_create()"
114nxt_feature_name=NXT_HAVE_MEMFD_CREATE
115nxt_feature_run=yes
116nxt_feature_incs=
117nxt_feature_libs=
118nxt_feature_test="#include <linux/memfd.h>

--- 21 unchanged lines hidden ---