]>
Commit | Line | Data |
---|---|---|
eaae7493 RM |
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 | |
7b503bcc UD |
11 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T |
12 | # define __need_wchar_t | |
13 | #endif | |
eaae7493 RM |
14 | #define __need_NULL |
15 | #include <stddef.h> | |
eaae7493 | 16 | #define __need_mbstate_t |
7b503bcc UD |
17 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T |
18 | # define __need_wint_t | |
19 | #endif | |
eaae7493 RM |
20 | #include <wchar.h> |
21 | #define _G_size_t size_t | |
22 | typedef struct | |
23 | { | |
24 | __off_t __pos; | |
25 | __mbstate_t __state; | |
26 | } _G_fpos_t; | |
27 | typedef struct | |
28 | { | |
29 | __off64_t __pos; | |
30 | __mbstate_t __state; | |
31 | } _G_fpos64_t; | |
32 | #define _G_ssize_t __ssize_t | |
33 | #define _G_off_t __off_t | |
34 | #define _G_off64_t __off64_t | |
35 | #define _G_pid_t __pid_t | |
36 | #define _G_uid_t __uid_t | |
37 | #define _G_wchar_t wchar_t | |
38 | #define _G_wint_t wint_t | |
39 | #define _G_stat64 stat64 | |
7b503bcc UD |
40 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T |
41 | # include <gconv.h> | |
eaae7493 RM |
42 | typedef union |
43 | { | |
44 | struct __gconv_info __cd; | |
45 | struct | |
46 | { | |
47 | struct __gconv_info __cd; | |
48 | struct __gconv_step_data __data; | |
49 | } __combined; | |
50 | } _G_iconv_t; | |
7b503bcc | 51 | #endif |
eaae7493 | 52 | |
eaae7493 RM |
53 | |
54 | /* These library features are always available in the GNU C library. */ | |
eaae7493 RM |
55 | #define _G_HAVE_SYS_WAIT 1 |
56 | #define _G_NEED_STDARG_H 1 | |
57 | #define _G_va_list __gnuc_va_list | |
58 | ||
eaae7493 | 59 | #define _G_HAVE_MMAP 1 |
eaae7493 RM |
60 | |
61 | #define _G_IO_IO_FILE_VERSION 0x20001 | |
62 | ||
63 | #define _G_OPEN64 __open64 | |
64 | #define _G_LSEEK64 __lseek64 | |
65 | #define _G_MMAP64 __mmap64 | |
66 | #define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf) | |
67 | ||
68 | /* This is defined by <bits/stat.h> if `st_blksize' exists. */ | |
69 | #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) | |
70 | ||
71 | #define _G_BUFSIZ 8192 | |
72 | ||
eaae7493 | 73 | #endif /* _G_config.h */ |