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