2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
10 #include <dos/dosasl.h>
13 int IoErr2errno (int ioerr
)
20 case ERROR_OBJECT_WRONG_TYPE
:
23 case ERROR_NO_FREE_STORE
:
26 case ERROR_DEVICE_NOT_MOUNTED
:
27 case ERROR_OBJECT_NOT_FOUND
:
30 case ERROR_OBJECT_EXISTS
:
33 case ERROR_BUFFER_OVERFLOW
:
39 case ERROR_FILE_NOT_OBJECT
:
40 case ERROR_NOT_EXECUTABLE
:
43 case ERROR_OBJECT_IN_USE
:
46 case ERROR_DIR_NOT_FOUND
:
49 case ERROR_RENAME_ACROSS_DEVICES
:
53 return MAX_ERRNO
+ioerr
;