Fabcoin Core  0.16.2
P2P Digital Currency
glibc_compat.cpp
Go to the documentation of this file.
1 // Copyright (c) 2009-2017 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #if defined(HAVE_CONFIG_H)
7 #endif
8 
9 #include <cstddef>
10 
11 #if defined(HAVE_SYS_SELECT_H)
12 #include <sys/select.h>
13 #endif
14 
15 // Prior to GLIBC_2.14, memcpy was aliased to memmove.
16 extern "C" void* memmove(void* a, const void* b, size_t c);
17 extern "C" void* memcpy(void* a, const void* b, size_t c)
18 {
19  return memmove(a, b, c);
20 }
21 
22 extern "C" void __chk_fail(void) __attribute__((__noreturn__));
23 extern "C" FDELT_TYPE __fdelt_warn(FDELT_TYPE a)
24 {
25  if (a >= FD_SETSIZE)
26  __chk_fail();
27  return a / __NFDBITS;
28 }
29 extern "C" FDELT_TYPE __fdelt_chk(FDELT_TYPE) __attribute__((weak, alias("__fdelt_warn")));
FDELT_TYPE __fdelt_warn(FDELT_TYPE a)
void __chk_fail(void) __attribute__((__noreturn__))
#define c(i)
#define a(i)
FDELT_TYPE __fdelt_chk(FDELT_TYPE) __attribute__((weak
FascTransaction __attribute__
#define b(i, j)
void * memcpy(void *a, const void *b, size_t c)
void * memmove(void *a, const void *b, size_t c)
FDELT_TYPE alias("__fdelt_warn")))