diff src/os/win32/ngx_errno.h @ 2394:dbe746851b31

use ngx_ext_rename_file() for single file MOVE
author Igor Sysoev <igor@sysoev.ru>
date Wed, 10 Dec 2008 14:53:45 +0000
parents 192443881e51
children 64a10d6b97bd
line wrap: on
line diff
--- a/src/os/win32/ngx_errno.h
+++ b/src/os/win32/ngx_errno.h
@@ -23,10 +23,13 @@ typedef DWORD                      ngx_e
 #define NGX_ENOENT                 ERROR_FILE_NOT_FOUND
 #define NGX_ENOMEM                 ERROR_NOT_ENOUGH_MEMORY
 #define NGX_EACCES                 ERROR_ACCESS_DENIED
-#if 0
-#define NGX_EEXIST                 ERROR_FILE_EXISTS
-#endif
+/* it's seems that ERROR_FILE_EXISTS is not appropriate error code */
 #define NGX_EEXIST                 ERROR_ALREADY_EXISTS
+/*
+ * could not found cross volume directory move error code,
+ * so use ERROR_WRONG_DISK as stub one
+ */
+#define NGX_EXDEV                  ERROR_WRONG_DISK
 #define NGX_ENOTDIR                ERROR_PATH_NOT_FOUND
 #define NGX_EISDIR                 ERROR_CANNOT_MAKE
 #define NGX_ENOSPC                 ERROR_DISK_FULL