Klaus Demo nginx / b83f893
Solaris directio() Igor Sysoev 13 years ago
2 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
189189 ngx_feature_libs=
190190 ngx_feature_test="fcntl(0, F_NOCACHE, 1);"
191191 . auto/feature
192
193
194 ngx_feature="directio()"
195 ngx_feature_name="NGX_HAVE_DIRECTIO"
196 ngx_feature_run=no
197 ngx_feature_incs="#include <sys/types.h>
198 #include <sys/fcntl.h>"
199 ngx_feature_path=
200 ngx_feature_libs=
201 ngx_feature_test="directio(0, DIRECTIO_ON);"
202 . auto/feature
198198 #define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1)
199199 #define ngx_directio_n "fcntl(F_NOCACHE)"
200200
201 #elif (NGX_HAVE_DIRECTIO)
202
203 #define ngx_directio(fd) directio(fd, DIRECTIO_ON)
204 #define ngx_directio_n "directio(DIRECTIO_ON)"
205
201206 #else
202207
203208 #define ngx_directio(fd) 0