aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2016-03-29 09:51:46 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2016-03-29 09:51:46 +0300
commit6871615528044ff3dce2bf2abdf862d1178a2c9e (patch)
treeddc22c3ff087e2ad0b717c16575c243abd609397 /src/os/unix
parent4618c03f4c130d30128a1cea135e2c9e636a13ba (diff)
downloadnginx-6871615528044ff3dce2bf2abdf862d1178a2c9e.tar.gz
nginx-6871615528044ff3dce2bf2abdf862d1178a2c9e.zip
Win32: additional error code NGX_EEXIST_FILE (ticket #910).
On Windows there are two possible error codes which correspond to the EEXIST error code: ERROR_FILE_EXISTS used by CreateFile(CREATE_NEW), and ERROR_ALREADY_EXISTS used by CreateDirectory(). MoveFile() seems to use both: ERROR_ALREADY_EXISTS when moving within one filesystem, and ERROR_FILE_EXISTS when copying a file to a different drive.
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_errno.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/unix/ngx_errno.h b/src/os/unix/ngx_errno.h
index 16cafda31..7d6ca764d 100644
--- a/src/os/unix/ngx_errno.h
+++ b/src/os/unix/ngx_errno.h
@@ -25,6 +25,7 @@ typedef int ngx_err_t;
#define NGX_EACCES EACCES
#define NGX_EBUSY EBUSY
#define NGX_EEXIST EEXIST
+#define NGX_EEXIST_FILE EEXIST
#define NGX_EXDEV EXDEV
#define NGX_ENOTDIR ENOTDIR
#define NGX_EISDIR EISDIR