comparison src/os/unix/ngx_errno.h @ 6468:a5897d360977

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 29 Mar 2016 09:51:46 +0300
parents 3c5ddf0575d8
children 58afcd72446f
comparison
equal deleted inserted replaced
6467:91c8d990fb45 6468:a5897d360977
23 #define NGX_ECHILD ECHILD 23 #define NGX_ECHILD ECHILD
24 #define NGX_ENOMEM ENOMEM 24 #define NGX_ENOMEM ENOMEM
25 #define NGX_EACCES EACCES 25 #define NGX_EACCES EACCES
26 #define NGX_EBUSY EBUSY 26 #define NGX_EBUSY EBUSY
27 #define NGX_EEXIST EEXIST 27 #define NGX_EEXIST EEXIST
28 #define NGX_EEXIST_FILE EEXIST
28 #define NGX_EXDEV EXDEV 29 #define NGX_EXDEV EXDEV
29 #define NGX_ENOTDIR ENOTDIR 30 #define NGX_ENOTDIR ENOTDIR
30 #define NGX_EISDIR EISDIR 31 #define NGX_EISDIR EISDIR
31 #define NGX_EINVAL EINVAL 32 #define NGX_EINVAL EINVAL
32 #define NGX_ENFILE ENFILE 33 #define NGX_ENFILE ENFILE