User`s manual

Dynamic C Users Manual digi.com 163
10.2.4.3 Error Handling
Most routines in the FAT library return an int value error code indicating the status of the requested opera-
tion.
Table 12 contains a list of error codes specific to the FAT file system. Most of these codes, along
with some other error codes, are defined in/Lib/../ERRNO.LIB.
Table 12. FAT-Specific Error Codes
Code Value Description
EOF 231
End of File Encountered
EEOF 41
End-of-file marker reached
ETYPE 232
Incorrect Type
EPATHSTR 233
Invalid Path String
EROOTFULL 234
Root Directory is Full
EUNFORMAT 235
Unformatted Volume
EBADPART 236
Invalid Partition
ENOPART 237
Unpartitioned / Unformatted Media
ENOTEMPTY 238
Open Files in Partition / Directory to be Deleted
EPERM 1
Operation not permitted
ENOENT 2
No such file or directory
EIO 5
I/O error
EBUSY 16
Device or resource busy
EEXIST 17
File exists
ENODEV 19
No such device
ENOSPC 28
No space left on device
ENOTEMPTY 39
Directory is not empty
ENOMEDIUM 123
No medium found