]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV
authorChristian Franke <christian.franke@t-online.de>
Fri, 23 Feb 2024 18:01:09 +0000 (19:01 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 24 Feb 2024 12:12:37 +0000 (13:12 +0100)
commitec5ef42f545699ba02f53ce5b89b7dfc7e92d7ca
tree60ee5737d5a8b5b3d09d9b798ed090a938621fe4
parent1f407990d291e9b99bd1393f772217331b97bd21
Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV

If a removable (USB) device is disconnected after opening its raw
device, R/W attempts fail with ERROR_NO_SUCH_DEVICE(433).  If the
raw device of a partition is used, ERROR_MEDIA_CHANGED(1110) is
returned instead.  Both are mapped to ENODEV(19) because <errno.h>
does not offer a value which better matches ERROR_MEDIA_CHANGED.

Signed-off-by: Christian Franke <christian.franke@t-online.de>
winsup/cygwin/local_includes/errmap.h
This page took 0.02829 seconds and 5 git commands to generate.