Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: wchar2.h
/* Checking macros for wchar functions.
[0] Fix | Delete
Copyright (C) 2005-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef _WCHAR_H
[18] Fix | Delete
# error "Never include <bits/wchar2.h> directly; use <wchar.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
[22] Fix | Delete
extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1,
[23] Fix | Delete
const wchar_t *__restrict __s2, size_t __n,
[24] Fix | Delete
size_t __ns1) __THROW;
[25] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemcpy_alias,
[26] Fix | Delete
(wchar_t *__restrict __s1,
[27] Fix | Delete
const wchar_t *__restrict __s2, size_t __n),
[28] Fix | Delete
wmemcpy);
[29] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn,
[30] Fix | Delete
(wchar_t *__restrict __s1,
[31] Fix | Delete
const wchar_t *__restrict __s2, size_t __n,
[32] Fix | Delete
size_t __ns1), __wmemcpy_chk)
[33] Fix | Delete
__warnattr ("wmemcpy called with length bigger than size of destination "
[34] Fix | Delete
"buffer");
[35] Fix | Delete
[36] Fix | Delete
__fortify_function wchar_t *
[37] Fix | Delete
__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
[38] Fix | Delete
size_t __n))
[39] Fix | Delete
{
[40] Fix | Delete
return __glibc_fortify_n (wmemcpy, __n, sizeof (wchar_t),
[41] Fix | Delete
__glibc_objsize0 (__s1),
[42] Fix | Delete
__s1, __s2, __n);
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
[46] Fix | Delete
extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2,
[47] Fix | Delete
size_t __n, size_t __ns1) __THROW;
[48] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemmove_alias, (wchar_t *__s1,
[49] Fix | Delete
const wchar_t *__s2,
[50] Fix | Delete
size_t __n), wmemmove);
[51] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn,
[52] Fix | Delete
(wchar_t *__s1, const wchar_t *__s2,
[53] Fix | Delete
size_t __n, size_t __ns1), __wmemmove_chk)
[54] Fix | Delete
__warnattr ("wmemmove called with length bigger than size of destination "
[55] Fix | Delete
"buffer");
[56] Fix | Delete
[57] Fix | Delete
__fortify_function wchar_t *
[58] Fix | Delete
__NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n))
[59] Fix | Delete
{
[60] Fix | Delete
return __glibc_fortify_n (wmemmove, __n, sizeof (wchar_t),
[61] Fix | Delete
__glibc_objsize0 (__s1),
[62] Fix | Delete
__s1, __s2, __n);
[63] Fix | Delete
}
[64] Fix | Delete
[65] Fix | Delete
[66] Fix | Delete
#ifdef __USE_GNU
[67] Fix | Delete
extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1,
[68] Fix | Delete
const wchar_t *__restrict __s2, size_t __n,
[69] Fix | Delete
size_t __ns1) __THROW;
[70] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmempcpy_alias,
[71] Fix | Delete
(wchar_t *__restrict __s1,
[72] Fix | Delete
const wchar_t *__restrict __s2,
[73] Fix | Delete
size_t __n), wmempcpy);
[74] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn,
[75] Fix | Delete
(wchar_t *__restrict __s1,
[76] Fix | Delete
const wchar_t *__restrict __s2, size_t __n,
[77] Fix | Delete
size_t __ns1), __wmempcpy_chk)
[78] Fix | Delete
__warnattr ("wmempcpy called with length bigger than size of destination "
[79] Fix | Delete
"buffer");
[80] Fix | Delete
[81] Fix | Delete
__fortify_function wchar_t *
[82] Fix | Delete
__NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2,
[83] Fix | Delete
size_t __n))
[84] Fix | Delete
{
[85] Fix | Delete
return __glibc_fortify_n (wmempcpy, __n, sizeof (wchar_t),
[86] Fix | Delete
__glibc_objsize0 (__s1),
[87] Fix | Delete
__s1, __s2, __n);
[88] Fix | Delete
}
[89] Fix | Delete
#endif
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n,
[93] Fix | Delete
size_t __ns) __THROW;
[94] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemset_alias, (wchar_t *__s, wchar_t __c,
[95] Fix | Delete
size_t __n), wmemset);
[96] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn,
[97] Fix | Delete
(wchar_t *__s, wchar_t __c, size_t __n,
[98] Fix | Delete
size_t __ns), __wmemset_chk)
[99] Fix | Delete
__warnattr ("wmemset called with length bigger than size of destination "
[100] Fix | Delete
"buffer");
[101] Fix | Delete
[102] Fix | Delete
__fortify_function wchar_t *
[103] Fix | Delete
__NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n))
[104] Fix | Delete
{
[105] Fix | Delete
return __glibc_fortify_n (wmemset, __n, sizeof (wchar_t),
[106] Fix | Delete
__glibc_objsize0 (__s),
[107] Fix | Delete
__s, __c, __n);
[108] Fix | Delete
}
[109] Fix | Delete
[110] Fix | Delete
[111] Fix | Delete
extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest,
[112] Fix | Delete
const wchar_t *__restrict __src,
[113] Fix | Delete
size_t __n) __THROW;
[114] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcscpy_alias,
[115] Fix | Delete
(wchar_t *__restrict __dest,
[116] Fix | Delete
const wchar_t *__restrict __src), wcscpy);
[117] Fix | Delete
[118] Fix | Delete
__fortify_function wchar_t *
[119] Fix | Delete
__NTH (wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src))
[120] Fix | Delete
{
[121] Fix | Delete
size_t sz = __glibc_objsize (__dest);
[122] Fix | Delete
if (sz != (size_t) -1)
[123] Fix | Delete
return __wcscpy_chk (__dest, __src, sz / sizeof (wchar_t));
[124] Fix | Delete
return __wcscpy_alias (__dest, __src);
[125] Fix | Delete
}
[126] Fix | Delete
[127] Fix | Delete
[128] Fix | Delete
extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest,
[129] Fix | Delete
const wchar_t *__restrict __src,
[130] Fix | Delete
size_t __destlen) __THROW;
[131] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcpcpy_alias,
[132] Fix | Delete
(wchar_t *__restrict __dest,
[133] Fix | Delete
const wchar_t *__restrict __src), wcpcpy);
[134] Fix | Delete
[135] Fix | Delete
__fortify_function wchar_t *
[136] Fix | Delete
__NTH (wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src))
[137] Fix | Delete
{
[138] Fix | Delete
size_t sz = __glibc_objsize (__dest);
[139] Fix | Delete
if (sz != (size_t) -1)
[140] Fix | Delete
return __wcpcpy_chk (__dest, __src, sz / sizeof (wchar_t));
[141] Fix | Delete
return __wcpcpy_alias (__dest, __src);
[142] Fix | Delete
}
[143] Fix | Delete
[144] Fix | Delete
[145] Fix | Delete
extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest,
[146] Fix | Delete
const wchar_t *__restrict __src, size_t __n,
[147] Fix | Delete
size_t __destlen) __THROW;
[148] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcsncpy_alias,
[149] Fix | Delete
(wchar_t *__restrict __dest,
[150] Fix | Delete
const wchar_t *__restrict __src,
[151] Fix | Delete
size_t __n), wcsncpy);
[152] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn,
[153] Fix | Delete
(wchar_t *__restrict __dest,
[154] Fix | Delete
const wchar_t *__restrict __src,
[155] Fix | Delete
size_t __n, size_t __destlen), __wcsncpy_chk)
[156] Fix | Delete
__warnattr ("wcsncpy called with length bigger than size of destination "
[157] Fix | Delete
"buffer");
[158] Fix | Delete
[159] Fix | Delete
__fortify_function wchar_t *
[160] Fix | Delete
__NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
[161] Fix | Delete
size_t __n))
[162] Fix | Delete
{
[163] Fix | Delete
return __glibc_fortify_n (wcsncpy, __n, sizeof (wchar_t),
[164] Fix | Delete
__glibc_objsize (__dest),
[165] Fix | Delete
__dest, __src, __n);
[166] Fix | Delete
}
[167] Fix | Delete
[168] Fix | Delete
[169] Fix | Delete
extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest,
[170] Fix | Delete
const wchar_t *__restrict __src, size_t __n,
[171] Fix | Delete
size_t __destlen) __THROW;
[172] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias,
[173] Fix | Delete
(wchar_t *__restrict __dest,
[174] Fix | Delete
const wchar_t *__restrict __src,
[175] Fix | Delete
size_t __n), wcpncpy);
[176] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn,
[177] Fix | Delete
(wchar_t *__restrict __dest,
[178] Fix | Delete
const wchar_t *__restrict __src,
[179] Fix | Delete
size_t __n, size_t __destlen), __wcpncpy_chk)
[180] Fix | Delete
__warnattr ("wcpncpy called with length bigger than size of destination "
[181] Fix | Delete
"buffer");
[182] Fix | Delete
[183] Fix | Delete
__fortify_function wchar_t *
[184] Fix | Delete
__NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
[185] Fix | Delete
size_t __n))
[186] Fix | Delete
{
[187] Fix | Delete
return __glibc_fortify_n (wcpncpy, __n, sizeof (wchar_t),
[188] Fix | Delete
__glibc_objsize (__dest),
[189] Fix | Delete
__dest, __src, __n);
[190] Fix | Delete
}
[191] Fix | Delete
[192] Fix | Delete
[193] Fix | Delete
extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest,
[194] Fix | Delete
const wchar_t *__restrict __src,
[195] Fix | Delete
size_t __destlen) __THROW;
[196] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcscat_alias,
[197] Fix | Delete
(wchar_t *__restrict __dest,
[198] Fix | Delete
const wchar_t *__restrict __src), wcscat);
[199] Fix | Delete
[200] Fix | Delete
__fortify_function wchar_t *
[201] Fix | Delete
__NTH (wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src))
[202] Fix | Delete
{
[203] Fix | Delete
size_t sz = __glibc_objsize (__dest);
[204] Fix | Delete
if (sz != (size_t) -1)
[205] Fix | Delete
return __wcscat_chk (__dest, __src, sz / sizeof (wchar_t));
[206] Fix | Delete
return __wcscat_alias (__dest, __src);
[207] Fix | Delete
}
[208] Fix | Delete
[209] Fix | Delete
[210] Fix | Delete
extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest,
[211] Fix | Delete
const wchar_t *__restrict __src,
[212] Fix | Delete
size_t __n, size_t __destlen) __THROW;
[213] Fix | Delete
extern wchar_t *__REDIRECT_NTH (__wcsncat_alias,
[214] Fix | Delete
(wchar_t *__restrict __dest,
[215] Fix | Delete
const wchar_t *__restrict __src,
[216] Fix | Delete
size_t __n), wcsncat);
[217] Fix | Delete
[218] Fix | Delete
__fortify_function wchar_t *
[219] Fix | Delete
__NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src,
[220] Fix | Delete
size_t __n))
[221] Fix | Delete
{
[222] Fix | Delete
size_t sz = __glibc_objsize (__dest);
[223] Fix | Delete
if (sz != (size_t) -1)
[224] Fix | Delete
return __wcsncat_chk (__dest, __src, __n, sz / sizeof (wchar_t));
[225] Fix | Delete
return __wcsncat_alias (__dest, __src, __n);
[226] Fix | Delete
}
[227] Fix | Delete
[228] Fix | Delete
[229] Fix | Delete
extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n,
[230] Fix | Delete
int __flag, size_t __s_len,
[231] Fix | Delete
const wchar_t *__restrict __format, ...)
[232] Fix | Delete
__THROW /* __attribute__ ((__format__ (__wprintf__, 5, 6))) */;
[233] Fix | Delete
[234] Fix | Delete
extern int __REDIRECT_NTH_LDBL (__swprintf_alias,
[235] Fix | Delete
(wchar_t *__restrict __s, size_t __n,
[236] Fix | Delete
const wchar_t *__restrict __fmt, ...),
[237] Fix | Delete
swprintf);
[238] Fix | Delete
[239] Fix | Delete
#ifdef __va_arg_pack
[240] Fix | Delete
__fortify_function int
[241] Fix | Delete
__NTH (swprintf (wchar_t *__restrict __s, size_t __n,
[242] Fix | Delete
const wchar_t *__restrict __fmt, ...))
[243] Fix | Delete
{
[244] Fix | Delete
size_t sz = __glibc_objsize (__s);
[245] Fix | Delete
if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
[246] Fix | Delete
return __swprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[247] Fix | Delete
sz / sizeof (wchar_t), __fmt, __va_arg_pack ());
[248] Fix | Delete
return __swprintf_alias (__s, __n, __fmt, __va_arg_pack ());
[249] Fix | Delete
}
[250] Fix | Delete
#elif !defined __cplusplus
[251] Fix | Delete
/* XXX We might want to have support in gcc for swprintf. */
[252] Fix | Delete
# define swprintf(s, n, ...) \
[253] Fix | Delete
(__glibc_objsize (s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1 \
[254] Fix | Delete
? __swprintf_chk (s, n, __USE_FORTIFY_LEVEL - 1, \
[255] Fix | Delete
__glibc_objsize (s) / sizeof (wchar_t), __VA_ARGS__) \
[256] Fix | Delete
: swprintf (s, n, __VA_ARGS__))
[257] Fix | Delete
#endif
[258] Fix | Delete
[259] Fix | Delete
extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n,
[260] Fix | Delete
int __flag, size_t __s_len,
[261] Fix | Delete
const wchar_t *__restrict __format,
[262] Fix | Delete
__gnuc_va_list __arg)
[263] Fix | Delete
__THROW /* __attribute__ ((__format__ (__wprintf__, 5, 0))) */;
[264] Fix | Delete
[265] Fix | Delete
extern int __REDIRECT_NTH_LDBL (__vswprintf_alias,
[266] Fix | Delete
(wchar_t *__restrict __s, size_t __n,
[267] Fix | Delete
const wchar_t *__restrict __fmt,
[268] Fix | Delete
__gnuc_va_list __ap), vswprintf);
[269] Fix | Delete
[270] Fix | Delete
__fortify_function int
[271] Fix | Delete
__NTH (vswprintf (wchar_t *__restrict __s, size_t __n,
[272] Fix | Delete
const wchar_t *__restrict __fmt, __gnuc_va_list __ap))
[273] Fix | Delete
{
[274] Fix | Delete
size_t sz = __glibc_objsize (__s);
[275] Fix | Delete
if (sz != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
[276] Fix | Delete
return __vswprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[277] Fix | Delete
sz / sizeof (wchar_t), __fmt, __ap);
[278] Fix | Delete
return __vswprintf_alias (__s, __n, __fmt, __ap);
[279] Fix | Delete
}
[280] Fix | Delete
[281] Fix | Delete
[282] Fix | Delete
#if __USE_FORTIFY_LEVEL > 1
[283] Fix | Delete
[284] Fix | Delete
extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag,
[285] Fix | Delete
const wchar_t *__restrict __format, ...);
[286] Fix | Delete
extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format,
[287] Fix | Delete
...);
[288] Fix | Delete
extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag,
[289] Fix | Delete
const wchar_t *__restrict __format,
[290] Fix | Delete
__gnuc_va_list __ap);
[291] Fix | Delete
extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format,
[292] Fix | Delete
__gnuc_va_list __ap);
[293] Fix | Delete
[294] Fix | Delete
# ifdef __va_arg_pack
[295] Fix | Delete
__fortify_function int
[296] Fix | Delete
wprintf (const wchar_t *__restrict __fmt, ...)
[297] Fix | Delete
{
[298] Fix | Delete
return __wprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
[299] Fix | Delete
}
[300] Fix | Delete
[301] Fix | Delete
__fortify_function int
[302] Fix | Delete
fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...)
[303] Fix | Delete
{
[304] Fix | Delete
return __fwprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
[305] Fix | Delete
__va_arg_pack ());
[306] Fix | Delete
}
[307] Fix | Delete
# elif !defined __cplusplus
[308] Fix | Delete
# define wprintf(...) \
[309] Fix | Delete
__wprintf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
[310] Fix | Delete
# define fwprintf(stream, ...) \
[311] Fix | Delete
__fwprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__)
[312] Fix | Delete
# endif
[313] Fix | Delete
[314] Fix | Delete
__fortify_function int
[315] Fix | Delete
vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
[316] Fix | Delete
{
[317] Fix | Delete
return __vwprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __ap);
[318] Fix | Delete
}
[319] Fix | Delete
[320] Fix | Delete
__fortify_function int
[321] Fix | Delete
vfwprintf (__FILE *__restrict __stream,
[322] Fix | Delete
const wchar_t *__restrict __fmt, __gnuc_va_list __ap)
[323] Fix | Delete
{
[324] Fix | Delete
return __vfwprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, __ap);
[325] Fix | Delete
}
[326] Fix | Delete
[327] Fix | Delete
#endif
[328] Fix | Delete
[329] Fix | Delete
extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n,
[330] Fix | Delete
__FILE *__restrict __stream) __wur;
[331] Fix | Delete
extern wchar_t *__REDIRECT (__fgetws_alias,
[332] Fix | Delete
(wchar_t *__restrict __s, int __n,
[333] Fix | Delete
__FILE *__restrict __stream), fgetws) __wur;
[334] Fix | Delete
extern wchar_t *__REDIRECT (__fgetws_chk_warn,
[335] Fix | Delete
(wchar_t *__restrict __s, size_t __size, int __n,
[336] Fix | Delete
__FILE *__restrict __stream), __fgetws_chk)
[337] Fix | Delete
__wur __warnattr ("fgetws called with bigger size than length "
[338] Fix | Delete
"of destination buffer");
[339] Fix | Delete
[340] Fix | Delete
__fortify_function __wur wchar_t *
[341] Fix | Delete
fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)
[342] Fix | Delete
{
[343] Fix | Delete
size_t sz = __glibc_objsize (__s);
[344] Fix | Delete
if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
[345] Fix | Delete
return __fgetws_alias (__s, __n, __stream);
[346] Fix | Delete
if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
[347] Fix | Delete
return __fgetws_chk_warn (__s, sz / sizeof (wchar_t), __n, __stream);
[348] Fix | Delete
return __fgetws_chk (__s, sz / sizeof (wchar_t), __n, __stream);
[349] Fix | Delete
}
[350] Fix | Delete
[351] Fix | Delete
#ifdef __USE_GNU
[352] Fix | Delete
extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size,
[353] Fix | Delete
int __n, __FILE *__restrict __stream)
[354] Fix | Delete
__wur;
[355] Fix | Delete
extern wchar_t *__REDIRECT (__fgetws_unlocked_alias,
[356] Fix | Delete
(wchar_t *__restrict __s, int __n,
[357] Fix | Delete
__FILE *__restrict __stream), fgetws_unlocked)
[358] Fix | Delete
__wur;
[359] Fix | Delete
extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn,
[360] Fix | Delete
(wchar_t *__restrict __s, size_t __size, int __n,
[361] Fix | Delete
__FILE *__restrict __stream),
[362] Fix | Delete
__fgetws_unlocked_chk)
[363] Fix | Delete
__wur __warnattr ("fgetws_unlocked called with bigger size than length "
[364] Fix | Delete
"of destination buffer");
[365] Fix | Delete
[366] Fix | Delete
__fortify_function __wur wchar_t *
[367] Fix | Delete
fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)
[368] Fix | Delete
{
[369] Fix | Delete
size_t sz = __glibc_objsize (__s);
[370] Fix | Delete
if (__glibc_safe_or_unknown_len (__n, sizeof (wchar_t), sz))
[371] Fix | Delete
return __fgetws_unlocked_alias (__s, __n, __stream);
[372] Fix | Delete
if (__glibc_unsafe_len (__n, sizeof (wchar_t), sz))
[373] Fix | Delete
return __fgetws_unlocked_chk_warn (__s, sz / sizeof (wchar_t), __n,
[374] Fix | Delete
__stream);
[375] Fix | Delete
return __fgetws_unlocked_chk (__s, sz / sizeof (wchar_t), __n, __stream);
[376] Fix | Delete
}
[377] Fix | Delete
#endif
[378] Fix | Delete
[379] Fix | Delete
[380] Fix | Delete
extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar,
[381] Fix | Delete
mbstate_t *__restrict __p,
[382] Fix | Delete
size_t __buflen) __THROW __wur;
[383] Fix | Delete
extern size_t __REDIRECT_NTH (__wcrtomb_alias,
[384] Fix | Delete
(char *__restrict __s, wchar_t __wchar,
[385] Fix | Delete
mbstate_t *__restrict __ps), wcrtomb) __wur;
[386] Fix | Delete
[387] Fix | Delete
__fortify_function __wur size_t
[388] Fix | Delete
__NTH (wcrtomb (char *__restrict __s, wchar_t __wchar,
[389] Fix | Delete
mbstate_t *__restrict __ps))
[390] Fix | Delete
{
[391] Fix | Delete
/* We would have to include <limits.h> to get a definition of MB_LEN_MAX.
[392] Fix | Delete
But this would only disturb the namespace. So we define our own
[393] Fix | Delete
version here. */
[394] Fix | Delete
#define __WCHAR_MB_LEN_MAX 16
[395] Fix | Delete
#if defined MB_LEN_MAX && MB_LEN_MAX != __WCHAR_MB_LEN_MAX
[396] Fix | Delete
# error "Assumed value of MB_LEN_MAX wrong"
[397] Fix | Delete
#endif
[398] Fix | Delete
if (__glibc_objsize (__s) != (size_t) -1
[399] Fix | Delete
&& __WCHAR_MB_LEN_MAX > __glibc_objsize (__s))
[400] Fix | Delete
return __wcrtomb_chk (__s, __wchar, __ps, __glibc_objsize (__s));
[401] Fix | Delete
return __wcrtomb_alias (__s, __wchar, __ps);
[402] Fix | Delete
}
[403] Fix | Delete
[404] Fix | Delete
[405] Fix | Delete
extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst,
[406] Fix | Delete
const char **__restrict __src,
[407] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[408] Fix | Delete
size_t __dstlen) __THROW;
[409] Fix | Delete
extern size_t __REDIRECT_NTH (__mbsrtowcs_alias,
[410] Fix | Delete
(wchar_t *__restrict __dst,
[411] Fix | Delete
const char **__restrict __src,
[412] Fix | Delete
size_t __len, mbstate_t *__restrict __ps),
[413] Fix | Delete
mbsrtowcs);
[414] Fix | Delete
extern size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn,
[415] Fix | Delete
(wchar_t *__restrict __dst,
[416] Fix | Delete
const char **__restrict __src,
[417] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[418] Fix | Delete
size_t __dstlen), __mbsrtowcs_chk)
[419] Fix | Delete
__warnattr ("mbsrtowcs called with dst buffer smaller than len "
[420] Fix | Delete
"* sizeof (wchar_t)");
[421] Fix | Delete
[422] Fix | Delete
__fortify_function size_t
[423] Fix | Delete
__NTH (mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src,
[424] Fix | Delete
size_t __len, mbstate_t *__restrict __ps))
[425] Fix | Delete
{
[426] Fix | Delete
return __glibc_fortify_n (mbsrtowcs, __len, sizeof (wchar_t),
[427] Fix | Delete
__glibc_objsize (__dst),
[428] Fix | Delete
__dst, __src, __len, __ps);
[429] Fix | Delete
}
[430] Fix | Delete
[431] Fix | Delete
[432] Fix | Delete
extern size_t __wcsrtombs_chk (char *__restrict __dst,
[433] Fix | Delete
const wchar_t **__restrict __src,
[434] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[435] Fix | Delete
size_t __dstlen) __THROW;
[436] Fix | Delete
extern size_t __REDIRECT_NTH (__wcsrtombs_alias,
[437] Fix | Delete
(char *__restrict __dst,
[438] Fix | Delete
const wchar_t **__restrict __src,
[439] Fix | Delete
size_t __len, mbstate_t *__restrict __ps),
[440] Fix | Delete
wcsrtombs);
[441] Fix | Delete
extern size_t __REDIRECT_NTH (__wcsrtombs_chk_warn,
[442] Fix | Delete
(char *__restrict __dst,
[443] Fix | Delete
const wchar_t **__restrict __src,
[444] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[445] Fix | Delete
size_t __dstlen), __wcsrtombs_chk)
[446] Fix | Delete
__warnattr ("wcsrtombs called with dst buffer smaller than len");
[447] Fix | Delete
[448] Fix | Delete
__fortify_function size_t
[449] Fix | Delete
__NTH (wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src,
[450] Fix | Delete
size_t __len, mbstate_t *__restrict __ps))
[451] Fix | Delete
{
[452] Fix | Delete
return __glibc_fortify (wcsrtombs, __len, sizeof (char),
[453] Fix | Delete
__glibc_objsize (__dst),
[454] Fix | Delete
__dst, __src, __len, __ps);
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
[458] Fix | Delete
#ifdef __USE_XOPEN2K8
[459] Fix | Delete
extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst,
[460] Fix | Delete
const char **__restrict __src, size_t __nmc,
[461] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[462] Fix | Delete
size_t __dstlen) __THROW;
[463] Fix | Delete
extern size_t __REDIRECT_NTH (__mbsnrtowcs_alias,
[464] Fix | Delete
(wchar_t *__restrict __dst,
[465] Fix | Delete
const char **__restrict __src, size_t __nmc,
[466] Fix | Delete
size_t __len, mbstate_t *__restrict __ps),
[467] Fix | Delete
mbsnrtowcs);
[468] Fix | Delete
extern size_t __REDIRECT_NTH (__mbsnrtowcs_chk_warn,
[469] Fix | Delete
(wchar_t *__restrict __dst,
[470] Fix | Delete
const char **__restrict __src, size_t __nmc,
[471] Fix | Delete
size_t __len, mbstate_t *__restrict __ps,
[472] Fix | Delete
size_t __dstlen), __mbsnrtowcs_chk)
[473] Fix | Delete
__warnattr ("mbsnrtowcs called with dst buffer smaller than len "
[474] Fix | Delete
"* sizeof (wchar_t)");
[475] Fix | Delete
[476] Fix | Delete
__fortify_function size_t
[477] Fix | Delete
__NTH (mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src,
[478] Fix | Delete
size_t __nmc, size_t __len, mbstate_t *__restrict __ps))
[479] Fix | Delete
{
[480] Fix | Delete
return __glibc_fortify_n (mbsnrtowcs, __len, sizeof (wchar_t),
[481] Fix | Delete
__glibc_objsize (__dst),
[482] Fix | Delete
__dst, __src, __nmc, __len, __ps);
[483] Fix | Delete
}
[484] Fix | Delete
[485] Fix | Delete
[486] Fix | Delete
extern size_t __wcsnrtombs_chk (char *__restrict __dst,
[487] Fix | Delete
const wchar_t **__restrict __src,
[488] Fix | Delete
size_t __nwc, size_t __len,
[489] Fix | Delete
mbstate_t *__restrict __ps, size_t __dstlen)
[490] Fix | Delete
__THROW;
[491] Fix | Delete
extern size_t __REDIRECT_NTH (__wcsnrtombs_alias,
[492] Fix | Delete
(char *__restrict __dst,
[493] Fix | Delete
const wchar_t **__restrict __src,
[494] Fix | Delete
size_t __nwc, size_t __len,
[495] Fix | Delete
mbstate_t *__restrict __ps), wcsnrtombs);
[496] Fix | Delete
extern size_t __REDIRECT_NTH (__wcsnrtombs_chk_warn,
[497] Fix | Delete
(char *__restrict __dst,
[498] Fix | Delete
const wchar_t **__restrict __src,
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function