Macro: int ENOTSUP Not supported. You have to detect the failure and handle the error. This can mean that the device file was installed incorrectly, or that the physical device is missing or not correctly attached to the computer. int E2BIG Argument list too Here is an example showing how to handle failure to open a file correctly. http://jamisonsoftware.com/error-codes/fp-t-1000-error-codes.php
DOS usually doesn't return this error, but write and _write do this for it, when they detect a full disk condition. 27 ENOSYS -- Function not implemented. Macro: int ENAMETOOLONG Filename too long (longer than PATH_MAX; see Limits for Files) or host name too long (in gethostname or sethostname; see Host Identification). For example, trying to mount an ordinary file as a file system in Unix gives this error. Variable: char * program_invocation_name This variable’s value is the name that was used to invoke the program running in the current process.
The system cannot allocate more virtual memory because its capacity is full. The most likely reasons I can think of are: Writing to an element that is out of bounds Using a pointer/reference to an element that is no longer valid -- note Usually means encountered link loop (link1 -> link2, link2 -> link1). 40 EOVERFLOW -- Value too large.
If the global variable error_one_per_line is set to a non-zero value error_at_line will avoid printing consecutive messages for the same file and line. Macro: int EPFNOSUPPORT The socket communications protocol family you requested is not supported. This happens not only when you use link (see Hard Links) but also when you rename a file with rename (see Renaming Files). Posix Error Codes The function open_sesame tries to open the named file for reading and returns a stream if successful.
Variable: char * program_invocation_short_name This variable’s value is the name that was used to invoke the program running in the current process, with directory names removed. (That is to say, it C Programming Error Codes Share Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. Macro: int EINVAL Invalid argument. http://www.gnu.org/s/libc/manual/html_node/Checking-for-Errors.html The variable is global and shared by all threads.
On GNU/Hurd systems, this error never happens; you get a signal instead. C Error Function Just like error this function only returns if status is zero. The handling of the other parameters is identical to that of error except that between the program name and the string generated by the format string additional text is inserted. Macro: int ECONNRESET A network connection was closed for reasons outside the control of the local host, such as by the remote machine rebooting or an unrecoverable protocol violation.
Function: void verr (int status, const char *format, va_list ap) Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n | AC-Unsafe corrupt lock mem | See POSIX Safety Concepts. useful source This additional output of course is meant to be used to locate an error in an input file (like a programming language source code file etc). Linux Kernel Error Codes The function strerror_r is a GNU extension and it is declared in string.h. Eintr Errno In multithreaded programs it is a macro executing a function that returns the last error of the caller thread.
Trying the same operation again will block until some external condition makes it possible to read, write, or connect (whatever the operation). see here Paste some code, else it's impossible to say why this happens. Function: void error_at_line (int status, int errnum, const char *fname, unsigned int lineno, const char *format, …) Preliminary: | MT-Unsafe race:error_at_line/error_one_per_line locale | AS-Unsafe corrupt heap i18n | AC-Unsafe corrupt/error_one_per_line | Repairing this condition usually requires unmounting, possibly repairing and remounting the file system. Eintr Signal
Macro: int EXDEV An attempt to make an improper link across file systems was detected. Why (in universe) are blade runners called blade runners? The verr function is just like err except that the parameters for the handling of the format string format are passed in as a value of type va_list. this page Users do not usually see this error because functions such as read and write translate it into a SIGTTIN or SIGTTOU signal.
For functions that operate on some object given in a parameter, such as a file descriptor or a port, it might instead mean that only that specific object (file descriptor, port, Linux Errno Example There are two flags in the open call. void error ( int status, int errnum, const char *format, . . . ) Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n | AC-Safe | See Section 126.96.36.199 [POSIX Safety
Bibliography W. void warn ( const char *format, . . . ) Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n | AC-Unsafe corrupt lock mem | See Section 188.8.131.52 [POSIX Safety Concepts], Returned by open and mkdir when a file or directory by that name already exists. 11 EFAULT -- Bad address. Eagain Socket How exactly does mining software work?
The return value is a pointer to this string. This error happens on operations that are supposed to manipulate child processes, when there aren’t any processes to manipulate. cov(x,y)=0 but corr(x,y)=1 What are oxidation states used for? http://jamisonsoftware.com/error-codes/flx800-error-codes.php Attempt to remove current directory (including current directory on another drive), or when a networked resource, such as a drive, is in use by another process. 8 ECHILD -- No child
The vwarn function is just like warn except that the parameters for the handling of the format string format are passed in as a value of type va_list. The file was the wrong type for the operation, or a data file had the wrong format. Function: void warn (const char *format, …) Preliminary: | MT-Safe locale | AS-Unsafe corrupt heap i18n | AC-Unsafe corrupt lock mem | See POSIX Safety Concepts. There are a few library functions, like sqrt and atan, that return a perfectly legitimate value in case of an error, but also set errno.
Originally Posted by MadCow108 build your project with debug symbols (-g flag of g++) and it can tell you the lines Thanks for the tip. Directly following the program name a colon, followed by the file name pointed to by fname, another colon, and the value of lineno is printed. The output is directed to the stderr stream. error prints first the program name.
See Socket Addresses. int ENETDOWN A socket operation failed because the network was down. int ENETUNREACH A socket operation failed because the subnet containing the remote host void perror ( const char *message ) Preliminary: | MT-Safe race:stderr | AS-Unsafe corrupt i18n heap lock | AC-Unsafe corrupt lock mem fd | See Section 184.108.40.206 [POSIX Safety Concepts], page The vwarnx function is just like warnx except that the parameters for the handling of the format string format are passed in as a value of type va_list. Macro: int ESOCKTNOSUPPORT The socket type is not supported.
HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 glibc linux error list Raw linux-error.txt code define[EPERM] str[Operation not permitted] code define[ENOENT] str[No such file or directory] code define[ESRCH] Variable: void (*error_print_progname) (void) If the error_print_progname variable is defined to a non-zero value the function pointed to is called by error or error_at_line. Thanks again! Macro: int EFTYPE Inappropriate file type or format.
Macro: int EPROCLIM This means that the per-user limit on new process would be exceeded by an attempted fork. Such shortages are usually fairly serious and affect the whole system, so usually an interactive program should report the error to the user and return to its command loop. int