Mercurial > hg > nginx-vendor-1-0
comparison src/os/unix/ngx_files.h @ 418:ff86d646f9df NGINX_0_7_21
nginx 0.7.21
*) Changes in the ngx_http_limit_req_module.
*) Feature: the EXSLT support in the ngx_http_xslt_module.
Thanks to Denis F. Latypoff.
*) Workaround: compatibility with glibc 2.3.
Thanks to Eric Benson and Maxim Dounin.
*) Bugfix: nginx could not run on MacOSX 10.4 and earlier; the bug had
appeared in 0.7.6.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 11 Nov 2008 00:00:00 +0300 |
parents | b246022ef454 |
children | ca8f7f6cab16 |
comparison
equal
deleted
inserted
replaced
417:735cec38a814 | 418:ff86d646f9df |
---|---|
97 | 97 |
98 | 98 |
99 #define ngx_read_fd read | 99 #define ngx_read_fd read |
100 #define ngx_read_fd_n "read()" | 100 #define ngx_read_fd_n "read()" |
101 | 101 |
102 #define ngx_write_fd write | 102 /* |
103 * we use inlined function instead of simple #define | |
104 * because glibc 2.3 sets warn_unused_result attribute for write() | |
105 * and in this case gcc 4.3 ignores (void) cast | |
106 */ | |
107 static ngx_inline ssize_t | |
108 ngx_write_fd(ngx_fd_t fd, void *buf, size_t n) | |
109 { | |
110 return write(fd, buf, n); | |
111 } | |
112 | |
103 #define ngx_write_fd_n "write()" | 113 #define ngx_write_fd_n "write()" |
104 | 114 |
105 #define ngx_linefeed(p) *p++ = LF; | 115 #define ngx_linefeed(p) *p++ = LF; |
106 #define NGX_LINEFEED_SIZE 1 | 116 #define NGX_LINEFEED_SIZE 1 |
107 | 117 |