Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: socket2.h
/* Checking macros for socket 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 _SYS_SOCKET_H
[18] Fix | Delete
# error "Never include <bits/socket2.h> directly; use <sys/socket.h> instead."
[19] Fix | Delete
#endif
[20] Fix | Delete
[21] Fix | Delete
extern ssize_t __recv_chk (int __fd, void *__buf, size_t __n, size_t __buflen,
[22] Fix | Delete
int __flags);
[23] Fix | Delete
extern ssize_t __REDIRECT (__recv_alias, (int __fd, void *__buf, size_t __n,
[24] Fix | Delete
int __flags), recv);
[25] Fix | Delete
extern ssize_t __REDIRECT (__recv_chk_warn,
[26] Fix | Delete
(int __fd, void *__buf, size_t __n, size_t __buflen,
[27] Fix | Delete
int __flags), __recv_chk)
[28] Fix | Delete
__warnattr ("recv called with bigger length than size of destination "
[29] Fix | Delete
"buffer");
[30] Fix | Delete
[31] Fix | Delete
__fortify_function ssize_t
[32] Fix | Delete
recv (int __fd, void *__buf, size_t __n, int __flags)
[33] Fix | Delete
{
[34] Fix | Delete
size_t sz = __glibc_objsize0 (__buf);
[35] Fix | Delete
if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
[36] Fix | Delete
return __recv_alias (__fd, __buf, __n, __flags);
[37] Fix | Delete
if (__glibc_unsafe_len (__n, sizeof (char), sz))
[38] Fix | Delete
return __recv_chk_warn (__fd, __buf, __n, sz, __flags);
[39] Fix | Delete
return __recv_chk (__fd, __buf, __n, sz, __flags);
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
extern ssize_t __recvfrom_chk (int __fd, void *__restrict __buf, size_t __n,
[43] Fix | Delete
size_t __buflen, int __flags,
[44] Fix | Delete
__SOCKADDR_ARG __addr,
[45] Fix | Delete
socklen_t *__restrict __addr_len);
[46] Fix | Delete
extern ssize_t __REDIRECT (__recvfrom_alias,
[47] Fix | Delete
(int __fd, void *__restrict __buf, size_t __n,
[48] Fix | Delete
int __flags, __SOCKADDR_ARG __addr,
[49] Fix | Delete
socklen_t *__restrict __addr_len), recvfrom);
[50] Fix | Delete
extern ssize_t __REDIRECT (__recvfrom_chk_warn,
[51] Fix | Delete
(int __fd, void *__restrict __buf, size_t __n,
[52] Fix | Delete
size_t __buflen, int __flags,
[53] Fix | Delete
__SOCKADDR_ARG __addr,
[54] Fix | Delete
socklen_t *__restrict __addr_len), __recvfrom_chk)
[55] Fix | Delete
__warnattr ("recvfrom called with bigger length than size of "
[56] Fix | Delete
"destination buffer");
[57] Fix | Delete
[58] Fix | Delete
__fortify_function ssize_t
[59] Fix | Delete
recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags,
[60] Fix | Delete
__SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len)
[61] Fix | Delete
{
[62] Fix | Delete
size_t sz = __glibc_objsize0 (__buf);
[63] Fix | Delete
if (__glibc_safe_or_unknown_len (__n, sizeof (char), sz))
[64] Fix | Delete
return __recvfrom_alias (__fd, __buf, __n, __flags, __addr, __addr_len);
[65] Fix | Delete
if (__glibc_unsafe_len (__n, sizeof (char), sz))
[66] Fix | Delete
return __recvfrom_chk_warn (__fd, __buf, __n, sz, __flags, __addr,
[67] Fix | Delete
__addr_len);
[68] Fix | Delete
return __recvfrom_chk (__fd, __buf, __n, sz, __flags, __addr, __addr_len);
[69] Fix | Delete
}
[70] Fix | Delete
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function