comparison src/os/unix/ngx_files.c @ 75:869b10be682f

nginx-0.0.1-2003-04-14-21:04:58 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 14 Apr 2003 17:04:58 +0000
parents 17ab1af8c3dd
children eac26585476e
comparison
equal deleted inserted replaced
74:17ab1af8c3dd 75:869b10be682f
9 9
10 ssize_t ngx_read_file(ngx_file_t *file, char *buf, size_t size, off_t offset) 10 ssize_t ngx_read_file(ngx_file_t *file, char *buf, size_t size, off_t offset)
11 { 11 {
12 ssize_t n; 12 ssize_t n;
13 13
14 ngx_log_debug(file->log, "read: %x, %d, %qd" _ buf _ size _ offset); 14 ngx_log_debug(file->log, "read: %d, %x, %d, %qd" _
15 file->fd _ buf _ size _ offset);
15 16
16 n = pread(file->fd, buf, size, offset); 17 n = pread(file->fd, buf, size, offset);
17 18
18 if (n == -1) { 19 if (n == -1) {
19 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, "pread() failed"); 20 ngx_log_error(NGX_LOG_CRIT, file->log, ngx_errno, "pread() failed");