From b83f893c75abab921a7f3cbacd92377cf203164a Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 4 Aug 2008 15:32:10 +0000 Subject: Solaris directio() --- src/os/unix/ngx_files.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os/unix/ngx_files.h') diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 62af63bce..7e8407086 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h @@ -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 -- cgit v1.2.3