1
/* Copyright (C) 2007 Free Software Foundation, Inc.
2
This file is part of the GNU C Library.
4
The GNU C Library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
9
The GNU C Library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
14
You should have received a copy of the GNU Lesser General Public
15
License along with the GNU C Library; if not, write to the Free
16
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19
As a special exception, if you link the code in this file with
20
files compiled with a GNU compiler to produce an executable,
21
that does not cause the resulting executable to be covered by
22
the GNU Lesser General Public License. This exception does not
23
however invalidate any other reasons why the executable file
24
might be covered by the GNU Lesser General Public License.
25
This exception applies to code released by its copyright holders
26
in files containing the exception. */
33
static void __THROW __attribute__ ((__noreturn__))
34
_IO_wfile_wide_char_support_disabled (void)
36
static const char errstr[]
37
= ("The application tried to use wide character I/O, but libc.so"
39
"with the OPTION_POSIX_C_LANG_WIDE_CHAR option group disabled.\n");
40
__libc_write (STDERR_FILENO, errstr, sizeof (errstr) - 1);
45
_IO_wfile_disabled_void_int (_IO_FILE *fp, int x)
47
_IO_wfile_wide_char_support_disabled ();
51
_IO_wfile_disabled_int_int (_IO_FILE *fp, int x)
53
_IO_wfile_wide_char_support_disabled ();
57
_IO_wfile_disabled_int_none (_IO_FILE *fp)
59
_IO_wfile_wide_char_support_disabled ();
63
_IO_wfile_disabled_xsputn (_IO_FILE *fp, const void *data, _IO_size_t n)
65
_IO_wfile_wide_char_support_disabled ();
69
_IO_wfile_disabled_xsgetn (_IO_FILE *fp, void *data, _IO_size_t n)
71
_IO_wfile_wide_char_support_disabled ();
75
_IO_wfile_disabled_seekoff (_IO_FILE *fp, _IO_off64_t off, int dir, int mode)
77
_IO_wfile_wide_char_support_disabled ();
81
_IO_wfile_disabled_seekpos (_IO_FILE *fp, _IO_off64_t pos, int flags)
83
_IO_wfile_wide_char_support_disabled ();
87
_IO_wfile_disabled_setbuf (_IO_FILE *fp, char *buffer, _IO_ssize_t length)
89
_IO_wfile_wide_char_support_disabled ();
93
_IO_wfile_disabled_read (_IO_FILE *fp, void *buffer, _IO_ssize_t length)
95
_IO_wfile_wide_char_support_disabled ();
99
_IO_wfile_disabled_write (_IO_FILE *fp, const void *buffer, _IO_ssize_t length)
101
_IO_wfile_wide_char_support_disabled ();
105
_IO_wfile_disabled_seek (_IO_FILE *fp, _IO_off64_t offset, int mode)
107
_IO_wfile_wide_char_support_disabled ();
111
_IO_wfile_disabled_close (_IO_FILE *fp)
113
_IO_wfile_wide_char_support_disabled ();
117
_IO_wfile_disabled_stat (_IO_FILE *fp, void *buf)
119
_IO_wfile_wide_char_support_disabled ();
123
_IO_wfile_disabled_showmanyc (_IO_FILE *fp)
125
_IO_wfile_wide_char_support_disabled ();
129
_IO_wfile_disabled_imbue (_IO_FILE *fp, void *locale)
131
_IO_wfile_wide_char_support_disabled ();
134
static const struct _IO_jump_t _IO_wfile_jumps_disabled =
137
JUMP_INIT(finish, _IO_wfile_disabled_void_int),
138
JUMP_INIT(overflow, _IO_wfile_disabled_int_int),
139
JUMP_INIT(underflow, _IO_wfile_disabled_int_none),
140
JUMP_INIT(uflow, _IO_wfile_disabled_int_none),
141
JUMP_INIT(pbackfail, _IO_wfile_disabled_int_int),
142
JUMP_INIT(xsputn, _IO_wfile_disabled_xsputn),
143
JUMP_INIT(xsgetn, _IO_wfile_disabled_xsgetn),
144
JUMP_INIT(seekoff, _IO_wfile_disabled_seekoff),
145
JUMP_INIT(seekpos, _IO_wfile_disabled_seekpos),
146
JUMP_INIT(setbuf, _IO_wfile_disabled_setbuf),
147
JUMP_INIT(sync, _IO_wfile_disabled_int_none),
148
JUMP_INIT(doallocate, _IO_wfile_disabled_int_none),
149
JUMP_INIT(read, _IO_wfile_disabled_read),
150
JUMP_INIT(write, _IO_wfile_disabled_write),
151
JUMP_INIT(seek, _IO_wfile_disabled_seek),
152
JUMP_INIT(close, _IO_wfile_disabled_close),
153
JUMP_INIT(stat, _IO_wfile_disabled_stat),
154
JUMP_INIT(showmanyc, _IO_wfile_disabled_showmanyc),
155
JUMP_INIT(imbue, _IO_wfile_disabled_imbue)
158
strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps)
159
libc_hidden_data_def (_IO_wfile_jumps)
160
strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps_mmap)
161
strong_alias (_IO_wfile_jumps_disabled, _IO_wfile_jumps_maybe_mmap)