AVR Libc Home Page AVRs AVR Libc Development Pages
Main Page User Manual Reference FAQ Example Projects

errno.8h

Go to the documentation of this file.
01	1 Copyright (c) 2002,2007 Marek Michalkiewicz
	022All rights reserved.
	033
	044Redistribution and use in source and binary forms, with or without
	055modification, are permitted provided that the following conditions are met:
	066
	077* Redistributions of source code must retain the above copyright
	088notice, this list of conditions and the following disclaimer.
	099
	1010* Redistributions in binary form must reproduce the above copyright
	1111notice, this list of conditions and the following disclaimer in
	1212the documentation and/or other materials provided with the
	1313distribution.
	1414
	1515* Neither the name of the copyright holders nor the names of
	1616contributors may be used to endorse or promote products derived
	1717from this software without specific prior written permission.
	1818
	1919THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	2020AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	2121IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	2222ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
	2323LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
	2424CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
	2525SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
	2626INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	2727CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	2828ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
	2929POSSIBILITY OF SUCH DAMAGE. */
	3030
	3131/* $Id: errno.h 2503 2016-02-07 22:59:47Z joerg_wunsch $ */
	3232
	3333#ifndef __ERRNO_H_
	3434#define __ERRNO_H_ 1
	3535
	3636/** \file */
	3737/** \defgroup avr_errno <errno.h>: System Errors
	3838
	3939\code #include <errno.h>\endcode
	4040
	4141Some functions in the library set the global variable \c errno when an
	4242error occurs. The file, \c <errno.h>, provides symbolic names for various
	4343error codes.
	4444*/
	4545
	4646#ifdef __cplusplus
	4747extern "C" {
	4848#endif
	4949
	5050/** \ingroup avr_errno
	5151\brief Error code for last error encountered by library
	5252
	5353The variable \c errno holds the last error code encountered by
	5454a library function.  This variable must be cleared by the
	5555user prior to calling a library function.
	5656
	5757\warning The \c errno global variable is not safe to use in a threaded or
	5858multi-task system. A race condition can occur if a task is interrupted
	5959between the call which sets \c error and when the task examines \c
	6060errno. If another task changes \c errno during this time, the result will
	6161be incorrect for the interrupted task. */
	6262extern int errno;
	6363
	6464#ifdef __cplusplus
	6565}
	6666#endif
	6767
	6868/** \ingroup avr_errno
	6969\def EDOM
	7070
	7171Domain error. */
	72   72#define EDOM       33
	7373
	7474/** \ingroup avr_errno
	7575\def ERANGE
	7676
	7777Range error. */
	78   78#define ERANGE     34
	7979
	8080#ifndef __DOXYGEN__
	8181
	8282/* ((((('E'-64)*26+('N'-64))*26+('O'-64))*26+('S'-64))*26+('Y'-64))*26+'S'-64 */
	8383#define ENOSYS ((int)(66081697 & 0x7fff))
	8484
	8585/* (((('E'-64)*26+('I'-64))*26+('N'-64))*26+('T'-64))*26+('R'-64) */
	8686#define EINTR ((int)(2453066 & 0x7fff))
	8787
	8888#define E2BIG ENOERR
	8989#define EACCES ENOERR
	9090#define EADDRINUSE ENOERR
	9191#define EADDRNOTAVAIL ENOERR
	9292#define EAFNOSUPPORT ENOERR
	9393#define EAGAIN ENOERR
	9494#define EALREADY ENOERR
	9595#define EBADF ENOERR
	9696#define EBUSY ENOERR
	9797#define ECHILD ENOERR
	9898#define ECONNABORTED ENOERR
	9999#define ECONNREFUSED ENOERR
	100100#define ECONNRESET ENOERR
	101101#define EDEADLK ENOERR
	102102#define EDESTADDRREQ ENOERR
	103103#define EEXIST ENOERR
	104104#define EFAULT ENOERR
	105105#define EFBIG ENOERR
	106106#define EHOSTUNREACH ENOERR
	107107#define EILSEQ ENOERR
	108108#define EINPROGRESS ENOERR
	109109#define EINVAL ENOERR
	110110#define EIO ENOERR
	111111#define EISCONN ENOERR
	112112#define EISDIR ENOERR
	113113#define ELOOP ENOERR
	114114#define EMFILE ENOERR
	115115#define EMLINK ENOERR
	116116#define EMSGSIZE ENOERR
	117117#define ENAMETOOLONG ENOERR
	118118#define ENETDOWN ENOERR
	119119#define ENETRESET ENOERR
	120120#define ENETUNREACH ENOERR
	121121#define ENFILE ENOERR
	122122#define ENOBUFS ENOERR
	123123#define ENODEV ENOERR
	124124#define ENOENT ENOERR
	125125#define ENOEXEC ENOERR
	126126#define ENOLCK ENOERR
	127127#define ENOMEM ENOERR
	128128#define ENOMSG ENOERR
	129129#define ENOPROTOOPT ENOERR
	130130#define ENOSPC ENOERR
	131131#define ENOTCONN ENOERR
	132132#define ENOTDIR ENOERR
	133133#define ENOTEMPTY ENOERR
	134134#define ENOTSOCK ENOERR
	135135#define ENOTTY ENOERR
	136136#define ENXIO ENOERR
	137137#define EOPNOTSUPP ENOERR
	138138#define EPERM ENOERR
	139139#define EPIPE ENOERR
	140140#define EPROTONOSUPPORT ENOERR
	141141#define EPROTOTYPE ENOERR
	142142#define EROFS ENOERR
	143143#define ESPIPE ENOERR
	144144#define ESRCH ENOERR
	145145#define ETIMEDOUT ENOERR
	146146#define EWOULDBLOCK ENOERR
	147147#define EXDEV ENOERR
	148148
	149149/* ((((('E'-64)*26+('N'-64))*26+('O'-64))*26+('E'-64))*26+('R'-64))*26+'R'-64 */
	150150#define ENOERR ((int)(66072050 & 0xffff))
	151151
	152152#endif  /* !__DOXYGEN__ */
	153153
	154154#endif
	

errno int errno

Error code for last error encountered by library.> Definition: errno.c:31