3
0
mirror of https://github.com/nginx/nginx.git synced 2024-12-26 08:51:03 -06:00

Solaris directio()

This commit is contained in:
Igor Sysoev 2008-08-04 15:32:10 +00:00
parent 90815b49af
commit b83f893c75
2 changed files with 16 additions and 0 deletions
auto/os
src/os/unix

View File

@ -190,3 +190,14 @@ ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="fcntl(0, F_NOCACHE, 1);"
. auto/feature
ngx_feature="directio()"
ngx_feature_name="NGX_HAVE_DIRECTIO"
ngx_feature_run=no
ngx_feature_incs="#include <sys/types.h>
#include <sys/fcntl.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="directio(0, DIRECTIO_ON);"
. auto/feature

View File

@ -199,6 +199,11 @@ ngx_int_t ngx_directio(ngx_fd_t fd);
#define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1)
#define ngx_directio_n "fcntl(F_NOCACHE)"
#elif (NGX_HAVE_DIRECTIO)
#define ngx_directio(fd) directio(fd, DIRECTIO_ON)
#define ngx_directio_n "directio(DIRECTIO_ON)"
#else
#define ngx_directio(fd) 0