Mercurial > hg > nginx
comparison src/core/ngx_output_chain.c @ 3164:b1b1775698d5
uniform ngx_directio_on/off() interface with other file functions
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 25 Sep 2009 14:17:28 +0000 |
parents | cbb1add4a6fe |
children | 76d252724db5 |
comparison
equal
deleted
inserted
replaced
3163:34cbd6e86218 | 3164:b1b1775698d5 |
---|---|
512 } else { | 512 } else { |
513 | 513 |
514 #if (NGX_HAVE_ALIGNED_DIRECTIO) | 514 #if (NGX_HAVE_ALIGNED_DIRECTIO) |
515 | 515 |
516 if (ctx->unaligned) { | 516 if (ctx->unaligned) { |
517 if (ngx_directio_off(src->file->fd) == -1) { | 517 if (ngx_directio_off(src->file->fd) == NGX_FILE_ERROR) { |
518 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, | 518 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, |
519 ngx_directio_off_n " \"%s\" failed", | 519 ngx_directio_off_n " \"%s\" failed", |
520 src->file->name.data); | 520 src->file->name.data); |
521 } | 521 } |
522 } | 522 } |
548 if (ctx->unaligned) { | 548 if (ctx->unaligned) { |
549 ngx_err_t err; | 549 ngx_err_t err; |
550 | 550 |
551 err = ngx_errno; | 551 err = ngx_errno; |
552 | 552 |
553 if (ngx_directio_on(src->file->fd) == -1) { | 553 if (ngx_directio_on(src->file->fd) == NGX_FILE_ERROR) { |
554 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, | 554 ngx_log_error(NGX_LOG_ALERT, ctx->pool->log, ngx_errno, |
555 ngx_directio_on_n " \"%s\" failed", | 555 ngx_directio_on_n " \"%s\" failed", |
556 src->file->name.data); | 556 src->file->name.data); |
557 } | 557 } |
558 | 558 |