isolation (1489:4a3ec07f4b19) isolation (1503:c21230ef5a0e)
1# Copyright (C) Igor Sysoev
2# Copyright (C) NGINX, Inc.
3
4# Linux clone syscall.
5
6NXT_ISOLATION=NO
7NXT_HAVE_CLONE=NO
8NXT_HAVE_CLONE_NEWUSER=NO

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

89nxt_feature="Linux mount()"
90nxt_feature_name=NXT_HAVE_LINUX_MOUNT
91nxt_feature_run=no
92nxt_feature_incs=
93nxt_feature_libs=
94nxt_feature_test="#include <sys/mount.h>
95
96 int main() {
1# Copyright (C) Igor Sysoev
2# Copyright (C) NGINX, Inc.
3
4# Linux clone syscall.
5
6NXT_ISOLATION=NO
7NXT_HAVE_CLONE=NO
8NXT_HAVE_CLONE_NEWUSER=NO

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

89nxt_feature="Linux mount()"
90nxt_feature_name=NXT_HAVE_LINUX_MOUNT
91nxt_feature_run=no
92nxt_feature_incs=
93nxt_feature_libs=
94nxt_feature_test="#include <sys/mount.h>
95
96 int main() {
97 return mount((void*)0, (void*)0, (void*)0, 0, (void*)0);
97 return mount(\"/\", \"/\", \"bind\",
98 MS_BIND | MS_REC, \"\");
98 }"
99. auto/feature
100
101if [ $nxt_found = yes ]; then
102 NXT_HAVE_MOUNT=YES
103fi
104
105
99 }"
100. auto/feature
101
102if [ $nxt_found = yes ]; then
103 NXT_HAVE_MOUNT=YES
104fi
105
106
106nxt_feature="Bind mount()"
107nxt_feature_name=NXT_HAVE_BIND_MOUNT
108nxt_feature_run=no
109nxt_feature_incs=
110nxt_feature_libs=
111nxt_feature_test="#include <sys/mount.h>
112
113 int main() {
114 return MS_BIND | MS_REC
115 }"
116. auto/feature
117
118if [ $nxt_found = yes ]; then
119 NXT_HAVE_MOUNT=YES
120fi
121
122
123if [ $nxt_found = no ]; then
124 nxt_feature="FreeBSD nmount()"
125 nxt_feature_name=NXT_HAVE_FREEBSD_NMOUNT
126 nxt_feature_run=no
127 nxt_feature_incs=
128 nxt_feature_libs=
129 nxt_feature_test="#include <sys/mount.h>
130

--- 57 unchanged lines hidden ---
107if [ $nxt_found = no ]; then
108 nxt_feature="FreeBSD nmount()"
109 nxt_feature_name=NXT_HAVE_FREEBSD_NMOUNT
110 nxt_feature_run=no
111 nxt_feature_incs=
112 nxt_feature_libs=
113 nxt_feature_test="#include <sys/mount.h>
114

--- 57 unchanged lines hidden ---