source: svn/newcon3bcm2_21bu/toolchain/mips-linux-uclibc/include/bits/errno.h @ 43

Last change on this file since 43 was 43, checked in by megakiss, 11 years ago

광주방송 OTC 주파수 369Mhz로 변경

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1/* Error constants.  Linux specific version.
2   Copyright (C) 1996, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
3   This file is part of the GNU C Library.
4
5   The GNU C Library is free software; you can redistribute it and/or
6   modify it under the terms of the GNU Lesser General Public
7   License as published by the Free Software Foundation; either
8   version 2.1 of the License, or (at your option) any later version.
9
10   The GNU C Library is distributed in the hope that it will be useful,
11   but WITHOUT ANY WARRANTY; without even the implied warranty of
12   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   Lesser General Public License for more details.
14
15   You should have received a copy of the GNU Lesser General Public
16   License along with the GNU C Library; if not, write to the Free
17   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18   02111-1307 USA.  */
19
20#ifdef _ERRNO_H
21
22# include <bits/errno_values.h>
23
24#ifndef ENOTSUP
25# define ENOTSUP EOPNOTSUPP
26#endif
27
28#ifndef ECANCELED
29# define ECANCELED      125
30#endif
31
32# ifndef __ASSEMBLER__
33
34/* We now need a declaration of the `errno' variable.  */
35extern int errno;
36
37/* Function to get address of global `errno' variable.  */
38extern int *__errno_location (void) __THROW __attribute__ ((__const__));
39
40#  if defined _LIBC
41/* We wouldn't need a special macro anymore but it is history.  */
42#   define __set_errno(val) ((errno) = (val))
43#  endif /* _LIBC */
44
45#  if defined __UCLIBC_HAS_THREADS__
46/* When using threads, errno is a per-thread value.  */
47#   define errno (*__errno_location ())
48#  endif
49
50# endif /* !__ASSEMBLER__ */
51#endif /* _ERRNO_H */
52
Note: See TracBrowser for help on using the repository browser.