mirror of
https://github.com/nginx/nginx.git
synced 2025-01-03 12:47:21 -06:00
ngx_read_fd()
This commit is contained in:
parent
a3eef70783
commit
83ff0cdc4b
@ -55,7 +55,12 @@ ssize_t ngx_write_chain_to_file(ngx_file_t *file, ngx_chain_t *ce,
|
||||
off_t offset, ngx_pool_t *pool);
|
||||
|
||||
|
||||
#define ngx_read_fd read
|
||||
#define ngx_read_fd_n "read()"
|
||||
|
||||
#define ngx_write_fd write
|
||||
#define ngx_write_fd_n "write()"
|
||||
|
||||
#define ngx_linefeed(p) *p++ = LF;
|
||||
#define NGX_LINEFEED_SIZE 1
|
||||
|
||||
|
@ -68,7 +68,12 @@ ngx_int_t ngx_file_append_mode(ngx_fd_t fd);
|
||||
#define ngx_close_file_n "CloseHandle()"
|
||||
|
||||
|
||||
#define ngx_read_fd(fd, buf, size) ReadFile(fd, buf, size, NULL, NULL)
|
||||
#define ngx_read_fd_n "ReadFile()"
|
||||
|
||||
#define ngx_write_fd(fd, buf, size) WriteFile(fd, buf, size, NULL, NULL)
|
||||
#define ngx_write_fd_n "WriteFile()"
|
||||
|
||||
#define ngx_linefeed(p) *p++ = CR; *p++ = LF;
|
||||
#define NGX_LINEFEED_SIZE 2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user