Update.
[platform/upstream/glibc.git] / sysdeps / generic / _G_config.h
1 /* This file is needed by libio to define various configuration parameters.
2    These are always the same in the GNU C library.  */
3
4 #ifndef _G_config_h
5 #define _G_config_h 1
6
7 /* Define types for libio in terms of the standard internal type names.  */
8
9 #include <bits/types.h>
10 #define __need_size_t
11 #define __need_wchar_t
12 #define __need_wint_t
13 #define __need_NULL
14 #include <stddef.h>
15 #ifndef _WINT_T
16 /* Integral type unchanged by default argument promotions that can
17    hold any value corresponding to members of the extended character
18    set, as well as at least one value that does not correspond to any
19    member of the extended character set.  */
20 # define _WINT_T
21 typedef unsigned int wint_t;
22 #endif
23 #define _G_size_t       size_t
24 typedef struct
25 {
26   __off_t __pos;
27   __mbstate_t __state;
28 } _G_fpos_t;
29 typedef struct
30 {
31   __off64_t __pos;
32   __mbstate_t __state;
33 } _G_fpos64_t;
34 #define _G_ssize_t      __ssize_t
35 #define _G_off_t        __off_t
36 #define _G_off64_t      __off_t
37 #define _G_pid_t        __pid_t
38 #define _G_uid_t        __uid_t
39 #define _G_wchar_t      wchar_t
40 #define _G_wint_t       wint_t
41 #define _G_stat64       stat
42 #include <gconv.h>
43 typedef struct
44 {
45   __gconv_t __cd;
46   struct __gconv_step_data __data;
47 } _G_iconv_t;
48
49 typedef int _G_int16_t __attribute__ ((__mode__ (__HI__)));
50 typedef int _G_int32_t __attribute__ ((__mode__ (__SI__)));
51 typedef unsigned int _G_uint16_t __attribute__ ((__mode__ (__HI__)));
52 typedef unsigned int _G_uint32_t __attribute__ ((__mode__ (__SI__)));
53
54 #define _G_HAVE_BOOL 1
55
56
57 /* These library features are always available in the GNU C library.  */
58 #define _G_HAVE_ATEXIT 1
59 #define _G_HAVE_SYS_CDEFS 1
60 #define _G_HAVE_SYS_WAIT 1
61 #define _G_NEED_STDARG_H 1
62 #define _G_va_list __gnuc_va_list
63
64 #define _G_HAVE_PRINTF_FP 1
65 #define _G_HAVE_MMAP 1
66 #define _G_HAVE_LONG_DOUBLE_IO 1
67 #define _G_HAVE_IO_FILE_OPEN 1
68 #define _G_HAVE_IO_GETLINE_INFO 1
69
70 #define _G_IO_IO_FILE_VERSION 0x20001
71
72 /* This is defined by <bits/stat.h> if `st_blksize' exists.  */
73 #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
74
75 #define _G_BUFSIZ 8192
76
77 /* These are the vtbl details for ELF.  */
78 #define _G_NAMES_HAVE_UNDERSCORE 0
79 #define _G_VTABLE_LABEL_PREFIX "_vt."
80 #define _G_VTABLE_LABEL_HAS_LENGTH 1
81
82
83 #if defined __cplusplus || defined __STDC__
84 # define _G_ARGS(ARGLIST) ARGLIST
85 #else
86 # define _G_ARGS(ARGLIST) ()
87 #endif
88
89 #endif  /* _G_config.h */