Mercurial > hg > nginx
comparison src/os/unix/ngx_files.h @ 2129:25add486e7aa
directio
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 30 Jul 2008 12:34:04 +0000 |
parents | 5e954395a15e |
children | 56964e5b77db |
comparison
equal
deleted
inserted
replaced
2128:345a014436d4 | 2129:25add486e7aa |
---|---|
187 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)" | 187 #define ngx_trylock_fd_n "fcntl(F_SETLK, F_WRLCK)" |
188 #define ngx_lock_fd_n "fcntl(F_SETLKW, F_WRLCK)" | 188 #define ngx_lock_fd_n "fcntl(F_SETLKW, F_WRLCK)" |
189 #define ngx_unlock_fd_n "fcntl(F_SETLK, F_UNLCK)" | 189 #define ngx_unlock_fd_n "fcntl(F_SETLK, F_UNLCK)" |
190 | 190 |
191 | 191 |
192 #if (NGX_HAVE_O_DIRECT) | |
193 | |
194 ngx_int_t ngx_directio(ngx_fd_t fd); | |
195 #define ngx_directio_n "fcntl(O_DIRECT)" | |
196 | |
197 #elif (NGX_HAVE_F_NOCACHE) | |
198 | |
199 #define ngx_directio(fd) fcntl(fd, F_NOCACHE, 1) | |
200 #define ngx_directio_n "fcntl(F_NOCACHE)" | |
201 | |
202 #else | |
203 | |
204 #define ngx_directio(fd) 0 | |
205 #define ngx_directio_n "ngx_directio_n" | |
206 | |
207 #endif | |
208 | |
209 | |
192 #endif /* _NGX_FILES_H_INCLUDED_ */ | 210 #endif /* _NGX_FILES_H_INCLUDED_ */ |