Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_files.h @ 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 | a059e1aa65d4 |
comparison
equal
deleted
inserted
replaced
74:17ab1af8c3dd | 75:869b10be682f |
---|---|
20 | 20 |
21 #define ngx_close_file close | 21 #define ngx_close_file close |
22 #define ngx_close_file_n "close()" | 22 #define ngx_close_file_n "close()" |
23 | 23 |
24 #define ngx_open_tempfile(name, persistent) \ | 24 #define ngx_open_tempfile(name, persistent) \ |
25 open(name, O_CREAT|O_EXCL|O_WRONLY, 0600) | 25 open(name, O_CREAT|O_EXCL|O_RDWR, 0600) |
26 #define ngx_open_tempfile_n "open()" | 26 #define ngx_open_tempfile_n "open()" |
27 | 27 |
28 ssize_t ngx_read_file(ngx_file_t *file, char *buf, size_t size, off_t offset); | 28 ssize_t ngx_read_file(ngx_file_t *file, char *buf, size_t size, off_t offset); |
29 #define ngx_read_file_n "read()" | 29 #define ngx_read_file_n "read()" |
30 | 30 |