diff src/os/win32/ngx_files.c @ 2687:5190c5dc3486

delete win32 ngx_file_append_mode() as we use reliable FILE_APPEND_DATA|SYNCHRONIZE flags
author Igor Sysoev <igor@sysoev.ru>
date Wed, 08 Apr 2009 19:13:28 +0000
parents 64a10d6b97bd
children 9d986c4e796f
line wrap: on
line diff
--- 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
 
 
 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;