]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/unix/sysv/linux/_G_config.h
Move _G_config.h with Linuxism to linux/ directory.
[thirdparty/glibc.git] / sysdeps / unix / sysv / linux / _G_config.h
CommitLineData
fa00327f
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
5107cf1d 9#include <bits/types.h>
fa00327f 10#define __need_size_t
7b503bcc
UD
11#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
12# define __need_wchar_t
13#endif
6973fc01 14#define __need_NULL
fa00327f 15#include <stddef.h>
d64b6ad0 16#define __need_mbstate_t
7b503bcc
UD
17#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
18# define __need_wint_t
19#endif
d64b6ad0 20#include <wchar.h>
d64b6ad0
UD
21typedef struct
22{
23 __off_t __pos;
24 __mbstate_t __state;
25} _G_fpos_t;
26typedef struct
27{
28 __off64_t __pos;
29 __mbstate_t __state;
30} _G_fpos64_t;
dfd2257a 31#define _G_off64_t __off64_t
279eb600 32#define _G_stat64 stat64
7b503bcc
UD
33#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
34# include <gconv.h>
d64b6ad0
UD
35typedef union
36{
37 struct __gconv_info __cd;
38 struct
39 {
40 struct __gconv_info __cd;
41 struct __gconv_step_data __data;
42 } __combined;
43} _G_iconv_t;
7b503bcc 44#endif
fa00327f
RM
45
46
47/* These library features are always available in the GNU C library. */
fa00327f
RM
48#define _G_va_list __gnuc_va_list
49
f8b87ef0 50#define _G_HAVE_MMAP 1
eaae7493 51#define _G_HAVE_MREMAP 1
bd355af0
UD
52
53#define _G_IO_IO_FILE_VERSION 0x20001
6259ec0d 54
279eb600
UD
55#define _G_OPEN64 __open64
56#define _G_LSEEK64 __lseek64
0469311e 57#define _G_MMAP64 __mmap64
279eb600 58#define _G_FSTAT64(fd,buf) __fxstat64 (_STAT_VER, fd, buf)
dfd2257a 59
5107cf1d 60/* This is defined by <bits/stat.h> if `st_blksize' exists. */
fa00327f
RM
61#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE)
62
63#define _G_BUFSIZ 8192
64
fa00327f 65#endif /* _G_config.h */