Lines Matching refs:errno
16 program should include the header file @file{errno.h} to use this
18 @pindex errno.h
35 variable @code{errno}. This variable is declared in the header file
36 @file{errno.h}.
37 @pindex errno.h
39 @deftypevr {Variable} {volatile int} errno
40 @standards{ISO, errno.h}
41 The variable @code{errno} contains the system error number. You can
42 change the value of @code{errno}.
44 Since @code{errno} is declared @code{volatile}, it might be changed
47 of @code{errno}, so you generally do not need to worry about this
50 The initial value of @code{errno} at program startup is zero. In many
52 @code{errno} to a non-zero value to indicate what specific error
58 @strong{Warning:} Many library functions may set @code{errno} to some
62 inspecting the value of @code{errno}. The proper way to check for
65 @strong{Portability Note:} @w{ISO C} specifies @code{errno} as a
75 set @code{errno}. For these functions, if you want to check to see
76 whether an error occurred, the recommended method is to set @code{errno}
80 @pindex errno.h
82 @file{errno.h}. The names start with @samp{E} and an upper-case
93 The value of @code{errno} doesn't necessarily have to correspond to any
114 @pindex errno.h
115 The error code macros are defined in the header file @file{errno.h}.
121 @standards{POSIX.1, errno.h}
122 @errno{EPERM, 1, Operation not permitted}
128 @standards{POSIX.1, errno.h}
129 @errno{ENOENT, 2, No such file or directory}
136 @standards{POSIX.1, errno.h}
137 @errno{ESRCH, 3, No such process}
142 @standards{POSIX.1, errno.h}
143 @errno{EINTR, 4, Interrupted system call}
154 @standards{POSIX.1, errno.h}
155 @errno{EIO, 5, Input/output error}
160 @standards{POSIX.1, errno.h}
161 @errno{ENXIO, 6, No such device or address}
170 @standards{POSIX.1, errno.h}
171 @errno{E2BIG, 7, Argument list too long}
179 @standards{POSIX.1, errno.h}
180 @errno{ENOEXEC, 8, Exec format error}
186 @standards{POSIX.1, errno.h}
187 @errno{EBADF, 9, Bad file descriptor}
194 @standards{POSIX.1, errno.h}
195 @errno{ECHILD, 10, No child processes}
202 @standards{POSIX.1, errno.h}
203 @errno{EDEADLK, 11, Resource deadlock avoided}
211 @standards{POSIX.1, errno.h}
212 @errno{ENOMEM, 12, Cannot allocate memory}
218 @standards{POSIX.1, errno.h}
219 @errno{EACCES, 13, Permission denied}
224 @standards{POSIX.1, errno.h}
225 @errno{EFAULT, 14, Bad address}
231 @standards{BSD, errno.h}
232 @errno{ENOTBLK, 15, Block device required}
239 @standards{POSIX.1, errno.h}
240 @errno{EBUSY, 16, Device or resource busy}
247 @standards{POSIX.1, errno.h}
248 @errno{EEXIST, 17, File exists}
254 @standards{POSIX.1, errno.h}
255 @errno{EXDEV, 18, Invalid cross-device link}
262 @standards{POSIX.1, errno.h}
263 @errno{ENODEV, 19, No such device}
269 @standards{POSIX.1, errno.h}
270 @errno{ENOTDIR, 20, Not a directory}
275 @standards{POSIX.1, errno.h}
276 @errno{EISDIR, 21, Is a directory}
282 @standards{POSIX.1, errno.h}
283 @errno{EINVAL, 22, Invalid argument}
289 @standards{POSIX.1, errno.h}
290 @errno{EMFILE, 24, Too many open files}
301 @standards{POSIX.1, errno.h}
302 @errno{ENFILE, 23, Too many open files in system}
309 @standards{POSIX.1, errno.h}
310 @errno{ENOTTY, 25, Inappropriate ioctl for device}
316 @standards{BSD, errno.h}
317 @errno{ETXTBSY, 26, Text file busy}
326 @standards{POSIX.1, errno.h}
327 @errno{EFBIG, 27, File too large}
332 @standards{POSIX.1, errno.h}
333 @errno{ENOSPC, 28, No space left on device}
339 @standards{POSIX.1, errno.h}
340 @errno{ESPIPE, 29, Illegal seek}
345 @standards{POSIX.1, errno.h}
346 @errno{EROFS, 30, Read-only file system}
351 @standards{POSIX.1, errno.h}
352 @errno{EMLINK, 31, Too many links}
359 @standards{POSIX.1, errno.h}
360 @errno{EPIPE, 32, Broken pipe}
369 @standards{ISO, errno.h}
370 @errno{EDOM, 33, Numerical argument out of domain}
376 @standards{ISO, errno.h}
377 @errno{ERANGE, 34, Numerical result out of range}
383 @standards{POSIX.1, errno.h}
384 @errno{EAGAIN, 35, Resource temporarily unavailable}
417 @standards{BSD, errno.h}
418 @errno{EWOULDBLOCK, EAGAIN, Operation would block}
427 @standards{BSD, errno.h}
428 @errno{EINPROGRESS, 36, Operation now in progress}
440 @standards{BSD, errno.h}
441 @errno{EALREADY, 37, Operation already in progress}
447 @standards{BSD, errno.h}
448 @errno{ENOTSOCK, 38, Socket operation on non-socket}
453 @standards{BSD, errno.h}
454 @errno{EMSGSIZE, 40, Message too long}
460 @standards{BSD, errno.h}
461 @errno{EPROTOTYPE, 41, Protocol wrong type for socket}
466 @standards{BSD, errno.h}
467 @errno{ENOPROTOOPT, 42, Protocol not available}
473 @standards{BSD, errno.h}
474 @errno{EPROTONOSUPPORT, 43, Protocol not supported}
481 @standards{BSD, errno.h}
482 @errno{ESOCKTNOSUPPORT, 44, Socket type not supported}
487 @standards{BSD, errno.h}
488 @errno{EOPNOTSUPP, 45, Operation not supported}
498 @standards{BSD, errno.h}
499 @errno{EPFNOSUPPORT, 46, Protocol family not supported}
504 @standards{BSD, errno.h}
505 @errno{EAFNOSUPPORT, 47, Address family not supported by protocol}
511 @standards{BSD, errno.h}
512 @errno{EADDRINUSE, 48, Address already in use}
517 @standards{BSD, errno.h}
518 @errno{EADDRNOTAVAIL, 49, Cannot assign requested address}
525 @standards{BSD, errno.h}
526 @errno{ENETDOWN, 50, Network is down}
531 @standards{BSD, errno.h}
532 @errno{ENETUNREACH, 51, Network is unreachable}
538 @standards{BSD, errno.h}
539 @errno{ENETRESET, 52, Network dropped connection on reset}
544 @standards{BSD, errno.h}
545 @errno{ECONNABORTED, 53, Software caused connection abort}
550 @standards{BSD, errno.h}
551 @errno{ECONNRESET, 54, Connection reset by peer}
558 @standards{BSD, errno.h}
559 @errno{ENOBUFS, 55, No buffer space available}
566 @standards{BSD, errno.h}
567 @errno{EISCONN, 56, Transport endpoint is already connected}
573 @standards{BSD, errno.h}
574 @errno{ENOTCONN, 57, Transport endpoint is not connected}
582 @standards{BSD, errno.h}
583 @errno{EDESTADDRREQ, 39, Destination address required}
590 @standards{BSD, errno.h}
591 @errno{ESHUTDOWN, 58, Cannot send after transport endpoint shutdown}
596 @standards{BSD, errno.h}
597 @errno{ETOOMANYREFS, 59, Too many references: cannot splice}
601 @standards{BSD, errno.h}
602 @errno{ETIMEDOUT, 60, Connection timed out}
608 @standards{BSD, errno.h}
609 @errno{ECONNREFUSED, 61, Connection refused}
615 @standards{BSD, errno.h}
616 @errno{ELOOP, 62, Too many levels of symbolic links}
622 @standards{POSIX.1, errno.h}
623 @errno{ENAMETOOLONG, 63, File name too long}
630 @standards{BSD, errno.h}
631 @errno{EHOSTDOWN, 64, Host is down}
636 @standards{BSD, errno.h}
637 @errno{EHOSTUNREACH, 65, No route to host}
642 @standards{POSIX.1, errno.h}
643 @errno{ENOTEMPTY, 66, Directory not empty}
649 @standards{BSD, errno.h}
650 @errno{EPROCLIM, 67, Too many processes}
657 @standards{BSD, errno.h}
658 @errno{EUSERS, 68, Too many users}
664 @standards{BSD, errno.h}
665 @errno{EDQUOT, 69, Disk quota exceeded}
670 @standards{BSD, errno.h}
671 @errno{ESTALE, 70, Stale file handle}
680 @standards{BSD, errno.h}
681 @errno{EREMOTE, 71, Object is remote}
689 @standards{BSD, errno.h}
690 @errno{EBADRPC, 72, RPC struct is bad}
694 @standards{BSD, errno.h}
695 @errno{ERPCMISMATCH, 73, RPC version wrong}
699 @standards{BSD, errno.h}
700 @errno{EPROGUNAVAIL, 74, RPC program not available}
704 @standards{BSD, errno.h}
705 @errno{EPROGMISMATCH, 75, RPC program version wrong}
709 @standards{BSD, errno.h}
710 @errno{EPROCUNAVAIL, 76, RPC bad procedure for program}
714 @standards{POSIX.1, errno.h}
715 @errno{ENOLCK, 77, No locks available}
723 @standards{BSD, errno.h}
724 @errno{EFTYPE, 79, Inappropriate file type or format}
733 @standards{BSD, errno.h}
734 @errno{EAUTH, 80, Authentication error}
738 @standards{BSD, errno.h}
739 @errno{ENEEDAUTH, 81, Need authenticator}
743 @standards{POSIX.1, errno.h}
744 @errno{ENOSYS, 78, Function not implemented}
753 @standards{GNU, errno.h}
754 @errno{ELIBEXEC, 83, Cannot exec a shared library directly}
758 @standards{POSIX.1, errno.h}
759 @errno{ENOTSUP, 118, Not supported}
775 @standards{ISO, errno.h}
776 @errno{EILSEQ, 106, Invalid or incomplete multibyte or wide character}
782 @standards{GNU, errno.h}
783 @errno{EBACKGROUND, 100, Inappropriate operation for background process}
793 @standards{GNU, errno.h}
794 @errno{EDIED, 101, Translator died}
801 @standards{GNU, errno.h}
802 @errno{ED, 102, ?}
809 @standards{GNU, errno.h}
810 @errno{EGREGIOUS, 103, You really blew it this time}
815 @standards{GNU, errno.h}
816 @errno{EIEIO, 104, Computer bought the farm}
821 @c errno macro EIO, I think about that song. Probably most of my
834 @standards{GNU, errno.h}
835 @errno{EGRATUITOUS, 105, Gratuitous error}
840 @standards{XOPEN, errno.h}
841 @errno{EBADMSG, 107, Bad message}
845 @standards{XOPEN, errno.h}
846 @errno{EIDRM, 108, Identifier removed}
850 @standards{XOPEN, errno.h}
851 @errno{EMULTIHOP, 109, Multihop attempted}
855 @standards{XOPEN, errno.h}
856 @errno{ENODATA, 110, No data available}
860 @standards{XOPEN, errno.h}
861 @errno{ENOLINK, 111, Link has been severed}
865 @standards{XOPEN, errno.h}
866 @errno{ENOMSG, 112, No message of desired type}
870 @standards{XOPEN, errno.h}
871 @errno{ENOSR, 113, Out of streams resources}
875 @standards{XOPEN, errno.h}
876 @errno{ENOSTR, 114, Device not a stream}
880 @standards{XOPEN, errno.h}
881 @errno{EOVERFLOW, 115, Value too large for defined data type}
885 @standards{XOPEN, errno.h}
886 @errno{EPROTO, 116, Protocol error}
890 @standards{XOPEN, errno.h}
891 @errno{ETIME, 117, Timer expired}
895 @standards{POSIX.1, errno.h}
896 @errno{ECANCELED, 119, Operation canceled}
904 @standards{GNU, errno.h}
905 @errno{EOWNERDEAD, 120, Owner died}
909 @standards{GNU, errno.h}
910 @errno{ENOTRECOVERABLE, 121, State not recoverable}
918 @standards{Linux???, errno.h}
919 @errno{ERESTART, ???/85, Interrupted system call should be restarted}
923 @standards{Linux???, errno.h}
924 @errno{ECHRNG, ???/44, Channel number out of range}
928 @standards{Obsolete, errno.h}
929 @errno{EL2NSYNC, ???/45, Level 2 not synchronized}
933 @standards{Obsolete, errno.h}
934 @errno{EL3HLT, ???/46, Level 3 halted}
938 @standards{Obsolete, errno.h}
939 @errno{EL3RST, ???/47, Level 3 reset}
943 @standards{Linux???, errno.h}
944 @errno{ELNRNG, ???/48, Link number out of range}
948 @standards{Linux???, errno.h}
949 @errno{EUNATCH, ???/49, Protocol driver not attached}
953 @standards{Linux???, errno.h}
954 @errno{ENOCSI, ???/50, No CSI structure available}
958 @standards{Obsolete, errno.h}
959 @errno{EL2HLT, ???/51, Level 2 halted}
963 @standards{Linux???, errno.h}
964 @errno{EBADE, ???/52, Invalid exchange}
968 @standards{Linux???, errno.h}
969 @errno{EBADR, ???/53, Invalid request descriptor}
973 @standards{Linux???, errno.h}
974 @errno{EXFULL, ???/54, Exchange full}
978 @standards{Linux???, errno.h}
979 @errno{ENOANO, ???/55, No anode}
983 @standards{Linux???, errno.h}
984 @errno{EBADRQC, ???/56, Invalid request code}
988 @standards{Linux???, errno.h}
989 @errno{EBADSLT, ???/57, Invalid slot}
993 @standards{Linux???, errno.h}
994 @errno{EDEADLOCK, ???/58, File locking deadlock error}
998 @standards{Linux???, errno.h}
999 @errno{EBFONT, ???/59, Bad font file format}
1003 @standards{Linux???, errno.h}
1004 @errno{ENONET, ???/64, Machine is not on the network}
1008 @standards{Linux???, errno.h}
1009 @errno{ENOPKG, ???/65, Package not installed}
1013 @standards{Linux???, errno.h}
1014 @errno{EADV, ???/68, Advertise error}
1018 @standards{Linux???, errno.h}
1019 @errno{ESRMNT, ???/69, Srmount error}
1023 @standards{Linux???, errno.h}
1024 @errno{ECOMM, ???/70, Communication error on send}
1028 @standards{Linux???, errno.h}
1029 @errno{EDOTDOT, ???/73, RFS specific error}
1033 @standards{Linux???, errno.h}
1034 @errno{ENOTUNIQ, ???/76, Name not unique on network}
1038 @standards{Linux???, errno.h}
1039 @errno{EBADFD, ???/77, File descriptor in bad state}
1043 @standards{Linux???, errno.h}
1044 @errno{EREMCHG, ???/78, Remote address changed}
1048 @standards{Linux???, errno.h}
1049 @errno{ELIBACC, ???/79, Can not access a needed shared library}
1053 @standards{Linux???, errno.h}
1054 @errno{ELIBBAD, ???/80, Accessing a corrupted shared library}
1058 @standards{Linux???, errno.h}
1059 @errno{ELIBSCN, ???/81, .lib section in a.out corrupted}
1063 @standards{Linux???, errno.h}
1064 @errno{ELIBMAX, ???/82, Attempting to link in too many shared libraries}
1068 @standards{Linux???, errno.h}
1069 @errno{ESTRPIPE, ???/86, Streams pipe error}
1073 @standards{Linux???, errno.h}
1074 @errno{EUCLEAN, ???/117, Structure needs cleaning}
1078 @standards{Linux???, errno.h}
1079 @errno{ENOTNAM, ???/118, Not a XENIX named type file}
1083 @standards{Linux???, errno.h}
1084 @errno{ENAVAIL, ???/119, No XENIX semaphores available}
1088 @standards{Linux???, errno.h}
1089 @errno{EISNAM, ???/120, Is a named type file}
1093 @standards{Linux???, errno.h}
1094 @errno{EREMOTEIO, ???/121, Remote I/O error}
1098 @standards{Linux???, errno.h}
1099 @errno{ENOMEDIUM, ???/???, No medium found}
1103 @standards{Linux???, errno.h}
1104 @errno{EMEDIUMTYPE, ???/???, Wrong medium type}
1108 @standards{Linux, errno.h}
1109 @errno{ENOKEY, ???/???, Required key not available}
1113 @standards{Linux, errno.h}
1114 @errno{EKEYEXPIRED, ???/???, Key has expired}
1118 @standards{Linux, errno.h}
1119 @errno{EKEYREVOKED, ???/???, Key has been revoked}
1123 @standards{Linux, errno.h}
1124 @errno{EKEYREJECTED, ???/???, Key was rejected by service}
1128 @standards{Linux, errno.h}
1129 @errno{ERFKILL, ???/???, Operation not possible due to RF-kill}
1133 @standards{Linux, errno.h}
1134 @errno{EHWPOISON, ???/???, Memory page has hardware error}
1157 The value @var{errnum} normally comes from the variable @code{errno}.
1200 corresponding to @code{errno}, adding a trailing newline.
1205 to @code{errno}.
1249 @standards{GNU, errno.h}
1255 This variable is a GNU extension and is declared in @file{errno.h}.
1259 @standards{GNU, errno.h}
1265 This variable is a GNU extension and is declared in @file{errno.h}.
1287 functions might overwrite @code{errno} in the meantime.
1292 #include <errno.h>
1302 errno = 0;
1307 program_invocation_short_name, name, strerror (errno));
1344 @code{errno} might have a different value.
1483 error (0, errno, format, @r{the parameters})
1531 error (status, errno, format, @r{the parameters})