Klaus Demo nginx / 83ff0cd
ngx_read_fd() Igor Sysoev 15 years ago
2 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
5454 off_t offset, ngx_pool_t *pool);
5555
5656
57 #define ngx_read_fd read
58 #define ngx_read_fd_n "read()"
59
5760 #define ngx_write_fd write
61 #define ngx_write_fd_n "write()"
62
5863 #define ngx_linefeed(p) *p++ = LF;
5964 #define NGX_LINEFEED_SIZE 1
6065
6767 #define ngx_close_file_n "CloseHandle()"
6868
6969
70 #define ngx_read_fd(fd, buf, size) ReadFile(fd, buf, size, NULL, NULL)
71 #define ngx_read_fd_n "ReadFile()"
72
7073 #define ngx_write_fd(fd, buf, size) WriteFile(fd, buf, size, NULL, NULL)
74 #define ngx_write_fd_n "WriteFile()"
75
7176 #define ngx_linefeed(p) *p++ = CR; *p++ = LF;
7277 #define NGX_LINEFEED_SIZE 2
7378