RAD Studio
ContentsIndex
PreviousUpNext
Error Numbers in errno

Header File 

errno.h 

Description 

These are the mnemonics and meanings for the error numbers found in errno. 

Each value listed can be used to index into the sys_errlist array for displaying messages. 

Also, perror will display messages.

Mnemonic  
Meaning 
EZERO 
Error 0 
EINVFNC  
Invalid function number 
ENOFILE  
File not found 
ENOPATH  
Path not found 
ECONTR  
Memory blocks destroyed 
EINVMEM  
Invalid memory block address 
EINVENV  
Invalid environment 
EINVFMT 
Invalid format 
EINVACC 
Invalid access code 
EINVDAT 
Invalid data 
EINVDRV 
Invalid drive specified 
ECURDIR  
Attempt to remove CurDir 
ENOTSAM 
Not same device 
ENMFILE 
No more files 
ENOENT  
No such file or directory 
EMFILE 
Too many open files 
EACCES  
Permission denied 
EBADF  
Bad file number 
ENOMEM  
Not enough memory 
EFAULT  
Unknown error 
ENODEV  
No such device 
EINVAL  
Invalid argument 
E2BIG  
Arg list too long 
ENOEXEC 
Exec format error 
EXDEV  
Cross-device link 
ENFILE 
Too many open files 
ECHILD  
No child process 
ENOTTY 
Terminal control function attempted on a file that is not a terminal. (POSIX – Not used in Win32 applications.) 
ETXTBSY 
Not used in Win32 applications 
EFBIG 
An attempt was made to write to a file, beyond the maximum file size. (POSIX – Not used in Win32 applications.) 
ESOSPC 
No space left on device 
ESPIPE 
Illegal seek 
EROFS 
Read-only file system 
EMLINK 
The number of links exceeds LINK_MAX. (POSIX – Not used in Win32 applications.) 
EPIPE 
Broken pipe 
EDOM  
Math argument 
ERANGE  
Result too large 
EEXIST  
File already exists 
EDEADLOCK 
Locking violation 
EPERM 
Operation not permitted 
ESRCH 
No such process id. (POSIX – Not used in Win32 applications.) 
EINTR 
Interrupted function call 
EIO 
Input/output error 
ENXIO 
No such device or address 
EAGAIN 
Resource temporarily unavailable 
ENOTBLK 
Not used in Win32 applications 
EBUSY 
Resource busy 
ENOTDIR 
A pathname component is not a directory. (POSIX – Not used in Win32 applications.) 
EISDIR 
An attempt was made to open a directory for writing, or to rename a file with the same name as an existing directory. (POSIX – Not used in Win32 applications.) 
EUCLEAN 
Not used in Win32 console applications 
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!