summaryrefslogtreecommitdiffhomepage
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-08 19:13:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-08 19:13:28 +0000
commita2de7b9b93a15128a46ba0186fddc2bdeed6c7cb (patch)
tree7b565e5067335be0bf7c1a47c3524fce25e39a69 /src/os
parent2ec2e35efe1bf1b704d0e9ca1fa9667d9a5a5447 (diff)
downloadnginx-a2de7b9b93a15128a46ba0186fddc2bdeed6c7cb.tar.gz
nginx-a2de7b9b93a15128a46ba0186fddc2bdeed6c7cb.tar.bz2
delete win32 ngx_file_append_mode() as we use reliable
FILE_APPEND_DATA|SYNCHRONIZE flags
Diffstat (limited to '')
-rw-r--r--src/os/win32/ngx_files.c25
-rw-r--r--src/os/win32/ngx_files.h4
2 files changed, 0 insertions, 29 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;
diff --git a/src/os/win32/ngx_files.h b/src/os/win32/ngx_files.h
index 2efbc2043..636d14c19 100644
--- a/src/os/win32/ngx_files.h
+++ b/src/os/win32/ngx_files.h
@@ -73,10 +73,6 @@ ngx_fd_t ngx_open_file(u_char *name, u_long mode, u_long create, u_long access);
#define NGX_FILE_OWNER_ACCESS 0
-ngx_int_t ngx_file_append_mode(ngx_fd_t fd);
-#define ngx_file_append_mode_n "SetFilePointer()"
-
-
#define ngx_open_tempfile(name, persistent, access) \
CreateFile((const char *) name, \
GENERIC_READ|GENERIC_WRITE, \