Back to index

glibc  2.9
_G_config.h
Go to the documentation of this file.
00001 /* This file is needed by libio to define various configuration parameters.
00002    These are always the same in the GNU C library.  */
00003 
00004 #ifndef _G_config_h
00005 #define _G_config_h 1
00006 
00007 /* Define types for libio in terms of the standard internal type names.  */
00008 
00009 #include <bits/types.h>
00010 #define __need_size_t
00011 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
00012 # define __need_wchar_t
00013 #endif
00014 #define __need_NULL
00015 #include <stddef.h>
00016 #define __need_mbstate_t
00017 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
00018 # define __need_wint_t
00019 #endif
00020 #include <wchar.h>
00021 #define _G_size_t    size_t
00022 typedef struct
00023 {
00024   __off_t __pos;
00025   __mbstate_t __state;
00026 } _G_fpos_t;
00027 typedef struct
00028 {
00029   __off64_t __pos;
00030   __mbstate_t __state;
00031 } _G_fpos64_t;
00032 #define _G_ssize_t   __ssize_t
00033 #define _G_off_t     __off_t
00034 #define _G_off64_t   __off64_t
00035 #define       _G_pid_t      __pid_t
00036 #define       _G_uid_t      __uid_t
00037 #define _G_wchar_t   wchar_t
00038 #define _G_wint_t    wint_t
00039 #define _G_stat64    stat64
00040 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
00041 # include <gconv.h>
00042 typedef union
00043 {
00044   struct __gconv_info __cd;
00045   struct
00046   {
00047     struct __gconv_info __cd;
00048     struct __gconv_step_data __data;
00049   } __combined;
00050 } _G_iconv_t;
00051 #endif
00052 
00053 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
00054 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
00055 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
00056 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
00057 
00058 #define _G_HAVE_BOOL 1
00059 
00060 
00061 /* These library features are always available in the GNU C library.  */
00062 #define _G_HAVE_ATEXIT 1
00063 #define _G_HAVE_SYS_CDEFS 1
00064 #define _G_HAVE_SYS_WAIT 1
00065 #define _G_NEED_STDARG_H 1
00066 #define _G_va_list __gnuc_va_list
00067 
00068 #define _G_HAVE_PRINTF_FP 1
00069 #define _G_HAVE_MMAP 1
00070 #define _G_HAVE_LONG_DOUBLE_IO 1
00071 #define _G_HAVE_IO_FILE_OPEN 1
00072 #define _G_HAVE_IO_GETLINE_INFO 1
00073 
00074 #define _G_IO_IO_FILE_VERSION 0x20001
00075 
00076 #define _G_OPEN64    __open64
00077 #define _G_LSEEK64   __lseek64
00078 #define _G_MMAP64    __mmap64
00079 #define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf)
00080 
00081 /* This is defined by <bits/stat.h> if `st_blksize' exists.  */
00082 #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
00083 
00084 #define _G_BUFSIZ 8192
00085 
00086 /* These are the vtbl details for ELF.  */
00087 #define _G_NAMES_HAVE_UNDERSCORE 0
00088 #define _G_VTABLE_LABEL_HAS_LENGTH 1
00089 #define _G_USING_THUNKS     1
00090 #define _G_VTABLE_LABEL_PREFIX "__vt_"
00091 #define _G_VTABLE_LABEL_PREFIX_ID __vt_
00092 
00093 
00094 #if defined __cplusplus || defined __STDC__
00095 # define _G_ARGS(ARGLIST) ARGLIST
00096 #else
00097 # define _G_ARGS(ARGLIST) ()
00098 #endif
00099 
00100 #endif /* _G_config.h */