comparison src/os/unix/ngx_files.h @ 2143:56964e5b77db

Solaris directio()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 04 Aug 2008 15:32:10 +0000
parents 25add486e7aa
children 61a09532e310
comparison
equal deleted inserted replaced
2142:be9887d15b8e 2143:56964e5b77db
197 #elif (NGX_HAVE_F_NOCACHE) 197 #elif (NGX_HAVE_F_NOCACHE)
198 198
199 #define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1) 199 #define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1)
200 #define ngx_directio_n "fcntl(F_NOCACHE)" 200 #define ngx_directio_n "fcntl(F_NOCACHE)"
201 201
202 #elif (NGX_HAVE_DIRECTIO)
203
204 #define ngx_directio(fd) directio(fd, DIRECTIO_ON)
205 #define ngx_directio_n "directio(DIRECTIO_ON)"
206
202 #else 207 #else
203 208
204 #define ngx_directio(fd) 0 209 #define ngx_directio(fd) 0
205 #define ngx_directio_n "ngx_directio_n" 210 #define ngx_directio_n "ngx_directio_n"
206 211