Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: stdlib.h
/* Checking macros for stdlib 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 _STDLIB_H
[18] Fix | Delete
# error "Never include <bits/stdlib.h> directly; use <stdlib.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
extern char *__realpath_chk (const char *__restrict __name,
[22] Fix | Delete
char *__restrict __resolved,
[23] Fix | Delete
size_t __resolvedlen) __THROW __wur;
[24] Fix | Delete
extern char *__REDIRECT_NTH (__realpath_alias,
[25] Fix | Delete
(const char *__restrict __name,
[26] Fix | Delete
char *__restrict __resolved), realpath) __wur;
[27] Fix | Delete
extern char *__REDIRECT_NTH (__realpath_chk_warn,
[28] Fix | Delete
(const char *__restrict __name,
[29] Fix | Delete
char *__restrict __resolved,
[30] Fix | Delete
size_t __resolvedlen), __realpath_chk) __wur
[31] Fix | Delete
__warnattr ("second argument of realpath must be either NULL or at "
[32] Fix | Delete
"least PATH_MAX bytes long buffer");
[33] Fix | Delete
[34] Fix | Delete
__fortify_function __wur char *
[35] Fix | Delete
__NTH (realpath (const char *__restrict __name, char *__restrict __resolved))
[36] Fix | Delete
{
[37] Fix | Delete
size_t sz = __glibc_objsize (__resolved);
[38] Fix | Delete
[39] Fix | Delete
if (sz == (size_t) -1)
[40] Fix | Delete
return __realpath_alias (__name, __resolved);
[41] Fix | Delete
[42] Fix | Delete
#if defined _LIBC_LIMITS_H_ && defined PATH_MAX
[43] Fix | Delete
if (__glibc_unsafe_len (PATH_MAX, sizeof (char), sz))
[44] Fix | Delete
return __realpath_chk_warn (__name, __resolved, sz);
[45] Fix | Delete
#endif
[46] Fix | Delete
return __realpath_chk (__name, __resolved, sz);
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
[50] Fix | Delete
extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
[51] Fix | Delete
size_t __nreal) __THROW __nonnull ((2));
[52] Fix | Delete
extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf,
[53] Fix | Delete
size_t __buflen), ptsname_r)
[54] Fix | Delete
__nonnull ((2));
[55] Fix | Delete
extern int __REDIRECT_NTH (__ptsname_r_chk_warn,
[56] Fix | Delete
(int __fd, char *__buf, size_t __buflen,
[57] Fix | Delete
size_t __nreal), __ptsname_r_chk)
[58] Fix | Delete
__nonnull ((2)) __warnattr ("ptsname_r called with buflen bigger than "
[59] Fix | Delete
"size of buf");
[60] Fix | Delete
[61] Fix | Delete
__fortify_function int
[62] Fix | Delete
__NTH (ptsname_r (int __fd, char *__buf, size_t __buflen))
[63] Fix | Delete
{
[64] Fix | Delete
return __glibc_fortify (ptsname_r, __buflen, sizeof (char),
[65] Fix | Delete
__glibc_objsize (__buf),
[66] Fix | Delete
__fd, __buf, __buflen);
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
[70] Fix | Delete
extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen)
[71] Fix | Delete
__THROW __wur;
[72] Fix | Delete
extern int __REDIRECT_NTH (__wctomb_alias, (char *__s, wchar_t __wchar),
[73] Fix | Delete
wctomb) __wur;
[74] Fix | Delete
[75] Fix | Delete
__fortify_function __wur int
[76] Fix | Delete
__NTH (wctomb (char *__s, wchar_t __wchar))
[77] Fix | Delete
{
[78] Fix | Delete
/* We would have to include <limits.h> to get a definition of MB_LEN_MAX.
[79] Fix | Delete
But this would only disturb the namespace. So we define our own
[80] Fix | Delete
version here. */
[81] Fix | Delete
#define __STDLIB_MB_LEN_MAX 16
[82] Fix | Delete
#if defined MB_LEN_MAX && MB_LEN_MAX != __STDLIB_MB_LEN_MAX
[83] Fix | Delete
# error "Assumed value of MB_LEN_MAX wrong"
[84] Fix | Delete
#endif
[85] Fix | Delete
if (__glibc_objsize (__s) != (size_t) -1
[86] Fix | Delete
&& __STDLIB_MB_LEN_MAX > __glibc_objsize (__s))
[87] Fix | Delete
return __wctomb_chk (__s, __wchar, __glibc_objsize (__s));
[88] Fix | Delete
return __wctomb_alias (__s, __wchar);
[89] Fix | Delete
}
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
[93] Fix | Delete
const char *__restrict __src,
[94] Fix | Delete
size_t __len, size_t __dstlen) __THROW;
[95] Fix | Delete
extern size_t __REDIRECT_NTH (__mbstowcs_alias,
[96] Fix | Delete
(wchar_t *__restrict __dst,
[97] Fix | Delete
const char *__restrict __src,
[98] Fix | Delete
size_t __len), mbstowcs);
[99] Fix | Delete
extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn,
[100] Fix | Delete
(wchar_t *__restrict __dst,
[101] Fix | Delete
const char *__restrict __src,
[102] Fix | Delete
size_t __len, size_t __dstlen), __mbstowcs_chk)
[103] Fix | Delete
__warnattr ("mbstowcs called with dst buffer smaller than len "
[104] Fix | Delete
"* sizeof (wchar_t)");
[105] Fix | Delete
[106] Fix | Delete
__fortify_function size_t
[107] Fix | Delete
__NTH (mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src,
[108] Fix | Delete
size_t __len))
[109] Fix | Delete
{
[110] Fix | Delete
return __glibc_fortify_n (mbstowcs, __len, sizeof (wchar_t),
[111] Fix | Delete
__glibc_objsize (__dst),
[112] Fix | Delete
__dst, __src, __len);
[113] Fix | Delete
}
[114] Fix | Delete
[115] Fix | Delete
[116] Fix | Delete
extern size_t __wcstombs_chk (char *__restrict __dst,
[117] Fix | Delete
const wchar_t *__restrict __src,
[118] Fix | Delete
size_t __len, size_t __dstlen) __THROW;
[119] Fix | Delete
extern size_t __REDIRECT_NTH (__wcstombs_alias,
[120] Fix | Delete
(char *__restrict __dst,
[121] Fix | Delete
const wchar_t *__restrict __src,
[122] Fix | Delete
size_t __len), wcstombs);
[123] Fix | Delete
extern size_t __REDIRECT_NTH (__wcstombs_chk_warn,
[124] Fix | Delete
(char *__restrict __dst,
[125] Fix | Delete
const wchar_t *__restrict __src,
[126] Fix | Delete
size_t __len, size_t __dstlen), __wcstombs_chk)
[127] Fix | Delete
__warnattr ("wcstombs called with dst buffer smaller than len");
[128] Fix | Delete
[129] Fix | Delete
__fortify_function size_t
[130] Fix | Delete
__NTH (wcstombs (char *__restrict __dst, const wchar_t *__restrict __src,
[131] Fix | Delete
size_t __len))
[132] Fix | Delete
{
[133] Fix | Delete
return __glibc_fortify (wcstombs, __len, sizeof (char),
[134] Fix | Delete
__glibc_objsize (__dst),
[135] Fix | Delete
__dst, __src, __len);
[136] Fix | Delete
}
[137] Fix | Delete
[138] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function