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

errno.h

このファイルのドキュメントを参照する
00001 /* Copyright (c) 2002,2007 Marek Michalkiewicz
00002    All rights reserved.
00003 
00004    Redistribution and use in source and binary forms, with or without
00005    modification, are permitted provided that the following conditions are met:
00006 
00007    * Redistributions of source code must retain the above copyright
00008      notice, this list of conditions and the following disclaimer.
00009 
00010    * Redistributions in binary form must reproduce the above copyright
00011      notice, this list of conditions and the following disclaimer in
00012      the documentation and/or other materials provided with the
00013      distribution.
00014 
00015    * Neither the name of the copyright holders nor the names of
00016      contributors may be used to endorse or promote products derived
00017      from this software without specific prior written permission.
00018 
00019   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00020   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00021   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00022   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00023   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00024   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00025   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00026   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00027   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00028   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00029   POSSIBILITY OF SUCH DAMAGE. */
00030 
00031 /* $Id: errno.h 1196 2007-01-23 15:34:58Z joerg_wunsch $ */
00032 
00033 #ifndef __ERRNO_H_
00034 #define __ERRNO_H_ 1
00035 
00036 /** \file */
00037 /** \defgroup avr_errno <errno.h>: System Errors
00038 
00039     \code #include <errno.h>\endcode
00040 
00041     Some functions in the library set the global variable \c errno when an
00042     error occurs. The file, \c <errno.h>, provides symbolic names for various
00043     error codes. 
00044 
00045     \warning The \c errno global variable is not safe to use in a threaded or
00046     multi-task system. A race condition can occur if a task is interrupted
00047     between the call which sets \c error and when the task examines \c
00048     errno. If another task changes \c errno during this time, the result will
00049     be incorrect for the interrupted task. */
00050 
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054 
00055 extern int errno;
00056 
00057 #ifdef __cplusplus
00058 }
00059 #endif
00060 
00061 /** \ingroup avr_errno
00062     \def EDOM
00063 
00064     Domain error. */
00065 #define EDOM       33
00066 
00067 /** \ingroup avr_errno
00068     \def ERANGE
00069 
00070     Range error. */
00071 #define ERANGE     34
00072 
00073 #endif

Automatically generated by Doxygen 1.7.2 on Wed Feb 16 2011.

翻訳更新:2011年10月8日 by cega