Amiga Developer Site by i n n o i d e a | MorphOS | Amiga Developers | Compilers | Documents | Dev-HardFile v1.11 for UAE / real Amiga - readme - shot) | Unique/All Visitors: 77257/570053
Search manual for function in the   
GeekGadgets/errno - AmiTCP/errno
NAME 

errno - number of last error

SYNOPSIS 

#include <errno.h>


extern int errno;

DESCRIPTION 

The integer
errno 
is set by system calls (and some library functions) to indicate
what went wrong.  Its value is significant only when the call
returned an error (usually -1), and a library function that does succeed
is allowed to change
errno.

Sometimes, when -1 is also a legal return value one has to zero
errno 
before the call in order to detect possible errors.

errno is defined by the ISO C standard to be a modifiable lvalue
of type int, and must not be explicitly declared; errno
may be a macro.  errno is thread-local; setting it in one thread
does not affect its value in any other thread.

Valid error numbers are all non-zero; errno is never set to zero
by any library function.  All the error names specified by POSIX.1
must have distinct values.

POSIX.1 (1996 edition) lists the following symbolic error names.  Of
these, EDOM and ERANGE are in the ISO C standard.  ISO C
Amendment 1 defines the additional error number EILSEQ for
coding errors in multibyte or wide characters.

E2BIG 
Arg list too long
EACCES 
Permission denied
EAGAIN 
Resource temporarily unavailable
EBADF 
Bad file descriptor
EBADMSG 
Bad message
EBUSY 
Resource busy
ECANCELED 
Operation canceled
ECHILD 
No child processes
EDEADLK 
Resource deadlock avoided
EDOM 
Domain error
EEXIST 
File exists
EFAULT 
Bad address
EFBIG 
File too large
EINPROGRESS 
Operation in progress
EINTR 
Interrupted function call
EINVAL 
Invalid argument
EIO 
Input/output error
EISDIR 
Is a directory
EMFILE 
Too many open files
EMLINK 
Too many links
EMSGSIZE 
Inappropriate message buffer length
ENAMETOOLONG 
Filename too long
ENFILE 
Too many open files in system
ENODEV 
No such device
ENOENT 
No such file or directory
ENOEXEC 
Exec format error
ENOLCK 
No locks available
ENOMEM 
Not enough space
ENOSPC 
No space left on device
ENOSYS 
Function not implemented
ENOTDIR 
Not a directory
ENOTEMPTY 
Directory not empty
ENOTSUP 
Not supported
ENOTTY 
Inappropriate I/O control operation
ENXIO 
No such device or address
EPERM 
Operation not permitted
EPIPE 
Broken pipe
ERANGE 
Result too large
EROFS 
Read-only file system
ESPIPE 
Invalid seek
ESRCH 
No such process
ETIMEDOUT 
Operation timed out
EXDEV 
Improper link


Many other error numbers are returned by various Unix implementations.
System V returns ETXTBSY (Text file busy) if one tries to exec() a file
that is currently open for writing.  Linux also returns this error
if one tries to have a file both memory mapped with VM_DENYWRITE
and open for writing.


SEE ALSO 

perror(3),
strerror(3)



Logo by Emeric/SH
GeekGadgets/errno

Example #1 Download / View
Example #2 Download / View

Functions with "e":
ecvt
else
encrypt
endfsent
endgrent
endhostent
endian.h
endmntent
endnetent
endprotoent
endpwent
endrpcent
endservent
endusershell
endutent
endutxent
enum
erand48
erf
erfc
err.h
errno
errno.h
exec
exec.h
execl
execle
execlp
execv
execve
execvp
exit
exp
expm1
extern

Last 15 uploaded Examples:

20071229151342 AmiSSL/X509_STORE_CTX_cleanup
20070708011052 GeekGadgets/getlogin
20060705053954 AmigaOS/OpenWorkbenchObjectA
20050801035639 SDL/SDL_Surface
20050727092732 BlitzBasic/LSL
20050718102843 SDL/SDL_WarpMouse
20050718072844 GeekGadgets/fread
20050714051528 SDL/SDL_ActiveEvent
20050714051514 SDL/SDL_ActiveEvent
20050701171401 GeekGadgets/errno
20050701171347 GeekGadgets/errno
20050627101951 SDL/SDL_FreeSurface
20050623152729 GeekGadgets/fork
20050619153102 GeekGadgets/tcdrain
20050615182849 AmigaOS/OpenScreen

Last 25 posts:

20050613235812 SDL/SDL_SetGammaRamp
20050526065000 AmiTCP/unistd.h
20050413041558 AmiSSL/X509_STORE_set_default_paths
20050409155750 AmigaDOS/Status
20050129230614 MUI/Calendar.mcc
20050128185620 GeekGadgets/hstrerror
20041126154558 BlitzBasic/LoadBank
20041123170704 GeekGadgets/gcvt
20041105222909 AmigaOS/CheckSignal
20040712190839 SDL/SDL_SetVideoMode
20040627090529 SDL/SDL_Init
20040519133228 GeekGadgets/fork
20040407124555 AmigaOS/AllocMem
20040403101120 GeekGadgets/inet_ntoa
20040327172814 GeekGadgets/random
20040327172714 GeekGadgets/srandom
20040313211937 BlitzBasic/ANALYZEDISK
20040303135237 GeekGadgets/mktemp
20040301131355 GeekGadgets/realpath
20040301123615 GeekGadgets/gcvt
20040301114000 GeekGadgets/htonl
20040301100209 GeekGadgets/realpath
20040229095437 GeekGadgets/time
20040211132618 GeekGadgets/getpid
20040209102818 AmigaOS/OpenWindow




Amiga.sf
AMIGIFT

Locations of visitors to this page

Page took 1.073222 seconds to load.