diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-04-08 19:13:28 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-04-08 19:13:28 +0000 |
commit | a2de7b9b93a15128a46ba0186fddc2bdeed6c7cb (patch) | |
tree | 7b565e5067335be0bf7c1a47c3524fce25e39a69 /src/os/win32/ngx_files.c | |
parent | 2ec2e35efe1bf1b704d0e9ca1fa9667d9a5a5447 (diff) | |
download | nginx-a2de7b9b93a15128a46ba0186fddc2bdeed6c7cb.tar.gz nginx-a2de7b9b93a15128a46ba0186fddc2bdeed6c7cb.zip |
delete win32 ngx_file_append_mode() as we use reliable
FILE_APPEND_DATA|SYNCHRONIZE flags
Diffstat (limited to 'src/os/win32/ngx_files.c')
-rw-r--r-- | src/os/win32/ngx_files.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/os/win32/ngx_files.c b/src/os/win32/ngx_files.c index f20b47973..79f42b13b 100644 --- a/src/os/win32/ngx_files.c +++ b/src/os/win32/ngx_files.c @@ -506,31 +506,6 @@ ngx_de_link_info(u_char *name, ngx_dir_t *dir) ngx_int_t -ngx_file_append_mode(ngx_fd_t fd) -{ -#if 0 - if (LockFile(fd, 0, 0, 0xffffffff, 0xffffffff) == 0) { - return NGX_ERROR; - } -#endif - - if (SetFilePointer(fd, 0, NULL, FILE_END) == INVALID_SET_FILE_POINTER) { - if (ngx_errno != NO_ERROR) { - return NGX_ERROR; - } - } - -#if 0 - if (UnlockFile(fd, 0, 0, 0xffffffff, 0xffffffff) == 0) { - return NGX_ERROR; - } -#endif - - return NGX_OK; -} - - -ngx_int_t ngx_directio_on(ngx_fd_t fd) { return 0; |