Back to index

glibc  2.9
aeabi_lcsts.c
Go to the documentation of this file.
00001 /* Link-time constants for ARM EABI.
00002    Copyright (C) 2005 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    In addition to the permissions in the GNU Lesser General Public
00011    License, the Free Software Foundation gives you unlimited
00012    permission to link the compiled version of this file with other
00013    programs, and to distribute those programs without any restriction
00014    coming from the use of this file. (The GNU Lesser General Public
00015    License restrictions do apply in other respects; for example, they
00016    cover modification of the file, and distribution when not linked
00017    into another program.)
00018 
00019    Note that people who make modified versions of this file are not
00020    obligated to grant this special exception for their modified
00021    versions; it is their choice whether to do so. The GNU Lesser
00022    General Public License gives permission to release a modified
00023    version without this exception; this exception also makes it
00024    possible to release a modified version which carries forward this
00025    exception.
00026 
00027    The GNU C Library is distributed in the hope that it will be useful,
00028    but WITHOUT ANY WARRANTY; without even the implied warranty of
00029    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00030    Lesser General Public License for more details.
00031 
00032    You should have received a copy of the GNU Lesser General Public
00033    License along with the GNU C Library; if not, write to the Free
00034    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00035    02111-1307 USA.  */
00036 
00037 /* The ARM EABI requires that we provide ISO compile-time constants as
00038    link-time constants.  Some portable applications may reference these.  */
00039 
00040 #include <errno.h>
00041 #include <limits.h>
00042 #include <locale.h>
00043 #include <setjmp.h>
00044 #include <signal.h>
00045 #include <stdio.h>
00046 #include <time.h>
00047 
00048 #define eabi_constant2(X,Y) const int __aeabi_##X attribute_hidden = Y
00049 #define eabi_constant(X) const int __aeabi_##X attribute_hidden = X
00050 
00051 eabi_constant (EDOM);
00052 eabi_constant (ERANGE);
00053 eabi_constant (EILSEQ);
00054 
00055 eabi_constant (MB_LEN_MAX);
00056 
00057 eabi_constant (LC_COLLATE);
00058 eabi_constant (LC_CTYPE);
00059 eabi_constant (LC_MONETARY);
00060 eabi_constant (LC_NUMERIC);
00061 eabi_constant (LC_TIME);
00062 eabi_constant (LC_ALL);
00063 
00064 /* The value of __aeabi_JMP_BUF_SIZE is the number of doublewords in a
00065    jmp_buf.  */
00066 eabi_constant2 (JMP_BUF_SIZE, sizeof (jmp_buf) / 8);
00067 
00068 eabi_constant (SIGABRT);
00069 eabi_constant (SIGFPE);
00070 eabi_constant (SIGILL);
00071 eabi_constant (SIGINT);
00072 eabi_constant (SIGSEGV);
00073 eabi_constant (SIGTERM);
00074 
00075 eabi_constant2 (IOFBF, _IOFBF);
00076 eabi_constant2 (IOLBF, _IOLBF);
00077 eabi_constant2 (IONBF, _IONBF);
00078 eabi_constant (BUFSIZ);
00079 eabi_constant (FOPEN_MAX);
00080 eabi_constant (TMP_MAX);
00081 eabi_constant (FILENAME_MAX);
00082 eabi_constant (L_tmpnam);
00083 
00084 eabi_constant (CLOCKS_PER_SEC);