On 05/02/2017 03:55 PM, Bruno Haible wrote:
Filename                            GetLastError()           errno in Emacs   
errno in Gnulib

'\\server'                          ERROR_BAD_PATHNAME       EINVAL           
ENOENT
'\\server\nonexistentshare\'        ERROR_BAD_NET_NAME       EINVAL           
ENOENT
 ?                                  ERROR_INVALID_DRIVE      ENOENT           
EINVAL
 ?                                  ERROR_BAD_NETPATH        ENOENT           
EINVAL
 ?                                  ERROR_DEV_NOT_EXIST      ENOENT           
EINVAL
'C:\System Volume Information\foo'  ERROR_ACCESS_DENIED      EACCES           
EACCESS or EPERM (*)
'C:\pagefile.sys'                   ERROR_SHARING_VIOLATION  EACCES           
EACCESS or EPERM (*)

(*) According to POSIX: 
http://pubs.opengroup.org/onlinepubs/9699919799/functions/utime.html

Can you tell me how to provoke a ERROR_INVALID_DRIVE, ERROR_BAD_NETPATH, or
ERROR_DEV_NOT_EXIST error code?

Billy O'Neal (copied) at Microsoft might be able to help; he's been doing similar error-code mapping for their filesystems (for C++17).

Davis

--
This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.

Reply via email to