Mercurial > hg > nginx-quic
view src/os/win32/ngx_files.c @ 34:95f1c2a938f3
nginx-0.0.1-2002-12-20-09:54:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 20 Dec 2002 06:54:55 +0000 |
parents | 53cb81681040 |
children | 79c1fce18e71 |
line wrap: on
line source
#include <ngx_core.h> #include <ngx_types.h> #include <ngx_file.h> ssize_t ngx_read_file(ngx_file_t *file, char *buf, size_t size, off_t offset) { size_t n; if (ReadFile(file->fd, buf, size, &n, NULL) == 0) { ngx_log_error(NGX_LOG_ERR, file->log, ngx_errno, "ReadFile() failed"); return NGX_ERROR; } return n; }