diff --git a/libktorrent/boost.sh b/boost.sh similarity index 87% rename from libktorrent/boost.sh rename to boost.sh index dedf2244..bdf34444 100755 --- a/libktorrent/boost.sh +++ b/boost.sh @@ -18,5 +18,5 @@ rm -vrf miniboost/ mkdir -vp miniboost/ bcp --boost="$boost" boost/shared_array.hpp boost/concept_check.hpp \ - boost/scoped_ptr.hpp boost/circular_buffer.hpp \ + boost/scoped_ptr.hpp boost/circular_buffer.hpp boost/bind \ miniboost/ \ No newline at end of file diff --git a/kget/CMakeLists.txt b/kget/CMakeLists.txt index 2688cfb6..24ee65c8 100644 --- a/kget/CMakeLists.txt +++ b/kget/CMakeLists.txt @@ -1,7 +1,7 @@ project(kget) # boost headers are bundled -include_directories(${PROJECT_SOURCE_DIR}/miniboost) +include_directories(${PROJECT_SOURCE_DIR}/../miniboost) if(NOT INSIDE_KDENETWORK) message("Not building inside KDENetwork, loading KDE CMake Macros.") diff --git a/kget/boost.sh b/kget/boost.sh deleted file mode 100755 index b0ab942c..00000000 --- a/kget/boost.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -set -e -boost="" -for dir in "/include" "/usr/include" "/usr/local";do - if [ -d "$dir/boost" ];then - boost="$dir" - fi -done -if [ -z "$boost" ];then - echo "ERROR: unable to find boost headers" - exit 1 -elif [ -z "$(type -p bcp)" ];then - "ERROR: bcp tool not found" - exit 2 -fi -rm -vrf miniboost/ -mkdir -vp miniboost/ - -bcp --boost="$boost" boost/bind miniboost/ \ No newline at end of file diff --git a/libktorrent/CMakeLists.txt b/libktorrent/CMakeLists.txt index 14513de3..47b71004 100644 --- a/libktorrent/CMakeLists.txt +++ b/libktorrent/CMakeLists.txt @@ -1,7 +1,7 @@ project(LIBKTORRENT) # boost headers are bundled -include_directories(${PROJECT_SOURCE_DIR}/miniboost) +include_directories(${PROJECT_SOURCE_DIR}/../miniboost) find_package(KDE4 REQUIRED) find_package(KDE4Internal REQUIRED) diff --git a/libktorrent/miniboost/_G_config.h b/libktorrent/miniboost/_G_config.h deleted file mode 100644 index abec2456..00000000 --- a/libktorrent/miniboost/_G_config.h +++ /dev/null @@ -1,58 +0,0 @@ -/* This file is needed by libio to define various configuration parameters. - These are always the same in the GNU C library. */ - -#ifndef _G_config_h -#define _G_config_h 1 - -/* Define types for libio in terms of the standard internal type names. */ - -#include -#define __need_size_t -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -# define __need_wchar_t -#endif -#define __need_NULL -#include -#define __need_mbstate_t -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -# define __need_wint_t -#endif -#include -typedef struct -{ - __off_t __pos; - __mbstate_t __state; -} _G_fpos_t; -typedef struct -{ - __off64_t __pos; - __mbstate_t __state; -} _G_fpos64_t; -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -# include -typedef union -{ - struct __gconv_info __cd; - struct - { - struct __gconv_info __cd; - struct __gconv_step_data __data; - } __combined; -} _G_iconv_t; -#endif - - -/* These library features are always available in the GNU C library. */ -#define _G_va_list __gnuc_va_list - -#define _G_HAVE_MMAP 1 -#define _G_HAVE_MREMAP 1 - -#define _G_IO_IO_FILE_VERSION 0x20001 - -/* This is defined by if `st_blksize' exists. */ -#define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) - -#define _G_BUFSIZ 8192 - -#endif /* _G_config.h */ diff --git a/libktorrent/miniboost/alloca.h b/libktorrent/miniboost/alloca.h deleted file mode 100644 index 2d592d4f..00000000 --- a/libktorrent/miniboost/alloca.h +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright (C) 1992-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _ALLOCA_H -#define _ALLOCA_H 1 - -#include - -#define __need_size_t -#include - -__BEGIN_DECLS - -/* Remove any previous definitions. */ -#undef alloca - -/* Allocate a block that will be freed when the calling function exits. */ -extern void *alloca (size_t __size) __THROW; - -#ifdef __GNUC__ -# define alloca(size) __builtin_alloca (size) -#endif /* GCC. */ - -__END_DECLS - -#endif /* alloca.h */ diff --git a/libktorrent/miniboost/asm-generic/errno-base.h b/libktorrent/miniboost/asm-generic/errno-base.h deleted file mode 100644 index 65115978..00000000 --- a/libktorrent/miniboost/asm-generic/errno-base.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef _ASM_GENERIC_ERRNO_BASE_H -#define _ASM_GENERIC_ERRNO_BASE_H - -#define EPERM 1 /* Operation not permitted */ -#define ENOENT 2 /* No such file or directory */ -#define ESRCH 3 /* No such process */ -#define EINTR 4 /* Interrupted system call */ -#define EIO 5 /* I/O error */ -#define ENXIO 6 /* No such device or address */ -#define E2BIG 7 /* Argument list too long */ -#define ENOEXEC 8 /* Exec format error */ -#define EBADF 9 /* Bad file number */ -#define ECHILD 10 /* No child processes */ -#define EAGAIN 11 /* Try again */ -#define ENOMEM 12 /* Out of memory */ -#define EACCES 13 /* Permission denied */ -#define EFAULT 14 /* Bad address */ -#define ENOTBLK 15 /* Block device required */ -#define EBUSY 16 /* Device or resource busy */ -#define EEXIST 17 /* File exists */ -#define EXDEV 18 /* Cross-device link */ -#define ENODEV 19 /* No such device */ -#define ENOTDIR 20 /* Not a directory */ -#define EISDIR 21 /* Is a directory */ -#define EINVAL 22 /* Invalid argument */ -#define ENFILE 23 /* File table overflow */ -#define EMFILE 24 /* Too many open files */ -#define ENOTTY 25 /* Not a typewriter */ -#define ETXTBSY 26 /* Text file busy */ -#define EFBIG 27 /* File too large */ -#define ENOSPC 28 /* No space left on device */ -#define ESPIPE 29 /* Illegal seek */ -#define EROFS 30 /* Read-only file system */ -#define EMLINK 31 /* Too many links */ -#define EPIPE 32 /* Broken pipe */ -#define EDOM 33 /* Math argument out of domain of func */ -#define ERANGE 34 /* Math result not representable */ - -#endif diff --git a/libktorrent/miniboost/asm-generic/errno.h b/libktorrent/miniboost/asm-generic/errno.h deleted file mode 100644 index 1e1ea6e6..00000000 --- a/libktorrent/miniboost/asm-generic/errno.h +++ /dev/null @@ -1,113 +0,0 @@ -#ifndef _ASM_GENERIC_ERRNO_H -#define _ASM_GENERIC_ERRNO_H - -#include - -#define EDEADLK 35 /* Resource deadlock would occur */ -#define ENAMETOOLONG 36 /* File name too long */ -#define ENOLCK 37 /* No record locks available */ -#define ENOSYS 38 /* Function not implemented */ -#define ENOTEMPTY 39 /* Directory not empty */ -#define ELOOP 40 /* Too many symbolic links encountered */ -#define EWOULDBLOCK EAGAIN /* Operation would block */ -#define ENOMSG 42 /* No message of desired type */ -#define EIDRM 43 /* Identifier removed */ -#define ECHRNG 44 /* Channel number out of range */ -#define EL2NSYNC 45 /* Level 2 not synchronized */ -#define EL3HLT 46 /* Level 3 halted */ -#define EL3RST 47 /* Level 3 reset */ -#define ELNRNG 48 /* Link number out of range */ -#define EUNATCH 49 /* Protocol driver not attached */ -#define ENOCSI 50 /* No CSI structure available */ -#define EL2HLT 51 /* Level 2 halted */ -#define EBADE 52 /* Invalid exchange */ -#define EBADR 53 /* Invalid request descriptor */ -#define EXFULL 54 /* Exchange full */ -#define ENOANO 55 /* No anode */ -#define EBADRQC 56 /* Invalid request code */ -#define EBADSLT 57 /* Invalid slot */ - -#define EDEADLOCK EDEADLK - -#define EBFONT 59 /* Bad font file format */ -#define ENOSTR 60 /* Device not a stream */ -#define ENODATA 61 /* No data available */ -#define ETIME 62 /* Timer expired */ -#define ENOSR 63 /* Out of streams resources */ -#define ENONET 64 /* Machine is not on the network */ -#define ENOPKG 65 /* Package not installed */ -#define EREMOTE 66 /* Object is remote */ -#define ENOLINK 67 /* Link has been severed */ -#define EADV 68 /* Advertise error */ -#define ESRMNT 69 /* Srmount error */ -#define ECOMM 70 /* Communication error on send */ -#define EPROTO 71 /* Protocol error */ -#define EMULTIHOP 72 /* Multihop attempted */ -#define EDOTDOT 73 /* RFS specific error */ -#define EBADMSG 74 /* Not a data message */ -#define EOVERFLOW 75 /* Value too large for defined data type */ -#define ENOTUNIQ 76 /* Name not unique on network */ -#define EBADFD 77 /* File descriptor in bad state */ -#define EREMCHG 78 /* Remote address changed */ -#define ELIBACC 79 /* Can not access a needed shared library */ -#define ELIBBAD 80 /* Accessing a corrupted shared library */ -#define ELIBSCN 81 /* .lib section in a.out corrupted */ -#define ELIBMAX 82 /* Attempting to link in too many shared libraries */ -#define ELIBEXEC 83 /* Cannot exec a shared library directly */ -#define EILSEQ 84 /* Illegal byte sequence */ -#define ERESTART 85 /* Interrupted system call should be restarted */ -#define ESTRPIPE 86 /* Streams pipe error */ -#define EUSERS 87 /* Too many users */ -#define ENOTSOCK 88 /* Socket operation on non-socket */ -#define EDESTADDRREQ 89 /* Destination address required */ -#define EMSGSIZE 90 /* Message too long */ -#define EPROTOTYPE 91 /* Protocol wrong type for socket */ -#define ENOPROTOOPT 92 /* Protocol not available */ -#define EPROTONOSUPPORT 93 /* Protocol not supported */ -#define ESOCKTNOSUPPORT 94 /* Socket type not supported */ -#define EOPNOTSUPP 95 /* Operation not supported on transport endpoint */ -#define EPFNOSUPPORT 96 /* Protocol family not supported */ -#define EAFNOSUPPORT 97 /* Address family not supported by protocol */ -#define EADDRINUSE 98 /* Address already in use */ -#define EADDRNOTAVAIL 99 /* Cannot assign requested address */ -#define ENETDOWN 100 /* Network is down */ -#define ENETUNREACH 101 /* Network is unreachable */ -#define ENETRESET 102 /* Network dropped connection because of reset */ -#define ECONNABORTED 103 /* Software caused connection abort */ -#define ECONNRESET 104 /* Connection reset by peer */ -#define ENOBUFS 105 /* No buffer space available */ -#define EISCONN 106 /* Transport endpoint is already connected */ -#define ENOTCONN 107 /* Transport endpoint is not connected */ -#define ESHUTDOWN 108 /* Cannot send after transport endpoint shutdown */ -#define ETOOMANYREFS 109 /* Too many references: cannot splice */ -#define ETIMEDOUT 110 /* Connection timed out */ -#define ECONNREFUSED 111 /* Connection refused */ -#define EHOSTDOWN 112 /* Host is down */ -#define EHOSTUNREACH 113 /* No route to host */ -#define EALREADY 114 /* Operation already in progress */ -#define EINPROGRESS 115 /* Operation now in progress */ -#define ESTALE 116 /* Stale file handle */ -#define EUCLEAN 117 /* Structure needs cleaning */ -#define ENOTNAM 118 /* Not a XENIX named type file */ -#define ENAVAIL 119 /* No XENIX semaphores available */ -#define EISNAM 120 /* Is a named type file */ -#define EREMOTEIO 121 /* Remote I/O error */ -#define EDQUOT 122 /* Quota exceeded */ - -#define ENOMEDIUM 123 /* No medium found */ -#define EMEDIUMTYPE 124 /* Wrong medium type */ -#define ECANCELED 125 /* Operation Canceled */ -#define ENOKEY 126 /* Required key not available */ -#define EKEYEXPIRED 127 /* Key has expired */ -#define EKEYREVOKED 128 /* Key has been revoked */ -#define EKEYREJECTED 129 /* Key was rejected by service */ - -/* for robust mutexes */ -#define EOWNERDEAD 130 /* Owner died */ -#define ENOTRECOVERABLE 131 /* State not recoverable */ - -#define ERFKILL 132 /* Operation not possible due to RF-kill */ - -#define EHWPOISON 133 /* Memory page has hardware error */ - -#endif diff --git a/libktorrent/miniboost/asm/errno.h b/libktorrent/miniboost/asm/errno.h deleted file mode 100644 index 4c82b503..00000000 --- a/libktorrent/miniboost/asm/errno.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/libktorrent/miniboost/bits/byteswap-16.h b/libktorrent/miniboost/bits/byteswap-16.h deleted file mode 100644 index f3a9c6b2..00000000 --- a/libktorrent/miniboost/bits/byteswap-16.h +++ /dev/null @@ -1,49 +0,0 @@ -/* Macros to swap the order of bytes in 16-bit integer values. - Copyright (C) 2012-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_BYTESWAP_H -# error "Never use directly; include instead." -#endif - -#ifdef __GNUC__ -# if __GNUC__ >= 2 -# define __bswap_16(x) \ - (__extension__ \ - ({ unsigned short int __v, __x = (unsigned short int) (x); \ - if (__builtin_constant_p (__x)) \ - __v = __bswap_constant_16 (__x); \ - else \ - __asm__ ("rorw $8, %w0" \ - : "=r" (__v) \ - : "0" (__x) \ - : "cc"); \ - __v; })) -# else -/* This is better than nothing. */ -# define __bswap_16(x) \ - (__extension__ \ - ({ unsigned short int __x = (unsigned short int) (x); \ - __bswap_constant_16 (__x); })) -# endif -#else -static __inline unsigned short int -__bswap_16 (unsigned short int __bsx) -{ - return __bswap_constant_16 (__bsx); -} -#endif diff --git a/libktorrent/miniboost/bits/byteswap.h b/libktorrent/miniboost/bits/byteswap.h deleted file mode 100644 index 933fe4be..00000000 --- a/libktorrent/miniboost/bits/byteswap.h +++ /dev/null @@ -1,155 +0,0 @@ -/* Macros to swap the order of bytes in integer values. - Copyright (C) 1997-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H -# error "Never use directly; include instead." -#endif - -#ifndef _BITS_BYTESWAP_H -#define _BITS_BYTESWAP_H 1 - -#include -#include -#include - -/* Swap bytes in 16 bit value. */ -#define __bswap_constant_16(x) \ - ((unsigned short int) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) - -/* Get __bswap_16. */ -#include - -/* Swap bytes in 32 bit value. */ -#define __bswap_constant_32(x) \ - ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ - (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) - -#ifdef __GNUC__ -# if __GNUC_PREREQ (4, 3) -static __inline unsigned int -__bswap_32 (unsigned int __bsx) -{ - return __builtin_bswap32 (__bsx); -} -# elif __GNUC__ >= 2 -# if __WORDSIZE == 64 || (defined __i486__ || defined __pentium__ \ - || defined __pentiumpro__ || defined __pentium4__ \ - || defined __k8__ || defined __athlon__ \ - || defined __k6__ || defined __nocona__ \ - || defined __core2__ || defined __geode__ \ - || defined __amdfam10__) -/* To swap the bytes in a word the i486 processors and up provide the - `bswap' opcode. On i386 we have to use three instructions. */ -# define __bswap_32(x) \ - (__extension__ \ - ({ unsigned int __v, __x = (x); \ - if (__builtin_constant_p (__x)) \ - __v = __bswap_constant_32 (__x); \ - else \ - __asm__ ("bswap %0" : "=r" (__v) : "0" (__x)); \ - __v; })) -# else -# define __bswap_32(x) \ - (__extension__ \ - ({ unsigned int __v, __x = (x); \ - if (__builtin_constant_p (__x)) \ - __v = __bswap_constant_32 (__x); \ - else \ - __asm__ ("rorw $8, %w0;" \ - "rorl $16, %0;" \ - "rorw $8, %w0" \ - : "=r" (__v) \ - : "0" (__x) \ - : "cc"); \ - __v; })) -# endif -# else -# define __bswap_32(x) \ - (__extension__ \ - ({ unsigned int __x = (x); __bswap_constant_32 (__x); })) -# endif -#else -static __inline unsigned int -__bswap_32 (unsigned int __bsx) -{ - return __bswap_constant_32 (__bsx); -} -#endif - - -#if __GNUC_PREREQ (2, 0) -/* Swap bytes in 64 bit value. */ -# define __bswap_constant_64(x) \ - (__extension__ ((((x) & 0xff00000000000000ull) >> 56) \ - | (((x) & 0x00ff000000000000ull) >> 40) \ - | (((x) & 0x0000ff0000000000ull) >> 24) \ - | (((x) & 0x000000ff00000000ull) >> 8) \ - | (((x) & 0x00000000ff000000ull) << 8) \ - | (((x) & 0x0000000000ff0000ull) << 24) \ - | (((x) & 0x000000000000ff00ull) << 40) \ - | (((x) & 0x00000000000000ffull) << 56))) - -# if __GNUC_PREREQ (4, 3) -static __inline __uint64_t -__bswap_64 (__uint64_t __bsx) -{ - return __builtin_bswap64 (__bsx); -} -# elif __WORDSIZE == 64 -# define __bswap_64(x) \ - (__extension__ \ - ({ __uint64_t __v, __x = (x); \ - if (__builtin_constant_p (__x)) \ - __v = __bswap_constant_64 (__x); \ - else \ - __asm__ ("bswap %q0" : "=r" (__v) : "0" (__x)); \ - __v; })) -# else -# define __bswap_64(x) \ - (__extension__ \ - ({ union { __extension__ __uint64_t __ll; \ - unsigned int __l[2]; } __w, __r; \ - if (__builtin_constant_p (x)) \ - __r.__ll = __bswap_constant_64 (x); \ - else \ - { \ - __w.__ll = (x); \ - __r.__l[0] = __bswap_32 (__w.__l[1]); \ - __r.__l[1] = __bswap_32 (__w.__l[0]); \ - } \ - __r.__ll; })) -# endif -#else -# define __bswap_constant_64(x) \ - ((((x) & 0xff00000000000000ull) >> 56) \ - | (((x) & 0x00ff000000000000ull) >> 40) \ - | (((x) & 0x0000ff0000000000ull) >> 24) \ - | (((x) & 0x000000ff00000000ull) >> 8) \ - | (((x) & 0x00000000ff000000ull) << 8) \ - | (((x) & 0x0000000000ff0000ull) << 24) \ - | (((x) & 0x000000000000ff00ull) << 40) \ - | (((x) & 0x00000000000000ffull) << 56)) - -static __inline __uint64_t -__bswap_64 (__uint64_t __bsx) -{ - return __bswap_constant_64 (__bsx); -} -#endif - -#endif /* _BITS_BYTESWAP_H */ diff --git a/libktorrent/miniboost/bits/confname.h b/libktorrent/miniboost/bits/confname.h deleted file mode 100644 index bf2fcc53..00000000 --- a/libktorrent/miniboost/bits/confname.h +++ /dev/null @@ -1,675 +0,0 @@ -/* `sysconf', `pathconf', and `confstr' NAME values. Generic version. - Copyright (C) 1993-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _UNISTD_H -# error "Never use directly; include instead." -#endif - -/* Values for the NAME argument to `pathconf' and `fpathconf'. */ -enum - { - _PC_LINK_MAX, -#define _PC_LINK_MAX _PC_LINK_MAX - _PC_MAX_CANON, -#define _PC_MAX_CANON _PC_MAX_CANON - _PC_MAX_INPUT, -#define _PC_MAX_INPUT _PC_MAX_INPUT - _PC_NAME_MAX, -#define _PC_NAME_MAX _PC_NAME_MAX - _PC_PATH_MAX, -#define _PC_PATH_MAX _PC_PATH_MAX - _PC_PIPE_BUF, -#define _PC_PIPE_BUF _PC_PIPE_BUF - _PC_CHOWN_RESTRICTED, -#define _PC_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED - _PC_NO_TRUNC, -#define _PC_NO_TRUNC _PC_NO_TRUNC - _PC_VDISABLE, -#define _PC_VDISABLE _PC_VDISABLE - _PC_SYNC_IO, -#define _PC_SYNC_IO _PC_SYNC_IO - _PC_ASYNC_IO, -#define _PC_ASYNC_IO _PC_ASYNC_IO - _PC_PRIO_IO, -#define _PC_PRIO_IO _PC_PRIO_IO - _PC_SOCK_MAXBUF, -#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF - _PC_FILESIZEBITS, -#define _PC_FILESIZEBITS _PC_FILESIZEBITS - _PC_REC_INCR_XFER_SIZE, -#define _PC_REC_INCR_XFER_SIZE _PC_REC_INCR_XFER_SIZE - _PC_REC_MAX_XFER_SIZE, -#define _PC_REC_MAX_XFER_SIZE _PC_REC_MAX_XFER_SIZE - _PC_REC_MIN_XFER_SIZE, -#define _PC_REC_MIN_XFER_SIZE _PC_REC_MIN_XFER_SIZE - _PC_REC_XFER_ALIGN, -#define _PC_REC_XFER_ALIGN _PC_REC_XFER_ALIGN - _PC_ALLOC_SIZE_MIN, -#define _PC_ALLOC_SIZE_MIN _PC_ALLOC_SIZE_MIN - _PC_SYMLINK_MAX, -#define _PC_SYMLINK_MAX _PC_SYMLINK_MAX - _PC_2_SYMLINKS -#define _PC_2_SYMLINKS _PC_2_SYMLINKS - }; - -/* Values for the argument to `sysconf'. */ -enum - { - _SC_ARG_MAX, -#define _SC_ARG_MAX _SC_ARG_MAX - _SC_CHILD_MAX, -#define _SC_CHILD_MAX _SC_CHILD_MAX - _SC_CLK_TCK, -#define _SC_CLK_TCK _SC_CLK_TCK - _SC_NGROUPS_MAX, -#define _SC_NGROUPS_MAX _SC_NGROUPS_MAX - _SC_OPEN_MAX, -#define _SC_OPEN_MAX _SC_OPEN_MAX - _SC_STREAM_MAX, -#define _SC_STREAM_MAX _SC_STREAM_MAX - _SC_TZNAME_MAX, -#define _SC_TZNAME_MAX _SC_TZNAME_MAX - _SC_JOB_CONTROL, -#define _SC_JOB_CONTROL _SC_JOB_CONTROL - _SC_SAVED_IDS, -#define _SC_SAVED_IDS _SC_SAVED_IDS - _SC_REALTIME_SIGNALS, -#define _SC_REALTIME_SIGNALS _SC_REALTIME_SIGNALS - _SC_PRIORITY_SCHEDULING, -#define _SC_PRIORITY_SCHEDULING _SC_PRIORITY_SCHEDULING - _SC_TIMERS, -#define _SC_TIMERS _SC_TIMERS - _SC_ASYNCHRONOUS_IO, -#define _SC_ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO - _SC_PRIORITIZED_IO, -#define _SC_PRIORITIZED_IO _SC_PRIORITIZED_IO - _SC_SYNCHRONIZED_IO, -#define _SC_SYNCHRONIZED_IO _SC_SYNCHRONIZED_IO - _SC_FSYNC, -#define _SC_FSYNC _SC_FSYNC - _SC_MAPPED_FILES, -#define _SC_MAPPED_FILES _SC_MAPPED_FILES - _SC_MEMLOCK, -#define _SC_MEMLOCK _SC_MEMLOCK - _SC_MEMLOCK_RANGE, -#define _SC_MEMLOCK_RANGE _SC_MEMLOCK_RANGE - _SC_MEMORY_PROTECTION, -#define _SC_MEMORY_PROTECTION _SC_MEMORY_PROTECTION - _SC_MESSAGE_PASSING, -#define _SC_MESSAGE_PASSING _SC_MESSAGE_PASSING - _SC_SEMAPHORES, -#define _SC_SEMAPHORES _SC_SEMAPHORES - _SC_SHARED_MEMORY_OBJECTS, -#define _SC_SHARED_MEMORY_OBJECTS _SC_SHARED_MEMORY_OBJECTS - _SC_AIO_LISTIO_MAX, -#define _SC_AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX - _SC_AIO_MAX, -#define _SC_AIO_MAX _SC_AIO_MAX - _SC_AIO_PRIO_DELTA_MAX, -#define _SC_AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX - _SC_DELAYTIMER_MAX, -#define _SC_DELAYTIMER_MAX _SC_DELAYTIMER_MAX - _SC_MQ_OPEN_MAX, -#define _SC_MQ_OPEN_MAX _SC_MQ_OPEN_MAX - _SC_MQ_PRIO_MAX, -#define _SC_MQ_PRIO_MAX _SC_MQ_PRIO_MAX - _SC_VERSION, -#define _SC_VERSION _SC_VERSION - _SC_PAGESIZE, -#define _SC_PAGESIZE _SC_PAGESIZE -#define _SC_PAGE_SIZE _SC_PAGESIZE - _SC_RTSIG_MAX, -#define _SC_RTSIG_MAX _SC_RTSIG_MAX - _SC_SEM_NSEMS_MAX, -#define _SC_SEM_NSEMS_MAX _SC_SEM_NSEMS_MAX - _SC_SEM_VALUE_MAX, -#define _SC_SEM_VALUE_MAX _SC_SEM_VALUE_MAX - _SC_SIGQUEUE_MAX, -#define _SC_SIGQUEUE_MAX _SC_SIGQUEUE_MAX - _SC_TIMER_MAX, -#define _SC_TIMER_MAX _SC_TIMER_MAX - - /* Values for the argument to `sysconf' - corresponding to _POSIX2_* symbols. */ - _SC_BC_BASE_MAX, -#define _SC_BC_BASE_MAX _SC_BC_BASE_MAX - _SC_BC_DIM_MAX, -#define _SC_BC_DIM_MAX _SC_BC_DIM_MAX - _SC_BC_SCALE_MAX, -#define _SC_BC_SCALE_MAX _SC_BC_SCALE_MAX - _SC_BC_STRING_MAX, -#define _SC_BC_STRING_MAX _SC_BC_STRING_MAX - _SC_COLL_WEIGHTS_MAX, -#define _SC_COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX - _SC_EQUIV_CLASS_MAX, -#define _SC_EQUIV_CLASS_MAX _SC_EQUIV_CLASS_MAX - _SC_EXPR_NEST_MAX, -#define _SC_EXPR_NEST_MAX _SC_EXPR_NEST_MAX - _SC_LINE_MAX, -#define _SC_LINE_MAX _SC_LINE_MAX - _SC_RE_DUP_MAX, -#define _SC_RE_DUP_MAX _SC_RE_DUP_MAX - _SC_CHARCLASS_NAME_MAX, -#define _SC_CHARCLASS_NAME_MAX _SC_CHARCLASS_NAME_MAX - - _SC_2_VERSION, -#define _SC_2_VERSION _SC_2_VERSION - _SC_2_C_BIND, -#define _SC_2_C_BIND _SC_2_C_BIND - _SC_2_C_DEV, -#define _SC_2_C_DEV _SC_2_C_DEV - _SC_2_FORT_DEV, -#define _SC_2_FORT_DEV _SC_2_FORT_DEV - _SC_2_FORT_RUN, -#define _SC_2_FORT_RUN _SC_2_FORT_RUN - _SC_2_SW_DEV, -#define _SC_2_SW_DEV _SC_2_SW_DEV - _SC_2_LOCALEDEF, -#define _SC_2_LOCALEDEF _SC_2_LOCALEDEF - - _SC_PII, -#define _SC_PII _SC_PII - _SC_PII_XTI, -#define _SC_PII_XTI _SC_PII_XTI - _SC_PII_SOCKET, -#define _SC_PII_SOCKET _SC_PII_SOCKET - _SC_PII_INTERNET, -#define _SC_PII_INTERNET _SC_PII_INTERNET - _SC_PII_OSI, -#define _SC_PII_OSI _SC_PII_OSI - _SC_POLL, -#define _SC_POLL _SC_POLL - _SC_SELECT, -#define _SC_SELECT _SC_SELECT - _SC_UIO_MAXIOV, -#define _SC_UIO_MAXIOV _SC_UIO_MAXIOV - _SC_IOV_MAX = _SC_UIO_MAXIOV, -#define _SC_IOV_MAX _SC_IOV_MAX - _SC_PII_INTERNET_STREAM, -#define _SC_PII_INTERNET_STREAM _SC_PII_INTERNET_STREAM - _SC_PII_INTERNET_DGRAM, -#define _SC_PII_INTERNET_DGRAM _SC_PII_INTERNET_DGRAM - _SC_PII_OSI_COTS, -#define _SC_PII_OSI_COTS _SC_PII_OSI_COTS - _SC_PII_OSI_CLTS, -#define _SC_PII_OSI_CLTS _SC_PII_OSI_CLTS - _SC_PII_OSI_M, -#define _SC_PII_OSI_M _SC_PII_OSI_M - _SC_T_IOV_MAX, -#define _SC_T_IOV_MAX _SC_T_IOV_MAX - - /* Values according to POSIX 1003.1c (POSIX threads). */ - _SC_THREADS, -#define _SC_THREADS _SC_THREADS - _SC_THREAD_SAFE_FUNCTIONS, -#define _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SAFE_FUNCTIONS - _SC_GETGR_R_SIZE_MAX, -#define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX - _SC_GETPW_R_SIZE_MAX, -#define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX - _SC_LOGIN_NAME_MAX, -#define _SC_LOGIN_NAME_MAX _SC_LOGIN_NAME_MAX - _SC_TTY_NAME_MAX, -#define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX - _SC_THREAD_DESTRUCTOR_ITERATIONS, -#define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS - _SC_THREAD_KEYS_MAX, -#define _SC_THREAD_KEYS_MAX _SC_THREAD_KEYS_MAX - _SC_THREAD_STACK_MIN, -#define _SC_THREAD_STACK_MIN _SC_THREAD_STACK_MIN - _SC_THREAD_THREADS_MAX, -#define _SC_THREAD_THREADS_MAX _SC_THREAD_THREADS_MAX - _SC_THREAD_ATTR_STACKADDR, -#define _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKADDR - _SC_THREAD_ATTR_STACKSIZE, -#define _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_ATTR_STACKSIZE - _SC_THREAD_PRIORITY_SCHEDULING, -#define _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PRIORITY_SCHEDULING - _SC_THREAD_PRIO_INHERIT, -#define _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_INHERIT - _SC_THREAD_PRIO_PROTECT, -#define _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIO_PROTECT - _SC_THREAD_PROCESS_SHARED, -#define _SC_THREAD_PROCESS_SHARED _SC_THREAD_PROCESS_SHARED - - _SC_NPROCESSORS_CONF, -#define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF - _SC_NPROCESSORS_ONLN, -#define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN - _SC_PHYS_PAGES, -#define _SC_PHYS_PAGES _SC_PHYS_PAGES - _SC_AVPHYS_PAGES, -#define _SC_AVPHYS_PAGES _SC_AVPHYS_PAGES - _SC_ATEXIT_MAX, -#define _SC_ATEXIT_MAX _SC_ATEXIT_MAX - _SC_PASS_MAX, -#define _SC_PASS_MAX _SC_PASS_MAX - - _SC_XOPEN_VERSION, -#define _SC_XOPEN_VERSION _SC_XOPEN_VERSION - _SC_XOPEN_XCU_VERSION, -#define _SC_XOPEN_XCU_VERSION _SC_XOPEN_XCU_VERSION - _SC_XOPEN_UNIX, -#define _SC_XOPEN_UNIX _SC_XOPEN_UNIX - _SC_XOPEN_CRYPT, -#define _SC_XOPEN_CRYPT _SC_XOPEN_CRYPT - _SC_XOPEN_ENH_I18N, -#define _SC_XOPEN_ENH_I18N _SC_XOPEN_ENH_I18N - _SC_XOPEN_SHM, -#define _SC_XOPEN_SHM _SC_XOPEN_SHM - - _SC_2_CHAR_TERM, -#define _SC_2_CHAR_TERM _SC_2_CHAR_TERM - _SC_2_C_VERSION, -#define _SC_2_C_VERSION _SC_2_C_VERSION - _SC_2_UPE, -#define _SC_2_UPE _SC_2_UPE - - _SC_XOPEN_XPG2, -#define _SC_XOPEN_XPG2 _SC_XOPEN_XPG2 - _SC_XOPEN_XPG3, -#define _SC_XOPEN_XPG3 _SC_XOPEN_XPG3 - _SC_XOPEN_XPG4, -#define _SC_XOPEN_XPG4 _SC_XOPEN_XPG4 - - _SC_CHAR_BIT, -#define _SC_CHAR_BIT _SC_CHAR_BIT - _SC_CHAR_MAX, -#define _SC_CHAR_MAX _SC_CHAR_MAX - _SC_CHAR_MIN, -#define _SC_CHAR_MIN _SC_CHAR_MIN - _SC_INT_MAX, -#define _SC_INT_MAX _SC_INT_MAX - _SC_INT_MIN, -#define _SC_INT_MIN _SC_INT_MIN - _SC_LONG_BIT, -#define _SC_LONG_BIT _SC_LONG_BIT - _SC_WORD_BIT, -#define _SC_WORD_BIT _SC_WORD_BIT - _SC_MB_LEN_MAX, -#define _SC_MB_LEN_MAX _SC_MB_LEN_MAX - _SC_NZERO, -#define _SC_NZERO _SC_NZERO - _SC_SSIZE_MAX, -#define _SC_SSIZE_MAX _SC_SSIZE_MAX - _SC_SCHAR_MAX, -#define _SC_SCHAR_MAX _SC_SCHAR_MAX - _SC_SCHAR_MIN, -#define _SC_SCHAR_MIN _SC_SCHAR_MIN - _SC_SHRT_MAX, -#define _SC_SHRT_MAX _SC_SHRT_MAX - _SC_SHRT_MIN, -#define _SC_SHRT_MIN _SC_SHRT_MIN - _SC_UCHAR_MAX, -#define _SC_UCHAR_MAX _SC_UCHAR_MAX - _SC_UINT_MAX, -#define _SC_UINT_MAX _SC_UINT_MAX - _SC_ULONG_MAX, -#define _SC_ULONG_MAX _SC_ULONG_MAX - _SC_USHRT_MAX, -#define _SC_USHRT_MAX _SC_USHRT_MAX - - _SC_NL_ARGMAX, -#define _SC_NL_ARGMAX _SC_NL_ARGMAX - _SC_NL_LANGMAX, -#define _SC_NL_LANGMAX _SC_NL_LANGMAX - _SC_NL_MSGMAX, -#define _SC_NL_MSGMAX _SC_NL_MSGMAX - _SC_NL_NMAX, -#define _SC_NL_NMAX _SC_NL_NMAX - _SC_NL_SETMAX, -#define _SC_NL_SETMAX _SC_NL_SETMAX - _SC_NL_TEXTMAX, -#define _SC_NL_TEXTMAX _SC_NL_TEXTMAX - - _SC_XBS5_ILP32_OFF32, -#define _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFF32 - _SC_XBS5_ILP32_OFFBIG, -#define _SC_XBS5_ILP32_OFFBIG _SC_XBS5_ILP32_OFFBIG - _SC_XBS5_LP64_OFF64, -#define _SC_XBS5_LP64_OFF64 _SC_XBS5_LP64_OFF64 - _SC_XBS5_LPBIG_OFFBIG, -#define _SC_XBS5_LPBIG_OFFBIG _SC_XBS5_LPBIG_OFFBIG - - _SC_XOPEN_LEGACY, -#define _SC_XOPEN_LEGACY _SC_XOPEN_LEGACY - _SC_XOPEN_REALTIME, -#define _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME - _SC_XOPEN_REALTIME_THREADS, -#define _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_REALTIME_THREADS - - _SC_ADVISORY_INFO, -#define _SC_ADVISORY_INFO _SC_ADVISORY_INFO - _SC_BARRIERS, -#define _SC_BARRIERS _SC_BARRIERS - _SC_BASE, -#define _SC_BASE _SC_BASE - _SC_C_LANG_SUPPORT, -#define _SC_C_LANG_SUPPORT _SC_C_LANG_SUPPORT - _SC_C_LANG_SUPPORT_R, -#define _SC_C_LANG_SUPPORT_R _SC_C_LANG_SUPPORT_R - _SC_CLOCK_SELECTION, -#define _SC_CLOCK_SELECTION _SC_CLOCK_SELECTION - _SC_CPUTIME, -#define _SC_CPUTIME _SC_CPUTIME - _SC_THREAD_CPUTIME, -#define _SC_THREAD_CPUTIME _SC_THREAD_CPUTIME - _SC_DEVICE_IO, -#define _SC_DEVICE_IO _SC_DEVICE_IO - _SC_DEVICE_SPECIFIC, -#define _SC_DEVICE_SPECIFIC _SC_DEVICE_SPECIFIC - _SC_DEVICE_SPECIFIC_R, -#define _SC_DEVICE_SPECIFIC_R _SC_DEVICE_SPECIFIC_R - _SC_FD_MGMT, -#define _SC_FD_MGMT _SC_FD_MGMT - _SC_FIFO, -#define _SC_FIFO _SC_FIFO - _SC_PIPE, -#define _SC_PIPE _SC_PIPE - _SC_FILE_ATTRIBUTES, -#define _SC_FILE_ATTRIBUTES _SC_FILE_ATTRIBUTES - _SC_FILE_LOCKING, -#define _SC_FILE_LOCKING _SC_FILE_LOCKING - _SC_FILE_SYSTEM, -#define _SC_FILE_SYSTEM _SC_FILE_SYSTEM - _SC_MONOTONIC_CLOCK, -#define _SC_MONOTONIC_CLOCK _SC_MONOTONIC_CLOCK - _SC_MULTI_PROCESS, -#define _SC_MULTI_PROCESS _SC_MULTI_PROCESS - _SC_SINGLE_PROCESS, -#define _SC_SINGLE_PROCESS _SC_SINGLE_PROCESS - _SC_NETWORKING, -#define _SC_NETWORKING _SC_NETWORKING - _SC_READER_WRITER_LOCKS, -#define _SC_READER_WRITER_LOCKS _SC_READER_WRITER_LOCKS - _SC_SPIN_LOCKS, -#define _SC_SPIN_LOCKS _SC_SPIN_LOCKS - _SC_REGEXP, -#define _SC_REGEXP _SC_REGEXP - _SC_REGEX_VERSION, -#define _SC_REGEX_VERSION _SC_REGEX_VERSION - _SC_SHELL, -#define _SC_SHELL _SC_SHELL - _SC_SIGNALS, -#define _SC_SIGNALS _SC_SIGNALS - _SC_SPAWN, -#define _SC_SPAWN _SC_SPAWN - _SC_SPORADIC_SERVER, -#define _SC_SPORADIC_SERVER _SC_SPORADIC_SERVER - _SC_THREAD_SPORADIC_SERVER, -#define _SC_THREAD_SPORADIC_SERVER _SC_THREAD_SPORADIC_SERVER - _SC_SYSTEM_DATABASE, -#define _SC_SYSTEM_DATABASE _SC_SYSTEM_DATABASE - _SC_SYSTEM_DATABASE_R, -#define _SC_SYSTEM_DATABASE_R _SC_SYSTEM_DATABASE_R - _SC_TIMEOUTS, -#define _SC_TIMEOUTS _SC_TIMEOUTS - _SC_TYPED_MEMORY_OBJECTS, -#define _SC_TYPED_MEMORY_OBJECTS _SC_TYPED_MEMORY_OBJECTS - _SC_USER_GROUPS, -#define _SC_USER_GROUPS _SC_USER_GROUPS - _SC_USER_GROUPS_R, -#define _SC_USER_GROUPS_R _SC_USER_GROUPS_R - _SC_2_PBS, -#define _SC_2_PBS _SC_2_PBS - _SC_2_PBS_ACCOUNTING, -#define _SC_2_PBS_ACCOUNTING _SC_2_PBS_ACCOUNTING - _SC_2_PBS_LOCATE, -#define _SC_2_PBS_LOCATE _SC_2_PBS_LOCATE - _SC_2_PBS_MESSAGE, -#define _SC_2_PBS_MESSAGE _SC_2_PBS_MESSAGE - _SC_2_PBS_TRACK, -#define _SC_2_PBS_TRACK _SC_2_PBS_TRACK - _SC_SYMLOOP_MAX, -#define _SC_SYMLOOP_MAX _SC_SYMLOOP_MAX - _SC_STREAMS, -#define _SC_STREAMS _SC_STREAMS - _SC_2_PBS_CHECKPOINT, -#define _SC_2_PBS_CHECKPOINT _SC_2_PBS_CHECKPOINT - - _SC_V6_ILP32_OFF32, -#define _SC_V6_ILP32_OFF32 _SC_V6_ILP32_OFF32 - _SC_V6_ILP32_OFFBIG, -#define _SC_V6_ILP32_OFFBIG _SC_V6_ILP32_OFFBIG - _SC_V6_LP64_OFF64, -#define _SC_V6_LP64_OFF64 _SC_V6_LP64_OFF64 - _SC_V6_LPBIG_OFFBIG, -#define _SC_V6_LPBIG_OFFBIG _SC_V6_LPBIG_OFFBIG - - _SC_HOST_NAME_MAX, -#define _SC_HOST_NAME_MAX _SC_HOST_NAME_MAX - _SC_TRACE, -#define _SC_TRACE _SC_TRACE - _SC_TRACE_EVENT_FILTER, -#define _SC_TRACE_EVENT_FILTER _SC_TRACE_EVENT_FILTER - _SC_TRACE_INHERIT, -#define _SC_TRACE_INHERIT _SC_TRACE_INHERIT - _SC_TRACE_LOG, -#define _SC_TRACE_LOG _SC_TRACE_LOG - - _SC_LEVEL1_ICACHE_SIZE, -#define _SC_LEVEL1_ICACHE_SIZE _SC_LEVEL1_ICACHE_SIZE - _SC_LEVEL1_ICACHE_ASSOC, -#define _SC_LEVEL1_ICACHE_ASSOC _SC_LEVEL1_ICACHE_ASSOC - _SC_LEVEL1_ICACHE_LINESIZE, -#define _SC_LEVEL1_ICACHE_LINESIZE _SC_LEVEL1_ICACHE_LINESIZE - _SC_LEVEL1_DCACHE_SIZE, -#define _SC_LEVEL1_DCACHE_SIZE _SC_LEVEL1_DCACHE_SIZE - _SC_LEVEL1_DCACHE_ASSOC, -#define _SC_LEVEL1_DCACHE_ASSOC _SC_LEVEL1_DCACHE_ASSOC - _SC_LEVEL1_DCACHE_LINESIZE, -#define _SC_LEVEL1_DCACHE_LINESIZE _SC_LEVEL1_DCACHE_LINESIZE - _SC_LEVEL2_CACHE_SIZE, -#define _SC_LEVEL2_CACHE_SIZE _SC_LEVEL2_CACHE_SIZE - _SC_LEVEL2_CACHE_ASSOC, -#define _SC_LEVEL2_CACHE_ASSOC _SC_LEVEL2_CACHE_ASSOC - _SC_LEVEL2_CACHE_LINESIZE, -#define _SC_LEVEL2_CACHE_LINESIZE _SC_LEVEL2_CACHE_LINESIZE - _SC_LEVEL3_CACHE_SIZE, -#define _SC_LEVEL3_CACHE_SIZE _SC_LEVEL3_CACHE_SIZE - _SC_LEVEL3_CACHE_ASSOC, -#define _SC_LEVEL3_CACHE_ASSOC _SC_LEVEL3_CACHE_ASSOC - _SC_LEVEL3_CACHE_LINESIZE, -#define _SC_LEVEL3_CACHE_LINESIZE _SC_LEVEL3_CACHE_LINESIZE - _SC_LEVEL4_CACHE_SIZE, -#define _SC_LEVEL4_CACHE_SIZE _SC_LEVEL4_CACHE_SIZE - _SC_LEVEL4_CACHE_ASSOC, -#define _SC_LEVEL4_CACHE_ASSOC _SC_LEVEL4_CACHE_ASSOC - _SC_LEVEL4_CACHE_LINESIZE, -#define _SC_LEVEL4_CACHE_LINESIZE _SC_LEVEL4_CACHE_LINESIZE - /* Leave room here, maybe we need a few more cache levels some day. */ - - _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, -#define _SC_IPV6 _SC_IPV6 - _SC_RAW_SOCKETS, -#define _SC_RAW_SOCKETS _SC_RAW_SOCKETS - - _SC_V7_ILP32_OFF32, -#define _SC_V7_ILP32_OFF32 _SC_V7_ILP32_OFF32 - _SC_V7_ILP32_OFFBIG, -#define _SC_V7_ILP32_OFFBIG _SC_V7_ILP32_OFFBIG - _SC_V7_LP64_OFF64, -#define _SC_V7_LP64_OFF64 _SC_V7_LP64_OFF64 - _SC_V7_LPBIG_OFFBIG, -#define _SC_V7_LPBIG_OFFBIG _SC_V7_LPBIG_OFFBIG - - _SC_SS_REPL_MAX, -#define _SC_SS_REPL_MAX _SC_SS_REPL_MAX - - _SC_TRACE_EVENT_NAME_MAX, -#define _SC_TRACE_EVENT_NAME_MAX _SC_TRACE_EVENT_NAME_MAX - _SC_TRACE_NAME_MAX, -#define _SC_TRACE_NAME_MAX _SC_TRACE_NAME_MAX - _SC_TRACE_SYS_MAX, -#define _SC_TRACE_SYS_MAX _SC_TRACE_SYS_MAX - _SC_TRACE_USER_EVENT_MAX, -#define _SC_TRACE_USER_EVENT_MAX _SC_TRACE_USER_EVENT_MAX - - _SC_XOPEN_STREAMS, -#define _SC_XOPEN_STREAMS _SC_XOPEN_STREAMS - - _SC_THREAD_ROBUST_PRIO_INHERIT, -#define _SC_THREAD_ROBUST_PRIO_INHERIT _SC_THREAD_ROBUST_PRIO_INHERIT - _SC_THREAD_ROBUST_PRIO_PROTECT -#define _SC_THREAD_ROBUST_PRIO_PROTECT _SC_THREAD_ROBUST_PRIO_PROTECT - }; - -/* Values for the NAME argument to `confstr'. */ -enum - { - _CS_PATH, /* The default search path. */ -#define _CS_PATH _CS_PATH - - _CS_V6_WIDTH_RESTRICTED_ENVS, -#define _CS_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS -#define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS _CS_V6_WIDTH_RESTRICTED_ENVS - - _CS_GNU_LIBC_VERSION, -#define _CS_GNU_LIBC_VERSION _CS_GNU_LIBC_VERSION - _CS_GNU_LIBPTHREAD_VERSION, -#define _CS_GNU_LIBPTHREAD_VERSION _CS_GNU_LIBPTHREAD_VERSION - - _CS_V5_WIDTH_RESTRICTED_ENVS, -#define _CS_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS -#define _CS_POSIX_V5_WIDTH_RESTRICTED_ENVS _CS_V5_WIDTH_RESTRICTED_ENVS - - _CS_V7_WIDTH_RESTRICTED_ENVS, -#define _CS_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS -#define _CS_POSIX_V7_WIDTH_RESTRICTED_ENVS _CS_V7_WIDTH_RESTRICTED_ENVS - - _CS_LFS_CFLAGS = 1000, -#define _CS_LFS_CFLAGS _CS_LFS_CFLAGS - _CS_LFS_LDFLAGS, -#define _CS_LFS_LDFLAGS _CS_LFS_LDFLAGS - _CS_LFS_LIBS, -#define _CS_LFS_LIBS _CS_LFS_LIBS - _CS_LFS_LINTFLAGS, -#define _CS_LFS_LINTFLAGS _CS_LFS_LINTFLAGS - _CS_LFS64_CFLAGS, -#define _CS_LFS64_CFLAGS _CS_LFS64_CFLAGS - _CS_LFS64_LDFLAGS, -#define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS - _CS_LFS64_LIBS, -#define _CS_LFS64_LIBS _CS_LFS64_LIBS - _CS_LFS64_LINTFLAGS, -#define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS - - _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, -#define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS - _CS_XBS5_ILP32_OFF32_LDFLAGS, -#define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS - _CS_XBS5_ILP32_OFF32_LIBS, -#define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS - _CS_XBS5_ILP32_OFF32_LINTFLAGS, -#define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS - _CS_XBS5_ILP32_OFFBIG_CFLAGS, -#define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS - _CS_XBS5_ILP32_OFFBIG_LDFLAGS, -#define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS - _CS_XBS5_ILP32_OFFBIG_LIBS, -#define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS - _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, -#define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS - _CS_XBS5_LP64_OFF64_CFLAGS, -#define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS - _CS_XBS5_LP64_OFF64_LDFLAGS, -#define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS - _CS_XBS5_LP64_OFF64_LIBS, -#define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS - _CS_XBS5_LP64_OFF64_LINTFLAGS, -#define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS - _CS_XBS5_LPBIG_OFFBIG_CFLAGS, -#define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS - _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, -#define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS - _CS_XBS5_LPBIG_OFFBIG_LIBS, -#define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS - _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, -#define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS - - _CS_POSIX_V6_ILP32_OFF32_CFLAGS, -#define _CS_POSIX_V6_ILP32_OFF32_CFLAGS _CS_POSIX_V6_ILP32_OFF32_CFLAGS - _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, -#define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS _CS_POSIX_V6_ILP32_OFF32_LDFLAGS - _CS_POSIX_V6_ILP32_OFF32_LIBS, -#define _CS_POSIX_V6_ILP32_OFF32_LIBS _CS_POSIX_V6_ILP32_OFF32_LIBS - _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, -#define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS - _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, -#define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS - _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, -#define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS - _CS_POSIX_V6_ILP32_OFFBIG_LIBS, -#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS _CS_POSIX_V6_ILP32_OFFBIG_LIBS - _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, -#define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS - _CS_POSIX_V6_LP64_OFF64_CFLAGS, -#define _CS_POSIX_V6_LP64_OFF64_CFLAGS _CS_POSIX_V6_LP64_OFF64_CFLAGS - _CS_POSIX_V6_LP64_OFF64_LDFLAGS, -#define _CS_POSIX_V6_LP64_OFF64_LDFLAGS _CS_POSIX_V6_LP64_OFF64_LDFLAGS - _CS_POSIX_V6_LP64_OFF64_LIBS, -#define _CS_POSIX_V6_LP64_OFF64_LIBS _CS_POSIX_V6_LP64_OFF64_LIBS - _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, -#define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS _CS_POSIX_V6_LP64_OFF64_LINTFLAGS - _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, -#define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS - _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, -#define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS - _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, -#define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS _CS_POSIX_V6_LPBIG_OFFBIG_LIBS - _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, -#define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS - - _CS_POSIX_V7_ILP32_OFF32_CFLAGS, -#define _CS_POSIX_V7_ILP32_OFF32_CFLAGS _CS_POSIX_V7_ILP32_OFF32_CFLAGS - _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, -#define _CS_POSIX_V7_ILP32_OFF32_LDFLAGS _CS_POSIX_V7_ILP32_OFF32_LDFLAGS - _CS_POSIX_V7_ILP32_OFF32_LIBS, -#define _CS_POSIX_V7_ILP32_OFF32_LIBS _CS_POSIX_V7_ILP32_OFF32_LIBS - _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, -#define _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS - _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, -#define _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS - _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, -#define _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS - _CS_POSIX_V7_ILP32_OFFBIG_LIBS, -#define _CS_POSIX_V7_ILP32_OFFBIG_LIBS _CS_POSIX_V7_ILP32_OFFBIG_LIBS - _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, -#define _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS - _CS_POSIX_V7_LP64_OFF64_CFLAGS, -#define _CS_POSIX_V7_LP64_OFF64_CFLAGS _CS_POSIX_V7_LP64_OFF64_CFLAGS - _CS_POSIX_V7_LP64_OFF64_LDFLAGS, -#define _CS_POSIX_V7_LP64_OFF64_LDFLAGS _CS_POSIX_V7_LP64_OFF64_LDFLAGS - _CS_POSIX_V7_LP64_OFF64_LIBS, -#define _CS_POSIX_V7_LP64_OFF64_LIBS _CS_POSIX_V7_LP64_OFF64_LIBS - _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, -#define _CS_POSIX_V7_LP64_OFF64_LINTFLAGS _CS_POSIX_V7_LP64_OFF64_LINTFLAGS - _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, -#define _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS - _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, -#define _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS - _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, -#define _CS_POSIX_V7_LPBIG_OFFBIG_LIBS _CS_POSIX_V7_LPBIG_OFFBIG_LIBS - _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, -#define _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS - - _CS_V6_ENV, -#define _CS_V6_ENV _CS_V6_ENV - _CS_V7_ENV -#define _CS_V7_ENV _CS_V7_ENV - }; diff --git a/libktorrent/miniboost/bits/endian.h b/libktorrent/miniboost/bits/endian.h deleted file mode 100644 index 5a56c726..00000000 --- a/libktorrent/miniboost/bits/endian.h +++ /dev/null @@ -1,7 +0,0 @@ -/* i386/x86_64 are little-endian. */ - -#ifndef _ENDIAN_H -# error "Never use directly; include instead." -#endif - -#define __BYTE_ORDER __LITTLE_ENDIAN diff --git a/libktorrent/miniboost/bits/environments.h b/libktorrent/miniboost/bits/environments.h deleted file mode 100644 index df40aefd..00000000 --- a/libktorrent/miniboost/bits/environments.h +++ /dev/null @@ -1,105 +0,0 @@ -/* Copyright (C) 1999-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _UNISTD_H -# error "Never include this file directly. Use instead" -#endif - -#include - -/* This header should define the following symbols under the described - situations. A value `1' means that the model is always supported, - `-1' means it is never supported. Undefined means it cannot be - statically decided. - - _POSIX_V7_ILP32_OFF32 32bit int, long, pointers, and off_t type - _POSIX_V7_ILP32_OFFBIG 32bit int, long, and pointers and larger off_t type - - _POSIX_V7_LP64_OFF32 64bit long and pointers and 32bit off_t type - _POSIX_V7_LPBIG_OFFBIG 64bit long and pointers and large off_t type - - The macros _POSIX_V6_ILP32_OFF32, _POSIX_V6_ILP32_OFFBIG, - _POSIX_V6_LP64_OFF32, _POSIX_V6_LPBIG_OFFBIG, _XBS5_ILP32_OFF32, - _XBS5_ILP32_OFFBIG, _XBS5_LP64_OFF32, and _XBS5_LPBIG_OFFBIG were - used in previous versions of the Unix standard and are available - only for compatibility. -*/ - -#if __WORDSIZE == 64 - -/* Environments with 32-bit wide pointers are optionally provided. - Therefore following macros aren't defined: - # undef _POSIX_V7_ILP32_OFF32 - # undef _POSIX_V7_ILP32_OFFBIG - # undef _POSIX_V6_ILP32_OFF32 - # undef _POSIX_V6_ILP32_OFFBIG - # undef _XBS5_ILP32_OFF32 - # undef _XBS5_ILP32_OFFBIG - and users need to check at runtime. */ - -/* We also have no use (for now) for an environment with bigger pointers - and offsets. */ -# define _POSIX_V7_LPBIG_OFFBIG -1 -# define _POSIX_V6_LPBIG_OFFBIG -1 -# define _XBS5_LPBIG_OFFBIG -1 - -/* By default we have 64-bit wide `long int', pointers and `off_t'. */ -# define _POSIX_V7_LP64_OFF64 1 -# define _POSIX_V6_LP64_OFF64 1 -# define _XBS5_LP64_OFF64 1 - -#else /* __WORDSIZE == 32 */ - -/* We have 32-bit wide `int', `long int' and pointers and all platforms - support LFS. -mx32 has 64-bit wide `off_t'. */ -# define _POSIX_V7_ILP32_OFFBIG 1 -# define _POSIX_V6_ILP32_OFFBIG 1 -# define _XBS5_ILP32_OFFBIG 1 - -# ifndef __x86_64__ -/* -m32 has 32-bit wide `off_t'. */ -# define _POSIX_V7_ILP32_OFF32 1 -# define _POSIX_V6_ILP32_OFF32 1 -# define _XBS5_ILP32_OFF32 1 -# endif - -/* We optionally provide an environment with the above size but an 64-bit - side `off_t'. Therefore we don't define _POSIX_V7_ILP32_OFFBIG. */ - -/* Environments with 64-bit wide pointers can be provided, - so these macros aren't defined: - # undef _POSIX_V7_LP64_OFF64 - # undef _POSIX_V7_LPBIG_OFFBIG - # undef _POSIX_V6_LP64_OFF64 - # undef _POSIX_V6_LPBIG_OFFBIG - # undef _XBS5_LP64_OFF64 - # undef _XBS5_LPBIG_OFFBIG - and sysconf tests for it at runtime. */ - -#endif /* __WORDSIZE == 32 */ - -#define __ILP32_OFF32_CFLAGS "-m32" -#define __ILP32_OFF32_LDFLAGS "-m32" -#if defined __x86_64__ && defined __ILP32__ -# define __ILP32_OFFBIG_CFLAGS "-mx32" -# define __ILP32_OFFBIG_LDFLAGS "-mx32" -#else -# define __ILP32_OFFBIG_CFLAGS "-m32 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" -# define __ILP32_OFFBIG_LDFLAGS "-m32" -#endif -#define __LP64_OFF64_CFLAGS "-m64" -#define __LP64_OFF64_LDFLAGS "-m64" diff --git a/libktorrent/miniboost/bits/errno.h b/libktorrent/miniboost/bits/errno.h deleted file mode 100644 index e4995b81..00000000 --- a/libktorrent/miniboost/bits/errno.h +++ /dev/null @@ -1,66 +0,0 @@ -/* Error constants. Linux specific version. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifdef _ERRNO_H - -# undef EDOM -# undef EILSEQ -# undef ERANGE -# include - -/* Linux has no ENOTSUP error code. */ -# define ENOTSUP EOPNOTSUPP - -/* Older Linux versions also had no ECANCELED error code. */ -# ifndef ECANCELED -# define ECANCELED 125 -# endif - -/* Support for error codes to support robust mutexes was added later, too. */ -# ifndef EOWNERDEAD -# define EOWNERDEAD 130 -# define ENOTRECOVERABLE 131 -# endif - -# ifndef ERFKILL -# define ERFKILL 132 -# endif - -# ifndef EHWPOISON -# define EHWPOISON 133 -# endif - -# ifndef __ASSEMBLER__ -/* Function to get address of global `errno' variable. */ -extern int *__errno_location (void) __THROW __attribute__ ((__const__)); - -# if !defined _LIBC || defined _LIBC_REENTRANT -/* When using threads, errno is a per-thread value. */ -# define errno (*__errno_location ()) -# endif -# endif /* !__ASSEMBLER__ */ -#endif /* _ERRNO_H */ - -#if !defined _ERRNO_H && defined __need_Emath -/* This is ugly but the kernel header is not clean enough. We must - define only the values EDOM, EILSEQ and ERANGE in case __need_Emath is - defined. */ -# define EDOM 33 /* Math argument out of domain of function. */ -# define EILSEQ 84 /* Illegal byte sequence. */ -# define ERANGE 34 /* Math result not representable. */ -#endif /* !_ERRNO_H && __need_Emath */ diff --git a/libktorrent/miniboost/bits/libc-lock.h b/libktorrent/miniboost/bits/libc-lock.h deleted file mode 100644 index 532cf2c7..00000000 --- a/libktorrent/miniboost/bits/libc-lock.h +++ /dev/null @@ -1,187 +0,0 @@ -/* libc-internal interface for mutex locks. NPTL version. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, see . */ - -#ifndef _BITS_LIBC_LOCK_H -#define _BITS_LIBC_LOCK_H 1 - -#include -#define __need_NULL -#include - - -/* Mutex type. */ -#if defined _LIBC || defined _IO_MTSAFE_IO -# if (defined NOT_IN_libc && !defined IS_IN_libpthread) || !defined _LIBC -typedef struct { pthread_mutex_t mutex; } __libc_lock_recursive_t; -# else -typedef struct { int lock; int cnt; void *owner; } __libc_lock_recursive_t; -# endif -#else -typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t; -#endif - -/* Define a lock variable NAME with storage class CLASS. The lock must be - initialized with __libc_lock_init before it can be used (or define it - with __libc_lock_define_initialized, below). Use `extern' for CLASS to - declare a lock defined in another module. In public structure - definitions you must use a pointer to the lock structure (i.e., NAME - begins with a `*'), because its storage size will not be known outside - of libc. */ -#define __libc_lock_define_recursive(CLASS,NAME) \ - CLASS __libc_lock_recursive_t NAME; - -/* Define an initialized recursive lock variable NAME with storage - class CLASS. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -# define __libc_lock_define_initialized_recursive(CLASS, NAME) \ - CLASS __libc_lock_recursive_t NAME = _LIBC_LOCK_RECURSIVE_INITIALIZER; -# define _LIBC_LOCK_RECURSIVE_INITIALIZER \ - { LLL_LOCK_INITIALIZER, 0, NULL } -#else -# define __libc_lock_define_initialized_recursive(CLASS,NAME) \ - CLASS __libc_lock_recursive_t NAME = _LIBC_LOCK_RECURSIVE_INITIALIZER; -# define _LIBC_LOCK_RECURSIVE_INITIALIZER \ - {PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP} -#endif - -/* Initialize a recursive mutex. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -# define __libc_lock_init_recursive(NAME) \ - ((NAME) = (__libc_lock_recursive_t) _LIBC_LOCK_RECURSIVE_INITIALIZER, 0) -#else -# define __libc_lock_init_recursive(NAME) \ - do { \ - if (__pthread_mutex_init != NULL) \ - { \ - pthread_mutexattr_t __attr; \ - __pthread_mutexattr_init (&__attr); \ - __pthread_mutexattr_settype (&__attr, PTHREAD_MUTEX_RECURSIVE_NP); \ - __pthread_mutex_init (&(NAME).mutex, &__attr); \ - __pthread_mutexattr_destroy (&__attr); \ - } \ - } while (0) -#endif - -/* Finalize recursive named lock. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -# define __libc_lock_fini_recursive(NAME) ((void) 0) -#else -# define __libc_lock_fini_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_destroy, (&(NAME).mutex), 0) -#endif - -/* Lock the recursive named lock variable. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -# define __libc_lock_lock_recursive(NAME) \ - do { \ - void *self = THREAD_SELF; \ - if ((NAME).owner != self) \ - { \ - lll_lock ((NAME).lock, LLL_PRIVATE); \ - (NAME).owner = self; \ - } \ - ++(NAME).cnt; \ - } while (0) -#else -# define __libc_lock_lock_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_lock, (&(NAME).mutex), 0) -#endif - -/* Try to lock the recursive named lock variable. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -# define __libc_lock_trylock_recursive(NAME) \ - ({ \ - int result = 0; \ - void *self = THREAD_SELF; \ - if ((NAME).owner != self) \ - { \ - if (lll_trylock ((NAME).lock) == 0) \ - { \ - (NAME).owner = self; \ - (NAME).cnt = 1; \ - } \ - else \ - result = EBUSY; \ - } \ - else \ - ++(NAME).cnt; \ - result; \ - }) -#else -# define __libc_lock_trylock_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_trylock, (&(NAME).mutex), 0) -#endif - -/* Unlock the recursive named lock variable. */ -#if defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread) -/* We do no error checking here. */ -# define __libc_lock_unlock_recursive(NAME) \ - do { \ - if (--(NAME).cnt == 0) \ - { \ - (NAME).owner = NULL; \ - lll_unlock ((NAME).lock, LLL_PRIVATE); \ - } \ - } while (0) -#else -# define __libc_lock_unlock_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_unlock, (&(NAME).mutex), 0) -#endif - -/* Note that for I/O cleanup handling we are using the old-style - cancel handling. It does not have to be integrated with C++ since - no C++ code is called in the middle. The old-style handling is - faster and the support is not going away. */ -extern void _pthread_cleanup_push_defer (struct _pthread_cleanup_buffer *buffer, - void (*routine) (void *), void *arg); -extern void _pthread_cleanup_pop_restore (struct _pthread_cleanup_buffer *buffer, - int execute); - -/* Start critical region with cleanup. */ -#define __libc_cleanup_region_start(DOIT, FCT, ARG) \ - { struct _pthread_cleanup_buffer _buffer; \ - int _avail; \ - if (DOIT) { \ - _avail = PTFAVAIL (_pthread_cleanup_push_defer); \ - if (_avail) { \ - __libc_ptf_call_always (_pthread_cleanup_push_defer, (&_buffer, FCT, \ - ARG)); \ - } else { \ - _buffer.__routine = (FCT); \ - _buffer.__arg = (ARG); \ - } \ - } else { \ - _avail = 0; \ - } - -/* End critical region with cleanup. */ -#define __libc_cleanup_region_end(DOIT) \ - if (_avail) { \ - __libc_ptf_call_always (_pthread_cleanup_pop_restore, (&_buffer, DOIT));\ - } else if (DOIT) \ - _buffer.__routine (_buffer.__arg); \ - } - - -/* Hide the definitions which are only supposed to be used inside libc in - a separate file. This file is not present in the installation! */ -#ifdef _LIBC -# include "libc-lockP.h" -#endif - -#endif /* bits/libc-lock.h */ diff --git a/libktorrent/miniboost/bits/libio-ldbl.h b/libktorrent/miniboost/bits/libio-ldbl.h deleted file mode 100644 index cb08f3d1..00000000 --- a/libktorrent/miniboost/bits/libio-ldbl.h +++ /dev/null @@ -1,24 +0,0 @@ -/* -mlong-double-64 compatibility mode for libio functions. - Copyright (C) 2006-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _IO_STDIO_H -# error "Never include directly; use instead." -#endif - -__LDBL_REDIR_DECL (_IO_vfscanf) -__LDBL_REDIR_DECL (_IO_vfprintf) diff --git a/libktorrent/miniboost/bits/local_lim.h b/libktorrent/miniboost/bits/local_lim.h deleted file mode 100644 index b802facd..00000000 --- a/libktorrent/miniboost/bits/local_lim.h +++ /dev/null @@ -1,99 +0,0 @@ -/* Minimum guaranteed maximum values for system limits. Linux version. - Copyright (C) 1993-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, see . */ - -/* The kernel header pollutes the namespace with the NR_OPEN symbol - and defines LINK_MAX although filesystems have different maxima. A - similar thing is true for OPEN_MAX: the limit can be changed at - runtime and therefore the macro must not be defined. Remove this - after including the header if necessary. */ -#ifndef NR_OPEN -# define __undef_NR_OPEN -#endif -#ifndef LINK_MAX -# define __undef_LINK_MAX -#endif -#ifndef OPEN_MAX -# define __undef_OPEN_MAX -#endif -#ifndef ARG_MAX -# define __undef_ARG_MAX -#endif - -/* The kernel sources contain a file with all the needed information. */ -#include - -/* Have to remove NR_OPEN? */ -#ifdef __undef_NR_OPEN -# undef NR_OPEN -# undef __undef_NR_OPEN -#endif -/* Have to remove LINK_MAX? */ -#ifdef __undef_LINK_MAX -# undef LINK_MAX -# undef __undef_LINK_MAX -#endif -/* Have to remove OPEN_MAX? */ -#ifdef __undef_OPEN_MAX -# undef OPEN_MAX -# undef __undef_OPEN_MAX -#endif -/* Have to remove ARG_MAX? */ -#ifdef __undef_ARG_MAX -# undef ARG_MAX -# undef __undef_ARG_MAX -#endif - -/* The number of data keys per process. */ -#define _POSIX_THREAD_KEYS_MAX 128 -/* This is the value this implementation supports. */ -#define PTHREAD_KEYS_MAX 1024 - -/* Controlling the iterations of destructors for thread-specific data. */ -#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 -/* Number of iterations this implementation does. */ -#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS - -/* The number of threads per process. */ -#define _POSIX_THREAD_THREADS_MAX 64 -/* We have no predefined limit on the number of threads. */ -#undef PTHREAD_THREADS_MAX - -/* Maximum amount by which a process can descrease its asynchronous I/O - priority level. */ -#define AIO_PRIO_DELTA_MAX 20 - -/* Minimum size for a thread. We are free to choose a reasonable value. */ -#define PTHREAD_STACK_MIN 16384 - -/* Maximum number of timer expiration overruns. */ -#define DELAYTIMER_MAX 2147483647 - -/* Maximum tty name length. */ -#define TTY_NAME_MAX 32 - -/* Maximum login name length. This is arbitrary. */ -#define LOGIN_NAME_MAX 256 - -/* Maximum host name length. */ -#define HOST_NAME_MAX 64 - -/* Maximum message queue priority level. */ -#define MQ_PRIO_MAX 32768 - -/* Maximum value the semaphore can have. */ -#define SEM_VALUE_MAX (2147483647) diff --git a/libktorrent/miniboost/bits/posix1_lim.h b/libktorrent/miniboost/bits/posix1_lim.h deleted file mode 100644 index 97f018d0..00000000 --- a/libktorrent/miniboost/bits/posix1_lim.h +++ /dev/null @@ -1,175 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * POSIX Standard: 2.9.2 Minimum Values Added to - * - * Never include this file directly; use instead. - */ - -#ifndef _BITS_POSIX1_LIM_H -#define _BITS_POSIX1_LIM_H 1 - - -/* These are the standard-mandated minimum values. */ - -/* Minimum number of operations in one list I/O call. */ -#define _POSIX_AIO_LISTIO_MAX 2 - -/* Minimal number of outstanding asynchronous I/O operations. */ -#define _POSIX_AIO_MAX 1 - -/* Maximum length of arguments to `execve', including environment. */ -#define _POSIX_ARG_MAX 4096 - -/* Maximum simultaneous processes per real user ID. */ -#ifdef __USE_XOPEN2K -# define _POSIX_CHILD_MAX 25 -#else -# define _POSIX_CHILD_MAX 6 -#endif - -/* Minimal number of timer expiration overruns. */ -#define _POSIX_DELAYTIMER_MAX 32 - -/* Maximum length of a host name (not including the terminating null) - as returned from the GETHOSTNAME function. */ -#define _POSIX_HOST_NAME_MAX 255 - -/* Maximum link count of a file. */ -#define _POSIX_LINK_MAX 8 - -/* Maximum length of login name. */ -#define _POSIX_LOGIN_NAME_MAX 9 - -/* Number of bytes in a terminal canonical input queue. */ -#define _POSIX_MAX_CANON 255 - -/* Number of bytes for which space will be - available in a terminal input queue. */ -#define _POSIX_MAX_INPUT 255 - -/* Maximum number of message queues open for a process. */ -#define _POSIX_MQ_OPEN_MAX 8 - -/* Maximum number of supported message priorities. */ -#define _POSIX_MQ_PRIO_MAX 32 - -/* Number of bytes in a filename. */ -#define _POSIX_NAME_MAX 14 - -/* Number of simultaneous supplementary group IDs per process. */ -#ifdef __USE_XOPEN2K -# define _POSIX_NGROUPS_MAX 8 -#else -# define _POSIX_NGROUPS_MAX 0 -#endif - -/* Number of files one process can have open at once. */ -#ifdef __USE_XOPEN2K -# define _POSIX_OPEN_MAX 20 -#else -# define _POSIX_OPEN_MAX 16 -#endif - -#if !defined __USE_XOPEN2K || defined __USE_GNU -/* Number of descriptors that a process may examine with `pselect' or - `select'. */ -# define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX -#endif - -/* Number of bytes in a pathname. */ -#define _POSIX_PATH_MAX 256 - -/* Number of bytes than can be written atomically to a pipe. */ -#define _POSIX_PIPE_BUF 512 - -/* The number of repeated occurrences of a BRE permitted by the - REGEXEC and REGCOMP functions when using the interval notation. */ -#define _POSIX_RE_DUP_MAX 255 - -/* Minimal number of realtime signals reserved for the application. */ -#define _POSIX_RTSIG_MAX 8 - -/* Number of semaphores a process can have. */ -#define _POSIX_SEM_NSEMS_MAX 256 - -/* Maximal value of a semaphore. */ -#define _POSIX_SEM_VALUE_MAX 32767 - -/* Number of pending realtime signals. */ -#define _POSIX_SIGQUEUE_MAX 32 - -/* Largest value of a `ssize_t'. */ -#define _POSIX_SSIZE_MAX 32767 - -/* Number of streams a process can have open at once. */ -#define _POSIX_STREAM_MAX 8 - -/* The number of bytes in a symbolic link. */ -#define _POSIX_SYMLINK_MAX 255 - -/* The number of symbolic links that can be traversed in the - resolution of a pathname in the absence of a loop. */ -#define _POSIX_SYMLOOP_MAX 8 - -/* Number of timer for a process. */ -#define _POSIX_TIMER_MAX 32 - -/* Maximum number of characters in a tty name. */ -#define _POSIX_TTY_NAME_MAX 9 - -/* Maximum length of a timezone name (element of `tzname'). */ -#ifdef __USE_XOPEN2K -# define _POSIX_TZNAME_MAX 6 -#else -# define _POSIX_TZNAME_MAX 3 -#endif - -#if !defined __USE_XOPEN2K || defined __USE_GNU -/* Maximum number of connections that can be queued on a socket. */ -# define _POSIX_QLIMIT 1 - -/* Maximum number of bytes that can be buffered on a socket for send - or receive. */ -# define _POSIX_HIWAT _POSIX_PIPE_BUF - -/* Maximum number of elements in an `iovec' array. */ -# define _POSIX_UIO_MAXIOV 16 -#endif - -/* Maximum clock resolution in nanoseconds. */ -#define _POSIX_CLOCKRES_MIN 20000000 - - -/* Get the implementation-specific values for the above. */ -#include - - -#ifndef SSIZE_MAX -# define SSIZE_MAX LONG_MAX -#endif - - -/* This value is a guaranteed minimum maximum. - The current maximum can be got from `sysconf'. */ - -#ifndef NGROUPS_MAX -# define NGROUPS_MAX 8 -#endif - -#endif /* bits/posix1_lim.h */ diff --git a/libktorrent/miniboost/bits/posix2_lim.h b/libktorrent/miniboost/bits/posix2_lim.h deleted file mode 100644 index 0dbdf1e6..00000000 --- a/libktorrent/miniboost/bits/posix2_lim.h +++ /dev/null @@ -1,90 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * Never include this file directly; include instead. - */ - -#ifndef _BITS_POSIX2_LIM_H -#define _BITS_POSIX2_LIM_H 1 - - -/* The maximum `ibase' and `obase' values allowed by the `bc' utility. */ -#define _POSIX2_BC_BASE_MAX 99 - -/* The maximum number of elements allowed in an array by the `bc' utility. */ -#define _POSIX2_BC_DIM_MAX 2048 - -/* The maximum `scale' value allowed by the `bc' utility. */ -#define _POSIX2_BC_SCALE_MAX 99 - -/* The maximum length of a string constant accepted by the `bc' utility. */ -#define _POSIX2_BC_STRING_MAX 1000 - -/* The maximum number of weights that can be assigned to an entry of - the LC_COLLATE `order' keyword in the locale definition file. */ -#define _POSIX2_COLL_WEIGHTS_MAX 2 - -/* The maximum number of expressions that can be nested - within parentheses by the `expr' utility. */ -#define _POSIX2_EXPR_NEST_MAX 32 - -/* The maximum length, in bytes, of an input line. */ -#define _POSIX2_LINE_MAX 2048 - -/* The maximum number of repeated occurrences of a regular expression - permitted when using the interval notation `\{M,N\}'. */ -#define _POSIX2_RE_DUP_MAX 255 - -/* The maximum number of bytes in a character class name. We have no - fixed limit, 2048 is a high number. */ -#define _POSIX2_CHARCLASS_NAME_MAX 14 - - -/* These values are implementation-specific, - and may vary within the implementation. - Their precise values can be obtained from sysconf. */ - -#ifndef BC_BASE_MAX -#define BC_BASE_MAX _POSIX2_BC_BASE_MAX -#endif -#ifndef BC_DIM_MAX -#define BC_DIM_MAX _POSIX2_BC_DIM_MAX -#endif -#ifndef BC_SCALE_MAX -#define BC_SCALE_MAX _POSIX2_BC_SCALE_MAX -#endif -#ifndef BC_STRING_MAX -#define BC_STRING_MAX _POSIX2_BC_STRING_MAX -#endif -#ifndef COLL_WEIGHTS_MAX -#define COLL_WEIGHTS_MAX 255 -#endif -#ifndef EXPR_NEST_MAX -#define EXPR_NEST_MAX _POSIX2_EXPR_NEST_MAX -#endif -#ifndef LINE_MAX -#define LINE_MAX _POSIX2_LINE_MAX -#endif -#ifndef CHARCLASS_NAME_MAX -#define CHARCLASS_NAME_MAX 2048 -#endif - -/* This value is defined like this in regex.h. */ -#define RE_DUP_MAX (0x7fff) - -#endif /* bits/posix2_lim.h */ diff --git a/libktorrent/miniboost/bits/posix_opt.h b/libktorrent/miniboost/bits/posix_opt.h deleted file mode 100644 index 6ca0753e..00000000 --- a/libktorrent/miniboost/bits/posix_opt.h +++ /dev/null @@ -1,191 +0,0 @@ -/* Define POSIX options for Linux. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, see . */ - -#ifndef _BITS_POSIX_OPT_H -#define _BITS_POSIX_OPT_H 1 - -/* Job control is supported. */ -#define _POSIX_JOB_CONTROL 1 - -/* Processes have a saved set-user-ID and a saved set-group-ID. */ -#define _POSIX_SAVED_IDS 1 - -/* Priority scheduling is supported. */ -#define _POSIX_PRIORITY_SCHEDULING 200809L - -/* Synchronizing file data is supported. */ -#define _POSIX_SYNCHRONIZED_IO 200809L - -/* The fsync function is present. */ -#define _POSIX_FSYNC 200809L - -/* Mapping of files to memory is supported. */ -#define _POSIX_MAPPED_FILES 200809L - -/* Locking of all memory is supported. */ -#define _POSIX_MEMLOCK 200809L - -/* Locking of ranges of memory is supported. */ -#define _POSIX_MEMLOCK_RANGE 200809L - -/* Setting of memory protections is supported. */ -#define _POSIX_MEMORY_PROTECTION 200809L - -/* Some filesystems allow all users to change file ownership. */ -#define _POSIX_CHOWN_RESTRICTED 0 - -/* `c_cc' member of 'struct termios' structure can be disabled by - using the value _POSIX_VDISABLE. */ -#define _POSIX_VDISABLE '\0' - -/* Filenames are not silently truncated. */ -#define _POSIX_NO_TRUNC 1 - -/* X/Open realtime support is available. */ -#define _XOPEN_REALTIME 1 - -/* X/Open thread realtime support is available. */ -#define _XOPEN_REALTIME_THREADS 1 - -/* XPG4.2 shared memory is supported. */ -#define _XOPEN_SHM 1 - -/* Tell we have POSIX threads. */ -#define _POSIX_THREADS 200809L - -/* We have the reentrant functions described in POSIX. */ -#define _POSIX_REENTRANT_FUNCTIONS 1 -#define _POSIX_THREAD_SAFE_FUNCTIONS 200809L - -/* We provide priority scheduling for threads. */ -#define _POSIX_THREAD_PRIORITY_SCHEDULING 200809L - -/* We support user-defined stack sizes. */ -#define _POSIX_THREAD_ATTR_STACKSIZE 200809L - -/* We support user-defined stacks. */ -#define _POSIX_THREAD_ATTR_STACKADDR 200809L - -/* We support priority inheritence. */ -#define _POSIX_THREAD_PRIO_INHERIT 200809L - -/* We support priority protection, though only for non-robust - mutexes. */ -#define _POSIX_THREAD_PRIO_PROTECT 200809L - -#ifdef __USE_XOPEN2K8 -/* We support priority inheritence for robust mutexes. */ -# define _POSIX_THREAD_ROBUST_PRIO_INHERIT 200809L - -/* We do not support priority protection for robust mutexes. */ -# define _POSIX_THREAD_ROBUST_PRIO_PROTECT -1 -#endif - -/* We support POSIX.1b semaphores. */ -#define _POSIX_SEMAPHORES 200809L - -/* Real-time signals are supported. */ -#define _POSIX_REALTIME_SIGNALS 200809L - -/* We support asynchronous I/O. */ -#define _POSIX_ASYNCHRONOUS_IO 200809L -#define _POSIX_ASYNC_IO 1 -/* Alternative name for Unix98. */ -#define _LFS_ASYNCHRONOUS_IO 1 -/* Support for prioritization is also available. */ -#define _POSIX_PRIORITIZED_IO 200809L - -/* The LFS support in asynchronous I/O is also available. */ -#define _LFS64_ASYNCHRONOUS_IO 1 - -/* The rest of the LFS is also available. */ -#define _LFS_LARGEFILE 1 -#define _LFS64_LARGEFILE 1 -#define _LFS64_STDIO 1 - -/* POSIX shared memory objects are implemented. */ -#define _POSIX_SHARED_MEMORY_OBJECTS 200809L - -/* CPU-time clocks support needs to be checked at runtime. */ -#define _POSIX_CPUTIME 0 - -/* Clock support in threads must be also checked at runtime. */ -#define _POSIX_THREAD_CPUTIME 0 - -/* GNU libc provides regular expression handling. */ -#define _POSIX_REGEXP 1 - -/* Reader/Writer locks are available. */ -#define _POSIX_READER_WRITER_LOCKS 200809L - -/* We have a POSIX shell. */ -#define _POSIX_SHELL 1 - -/* We support the Timeouts option. */ -#define _POSIX_TIMEOUTS 200809L - -/* We support spinlocks. */ -#define _POSIX_SPIN_LOCKS 200809L - -/* The `spawn' function family is supported. */ -#define _POSIX_SPAWN 200809L - -/* We have POSIX timers. */ -#define _POSIX_TIMERS 200809L - -/* The barrier functions are available. */ -#define _POSIX_BARRIERS 200809L - -/* POSIX message queues are available. */ -#define _POSIX_MESSAGE_PASSING 200809L - -/* Thread process-shared synchronization is supported. */ -#define _POSIX_THREAD_PROCESS_SHARED 200809L - -/* The monotonic clock might be available. */ -#define _POSIX_MONOTONIC_CLOCK 0 - -/* The clock selection interfaces are available. */ -#define _POSIX_CLOCK_SELECTION 200809L - -/* Advisory information interfaces are available. */ -#define _POSIX_ADVISORY_INFO 200809L - -/* IPv6 support is available. */ -#define _POSIX_IPV6 200809L - -/* Raw socket support is available. */ -#define _POSIX_RAW_SOCKETS 200809L - -/* We have at least one terminal. */ -#define _POSIX2_CHAR_TERM 200809L - -/* Neither process nor thread sporadic server interfaces is available. */ -#define _POSIX_SPORADIC_SERVER -1 -#define _POSIX_THREAD_SPORADIC_SERVER -1 - -/* trace.h is not available. */ -#define _POSIX_TRACE -1 -#define _POSIX_TRACE_EVENT_FILTER -1 -#define _POSIX_TRACE_INHERIT -1 -#define _POSIX_TRACE_LOG -1 - -/* Typed memory objects are not available. */ -#define _POSIX_TYPED_MEMORY_OBJECTS -1 - -#endif /* bits/posix_opt.h */ diff --git a/libktorrent/miniboost/bits/pthreadtypes.h b/libktorrent/miniboost/bits/pthreadtypes.h deleted file mode 100644 index aad2e14c..00000000 --- a/libktorrent/miniboost/bits/pthreadtypes.h +++ /dev/null @@ -1,258 +0,0 @@ -/* Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_PTHREADTYPES_H -#define _BITS_PTHREADTYPES_H 1 - -#include - -#ifdef __x86_64__ -# if __WORDSIZE == 64 -# define __SIZEOF_PTHREAD_ATTR_T 56 -# define __SIZEOF_PTHREAD_MUTEX_T 40 -# define __SIZEOF_PTHREAD_MUTEXATTR_T 4 -# define __SIZEOF_PTHREAD_COND_T 48 -# define __SIZEOF_PTHREAD_CONDATTR_T 4 -# define __SIZEOF_PTHREAD_RWLOCK_T 56 -# define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 -# define __SIZEOF_PTHREAD_BARRIER_T 32 -# define __SIZEOF_PTHREAD_BARRIERATTR_T 4 -# else -# define __SIZEOF_PTHREAD_ATTR_T 32 -# define __SIZEOF_PTHREAD_MUTEX_T 32 -# define __SIZEOF_PTHREAD_MUTEXATTR_T 4 -# define __SIZEOF_PTHREAD_COND_T 48 -# define __SIZEOF_PTHREAD_CONDATTR_T 4 -# define __SIZEOF_PTHREAD_RWLOCK_T 44 -# define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 -# define __SIZEOF_PTHREAD_BARRIER_T 20 -# define __SIZEOF_PTHREAD_BARRIERATTR_T 4 -# endif -#else -# define __SIZEOF_PTHREAD_ATTR_T 36 -# define __SIZEOF_PTHREAD_MUTEX_T 24 -# define __SIZEOF_PTHREAD_MUTEXATTR_T 4 -# define __SIZEOF_PTHREAD_COND_T 48 -# define __SIZEOF_PTHREAD_CONDATTR_T 4 -# define __SIZEOF_PTHREAD_RWLOCK_T 32 -# define __SIZEOF_PTHREAD_RWLOCKATTR_T 8 -# define __SIZEOF_PTHREAD_BARRIER_T 20 -# define __SIZEOF_PTHREAD_BARRIERATTR_T 4 -#endif - - -/* Thread identifiers. The structure of the attribute type is not - exposed on purpose. */ -typedef unsigned long int pthread_t; - - -union pthread_attr_t -{ - char __size[__SIZEOF_PTHREAD_ATTR_T]; - long int __align; -}; -#ifndef __have_pthread_attr_t -typedef union pthread_attr_t pthread_attr_t; -# define __have_pthread_attr_t 1 -#endif - - -#ifdef __x86_64__ -typedef struct __pthread_internal_list -{ - struct __pthread_internal_list *__prev; - struct __pthread_internal_list *__next; -} __pthread_list_t; -#else -typedef struct __pthread_internal_slist -{ - struct __pthread_internal_slist *__next; -} __pthread_slist_t; -#endif - - -/* Data structures for mutex handling. The structure of the attribute - type is not exposed on purpose. */ -typedef union -{ - struct __pthread_mutex_s - { - int __lock; - unsigned int __count; - int __owner; -#ifdef __x86_64__ - unsigned int __nusers; -#endif - /* KIND must stay at this position in the structure to maintain - binary compatibility. */ - int __kind; -#ifdef __x86_64__ - short __spins; - short __elision; - __pthread_list_t __list; -# define __PTHREAD_MUTEX_HAVE_PREV 1 -/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */ -# define __PTHREAD_SPINS 0, 0 -#else - unsigned int __nusers; - __extension__ union - { - struct - { - short __espins; - short __elision; -# define __spins __elision_data.__espins -# define __elision __elision_data.__elision -# define __PTHREAD_SPINS { 0, 0 } - } __elision_data; - __pthread_slist_t __list; - }; -#endif - } __data; - char __size[__SIZEOF_PTHREAD_MUTEX_T]; - long int __align; -} pthread_mutex_t; - -typedef union -{ - char __size[__SIZEOF_PTHREAD_MUTEXATTR_T]; - int __align; -} pthread_mutexattr_t; - - -/* Data structure for conditional variable handling. The structure of - the attribute type is not exposed on purpose. */ -typedef union -{ - struct - { - int __lock; - unsigned int __futex; - __extension__ unsigned long long int __total_seq; - __extension__ unsigned long long int __wakeup_seq; - __extension__ unsigned long long int __woken_seq; - void *__mutex; - unsigned int __nwaiters; - unsigned int __broadcast_seq; - } __data; - char __size[__SIZEOF_PTHREAD_COND_T]; - __extension__ long long int __align; -} pthread_cond_t; - -typedef union -{ - char __size[__SIZEOF_PTHREAD_CONDATTR_T]; - int __align; -} pthread_condattr_t; - - -/* Keys for thread-specific data */ -typedef unsigned int pthread_key_t; - - -/* Once-only execution */ -typedef int pthread_once_t; - - -#if defined __USE_UNIX98 || defined __USE_XOPEN2K -/* Data structure for read-write lock variable handling. The - structure of the attribute type is not exposed on purpose. */ -typedef union -{ -# ifdef __x86_64__ - struct - { - int __lock; - unsigned int __nr_readers; - unsigned int __readers_wakeup; - unsigned int __writer_wakeup; - unsigned int __nr_readers_queued; - unsigned int __nr_writers_queued; - int __writer; - int __shared; - signed char __rwelision; -# ifdef __ILP32__ - unsigned char __pad1[3]; -# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 } -# else - unsigned char __pad1[7]; -# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 } -# endif - unsigned long int __pad2; - /* FLAGS must stay at this position in the structure to maintain - binary compatibility. */ - unsigned int __flags; -# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1 - } __data; -# else - struct - { - int __lock; - unsigned int __nr_readers; - unsigned int __readers_wakeup; - unsigned int __writer_wakeup; - unsigned int __nr_readers_queued; - unsigned int __nr_writers_queued; - /* FLAGS must stay at this position in the structure to maintain - binary compatibility. */ - unsigned char __flags; - unsigned char __shared; - signed char __rwelision; -# define __PTHREAD_RWLOCK_ELISION_EXTRA 0 - unsigned char __pad2; - int __writer; - } __data; -# endif - char __size[__SIZEOF_PTHREAD_RWLOCK_T]; - long int __align; -} pthread_rwlock_t; - -typedef union -{ - char __size[__SIZEOF_PTHREAD_RWLOCKATTR_T]; - long int __align; -} pthread_rwlockattr_t; -#endif - - -#ifdef __USE_XOPEN2K -/* POSIX spinlock data type. */ -typedef volatile int pthread_spinlock_t; - - -/* POSIX barriers data type. The structure of the type is - deliberately not exposed. */ -typedef union -{ - char __size[__SIZEOF_PTHREAD_BARRIER_T]; - long int __align; -} pthread_barrier_t; - -typedef union -{ - char __size[__SIZEOF_PTHREAD_BARRIERATTR_T]; - int __align; -} pthread_barrierattr_t; -#endif - - -#ifndef __x86_64__ -/* Extra attributes for the cleanup functions. */ -# define __cleanup_fct_attribute __attribute__ ((__regparm__ (1))) -#endif - -#endif /* bits/pthreadtypes.h */ diff --git a/libktorrent/miniboost/bits/sched.h b/libktorrent/miniboost/bits/sched.h deleted file mode 100644 index 555529d6..00000000 --- a/libktorrent/miniboost/bits/sched.h +++ /dev/null @@ -1,210 +0,0 @@ -/* Definitions of constants and data structure for POSIX 1003.1b-1993 - scheduling interface. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef __need_schedparam - -#ifndef _SCHED_H -# error "Never include directly; use instead." -#endif - - -/* Scheduling algorithms. */ -#define SCHED_OTHER 0 -#define SCHED_FIFO 1 -#define SCHED_RR 2 -#ifdef __USE_GNU -# define SCHED_BATCH 3 -# define SCHED_IDLE 5 - -# define SCHED_RESET_ON_FORK 0x40000000 -#endif - -#ifdef __USE_GNU -/* Cloning flags. */ -# define CSIGNAL 0x000000ff /* Signal mask to be sent at exit. */ -# define CLONE_VM 0x00000100 /* Set if VM shared between processes. */ -# define CLONE_FS 0x00000200 /* Set if fs info shared between processes. */ -# define CLONE_FILES 0x00000400 /* Set if open files shared between processes. */ -# define CLONE_SIGHAND 0x00000800 /* Set if signal handlers shared. */ -# define CLONE_PTRACE 0x00002000 /* Set if tracing continues on the child. */ -# define CLONE_VFORK 0x00004000 /* Set if the parent wants the child to - wake it up on mm_release. */ -# define CLONE_PARENT 0x00008000 /* Set if we want to have the same - parent as the cloner. */ -# define CLONE_THREAD 0x00010000 /* Set to add to same thread group. */ -# define CLONE_NEWNS 0x00020000 /* Set to create new namespace. */ -# define CLONE_SYSVSEM 0x00040000 /* Set to shared SVID SEM_UNDO semantics. */ -# define CLONE_SETTLS 0x00080000 /* Set TLS info. */ -# define CLONE_PARENT_SETTID 0x00100000 /* Store TID in userlevel buffer - before MM copy. */ -# define CLONE_CHILD_CLEARTID 0x00200000 /* Register exit futex and memory - location to clear. */ -# define CLONE_DETACHED 0x00400000 /* Create clone detached. */ -# define CLONE_UNTRACED 0x00800000 /* Set if the tracing process can't - force CLONE_PTRACE on this clone. */ -# define CLONE_CHILD_SETTID 0x01000000 /* Store TID in userlevel buffer in - the child. */ -# define CLONE_NEWUTS 0x04000000 /* New utsname group. */ -# define CLONE_NEWIPC 0x08000000 /* New ipcs. */ -# define CLONE_NEWUSER 0x10000000 /* New user namespace. */ -# define CLONE_NEWPID 0x20000000 /* New pid namespace. */ -# define CLONE_NEWNET 0x40000000 /* New network namespace. */ -# define CLONE_IO 0x80000000 /* Clone I/O context. */ -#endif - -/* The official definition. */ -struct sched_param - { - int __sched_priority; - }; - -__BEGIN_DECLS - -#ifdef __USE_GNU -/* Clone current process. */ -extern int clone (int (*__fn) (void *__arg), void *__child_stack, - int __flags, void *__arg, ...) __THROW; - -/* Unshare the specified resources. */ -extern int unshare (int __flags) __THROW; - -/* Get index of currently used CPU. */ -extern int sched_getcpu (void) __THROW; - -/* Switch process to namespace of type NSTYPE indicated by FD. */ -extern int setns (int __fd, int __nstype) __THROW; -#endif - - -__END_DECLS - -#endif /* need schedparam */ - -#if !defined __defined_schedparam \ - && (defined __need_schedparam || defined _SCHED_H) -# define __defined_schedparam 1 -/* Data structure to describe a process' schedulability. */ -struct __sched_param - { - int __sched_priority; - }; -# undef __need_schedparam -#endif - - -#if defined _SCHED_H && !defined __cpu_set_t_defined -# define __cpu_set_t_defined -/* Size definition for CPU sets. */ -# define __CPU_SETSIZE 1024 -# define __NCPUBITS (8 * sizeof (__cpu_mask)) - -/* Type for array elements in 'cpu_set_t'. */ -typedef unsigned long int __cpu_mask; - -/* Basic access functions. */ -# define __CPUELT(cpu) ((cpu) / __NCPUBITS) -# define __CPUMASK(cpu) ((__cpu_mask) 1 << ((cpu) % __NCPUBITS)) - -/* Data structure to describe CPU mask. */ -typedef struct -{ - __cpu_mask __bits[__CPU_SETSIZE / __NCPUBITS]; -} cpu_set_t; - -/* Access functions for CPU masks. */ -# if __GNUC_PREREQ (2, 91) -# define __CPU_ZERO_S(setsize, cpusetp) \ - do __builtin_memset (cpusetp, '\0', setsize); while (0) -# else -# define __CPU_ZERO_S(setsize, cpusetp) \ - do { \ - size_t __i; \ - size_t __imax = (setsize) / sizeof (__cpu_mask); \ - __cpu_mask *__bits = (cpusetp)->__bits; \ - for (__i = 0; __i < __imax; ++__i) \ - __bits[__i] = 0; \ - } while (0) -# endif -# define __CPU_SET_S(cpu, setsize, cpusetp) \ - (__extension__ \ - ({ size_t __cpu = (cpu); \ - __cpu / 8 < (setsize) \ - ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] \ - |= __CPUMASK (__cpu)) \ - : 0; })) -# define __CPU_CLR_S(cpu, setsize, cpusetp) \ - (__extension__ \ - ({ size_t __cpu = (cpu); \ - __cpu / 8 < (setsize) \ - ? (((__cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] \ - &= ~__CPUMASK (__cpu)) \ - : 0; })) -# define __CPU_ISSET_S(cpu, setsize, cpusetp) \ - (__extension__ \ - ({ size_t __cpu = (cpu); \ - __cpu / 8 < (setsize) \ - ? ((((const __cpu_mask *) ((cpusetp)->__bits))[__CPUELT (__cpu)] \ - & __CPUMASK (__cpu))) != 0 \ - : 0; })) - -# define __CPU_COUNT_S(setsize, cpusetp) \ - __sched_cpucount (setsize, cpusetp) - -# if __GNUC_PREREQ (2, 91) -# define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \ - (__builtin_memcmp (cpusetp1, cpusetp2, setsize) == 0) -# else -# define __CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \ - (__extension__ \ - ({ const __cpu_mask *__arr1 = (cpusetp1)->__bits; \ - const __cpu_mask *__arr2 = (cpusetp2)->__bits; \ - size_t __imax = (setsize) / sizeof (__cpu_mask); \ - size_t __i; \ - for (__i = 0; __i < __imax; ++__i) \ - if (__arr1[__i] != __arr2[__i]) \ - break; \ - __i == __imax; })) -# endif - -# define __CPU_OP_S(setsize, destset, srcset1, srcset2, op) \ - (__extension__ \ - ({ cpu_set_t *__dest = (destset); \ - const __cpu_mask *__arr1 = (srcset1)->__bits; \ - const __cpu_mask *__arr2 = (srcset2)->__bits; \ - size_t __imax = (setsize) / sizeof (__cpu_mask); \ - size_t __i; \ - for (__i = 0; __i < __imax; ++__i) \ - ((__cpu_mask *) __dest->__bits)[__i] = __arr1[__i] op __arr2[__i]; \ - __dest; })) - -# define __CPU_ALLOC_SIZE(count) \ - ((((count) + __NCPUBITS - 1) / __NCPUBITS) * sizeof (__cpu_mask)) -# define __CPU_ALLOC(count) __sched_cpualloc (count) -# define __CPU_FREE(cpuset) __sched_cpufree (cpuset) - -__BEGIN_DECLS - -extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) - __THROW; -extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur; -extern void __sched_cpufree (cpu_set_t *__set) __THROW; - -__END_DECLS - -#endif diff --git a/libktorrent/miniboost/bits/select.h b/libktorrent/miniboost/bits/select.h deleted file mode 100644 index 6e9c4f1d..00000000 --- a/libktorrent/miniboost/bits/select.h +++ /dev/null @@ -1,63 +0,0 @@ -/* Copyright (C) 1997-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_SELECT_H -# error "Never use directly; include instead." -#endif - -#include - - -#if defined __GNUC__ && __GNUC__ >= 2 - -# if __WORDSIZE == 64 -# define __FD_ZERO_STOS "stosq" -# else -# define __FD_ZERO_STOS "stosl" -# endif - -# define __FD_ZERO(fdsp) \ - do { \ - int __d0, __d1; \ - __asm__ __volatile__ ("cld; rep; " __FD_ZERO_STOS \ - : "=c" (__d0), "=D" (__d1) \ - : "a" (0), "0" (sizeof (fd_set) \ - / sizeof (__fd_mask)), \ - "1" (&__FDS_BITS (fdsp)[0]) \ - : "memory"); \ - } while (0) - -#else /* ! GNU CC */ - -/* We don't use `memset' because this would require a prototype and - the array isn't too big. */ -# define __FD_ZERO(set) \ - do { \ - unsigned int __i; \ - fd_set *__arr = (set); \ - for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \ - __FDS_BITS (__arr)[__i] = 0; \ - } while (0) - -#endif /* GNU CC */ - -#define __FD_SET(d, set) \ - ((void) (__FDS_BITS (set)[__FD_ELT (d)] |= __FD_MASK (d))) -#define __FD_CLR(d, set) \ - ((void) (__FDS_BITS (set)[__FD_ELT (d)] &= ~__FD_MASK (d))) -#define __FD_ISSET(d, set) \ - ((__FDS_BITS (set)[__FD_ELT (d)] & __FD_MASK (d)) != 0) diff --git a/libktorrent/miniboost/bits/select2.h b/libktorrent/miniboost/bits/select2.h deleted file mode 100644 index 8906ba1f..00000000 --- a/libktorrent/miniboost/bits/select2.h +++ /dev/null @@ -1,35 +0,0 @@ -/* Checking macros for select functions. - Copyright (C) 2011-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_SELECT_H -# error "Never include directly; use instead." -#endif - -/* Helper functions to issue warnings and errors when needed. */ -extern long int __fdelt_chk (long int __d); -extern long int __fdelt_warn (long int __d) - __warnattr ("bit outside of fd_set selected"); -#undef __FD_ELT -#define __FD_ELT(d) \ - __extension__ \ - ({ long int __d = (d); \ - (__builtin_constant_p (__d) \ - ? (0 <= __d && __d < __FD_SETSIZE \ - ? (__d / __NFDBITS) \ - : __fdelt_warn (__d)) \ - : __fdelt_chk (__d)); }) diff --git a/libktorrent/miniboost/bits/setjmp.h b/libktorrent/miniboost/bits/setjmp.h deleted file mode 100644 index a261eb70..00000000 --- a/libktorrent/miniboost/bits/setjmp.h +++ /dev/null @@ -1,40 +0,0 @@ -/* Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* Define the machine-dependent type `jmp_buf'. x86-64 version. */ -#ifndef _BITS_SETJMP_H -#define _BITS_SETJMP_H 1 - -#if !defined _SETJMP_H && !defined _PTHREAD_H -# error "Never include directly; use instead." -#endif - -#include - -#ifndef _ASM - -# if __WORDSIZE == 64 -typedef long int __jmp_buf[8]; -# elif defined __x86_64__ -__extension__ typedef long long int __jmp_buf[8]; -# else -typedef int __jmp_buf[6]; -# endif - -#endif - -#endif /* bits/setjmp.h */ diff --git a/libktorrent/miniboost/bits/sigaction.h b/libktorrent/miniboost/bits/sigaction.h deleted file mode 100644 index eb09e818..00000000 --- a/libktorrent/miniboost/bits/sigaction.h +++ /dev/null @@ -1,78 +0,0 @@ -/* The proper definitions for Linux's sigaction. - Copyright (C) 1993-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SIGNAL_H -# error "Never include directly; use instead." -#endif - -/* Structure describing the action to be taken when a signal arrives. */ -struct sigaction - { - /* Signal handler. */ -#ifdef __USE_POSIX199309 - union - { - /* Used if SA_SIGINFO is not set. */ - __sighandler_t sa_handler; - /* Used if SA_SIGINFO is set. */ - void (*sa_sigaction) (int, siginfo_t *, void *); - } - __sigaction_handler; -# define sa_handler __sigaction_handler.sa_handler -# define sa_sigaction __sigaction_handler.sa_sigaction -#else - __sighandler_t sa_handler; -#endif - - /* Additional set of signals to be blocked. */ - __sigset_t sa_mask; - - /* Special flags. */ - int sa_flags; - - /* Restore handler. */ - void (*sa_restorer) (void); - }; - -/* Bits in `sa_flags'. */ -#define SA_NOCLDSTOP 1 /* Don't send SIGCHLD when children stop. */ -#define SA_NOCLDWAIT 2 /* Don't create zombie on child death. */ -#define SA_SIGINFO 4 /* Invoke signal-catching function with - three arguments instead of one. */ -#if defined __USE_UNIX98 || defined __USE_MISC -# define SA_ONSTACK 0x08000000 /* Use signal stack by using `sa_restorer'. */ -#endif -#if defined __USE_UNIX98 || defined __USE_XOPEN2K8 -# define SA_RESTART 0x10000000 /* Restart syscall on signal return. */ -# define SA_NODEFER 0x40000000 /* Don't automatically block the signal when - its handler is being executed. */ -# define SA_RESETHAND 0x80000000 /* Reset to SIG_DFL on entry to handler. */ -#endif -#ifdef __USE_MISC -# define SA_INTERRUPT 0x20000000 /* Historical no-op. */ - -/* Some aliases for the SA_ constants. */ -# define SA_NOMASK SA_NODEFER -# define SA_ONESHOT SA_RESETHAND -# define SA_STACK SA_ONSTACK -#endif - -/* Values for the HOW argument to `sigprocmask'. */ -#define SIG_BLOCK 0 /* Block signals. */ -#define SIG_UNBLOCK 1 /* Unblock signals. */ -#define SIG_SETMASK 2 /* Set the set of blocked signals. */ diff --git a/libktorrent/miniboost/bits/sigcontext.h b/libktorrent/miniboost/bits/sigcontext.h deleted file mode 100644 index e742cba7..00000000 --- a/libktorrent/miniboost/bits/sigcontext.h +++ /dev/null @@ -1,194 +0,0 @@ -/* Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_SIGCONTEXT_H -#define _BITS_SIGCONTEXT_H 1 - -#if !defined _SIGNAL_H && !defined _SYS_UCONTEXT_H -# error "Never use directly; include instead." -#endif - -#define FP_XSTATE_MAGIC1 0x46505853U -#define FP_XSTATE_MAGIC2 0x46505845U -#define FP_XSTATE_MAGIC2_SIZE sizeof(FP_XSTATE_MAGIC2) - -struct _fpx_sw_bytes -{ - __uint32_t magic1; - __uint32_t extended_size; - __uint64_t xstate_bv; - __uint32_t xstate_size; - __uint32_t padding[7]; -}; - -struct _fpreg -{ - unsigned short significand[4]; - unsigned short exponent; -}; - -struct _fpxreg -{ - unsigned short significand[4]; - unsigned short exponent; - unsigned short padding[3]; -}; - -struct _xmmreg -{ - __uint32_t element[4]; -}; - - - -#ifndef __x86_64__ - -struct _fpstate -{ - /* Regular FPU environment. */ - __uint32_t cw; - __uint32_t sw; - __uint32_t tag; - __uint32_t ipoff; - __uint32_t cssel; - __uint32_t dataoff; - __uint32_t datasel; - struct _fpreg _st[8]; - unsigned short status; - unsigned short magic; - - /* FXSR FPU environment. */ - __uint32_t _fxsr_env[6]; - __uint32_t mxcsr; - __uint32_t reserved; - struct _fpxreg _fxsr_st[8]; - struct _xmmreg _xmm[8]; - __uint32_t padding[56]; -}; - -#ifndef sigcontext_struct -/* Kernel headers before 2.1.1 define a struct sigcontext_struct, but - we need sigcontext. Some packages have come to rely on - sigcontext_struct being defined on 32-bit x86, so define this for - their benefit. */ -# define sigcontext_struct sigcontext -#endif - -#define X86_FXSR_MAGIC 0x0000 - -struct sigcontext -{ - unsigned short gs, __gsh; - unsigned short fs, __fsh; - unsigned short es, __esh; - unsigned short ds, __dsh; - unsigned long edi; - unsigned long esi; - unsigned long ebp; - unsigned long esp; - unsigned long ebx; - unsigned long edx; - unsigned long ecx; - unsigned long eax; - unsigned long trapno; - unsigned long err; - unsigned long eip; - unsigned short cs, __csh; - unsigned long eflags; - unsigned long esp_at_signal; - unsigned short ss, __ssh; - struct _fpstate * fpstate; - unsigned long oldmask; - unsigned long cr2; -}; - -#else /* __x86_64__ */ - -struct _fpstate -{ - /* FPU environment matching the 64-bit FXSAVE layout. */ - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _fpxreg _st[8]; - struct _xmmreg _xmm[16]; - __uint32_t padding[24]; -}; - -struct sigcontext -{ - __uint64_t r8; - __uint64_t r9; - __uint64_t r10; - __uint64_t r11; - __uint64_t r12; - __uint64_t r13; - __uint64_t r14; - __uint64_t r15; - __uint64_t rdi; - __uint64_t rsi; - __uint64_t rbp; - __uint64_t rbx; - __uint64_t rdx; - __uint64_t rax; - __uint64_t rcx; - __uint64_t rsp; - __uint64_t rip; - __uint64_t eflags; - unsigned short cs; - unsigned short gs; - unsigned short fs; - unsigned short __pad0; - __uint64_t err; - __uint64_t trapno; - __uint64_t oldmask; - __uint64_t cr2; - __extension__ union - { - struct _fpstate * fpstate; - __uint64_t __fpstate_word; - }; - __uint64_t __reserved1 [8]; -}; - -#endif /* __x86_64__ */ - -struct _xsave_hdr -{ - __uint64_t xstate_bv; - __uint64_t reserved1[2]; - __uint64_t reserved2[5]; -}; - -struct _ymmh_state -{ - __uint32_t ymmh_space[64]; -}; - -struct _xstate -{ - struct _fpstate fpstate; - struct _xsave_hdr xstate_hdr; - struct _ymmh_state ymmh; -}; - -#endif /* _BITS_SIGCONTEXT_H */ diff --git a/libktorrent/miniboost/bits/siginfo.h b/libktorrent/miniboost/bits/siginfo.h deleted file mode 100644 index 759fc3e6..00000000 --- a/libktorrent/miniboost/bits/siginfo.h +++ /dev/null @@ -1,353 +0,0 @@ -/* siginfo_t, sigevent and constants. Linux x86-64 version. - Copyright (C) 2012-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#if !defined _SIGNAL_H && !defined __need_siginfo_t \ - && !defined __need_sigevent_t -# error "Never include this file directly. Use instead" -#endif - -#include - -#if (!defined __have_sigval_t \ - && (defined _SIGNAL_H || defined __need_siginfo_t \ - || defined __need_sigevent_t)) -# define __have_sigval_t 1 - -/* Type for data associated with a signal. */ -typedef union sigval - { - int sival_int; - void *sival_ptr; - } sigval_t; -#endif - -#if (!defined __have_siginfo_t \ - && (defined _SIGNAL_H || defined __need_siginfo_t)) -# define __have_siginfo_t 1 - -# define __SI_MAX_SIZE 128 -# if __WORDSIZE == 64 -# define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 4) -# else -# define __SI_PAD_SIZE ((__SI_MAX_SIZE / sizeof (int)) - 3) -# endif - -# if defined __x86_64__ && __WORDSIZE == 32 -/* si_utime and si_stime must be 4 byte aligned for x32 to match the - kernel. We align siginfo_t to 8 bytes so that si_utime and si_stime - are actually aligned to 8 bytes since their offsets are multiple of - 8 bytes. */ -typedef __clock_t __attribute__ ((__aligned__ (4))) __sigchld_clock_t; -# define __SI_ALIGNMENT __attribute__ ((__aligned__ (8))) -# else -typedef __clock_t __sigchld_clock_t; -# define __SI_ALIGNMENT -# endif - -typedef struct - { - int si_signo; /* Signal number. */ - int si_errno; /* If non-zero, an errno value associated with - this signal, as defined in . */ - int si_code; /* Signal code. */ - - union - { - int _pad[__SI_PAD_SIZE]; - - /* kill(). */ - struct - { - __pid_t si_pid; /* Sending process ID. */ - __uid_t si_uid; /* Real user ID of sending process. */ - } _kill; - - /* POSIX.1b timers. */ - struct - { - int si_tid; /* Timer ID. */ - int si_overrun; /* Overrun count. */ - sigval_t si_sigval; /* Signal value. */ - } _timer; - - /* POSIX.1b signals. */ - struct - { - __pid_t si_pid; /* Sending process ID. */ - __uid_t si_uid; /* Real user ID of sending process. */ - sigval_t si_sigval; /* Signal value. */ - } _rt; - - /* SIGCHLD. */ - struct - { - __pid_t si_pid; /* Which child. */ - __uid_t si_uid; /* Real user ID of sending process. */ - int si_status; /* Exit value or signal. */ - __sigchld_clock_t si_utime; - __sigchld_clock_t si_stime; - } _sigchld; - - /* SIGILL, SIGFPE, SIGSEGV, SIGBUS. */ - struct - { - void *si_addr; /* Faulting insn/memory ref. */ - short int si_addr_lsb; /* Valid LSB of the reported address. */ - } _sigfault; - - /* SIGPOLL. */ - struct - { - long int si_band; /* Band event for SIGPOLL. */ - int si_fd; - } _sigpoll; - - /* SIGSYS. */ - struct - { - void *_call_addr; /* Calling user insn. */ - int _syscall; /* Triggering system call number. */ - unsigned int _arch; /* AUDIT_ARCH_* of syscall. */ - } _sigsys; - } _sifields; - } siginfo_t __SI_ALIGNMENT; - - -/* X/Open requires some more fields with fixed names. */ -# define si_pid _sifields._kill.si_pid -# define si_uid _sifields._kill.si_uid -# define si_timerid _sifields._timer.si_tid -# define si_overrun _sifields._timer.si_overrun -# define si_status _sifields._sigchld.si_status -# define si_utime _sifields._sigchld.si_utime -# define si_stime _sifields._sigchld.si_stime -# define si_value _sifields._rt.si_sigval -# define si_int _sifields._rt.si_sigval.sival_int -# define si_ptr _sifields._rt.si_sigval.sival_ptr -# define si_addr _sifields._sigfault.si_addr -# define si_addr_lsb _sifields._sigfault.si_addr_lsb -# define si_band _sifields._sigpoll.si_band -# define si_fd _sifields._sigpoll.si_fd -# define si_call_addr _sifields._sigsys._call_addr -# define si_syscall _sifields._sigsys._syscall -# define si_arch _sifields._sigsys._arch - - -/* Values for `si_code'. Positive values are reserved for kernel-generated - signals. */ -enum -{ - SI_ASYNCNL = -60, /* Sent by asynch name lookup completion. */ -# define SI_ASYNCNL SI_ASYNCNL - SI_TKILL = -6, /* Sent by tkill. */ -# define SI_TKILL SI_TKILL - SI_SIGIO, /* Sent by queued SIGIO. */ -# define SI_SIGIO SI_SIGIO - SI_ASYNCIO, /* Sent by AIO completion. */ -# define SI_ASYNCIO SI_ASYNCIO - SI_MESGQ, /* Sent by real time mesq state change. */ -# define SI_MESGQ SI_MESGQ - SI_TIMER, /* Sent by timer expiration. */ -# define SI_TIMER SI_TIMER - SI_QUEUE, /* Sent by sigqueue. */ -# define SI_QUEUE SI_QUEUE - SI_USER, /* Sent by kill, sigsend. */ -# define SI_USER SI_USER - SI_KERNEL = 0x80 /* Send by kernel. */ -#define SI_KERNEL SI_KERNEL -}; - - -# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* `si_code' values for SIGILL signal. */ -enum -{ - ILL_ILLOPC = 1, /* Illegal opcode. */ -# define ILL_ILLOPC ILL_ILLOPC - ILL_ILLOPN, /* Illegal operand. */ -# define ILL_ILLOPN ILL_ILLOPN - ILL_ILLADR, /* Illegal addressing mode. */ -# define ILL_ILLADR ILL_ILLADR - ILL_ILLTRP, /* Illegal trap. */ -# define ILL_ILLTRP ILL_ILLTRP - ILL_PRVOPC, /* Privileged opcode. */ -# define ILL_PRVOPC ILL_PRVOPC - ILL_PRVREG, /* Privileged register. */ -# define ILL_PRVREG ILL_PRVREG - ILL_COPROC, /* Coprocessor error. */ -# define ILL_COPROC ILL_COPROC - ILL_BADSTK /* Internal stack error. */ -# define ILL_BADSTK ILL_BADSTK -}; - -/* `si_code' values for SIGFPE signal. */ -enum -{ - FPE_INTDIV = 1, /* Integer divide by zero. */ -# define FPE_INTDIV FPE_INTDIV - FPE_INTOVF, /* Integer overflow. */ -# define FPE_INTOVF FPE_INTOVF - FPE_FLTDIV, /* Floating point divide by zero. */ -# define FPE_FLTDIV FPE_FLTDIV - FPE_FLTOVF, /* Floating point overflow. */ -# define FPE_FLTOVF FPE_FLTOVF - FPE_FLTUND, /* Floating point underflow. */ -# define FPE_FLTUND FPE_FLTUND - FPE_FLTRES, /* Floating point inexact result. */ -# define FPE_FLTRES FPE_FLTRES - FPE_FLTINV, /* Floating point invalid operation. */ -# define FPE_FLTINV FPE_FLTINV - FPE_FLTSUB /* Subscript out of range. */ -# define FPE_FLTSUB FPE_FLTSUB -}; - -/* `si_code' values for SIGSEGV signal. */ -enum -{ - SEGV_MAPERR = 1, /* Address not mapped to object. */ -# define SEGV_MAPERR SEGV_MAPERR - SEGV_ACCERR /* Invalid permissions for mapped object. */ -# define SEGV_ACCERR SEGV_ACCERR -}; - -/* `si_code' values for SIGBUS signal. */ -enum -{ - BUS_ADRALN = 1, /* Invalid address alignment. */ -# define BUS_ADRALN BUS_ADRALN - BUS_ADRERR, /* Non-existant physical address. */ -# define BUS_ADRERR BUS_ADRERR - BUS_OBJERR, /* Object specific hardware error. */ -# define BUS_OBJERR BUS_OBJERR - BUS_MCEERR_AR, /* Hardware memory error: action required. */ -# define BUS_MCEERR_AR BUS_MCEERR_AR - BUS_MCEERR_AO /* Hardware memory error: action optional. */ -# define BUS_MCEERR_AO BUS_MCEERR_AO -}; -# endif - -# ifdef __USE_XOPEN_EXTENDED -/* `si_code' values for SIGTRAP signal. */ -enum -{ - TRAP_BRKPT = 1, /* Process breakpoint. */ -# define TRAP_BRKPT TRAP_BRKPT - TRAP_TRACE /* Process trace trap. */ -# define TRAP_TRACE TRAP_TRACE -}; -# endif - -# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* `si_code' values for SIGCHLD signal. */ -enum -{ - CLD_EXITED = 1, /* Child has exited. */ -# define CLD_EXITED CLD_EXITED - CLD_KILLED, /* Child was killed. */ -# define CLD_KILLED CLD_KILLED - CLD_DUMPED, /* Child terminated abnormally. */ -# define CLD_DUMPED CLD_DUMPED - CLD_TRAPPED, /* Traced child has trapped. */ -# define CLD_TRAPPED CLD_TRAPPED - CLD_STOPPED, /* Child has stopped. */ -# define CLD_STOPPED CLD_STOPPED - CLD_CONTINUED /* Stopped child has continued. */ -# define CLD_CONTINUED CLD_CONTINUED -}; - -/* `si_code' values for SIGPOLL signal. */ -enum -{ - POLL_IN = 1, /* Data input available. */ -# define POLL_IN POLL_IN - POLL_OUT, /* Output buffers available. */ -# define POLL_OUT POLL_OUT - POLL_MSG, /* Input message available. */ -# define POLL_MSG POLL_MSG - POLL_ERR, /* I/O error. */ -# define POLL_ERR POLL_ERR - POLL_PRI, /* High priority input available. */ -# define POLL_PRI POLL_PRI - POLL_HUP /* Device disconnected. */ -# define POLL_HUP POLL_HUP -}; -# endif - -# undef __need_siginfo_t -#endif /* !have siginfo_t && (have _SIGNAL_H || need siginfo_t). */ - - -#if (defined _SIGNAL_H || defined __need_sigevent_t) \ - && !defined __have_sigevent_t -# define __have_sigevent_t 1 - -/* Structure to transport application-defined values with signals. */ -# define __SIGEV_MAX_SIZE 64 -# if __WORDSIZE == 64 -# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 4) -# else -# define __SIGEV_PAD_SIZE ((__SIGEV_MAX_SIZE / sizeof (int)) - 3) -# endif - -/* Forward declaration. */ -# ifndef __have_pthread_attr_t -typedef union pthread_attr_t pthread_attr_t; -# define __have_pthread_attr_t 1 -# endif - -typedef struct sigevent - { - sigval_t sigev_value; - int sigev_signo; - int sigev_notify; - - union - { - int _pad[__SIGEV_PAD_SIZE]; - - /* When SIGEV_SIGNAL and SIGEV_THREAD_ID set, LWP ID of the - thread to receive the signal. */ - __pid_t _tid; - - struct - { - void (*_function) (sigval_t); /* Function to start. */ - pthread_attr_t *_attribute; /* Thread attributes. */ - } _sigev_thread; - } _sigev_un; - } sigevent_t; - -/* POSIX names to access some of the members. */ -# define sigev_notify_function _sigev_un._sigev_thread._function -# define sigev_notify_attributes _sigev_un._sigev_thread._attribute - -/* `sigev_notify' values. */ -enum -{ - SIGEV_SIGNAL = 0, /* Notify via signal. */ -# define SIGEV_SIGNAL SIGEV_SIGNAL - SIGEV_NONE, /* Other notification: meaningless. */ -# define SIGEV_NONE SIGEV_NONE - SIGEV_THREAD, /* Deliver via thread creation. */ -# define SIGEV_THREAD SIGEV_THREAD - - SIGEV_THREAD_ID = 4 /* Send signal to specific thread. */ -#define SIGEV_THREAD_ID SIGEV_THREAD_ID -}; - -#endif /* have _SIGNAL_H. */ diff --git a/libktorrent/miniboost/bits/signum.h b/libktorrent/miniboost/bits/signum.h deleted file mode 100644 index 3305a478..00000000 --- a/libktorrent/miniboost/bits/signum.h +++ /dev/null @@ -1,79 +0,0 @@ -/* Signal number definitions. Linux version. - Copyright (C) 1995-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifdef _SIGNAL_H - -/* Fake signal functions. */ -#define SIG_ERR ((__sighandler_t) -1) /* Error return. */ -#define SIG_DFL ((__sighandler_t) 0) /* Default action. */ -#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */ - -#ifdef __USE_UNIX98 -# define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */ -#endif - - -/* Signals. */ -#define SIGHUP 1 /* Hangup (POSIX). */ -#define SIGINT 2 /* Interrupt (ANSI). */ -#define SIGQUIT 3 /* Quit (POSIX). */ -#define SIGILL 4 /* Illegal instruction (ANSI). */ -#define SIGTRAP 5 /* Trace trap (POSIX). */ -#define SIGABRT 6 /* Abort (ANSI). */ -#define SIGIOT 6 /* IOT trap (4.2 BSD). */ -#define SIGBUS 7 /* BUS error (4.2 BSD). */ -#define SIGFPE 8 /* Floating-point exception (ANSI). */ -#define SIGKILL 9 /* Kill, unblockable (POSIX). */ -#define SIGUSR1 10 /* User-defined signal 1 (POSIX). */ -#define SIGSEGV 11 /* Segmentation violation (ANSI). */ -#define SIGUSR2 12 /* User-defined signal 2 (POSIX). */ -#define SIGPIPE 13 /* Broken pipe (POSIX). */ -#define SIGALRM 14 /* Alarm clock (POSIX). */ -#define SIGTERM 15 /* Termination (ANSI). */ -#define SIGSTKFLT 16 /* Stack fault. */ -#define SIGCLD SIGCHLD /* Same as SIGCHLD (System V). */ -#define SIGCHLD 17 /* Child status has changed (POSIX). */ -#define SIGCONT 18 /* Continue (POSIX). */ -#define SIGSTOP 19 /* Stop, unblockable (POSIX). */ -#define SIGTSTP 20 /* Keyboard stop (POSIX). */ -#define SIGTTIN 21 /* Background read from tty (POSIX). */ -#define SIGTTOU 22 /* Background write to tty (POSIX). */ -#define SIGURG 23 /* Urgent condition on socket (4.2 BSD). */ -#define SIGXCPU 24 /* CPU limit exceeded (4.2 BSD). */ -#define SIGXFSZ 25 /* File size limit exceeded (4.2 BSD). */ -#define SIGVTALRM 26 /* Virtual alarm clock (4.2 BSD). */ -#define SIGPROF 27 /* Profiling alarm clock (4.2 BSD). */ -#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */ -#define SIGPOLL SIGIO /* Pollable event occurred (System V). */ -#define SIGIO 29 /* I/O now possible (4.2 BSD). */ -#define SIGPWR 30 /* Power failure restart (System V). */ -#define SIGSYS 31 /* Bad system call. */ -#define SIGUNUSED 31 - -#define _NSIG 65 /* Biggest signal number + 1 - (including real-time signals). */ - -#define SIGRTMIN (__libc_current_sigrtmin ()) -#define SIGRTMAX (__libc_current_sigrtmax ()) - -/* These are the hard limits of the kernel. These values should not be - used directly at user level. */ -#define __SIGRTMIN 32 -#define __SIGRTMAX (_NSIG - 1) - -#endif /* included. */ diff --git a/libktorrent/miniboost/bits/sigset.h b/libktorrent/miniboost/bits/sigset.h deleted file mode 100644 index af4ae837..00000000 --- a/libktorrent/miniboost/bits/sigset.h +++ /dev/null @@ -1,124 +0,0 @@ -/* __sig_atomic_t, __sigset_t, and related definitions. Linux version. - Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SIGSET_H_types -# define _SIGSET_H_types 1 - -typedef int __sig_atomic_t; - -/* A `sigset_t' has a bit for each signal. */ - -# define _SIGSET_NWORDS (1024 / (8 * sizeof (unsigned long int))) -typedef struct - { - unsigned long int __val[_SIGSET_NWORDS]; - } __sigset_t; - -#endif - - -/* We only want to define these functions if was actually - included; otherwise we were included just to define the types. Since we - are namespace-clean, it wouldn't hurt to define extra macros. But - trouble can be caused by functions being defined (e.g., any global - register vars declared later will cause compilation errors). */ - -#if !defined _SIGSET_H_fns && defined _SIGNAL_H -# define _SIGSET_H_fns 1 - -# ifndef _EXTERN_INLINE -# define _EXTERN_INLINE __extern_inline -# endif - -/* Return a mask that includes the bit for SIG only. */ -# define __sigmask(sig) \ - (((unsigned long int) 1) << (((sig) - 1) % (8 * sizeof (unsigned long int)))) - -/* Return the word index for SIG. */ -# define __sigword(sig) (((sig) - 1) / (8 * sizeof (unsigned long int))) - -# if defined __GNUC__ && __GNUC__ >= 2 -# define __sigemptyset(set) \ - (__extension__ ({ int __cnt = _SIGSET_NWORDS; \ - sigset_t *__set = (set); \ - while (--__cnt >= 0) __set->__val[__cnt] = 0; \ - 0; })) -# define __sigfillset(set) \ - (__extension__ ({ int __cnt = _SIGSET_NWORDS; \ - sigset_t *__set = (set); \ - while (--__cnt >= 0) __set->__val[__cnt] = ~0UL; \ - 0; })) - -# ifdef __USE_GNU -/* The POSIX does not specify for handling the whole signal set in one - command. This is often wanted and so we define three more functions - here. */ -# define __sigisemptyset(set) \ - (__extension__ ({ int __cnt = _SIGSET_NWORDS; \ - const sigset_t *__set = (set); \ - int __ret = __set->__val[--__cnt]; \ - while (!__ret && --__cnt >= 0) \ - __ret = __set->__val[__cnt]; \ - __ret == 0; })) -# define __sigandset(dest, left, right) \ - (__extension__ ({ int __cnt = _SIGSET_NWORDS; \ - sigset_t *__dest = (dest); \ - const sigset_t *__left = (left); \ - const sigset_t *__right = (right); \ - while (--__cnt >= 0) \ - __dest->__val[__cnt] = (__left->__val[__cnt] \ - & __right->__val[__cnt]); \ - 0; })) -# define __sigorset(dest, left, right) \ - (__extension__ ({ int __cnt = _SIGSET_NWORDS; \ - sigset_t *__dest = (dest); \ - const sigset_t *__left = (left); \ - const sigset_t *__right = (right); \ - while (--__cnt >= 0) \ - __dest->__val[__cnt] = (__left->__val[__cnt] \ - | __right->__val[__cnt]); \ - 0; })) -# endif -# endif - -/* These functions needn't check for a bogus signal number -- error - checking is done in the non __ versions. */ - -extern int __sigismember (const __sigset_t *, int); -extern int __sigaddset (__sigset_t *, int); -extern int __sigdelset (__sigset_t *, int); - -# ifdef __USE_EXTERN_INLINES -# define __SIGSETFN(NAME, BODY, CONST) \ - _EXTERN_INLINE int \ - NAME (CONST __sigset_t *__set, int __sig) \ - { \ - unsigned long int __mask = __sigmask (__sig); \ - unsigned long int __word = __sigword (__sig); \ - return BODY; \ - } - -__SIGSETFN (__sigismember, (__set->__val[__word] & __mask) ? 1 : 0, const) -__SIGSETFN (__sigaddset, ((__set->__val[__word] |= __mask), 0), ) -__SIGSETFN (__sigdelset, ((__set->__val[__word] &= ~__mask), 0), ) - -# undef __SIGSETFN -# endif - - -#endif /* ! _SIGSET_H_fns. */ diff --git a/libktorrent/miniboost/bits/sigstack.h b/libktorrent/miniboost/bits/sigstack.h deleted file mode 100644 index e143034c..00000000 --- a/libktorrent/miniboost/bits/sigstack.h +++ /dev/null @@ -1,54 +0,0 @@ -/* sigstack, sigaltstack definitions. - Copyright (C) 1998-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SIGNAL_H -# error "Never include this file directly. Use instead" -#endif - - -/* Structure describing a signal stack (obsolete). */ -struct sigstack - { - void *ss_sp; /* Signal stack pointer. */ - int ss_onstack; /* Nonzero if executing on this stack. */ - }; - - -/* Possible values for `ss_flags.'. */ -enum -{ - SS_ONSTACK = 1, -#define SS_ONSTACK SS_ONSTACK - SS_DISABLE -#define SS_DISABLE SS_DISABLE -}; - -/* Minimum stack size for a signal handler. */ -#define MINSIGSTKSZ 2048 - -/* System default stack size. */ -#define SIGSTKSZ 8192 - - -/* Alternate, preferred interface. */ -typedef struct sigaltstack - { - void *ss_sp; - int ss_flags; - size_t ss_size; - } stack_t; diff --git a/libktorrent/miniboost/bits/sigthread.h b/libktorrent/miniboost/bits/sigthread.h deleted file mode 100644 index 0048d7fd..00000000 --- a/libktorrent/miniboost/bits/sigthread.h +++ /dev/null @@ -1,43 +0,0 @@ -/* Signal handling function for threaded programs. - Copyright (C) 1998-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1 of the - License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; see the file COPYING.LIB. If - not, see . */ - -#ifndef _BITS_SIGTHREAD_H -#define _BITS_SIGTHREAD_H 1 - -#if !defined _SIGNAL_H && !defined _PTHREAD_H -# error "Never include this file directly. Use instead" -#endif - -/* Functions for handling signals. */ - -/* Modify the signal mask for the calling thread. The arguments have - the same meaning as for sigprocmask(2). */ -extern int pthread_sigmask (int __how, - const __sigset_t *__restrict __newmask, - __sigset_t *__restrict __oldmask)__THROW; - -/* Send signal SIGNO to the given thread. */ -extern int pthread_kill (pthread_t __threadid, int __signo) __THROW; - -#ifdef __USE_GNU -/* Queue signal and data to a thread. */ -extern int pthread_sigqueue (pthread_t __threadid, int __signo, - const union sigval __value) __THROW; -#endif - -#endif /* bits/sigthread.h */ diff --git a/libktorrent/miniboost/bits/stdio-ldbl.h b/libktorrent/miniboost/bits/stdio-ldbl.h deleted file mode 100644 index 4cc6c30a..00000000 --- a/libktorrent/miniboost/bits/stdio-ldbl.h +++ /dev/null @@ -1,101 +0,0 @@ -/* -mlong-double-64 compatibility mode for stdio functions. - Copyright (C) 2006-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDIO_H -# error "Never include directly; use instead." -#endif - -__BEGIN_NAMESPACE_STD -__LDBL_REDIR_DECL (fprintf) -__LDBL_REDIR_DECL (printf) -__LDBL_REDIR_DECL (sprintf) -__LDBL_REDIR_DECL (vfprintf) -__LDBL_REDIR_DECL (vprintf) -__LDBL_REDIR_DECL (vsprintf) -#if defined __USE_ISOC99 && !defined __USE_GNU \ - && !defined __REDIRECT \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -__LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf) -__LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf) -__LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf) -#else -__LDBL_REDIR_DECL (fscanf) -__LDBL_REDIR_DECL (scanf) -__LDBL_REDIR_DECL (sscanf) -#endif -__END_NAMESPACE_STD - -#if defined __USE_ISOC99 || defined __USE_UNIX98 -__BEGIN_NAMESPACE_C99 -__LDBL_REDIR_DECL (snprintf) -__LDBL_REDIR_DECL (vsnprintf) -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -# if !defined __USE_GNU && !defined __REDIRECT \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -__LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf) -__LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf) -__LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf) -# else -__LDBL_REDIR_DECL (vfscanf) -__LDBL_REDIR_DECL (vsscanf) -__LDBL_REDIR_DECL (vscanf) -# endif -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_XOPEN2K8 -__LDBL_REDIR_DECL (vdprintf) -__LDBL_REDIR_DECL (dprintf) -#endif - -#ifdef __USE_GNU -__LDBL_REDIR_DECL (vasprintf) -__LDBL_REDIR_DECL (__asprintf) -__LDBL_REDIR_DECL (asprintf) -__LDBL_REDIR_DECL (obstack_printf) -__LDBL_REDIR_DECL (obstack_vprintf) -#endif - -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -__LDBL_REDIR_DECL (__sprintf_chk) -__LDBL_REDIR_DECL (__vsprintf_chk) -# if defined __USE_ISOC99 || defined __USE_UNIX98 -__LDBL_REDIR_DECL (__snprintf_chk) -__LDBL_REDIR_DECL (__vsnprintf_chk) -# endif -# if __USE_FORTIFY_LEVEL > 1 -__LDBL_REDIR_DECL (__fprintf_chk) -__LDBL_REDIR_DECL (__printf_chk) -__LDBL_REDIR_DECL (__vfprintf_chk) -__LDBL_REDIR_DECL (__vprintf_chk) -# ifdef __USE_XOPEN2K8 -__LDBL_REDIR_DECL (__dprintf_chk) -__LDBL_REDIR_DECL (__vdprintf_chk) -# endif -# ifdef __USE_GNU -__LDBL_REDIR_DECL (__asprintf_chk) -__LDBL_REDIR_DECL (__vasprintf_chk) -__LDBL_REDIR_DECL (__obstack_printf_chk) -__LDBL_REDIR_DECL (__obstack_vprintf_chk) -# endif -# endif -#endif diff --git a/libktorrent/miniboost/bits/stdio-lock.h b/libktorrent/miniboost/bits/stdio-lock.h deleted file mode 100644 index e2678cc9..00000000 --- a/libktorrent/miniboost/bits/stdio-lock.h +++ /dev/null @@ -1,110 +0,0 @@ -/* Thread package specific definitions of stream lock type. NPTL version. - Copyright (C) 2000-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_STDIO_LOCK_H -#define _BITS_STDIO_LOCK_H 1 - -#include -#include - - -/* The locking here is very inexpensive, even for inlining. */ -#define _IO_lock_inexpensive 1 - -typedef struct { int lock; int cnt; void *owner; } _IO_lock_t; - -#define _IO_lock_initializer { LLL_LOCK_INITIALIZER, 0, NULL } - -#define _IO_lock_init(_name) \ - ((_name) = (_IO_lock_t) _IO_lock_initializer , 0) - -#define _IO_lock_fini(_name) \ - ((void) 0) - -#define _IO_lock_lock(_name) \ - do { \ - void *__self = THREAD_SELF; \ - if ((_name).owner != __self) \ - { \ - lll_lock ((_name).lock, LLL_PRIVATE); \ - (_name).owner = __self; \ - } \ - ++(_name).cnt; \ - } while (0) - -#define _IO_lock_trylock(_name) \ - ({ \ - int __result = 0; \ - void *__self = THREAD_SELF; \ - if ((_name).owner != __self) \ - { \ - if (lll_trylock ((_name).lock) == 0) \ - { \ - (_name).owner = __self; \ - (_name).cnt = 1; \ - } \ - else \ - __result = EBUSY; \ - } \ - else \ - ++(_name).cnt; \ - __result; \ - }) - -#define _IO_lock_unlock(_name) \ - do { \ - if (--(_name).cnt == 0) \ - { \ - (_name).owner = NULL; \ - lll_unlock ((_name).lock, LLL_PRIVATE); \ - } \ - } while (0) - - - -#define _IO_cleanup_region_start(_fct, _fp) \ - __libc_cleanup_region_start (((_fp)->_flags & _IO_USER_LOCK) == 0, _fct, _fp) -#define _IO_cleanup_region_start_noarg(_fct) \ - __libc_cleanup_region_start (1, _fct, NULL) -#define _IO_cleanup_region_end(_doit) \ - __libc_cleanup_region_end (_doit) - -#if defined _LIBC && !defined NOT_IN_libc - -# ifdef __EXCEPTIONS -# define _IO_acquire_lock(_fp) \ - do { \ - _IO_FILE *_IO_acquire_lock_file \ - __attribute__((cleanup (_IO_acquire_lock_fct))) \ - = (_fp); \ - _IO_flockfile (_IO_acquire_lock_file); -# define _IO_acquire_lock_clear_flags2(_fp) \ - do { \ - _IO_FILE *_IO_acquire_lock_file \ - __attribute__((cleanup (_IO_acquire_lock_clear_flags2_fct))) \ - = (_fp); \ - _IO_flockfile (_IO_acquire_lock_file); -# else -# define _IO_acquire_lock(_fp) _IO_acquire_lock_needs_exceptions_enabled -# define _IO_acquire_lock_clear_flags2(_fp) _IO_acquire_lock (_fp) -# endif -# define _IO_release_lock(_fp) ; } while (0) - -#endif - -#endif /* bits/stdio-lock.h */ diff --git a/libktorrent/miniboost/bits/stdio.h b/libktorrent/miniboost/bits/stdio.h deleted file mode 100644 index 615ada56..00000000 --- a/libktorrent/miniboost/bits/stdio.h +++ /dev/null @@ -1,190 +0,0 @@ -/* Optimizing macros and inline functions for stdio functions. - Copyright (C) 1998-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDIO_H -# error "Never include directly; use instead." -#endif - -#ifndef __extern_inline -# define __STDIO_INLINE inline -#else -# define __STDIO_INLINE __extern_inline -#endif - - -#ifdef __USE_EXTERN_INLINES -/* For -D_FORTIFY_SOURCE{,=2} bits/stdio2.h will define a different - inline. */ -# if !(__USE_FORTIFY_LEVEL > 0 && defined __fortify_function) -/* Write formatted output to stdout from argument list ARG. */ -__STDIO_INLINE int -vprintf (const char *__restrict __fmt, _G_va_list __arg) -{ - return vfprintf (stdout, __fmt, __arg); -} -# endif - -/* Read a character from stdin. */ -__STDIO_INLINE int -getchar (void) -{ - return _IO_getc (stdin); -} - - -# ifdef __USE_MISC -/* Faster version when locking is not necessary. */ -__STDIO_INLINE int -fgetc_unlocked (FILE *__fp) -{ - return _IO_getc_unlocked (__fp); -} -# endif /* misc */ - - -# ifdef __USE_POSIX -/* This is defined in POSIX.1:1996. */ -__STDIO_INLINE int -getc_unlocked (FILE *__fp) -{ - return _IO_getc_unlocked (__fp); -} - -/* This is defined in POSIX.1:1996. */ -__STDIO_INLINE int -getchar_unlocked (void) -{ - return _IO_getc_unlocked (stdin); -} -# endif /* POSIX */ - - -/* Write a character to stdout. */ -__STDIO_INLINE int -putchar (int __c) -{ - return _IO_putc (__c, stdout); -} - - -# ifdef __USE_MISC -/* Faster version when locking is not necessary. */ -__STDIO_INLINE int -fputc_unlocked (int __c, FILE *__stream) -{ - return _IO_putc_unlocked (__c, __stream); -} -# endif /* misc */ - - -# ifdef __USE_POSIX -/* This is defined in POSIX.1:1996. */ -__STDIO_INLINE int -putc_unlocked (int __c, FILE *__stream) -{ - return _IO_putc_unlocked (__c, __stream); -} - -/* This is defined in POSIX.1:1996. */ -__STDIO_INLINE int -putchar_unlocked (int __c) -{ - return _IO_putc_unlocked (__c, stdout); -} -# endif /* POSIX */ - - -# ifdef __USE_GNU -/* Like `getdelim', but reads up to a newline. */ -__STDIO_INLINE _IO_ssize_t -getline (char **__lineptr, size_t *__n, FILE *__stream) -{ - return __getdelim (__lineptr, __n, '\n', __stream); -} -# endif /* GNU */ - - -# ifdef __USE_MISC -/* Faster versions when locking is not required. */ -__STDIO_INLINE int -__NTH (feof_unlocked (FILE *__stream)) -{ - return _IO_feof_unlocked (__stream); -} - -/* Faster versions when locking is not required. */ -__STDIO_INLINE int -__NTH (ferror_unlocked (FILE *__stream)) -{ - return _IO_ferror_unlocked (__stream); -} -# endif /* misc */ - -#endif /* Use extern inlines. */ - - -#if defined __USE_MISC && defined __GNUC__ && defined __OPTIMIZE__ \ - && !defined __cplusplus -/* Perform some simple optimizations. */ -# define fread_unlocked(ptr, size, n, stream) \ - (__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \ - && (size_t) (size) * (size_t) (n) <= 8 \ - && (size_t) (size) != 0) \ - ? ({ char *__ptr = (char *) (ptr); \ - FILE *__stream = (stream); \ - size_t __cnt; \ - for (__cnt = (size_t) (size) * (size_t) (n); \ - __cnt > 0; --__cnt) \ - { \ - int __c = _IO_getc_unlocked (__stream); \ - if (__c == EOF) \ - break; \ - *__ptr++ = __c; \ - } \ - ((size_t) (size) * (size_t) (n) - __cnt) \ - / (size_t) (size); }) \ - : (((__builtin_constant_p (size) && (size_t) (size) == 0) \ - || (__builtin_constant_p (n) && (size_t) (n) == 0)) \ - /* Evaluate all parameters once. */ \ - ? ((void) (ptr), (void) (stream), (void) (size), \ - (void) (n), (size_t) 0) \ - : fread_unlocked (ptr, size, n, stream)))) - -# define fwrite_unlocked(ptr, size, n, stream) \ - (__extension__ ((__builtin_constant_p (size) && __builtin_constant_p (n) \ - && (size_t) (size) * (size_t) (n) <= 8 \ - && (size_t) (size) != 0) \ - ? ({ const char *__ptr = (const char *) (ptr); \ - FILE *__stream = (stream); \ - size_t __cnt; \ - for (__cnt = (size_t) (size) * (size_t) (n); \ - __cnt > 0; --__cnt) \ - if (_IO_putc_unlocked (*__ptr++, __stream) == EOF) \ - break; \ - ((size_t) (size) * (size_t) (n) - __cnt) \ - / (size_t) (size); }) \ - : (((__builtin_constant_p (size) && (size_t) (size) == 0) \ - || (__builtin_constant_p (n) && (size_t) (n) == 0)) \ - /* Evaluate all parameters once. */ \ - ? ((void) (ptr), (void) (stream), (void) (size), \ - (void) (n), (size_t) 0) \ - : fwrite_unlocked (ptr, size, n, stream)))) -#endif - -/* Define helper macro. */ -#undef __STDIO_INLINE diff --git a/libktorrent/miniboost/bits/stdio2.h b/libktorrent/miniboost/bits/stdio2.h deleted file mode 100644 index 7cb6e51b..00000000 --- a/libktorrent/miniboost/bits/stdio2.h +++ /dev/null @@ -1,382 +0,0 @@ -/* Checking macros for stdio functions. - Copyright (C) 2004-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDIO_H -# error "Never include directly; use instead." -#endif - -extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, ...) __THROW; -extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen, - const char *__restrict __format, - _G_va_list __ap) __THROW; - -#ifdef __va_arg_pack -__fortify_function int -__NTH (sprintf (char *__restrict __s, const char *__restrict __fmt, ...)) -{ - return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - __bos (__s), __fmt, __va_arg_pack ()); -} -#elif !defined __cplusplus -# define sprintf(str, ...) \ - __builtin___sprintf_chk (str, __USE_FORTIFY_LEVEL - 1, __bos (str), \ - __VA_ARGS__) -#endif - -__fortify_function int -__NTH (vsprintf (char *__restrict __s, const char *__restrict __fmt, - _G_va_list __ap)) -{ - return __builtin___vsprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, - __bos (__s), __fmt, __ap); -} - -#if defined __USE_ISOC99 || defined __USE_UNIX98 - -extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - ...) __THROW; -extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag, - size_t __slen, const char *__restrict __format, - _G_va_list __ap) __THROW; - -# ifdef __va_arg_pack -__fortify_function int -__NTH (snprintf (char *__restrict __s, size_t __n, - const char *__restrict __fmt, ...)) -{ - return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - __bos (__s), __fmt, __va_arg_pack ()); -} -# elif !defined __cplusplus -# define snprintf(str, len, ...) \ - __builtin___snprintf_chk (str, len, __USE_FORTIFY_LEVEL - 1, __bos (str), \ - __VA_ARGS__) -# endif - -__fortify_function int -__NTH (vsnprintf (char *__restrict __s, size_t __n, - const char *__restrict __fmt, _G_va_list __ap)) -{ - return __builtin___vsnprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - __bos (__s), __fmt, __ap); -} - -#endif - -#if __USE_FORTIFY_LEVEL > 1 - -extern int __fprintf_chk (FILE *__restrict __stream, int __flag, - const char *__restrict __format, ...); -extern int __printf_chk (int __flag, const char *__restrict __format, ...); -extern int __vfprintf_chk (FILE *__restrict __stream, int __flag, - const char *__restrict __format, _G_va_list __ap); -extern int __vprintf_chk (int __flag, const char *__restrict __format, - _G_va_list __ap); - -# ifdef __va_arg_pack -__fortify_function int -fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) -{ - return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} - -__fortify_function int -printf (const char *__restrict __fmt, ...) -{ - return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); -} -# elif !defined __cplusplus -# define printf(...) \ - __printf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# define fprintf(stream, ...) \ - __fprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# endif - -__fortify_function int -vprintf (const char *__restrict __fmt, _G_va_list __ap) -{ -#ifdef __USE_EXTERN_INLINES - return __vfprintf_chk (stdout, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); -#else - return __vprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __ap); -#endif -} - -__fortify_function int -vfprintf (FILE *__restrict __stream, - const char *__restrict __fmt, _G_va_list __ap) -{ - return __vfprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); -} - -# ifdef __USE_XOPEN2K8 -extern int __dprintf_chk (int __fd, int __flag, const char *__restrict __fmt, - ...) __attribute__ ((__format__ (__printf__, 3, 4))); -extern int __vdprintf_chk (int __fd, int __flag, - const char *__restrict __fmt, _G_va_list __arg) - __attribute__ ((__format__ (__printf__, 3, 0))); - -# ifdef __va_arg_pack -__fortify_function int -dprintf (int __fd, const char *__restrict __fmt, ...) -{ - return __dprintf_chk (__fd, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} -# elif !defined __cplusplus -# define dprintf(fd, ...) \ - __dprintf_chk (fd, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# endif - -__fortify_function int -vdprintf (int __fd, const char *__restrict __fmt, _G_va_list __ap) -{ - return __vdprintf_chk (__fd, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); -} -# endif - -# ifdef __USE_GNU - -extern int __asprintf_chk (char **__restrict __ptr, int __flag, - const char *__restrict __fmt, ...) - __THROW __attribute__ ((__format__ (__printf__, 3, 4))) __wur; -extern int __vasprintf_chk (char **__restrict __ptr, int __flag, - const char *__restrict __fmt, _G_va_list __arg) - __THROW __attribute__ ((__format__ (__printf__, 3, 0))) __wur; -extern int __obstack_printf_chk (struct obstack *__restrict __obstack, - int __flag, const char *__restrict __format, - ...) - __THROW __attribute__ ((__format__ (__printf__, 3, 4))); -extern int __obstack_vprintf_chk (struct obstack *__restrict __obstack, - int __flag, - const char *__restrict __format, - _G_va_list __args) - __THROW __attribute__ ((__format__ (__printf__, 3, 0))); - -# ifdef __va_arg_pack -__fortify_function int -__NTH (asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...)) -{ - return __asprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} - -__fortify_function int -__NTH (__asprintf (char **__restrict __ptr, const char *__restrict __fmt, - ...)) -{ - return __asprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} - -__fortify_function int -__NTH (obstack_printf (struct obstack *__restrict __obstack, - const char *__restrict __fmt, ...)) -{ - return __obstack_printf_chk (__obstack, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} -# elif !defined __cplusplus -# define asprintf(ptr, ...) \ - __asprintf_chk (ptr, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# define __asprintf(ptr, ...) \ - __asprintf_chk (ptr, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# define obstack_printf(obstack, ...) \ - __obstack_printf_chk (obstack, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# endif - -__fortify_function int -__NTH (vasprintf (char **__restrict __ptr, const char *__restrict __fmt, - _G_va_list __ap)) -{ - return __vasprintf_chk (__ptr, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); -} - -__fortify_function int -__NTH (obstack_vprintf (struct obstack *__restrict __obstack, - const char *__restrict __fmt, _G_va_list __ap)) -{ - return __obstack_vprintf_chk (__obstack, __USE_FORTIFY_LEVEL - 1, __fmt, - __ap); -} - -# endif - -#endif - -#if !defined __USE_ISOC11 \ - || (defined __cplusplus && __cplusplus <= 201103L && !defined __USE_GNU) -extern char *__gets_chk (char *__str, size_t) __wur; -extern char *__REDIRECT (__gets_warn, (char *__str), gets) - __wur __warnattr ("please use fgets or getline instead, gets can't " - "specify buffer size"); - -__fortify_function __wur char * -gets (char *__str) -{ - if (__bos (__str) != (size_t) -1) - return __gets_chk (__str, __bos (__str)); - return __gets_warn (__str); -} -#endif - -extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream) __wur; -extern char *__REDIRECT (__fgets_alias, - (char *__restrict __s, int __n, - FILE *__restrict __stream), fgets) __wur; -extern char *__REDIRECT (__fgets_chk_warn, - (char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream), __fgets_chk) - __wur __warnattr ("fgets called with bigger size than length " - "of destination buffer"); - -__fortify_function __wur char * -fgets (char *__restrict __s, int __n, FILE *__restrict __stream) -{ - if (__bos (__s) != (size_t) -1) - { - if (!__builtin_constant_p (__n) || __n <= 0) - return __fgets_chk (__s, __bos (__s), __n, __stream); - - if ((size_t) __n > __bos (__s)) - return __fgets_chk_warn (__s, __bos (__s), __n, __stream); - } - return __fgets_alias (__s, __n, __stream); -} - -extern size_t __fread_chk (void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __wur; -extern size_t __REDIRECT (__fread_alias, - (void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream), - fread) __wur; -extern size_t __REDIRECT (__fread_chk_warn, - (void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream), - __fread_chk) - __wur __warnattr ("fread called with bigger size * nmemb than length " - "of destination buffer"); - -__fortify_function __wur size_t -fread (void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) -{ - if (__bos0 (__ptr) != (size_t) -1) - { - if (!__builtin_constant_p (__size) - || !__builtin_constant_p (__n) - || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) - return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream); - - if (__size * __n > __bos0 (__ptr)) - return __fread_chk_warn (__ptr, __bos0 (__ptr), __size, __n, __stream); - } - return __fread_alias (__ptr, __size, __n, __stream); -} - -#ifdef __USE_GNU -extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size, - int __n, FILE *__restrict __stream) __wur; -extern char *__REDIRECT (__fgets_unlocked_alias, - (char *__restrict __s, int __n, - FILE *__restrict __stream), fgets_unlocked) __wur; -extern char *__REDIRECT (__fgets_unlocked_chk_warn, - (char *__restrict __s, size_t __size, int __n, - FILE *__restrict __stream), __fgets_unlocked_chk) - __wur __warnattr ("fgets_unlocked called with bigger size than length " - "of destination buffer"); - -__fortify_function __wur char * -fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) -{ - if (__bos (__s) != (size_t) -1) - { - if (!__builtin_constant_p (__n) || __n <= 0) - return __fgets_unlocked_chk (__s, __bos (__s), __n, __stream); - - if ((size_t) __n > __bos (__s)) - return __fgets_unlocked_chk_warn (__s, __bos (__s), __n, __stream); - } - return __fgets_unlocked_alias (__s, __n, __stream); -} -#endif - -#ifdef __USE_MISC -# undef fread_unlocked -extern size_t __fread_unlocked_chk (void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream) __wur; -extern size_t __REDIRECT (__fread_unlocked_alias, - (void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream), - fread_unlocked) __wur; -extern size_t __REDIRECT (__fread_unlocked_chk_warn, - (void *__restrict __ptr, size_t __ptrlen, - size_t __size, size_t __n, - FILE *__restrict __stream), - __fread_unlocked_chk) - __wur __warnattr ("fread_unlocked called with bigger size * nmemb than " - "length of destination buffer"); - -__fortify_function __wur size_t -fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, - FILE *__restrict __stream) -{ - if (__bos0 (__ptr) != (size_t) -1) - { - if (!__builtin_constant_p (__size) - || !__builtin_constant_p (__n) - || (__size | __n) >= (((size_t) 1) << (8 * sizeof (size_t) / 2))) - return __fread_unlocked_chk (__ptr, __bos0 (__ptr), __size, __n, - __stream); - - if (__size * __n > __bos0 (__ptr)) - return __fread_unlocked_chk_warn (__ptr, __bos0 (__ptr), __size, __n, - __stream); - } - -# ifdef __USE_EXTERN_INLINES - if (__builtin_constant_p (__size) - && __builtin_constant_p (__n) - && (__size | __n) < (((size_t) 1) << (8 * sizeof (size_t) / 2)) - && __size * __n <= 8) - { - size_t __cnt = __size * __n; - char *__cptr = (char *) __ptr; - if (__cnt == 0) - return 0; - - for (; __cnt > 0; --__cnt) - { - int __c = _IO_getc_unlocked (__stream); - if (__c == EOF) - break; - *__cptr++ = __c; - } - return (__cptr - (char *) __ptr) / __size; - } -# endif - return __fread_unlocked_alias (__ptr, __size, __n, __stream); -} -#endif diff --git a/libktorrent/miniboost/bits/stdio_lim.h b/libktorrent/miniboost/bits/stdio_lim.h deleted file mode 100644 index 58019f7c..00000000 --- a/libktorrent/miniboost/bits/stdio_lim.h +++ /dev/null @@ -1,42 +0,0 @@ -/* Copyright (C) 1994-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#if !defined _STDIO_H && !defined __need_FOPEN_MAX && !defined __need_IOV_MAX -# error "Never include directly; use instead." -#endif - -#ifdef _STDIO_H -# define L_tmpnam 20 -# define TMP_MAX 238328 -# define FILENAME_MAX 4096 - -# ifdef __USE_POSIX -# define L_ctermid 9 -# if !defined __USE_XOPEN2K || defined __USE_GNU -# define L_cuserid 9 -# endif -# endif -#endif - -#if defined __need_FOPEN_MAX || defined _STDIO_H -# undef FOPEN_MAX -# define FOPEN_MAX 16 -#endif - -#if defined __need_IOV_MAX && !defined IOV_MAX -# define IOV_MAX 1024 -#endif diff --git a/libktorrent/miniboost/bits/stdlib-bsearch.h b/libktorrent/miniboost/bits/stdlib-bsearch.h deleted file mode 100644 index 78b44464..00000000 --- a/libktorrent/miniboost/bits/stdlib-bsearch.h +++ /dev/null @@ -1,43 +0,0 @@ -/* Perform binary search - inline version. - Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -__extern_inline void * -bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) -{ - size_t __l, __u, __idx; - const void *__p; - int __comparison; - - __l = 0; - __u = __nmemb; - while (__l < __u) - { - __idx = (__l + __u) / 2; - __p = (void *) (((const char *) __base) + (__idx * __size)); - __comparison = (*__compar) (__key, __p); - if (__comparison < 0) - __u = __idx; - else if (__comparison > 0) - __l = __idx + 1; - else - return (void *) __p; - } - - return NULL; -} diff --git a/libktorrent/miniboost/bits/stdlib-float.h b/libktorrent/miniboost/bits/stdlib-float.h deleted file mode 100644 index fdee2d53..00000000 --- a/libktorrent/miniboost/bits/stdlib-float.h +++ /dev/null @@ -1,31 +0,0 @@ -/* Floating-point inline functions for stdlib.h. - Copyright (C) 2012-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDLIB_H -# error "Never use directly; include instead." -#endif - -#ifdef __USE_EXTERN_INLINES -__BEGIN_NAMESPACE_STD -__extern_inline double -__NTH (atof (const char *__nptr)) -{ - return strtod (__nptr, (char **) NULL); -} -__END_NAMESPACE_STD -#endif /* Optimizing and Inlining. */ diff --git a/libktorrent/miniboost/bits/stdlib-ldbl.h b/libktorrent/miniboost/bits/stdlib-ldbl.h deleted file mode 100644 index feadbdf3..00000000 --- a/libktorrent/miniboost/bits/stdlib-ldbl.h +++ /dev/null @@ -1,39 +0,0 @@ -/* -mlong-double-64 compatibility mode for functions. - Copyright (C) 2006-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDLIB_H -# error "Never include directly; use instead." -#endif - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -__LDBL_REDIR1_DECL (strtold, strtod) -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_GNU -__LDBL_REDIR1_DECL (strtold_l, strtod_l) -#endif - -#ifdef __USE_MISC -__LDBL_REDIR1_DECL (qecvt, ecvt) -__LDBL_REDIR1_DECL (qfcvt, fcvt) -__LDBL_REDIR1_DECL (qgcvt, gcvt) -__LDBL_REDIR1_DECL (qecvt_r, ecvt_r) -__LDBL_REDIR1_DECL (qfcvt_r, fcvt_r) -#endif diff --git a/libktorrent/miniboost/bits/stdlib.h b/libktorrent/miniboost/bits/stdlib.h deleted file mode 100644 index 7b5b57b5..00000000 --- a/libktorrent/miniboost/bits/stdlib.h +++ /dev/null @@ -1,155 +0,0 @@ -/* Checking macros for stdlib functions. - Copyright (C) 2005-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDLIB_H -# error "Never include directly; use instead." -#endif - -extern char *__realpath_chk (const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen) __THROW __wur; -extern char *__REDIRECT_NTH (__realpath_alias, - (const char *__restrict __name, - char *__restrict __resolved), realpath) __wur; -extern char *__REDIRECT_NTH (__realpath_chk_warn, - (const char *__restrict __name, - char *__restrict __resolved, - size_t __resolvedlen), __realpath_chk) __wur - __warnattr ("second argument of realpath must be either NULL or at " - "least PATH_MAX bytes long buffer"); - -__fortify_function __wur char * -__NTH (realpath (const char *__restrict __name, char *__restrict __resolved)) -{ - if (__bos (__resolved) != (size_t) -1) - { -#if defined _LIBC_LIMITS_H_ && defined PATH_MAX - if (__bos (__resolved) < PATH_MAX) - return __realpath_chk_warn (__name, __resolved, __bos (__resolved)); -#endif - return __realpath_chk (__name, __resolved, __bos (__resolved)); - } - - return __realpath_alias (__name, __resolved); -} - - -extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen, - size_t __nreal) __THROW __nonnull ((2)); -extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf, - size_t __buflen), ptsname_r) - __nonnull ((2)); -extern int __REDIRECT_NTH (__ptsname_r_chk_warn, - (int __fd, char *__buf, size_t __buflen, - size_t __nreal), __ptsname_r_chk) - __nonnull ((2)) __warnattr ("ptsname_r called with buflen bigger than " - "size of buf"); - -__fortify_function int -__NTH (ptsname_r (int __fd, char *__buf, size_t __buflen)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__buflen)) - return __ptsname_r_chk (__fd, __buf, __buflen, __bos (__buf)); - if (__buflen > __bos (__buf)) - return __ptsname_r_chk_warn (__fd, __buf, __buflen, __bos (__buf)); - } - return __ptsname_r_alias (__fd, __buf, __buflen); -} - - -extern int __wctomb_chk (char *__s, wchar_t __wchar, size_t __buflen) - __THROW __wur; -extern int __REDIRECT_NTH (__wctomb_alias, (char *__s, wchar_t __wchar), - wctomb) __wur; - -__fortify_function __wur int -__NTH (wctomb (char *__s, wchar_t __wchar)) -{ - /* We would have to include to get a definition of MB_LEN_MAX. - But this would only disturb the namespace. So we define our own - version here. */ -#define __STDLIB_MB_LEN_MAX 16 -#if defined MB_LEN_MAX && MB_LEN_MAX != __STDLIB_MB_LEN_MAX -# error "Assumed value of MB_LEN_MAX wrong" -#endif - if (__bos (__s) != (size_t) -1 && __STDLIB_MB_LEN_MAX > __bos (__s)) - return __wctomb_chk (__s, __wchar, __bos (__s)); - return __wctomb_alias (__s, __wchar); -} - - -extern size_t __mbstowcs_chk (wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len, size_t __dstlen) __THROW; -extern size_t __REDIRECT_NTH (__mbstowcs_alias, - (wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len), mbstowcs); -extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn, - (wchar_t *__restrict __dst, - const char *__restrict __src, - size_t __len, size_t __dstlen), __mbstowcs_chk) - __warnattr ("mbstowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"); - -__fortify_function size_t -__NTH (mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src, - size_t __len)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __mbstowcs_chk (__dst, __src, __len, - __bos (__dst) / sizeof (wchar_t)); - - if (__len > __bos (__dst) / sizeof (wchar_t)) - return __mbstowcs_chk_warn (__dst, __src, __len, - __bos (__dst) / sizeof (wchar_t)); - } - return __mbstowcs_alias (__dst, __src, __len); -} - - -extern size_t __wcstombs_chk (char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len, size_t __dstlen) __THROW; -extern size_t __REDIRECT_NTH (__wcstombs_alias, - (char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len), wcstombs); -extern size_t __REDIRECT_NTH (__wcstombs_chk_warn, - (char *__restrict __dst, - const wchar_t *__restrict __src, - size_t __len, size_t __dstlen), __wcstombs_chk) - __warnattr ("wcstombs called with dst buffer smaller than len"); - -__fortify_function size_t -__NTH (wcstombs (char *__restrict __dst, const wchar_t *__restrict __src, - size_t __len)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __wcstombs_chk (__dst, __src, __len, __bos (__dst)); - if (__len > __bos (__dst)) - return __wcstombs_chk_warn (__dst, __src, __len, __bos (__dst)); - } - return __wcstombs_alias (__dst, __src, __len); -} diff --git a/libktorrent/miniboost/bits/string.h b/libktorrent/miniboost/bits/string.h deleted file mode 100644 index 423ad388..00000000 --- a/libktorrent/miniboost/bits/string.h +++ /dev/null @@ -1,1985 +0,0 @@ -/* Optimized, inlined string functions. i486/x86-64 version. - Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STRING_H -# error "Never use directly; include instead." -#endif - -/* The ix86 processors can access unaligned multi-byte variables. */ -#define _STRING_ARCH_unaligned 1 - -/* Enable inline functions only for i486 or better when compiling for - ia32. */ -#if !defined __x86_64__ && (defined __i486__ || defined __pentium__ \ - || defined __pentiumpro__ || defined __pentium4__ \ - || defined __nocona__ || defined __atom__ \ - || defined __core2__ || defined __corei7__ \ - || defined __k6__ || defined __geode__ \ - || defined __k8__ || defined __athlon__ \ - || defined __amdfam10__) - -/* We only provide optimizations if the user selects them and if - GNU CC is used. */ -# if !defined __NO_STRING_INLINES && defined __USE_STRING_INLINES \ - && defined __GNUC__ && __GNUC__ >= 2 - -# ifndef __STRING_INLINE -# ifndef __extern_inline -# define __STRING_INLINE inline -# else -# define __STRING_INLINE __extern_inline -# endif -# endif - -/* The macros are used in some of the optimized implementations below. */ -# define __STRING_SMALL_GET16(src, idx) \ - ((((const unsigned char *) (src))[idx + 1] << 8) \ - | ((const unsigned char *) (src))[idx]) -# define __STRING_SMALL_GET32(src, idx) \ - (((((const unsigned char *) (src))[idx + 3] << 8 \ - | ((const unsigned char *) (src))[idx + 2]) << 8 \ - | ((const unsigned char *) (src))[idx + 1]) << 8 \ - | ((const unsigned char *) (src))[idx]) - - -/* Copy N bytes of SRC to DEST. */ -# define _HAVE_STRING_ARCH_memcpy 1 -# define memcpy(dest, src, n) \ - (__extension__ (__builtin_constant_p (n) \ - ? __memcpy_c ((dest), (src), (n)) \ - : __memcpy_g ((dest), (src), (n)))) -# define __memcpy_c(dest, src, n) \ - ((n) == 0 \ - ? (dest) \ - : (((n) % 4 == 0) \ - ? __memcpy_by4 (dest, src, n) \ - : (((n) % 2 == 0) \ - ? __memcpy_by2 (dest, src, n) \ - : __memcpy_g (dest, src, n)))) - -__STRING_INLINE void *__memcpy_by4 (void *__dest, const void *__src, - size_t __n); - -__STRING_INLINE void * -__memcpy_by4 (void *__dest, const void *__src, size_t __n) -{ - register unsigned long int __d0, __d1; - register void *__tmp = __dest; - __asm__ __volatile__ - ("1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b" - : "=&r" (__d0), "=&r" (__tmp), "=&r" (__src), "=&r" (__d1) - : "1" (__tmp), "2" (__src), "3" (__n / 4) - : "memory", "cc"); - return __dest; -} - -__STRING_INLINE void *__memcpy_by2 (void *__dest, const void *__src, - size_t __n); - -__STRING_INLINE void * -__memcpy_by2 (void *__dest, const void *__src, size_t __n) -{ - register unsigned long int __d0, __d1; - register void *__tmp = __dest; - __asm__ __volatile__ - ("shrl $1,%3\n\t" - "jz 2f\n" /* only a word */ - "1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b\n" - "2:\n\t" - "movw (%2),%w0\n\t" - "movw %w0,(%1)" - : "=&q" (__d0), "=&r" (__tmp), "=&r" (__src), "=&r" (__d1) - : "1" (__tmp), "2" (__src), "3" (__n / 2) - : "memory", "cc"); - return __dest; -} - -__STRING_INLINE void *__memcpy_g (void *__dest, const void *__src, size_t __n); - -__STRING_INLINE void * -__memcpy_g (void *__dest, const void *__src, size_t __n) -{ - register unsigned long int __d0, __d1, __d2; - register void *__tmp = __dest; - __asm__ __volatile__ - ("cld\n\t" - "shrl $1,%%ecx\n\t" - "jnc 1f\n\t" - "movsb\n" - "1:\n\t" - "shrl $1,%%ecx\n\t" - "jnc 2f\n\t" - "movsw\n" - "2:\n\t" - "rep; movsl" - : "=&c" (__d0), "=&D" (__d1), "=&S" (__d2), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__dest) - : "0" (__n), "1" (__tmp), "2" (__src), - "m" ( *(struct { __extension__ char __x[__n]; } *)__src) - : "cc"); - return __dest; -} - -# define _HAVE_STRING_ARCH_memmove 1 -# ifndef _FORCE_INLINES -/* Copy N bytes of SRC to DEST, guaranteeing - correct behavior for overlapping strings. */ -# define memmove(dest, src, n) __memmove_g (dest, src, n) - -__STRING_INLINE void *__memmove_g (void *, const void *, size_t) - __asm__ ("memmove"); - -__STRING_INLINE void * -__memmove_g (void *__dest, const void *__src, size_t __n) -{ - register unsigned long int __d0, __d1, __d2; - register void *__tmp = __dest; - if (__dest < __src) - __asm__ __volatile__ - ("cld\n\t" - "rep; movsb" - : "=&c" (__d0), "=&S" (__d1), "=&D" (__d2), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__dest) - : "0" (__n), "1" (__src), "2" (__tmp), - "m" ( *(struct { __extension__ char __x[__n]; } *)__src)); - else - __asm__ __volatile__ - ("std\n\t" - "rep; movsb\n\t" - "cld" - : "=&c" (__d0), "=&S" (__d1), "=&D" (__d2), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__dest) - : "0" (__n), "1" (__n - 1 + (const char *) __src), - "2" (__n - 1 + (char *) __tmp), - "m" ( *(struct { __extension__ char __x[__n]; } *)__src)); - return __dest; -} -# endif - -/* Compare N bytes of S1 and S2. */ -# define _HAVE_STRING_ARCH_memcmp 1 -# ifndef _FORCE_INLINES -# ifndef __PIC__ -/* gcc has problems to spill registers when using PIC. */ -__STRING_INLINE int -memcmp (const void *__s1, const void *__s2, size_t __n) -{ - register unsigned long int __d0, __d1, __d2; - register int __res; - __asm__ __volatile__ - ("cld\n\t" - "testl %3,%3\n\t" - "repe; cmpsb\n\t" - "je 1f\n\t" - "sbbl %0,%0\n\t" - "orl $1,%0\n" - "1:" - : "=&a" (__res), "=&S" (__d0), "=&D" (__d1), "=&c" (__d2) - : "0" (0), "1" (__s1), "2" (__s2), "3" (__n), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s1), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s2) - : "cc"); - return __res; -} -# endif -# endif - -/* Set N bytes of S to C. */ -# define _HAVE_STRING_ARCH_memset 1 -# define _USE_STRING_ARCH_memset 1 -# define memset(s, c, n) \ - (__extension__ (__builtin_constant_p (n) && (n) <= 16 \ - ? ((n) == 1 \ - ? __memset_c1 ((s), (c)) \ - : __memset_gc ((s), (c), (n))) \ - : (__builtin_constant_p (c) \ - ? (__builtin_constant_p (n) \ - ? __memset_ccn ((s), (c), (n)) \ - : memset ((s), (c), (n))) \ - : (__builtin_constant_p (n) \ - ? __memset_gcn ((s), (c), (n)) \ - : memset ((s), (c), (n)))))) - -# define __memset_c1(s, c) ({ void *__s = (s); \ - *((unsigned char *) __s) = (unsigned char) (c); \ - __s; }) - -# define __memset_gc(s, c, n) \ - ({ void *__s = (s); \ - union { \ - unsigned int __ui; \ - unsigned short int __usi; \ - unsigned char __uc; \ - } *__u = __s; \ - unsigned int __c = ((unsigned int) ((unsigned char) (c))) * 0x01010101; \ - \ - /* We apply a trick here. `gcc' would implement the following \ - assignments using immediate operands. But this uses to much \ - memory (7, instead of 4 bytes). So we force the value in a \ - registers. */ \ - if ((n) == 3 || (n) >= 5) \ - __asm__ __volatile__ ("" : "=r" (__c) : "0" (__c)); \ - \ - /* This `switch' statement will be removed at compile-time. */ \ - switch (n) \ - { \ - case 15: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 11: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 7: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 3: \ - __u->__usi = (unsigned short int) __c; \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = (unsigned char) __c; \ - break; \ - \ - case 14: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 10: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 6: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 2: \ - __u->__usi = (unsigned short int) __c; \ - break; \ - \ - case 13: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 9: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 5: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 1: \ - __u->__uc = (unsigned char) __c; \ - break; \ - \ - case 16: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 12: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 8: \ - __u->__ui = __c; \ - __u = __extension__ ((void *) __u + 4); \ - case 4: \ - __u->__ui = __c; \ - case 0: \ - break; \ - } \ - \ - __s; }) - -# define __memset_ccn(s, c, n) \ - (((n) % 4 == 0) \ - ? __memset_ccn_by4 (s, ((unsigned int) ((unsigned char) (c))) * 0x01010101,\ - n) \ - : (((n) % 2 == 0) \ - ? __memset_ccn_by2 (s, \ - ((unsigned int) ((unsigned char) (c))) * 0x01010101,\ - n) \ - : memset (s, c, n))) - -__STRING_INLINE void *__memset_ccn_by4 (void *__s, unsigned int __c, - size_t __n); - -__STRING_INLINE void * -__memset_ccn_by4 (void *__s, unsigned int __c, size_t __n) -{ - register void *__tmp = __s; - register unsigned long int __d0; -# ifdef __i686__ - __asm__ __volatile__ - ("cld\n\t" - "rep; stosl" - : "=&a" (__c), "=&D" (__tmp), "=&c" (__d0), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); -# else - __asm__ __volatile__ - ("1:\n\t" - "movl %0,(%1)\n\t" - "addl $4,%1\n\t" - "decl %2\n\t" - "jnz 1b\n" - : "=&r" (__c), "=&r" (__tmp), "=&r" (__d0), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); -# endif - return __s; -} - -__STRING_INLINE void *__memset_ccn_by2 (void *__s, unsigned int __c, - size_t __n); - -__STRING_INLINE void * -__memset_ccn_by2 (void *__s, unsigned int __c, size_t __n) -{ - register unsigned long int __d0, __d1; - register void *__tmp = __s; -# ifdef __i686__ - __asm__ __volatile__ - ("cld\n\t" - "rep; stosl\n" - "stosw" - : "=&a" (__d0), "=&D" (__tmp), "=&c" (__d1), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); -# else - __asm__ __volatile__ - ("1:\tmovl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %2\n\t" - "jnz 1b\n" - "movw %w0,(%1)" - : "=&q" (__d0), "=&r" (__tmp), "=&r" (__d1), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); -#endif - return __s; -} - -# define __memset_gcn(s, c, n) \ - (((n) % 4 == 0) \ - ? __memset_gcn_by4 (s, c, n) \ - : (((n) % 2 == 0) \ - ? __memset_gcn_by2 (s, c, n) \ - : memset (s, c, n))) - -__STRING_INLINE void *__memset_gcn_by4 (void *__s, int __c, size_t __n); - -__STRING_INLINE void * -__memset_gcn_by4 (void *__s, int __c, size_t __n) -{ - register void *__tmp = __s; - register unsigned long int __d0; - __asm__ __volatile__ - ("movb %b0,%h0\n" - "pushw %w0\n\t" - "shll $16,%0\n\t" - "popw %w0\n" - "1:\n\t" - "movl %0,(%1)\n\t" - "addl $4,%1\n\t" - "decl %2\n\t" - "jnz 1b\n" - : "=&q" (__c), "=&r" (__tmp), "=&r" (__d0), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); - return __s; -} - -__STRING_INLINE void *__memset_gcn_by2 (void *__s, int __c, size_t __n); - -__STRING_INLINE void * -__memset_gcn_by2 (void *__s, int __c, size_t __n) -{ - register unsigned long int __d0, __d1; - register void *__tmp = __s; - __asm__ __volatile__ - ("movb %b0,%h0\n\t" - "pushw %w0\n\t" - "shll $16,%0\n\t" - "popw %w0\n" - "1:\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %2\n\t" - "jnz 1b\n" - "movw %w0,(%1)" - : "=&q" (__d0), "=&r" (__tmp), "=&r" (__d1), - "=m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "0" ((unsigned int) __c), "1" (__tmp), "2" (__n / 4) - : "cc"); - return __s; -} - - -/* Search N bytes of S for C. */ -# define _HAVE_STRING_ARCH_memchr 1 -# ifndef _FORCE_INLINES -__STRING_INLINE void * -memchr (const void *__s, int __c, size_t __n) -{ - register unsigned long int __d0; -# ifdef __i686__ - register unsigned long int __d1; -# endif - register unsigned char *__res; - if (__n == 0) - return NULL; -# ifdef __i686__ - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "cmovne %2,%0" - : "=D" (__res), "=&c" (__d0), "=&r" (__d1) - : "a" (__c), "0" (__s), "1" (__n), "2" (1), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "cc"); -# else - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "je 1f\n\t" - "movl $1,%0\n" - "1:" - : "=D" (__res), "=&c" (__d0) - : "a" (__c), "0" (__s), "1" (__n), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "cc"); -# endif - return __res - 1; -} -# endif - -# define _HAVE_STRING_ARCH_memrchr 1 -# ifndef _FORCE_INLINES -__STRING_INLINE void *__memrchr (const void *__s, int __c, size_t __n); - -__STRING_INLINE void * -__memrchr (const void *__s, int __c, size_t __n) -{ - register unsigned long int __d0; -# ifdef __i686__ - register unsigned long int __d1; -# endif - register void *__res; - if (__n == 0) - return NULL; -# ifdef __i686__ - __asm__ __volatile__ - ("std\n\t" - "repne; scasb\n\t" - "cmovne %2,%0\n\t" - "cld\n\t" - "incl %0" - : "=D" (__res), "=&c" (__d0), "=&r" (__d1) - : "a" (__c), "0" (__s + __n - 1), "1" (__n), "2" (-1), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "cc"); -# else - __asm__ __volatile__ - ("std\n\t" - "repne; scasb\n\t" - "je 1f\n\t" - "orl $-1,%0\n" - "1:\tcld\n\t" - "incl %0" - : "=D" (__res), "=&c" (__d0) - : "a" (__c), "0" (__s + __n - 1), "1" (__n), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s) - : "cc"); -# endif - return __res; -} -# ifdef __USE_GNU -# define memrchr(s, c, n) __memrchr ((s), (c), (n)) -# endif -# endif - -/* Return pointer to C in S. */ -# define _HAVE_STRING_ARCH_rawmemchr 1 -__STRING_INLINE void *__rawmemchr (const void *__s, int __c); - -# ifndef _FORCE_INLINES -__STRING_INLINE void * -__rawmemchr (const void *__s, int __c) -{ - register unsigned long int __d0; - register unsigned char *__res; - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - : "=D" (__res), "=&c" (__d0) - : "a" (__c), "0" (__s), "1" (0xffffffff), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res - 1; -} -# ifdef __USE_GNU -__STRING_INLINE void * -rawmemchr (const void *__s, int __c) -{ - return __rawmemchr (__s, __c); -} -# endif /* use GNU */ -# endif - - -/* Return the length of S. */ -# define _HAVE_STRING_ARCH_strlen 1 -# define strlen(str) \ - (__extension__ (__builtin_constant_p (str) \ - ? __builtin_strlen (str) \ - : __strlen_g (str))) -__STRING_INLINE size_t __strlen_g (const char *__str); - -__STRING_INLINE size_t -__strlen_g (const char *__str) -{ - register char __dummy; - register const char *__tmp = __str; - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%b1\n\t" - "leal 1(%0),%0\n\t" - "testb %b1,%b1\n\t" - "jne 1b" - : "=r" (__tmp), "=&q" (__dummy) - : "0" (__str), - "m" ( *(struct { char __x[0xfffffff]; } *)__str) - : "cc" ); - return __tmp - __str - 1; -} - - -/* Copy SRC to DEST. */ -# define _HAVE_STRING_ARCH_strcpy 1 -# define strcpy(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? (sizeof ((src)[0]) == 1 && strlen (src) + 1 <= 8 \ - ? __strcpy_a_small ((dest), (src), strlen (src) + 1) \ - : (char *) memcpy ((char *) (dest), \ - (const char *) (src), \ - strlen (src) + 1)) \ - : __strcpy_g ((dest), (src)))) - -# define __strcpy_a_small(dest, src, srclen) \ - (__extension__ ({ char *__dest = (dest); \ - union { \ - unsigned int __ui; \ - unsigned short int __usi; \ - unsigned char __uc; \ - char __c; \ - } *__u = (void *) __dest; \ - switch (srclen) \ - { \ - case 1: \ - __u->__uc = '\0'; \ - break; \ - case 2: \ - __u->__usi = __STRING_SMALL_GET16 (src, 0); \ - break; \ - case 3: \ - __u->__usi = __STRING_SMALL_GET16 (src, 0); \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = '\0'; \ - break; \ - case 4: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - break; \ - case 5: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__uc = '\0'; \ - break; \ - case 6: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__usi = __STRING_SMALL_GET16 (src, 4); \ - break; \ - case 7: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__usi = __STRING_SMALL_GET16 (src, 4); \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = '\0'; \ - break; \ - case 8: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__ui = __STRING_SMALL_GET32 (src, 4); \ - break; \ - } \ - (char *) __dest; })) - -__STRING_INLINE char *__strcpy_g (char *__dest, const char *__src); - -__STRING_INLINE char * -__strcpy_g (char *__dest, const char *__src) -{ - register char *__tmp = __dest; - register char __dummy; - __asm__ __volatile__ - ( - "1:\n\t" - "movb (%0),%b2\n\t" - "leal 1(%0),%0\n\t" - "movb %b2,(%1)\n\t" - "leal 1(%1),%1\n\t" - "testb %b2,%b2\n\t" - "jne 1b" - : "=&r" (__src), "=&r" (__tmp), "=&q" (__dummy), - "=m" ( *(struct { char __x[0xfffffff]; } *)__dest) - : "0" (__src), "1" (__tmp), - "m" ( *(struct { char __x[0xfffffff]; } *)__src) - : "cc"); - return __dest; -} - - -# ifdef __USE_GNU -# define _HAVE_STRING_ARCH_stpcpy 1 -/* Copy SRC to DEST. */ -# define __stpcpy(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? (strlen (src) + 1 <= 8 \ - ? __stpcpy_a_small ((dest), (src), strlen (src) + 1) \ - : __stpcpy_c ((dest), (src), strlen (src) + 1)) \ - : __stpcpy_g ((dest), (src)))) -# define __stpcpy_c(dest, src, srclen) \ - ((srclen) % 4 == 0 \ - ? __mempcpy_by4 (dest, src, srclen) - 1 \ - : ((srclen) % 2 == 0 \ - ? __mempcpy_by2 (dest, src, srclen) - 1 \ - : __mempcpy_byn (dest, src, srclen) - 1)) - -/* In glibc itself we use this symbol for namespace reasons. */ -# define stpcpy(dest, src) __stpcpy ((dest), (src)) - -# define __stpcpy_a_small(dest, src, srclen) \ - (__extension__ ({ union { \ - unsigned int __ui; \ - unsigned short int __usi; \ - unsigned char __uc; \ - char __c; \ - } *__u = (void *) (dest); \ - switch (srclen) \ - { \ - case 1: \ - __u->__uc = '\0'; \ - break; \ - case 2: \ - __u->__usi = __STRING_SMALL_GET16 (src, 0); \ - __u = __extension__ ((void *) __u + 1); \ - break; \ - case 3: \ - __u->__usi = __STRING_SMALL_GET16 (src, 0); \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = '\0'; \ - break; \ - case 4: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 3); \ - break; \ - case 5: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__uc = '\0'; \ - break; \ - case 6: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__usi = __STRING_SMALL_GET16 (src, 4); \ - __u = __extension__ ((void *) __u + 1); \ - break; \ - case 7: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__usi = __STRING_SMALL_GET16 (src, 4); \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = '\0'; \ - break; \ - case 8: \ - __u->__ui = __STRING_SMALL_GET32 (src, 0); \ - __u = __extension__ ((void *) __u + 4); \ - __u->__ui = __STRING_SMALL_GET32 (src, 4); \ - __u = __extension__ ((void *) __u + 3); \ - break; \ - } \ - (char *) __u; })) - -__STRING_INLINE char *__mempcpy_by4 (char *__dest, const char *__src, - size_t __srclen); - -__STRING_INLINE char * -__mempcpy_by4 (char *__dest, const char *__src, size_t __srclen) -{ - register char *__tmp = __dest; - register unsigned long int __d0, __d1; - __asm__ __volatile__ - ("1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b" - : "=&r" (__d0), "=r" (__tmp), "=&r" (__src), "=&r" (__d1) - : "1" (__tmp), "2" (__src), "3" (__srclen / 4) - : "memory", "cc"); - return __tmp; -} - -__STRING_INLINE char *__mempcpy_by2 (char *__dest, const char *__src, - size_t __srclen); - -__STRING_INLINE char * -__mempcpy_by2 (char *__dest, const char *__src, size_t __srclen) -{ - register char *__tmp = __dest; - register unsigned long int __d0, __d1; - __asm__ __volatile__ - ("shrl $1,%3\n\t" - "jz 2f\n" /* only a word */ - "1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b\n" - "2:\n\t" - "movw (%2),%w0\n\t" - "movw %w0,(%1)" - : "=&q" (__d0), "=r" (__tmp), "=&r" (__src), "=&r" (__d1), - "=m" ( *(struct { __extension__ char __x[__srclen]; } *)__dest) - : "1" (__tmp), "2" (__src), "3" (__srclen / 2), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - return __tmp + 2; -} - -__STRING_INLINE char *__mempcpy_byn (char *__dest, const char *__src, - size_t __srclen); - -__STRING_INLINE char * -__mempcpy_byn (char *__dest, const char *__src, size_t __srclen) -{ - register unsigned long __d0, __d1; - register char *__tmp = __dest; - __asm__ __volatile__ - ("cld\n\t" - "shrl $1,%%ecx\n\t" - "jnc 1f\n\t" - "movsb\n" - "1:\n\t" - "shrl $1,%%ecx\n\t" - "jnc 2f\n\t" - "movsw\n" - "2:\n\t" - "rep; movsl" - : "=D" (__tmp), "=&c" (__d0), "=&S" (__d1), - "=m" ( *(struct { __extension__ char __x[__srclen]; } *)__dest) - : "0" (__tmp), "1" (__srclen), "2" (__src), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - return __tmp; -} - -__STRING_INLINE char *__stpcpy_g (char *__dest, const char *__src); - -__STRING_INLINE char * -__stpcpy_g (char *__dest, const char *__src) -{ - register char *__tmp = __dest; - register char __dummy; - __asm__ __volatile__ - ( - "1:\n\t" - "movb (%0),%b2\n\t" - "leal 1(%0),%0\n\t" - "movb %b2,(%1)\n\t" - "leal 1(%1),%1\n\t" - "testb %b2,%b2\n\t" - "jne 1b" - : "=&r" (__src), "=r" (__tmp), "=&q" (__dummy), - "=m" ( *(struct { char __x[0xfffffff]; } *)__dest) - : "0" (__src), "1" (__tmp), - "m" ( *(struct { char __x[0xfffffff]; } *)__src) - : "cc"); - return __tmp - 1; -} -# endif - - -/* Copy no more than N characters of SRC to DEST. */ -# define _HAVE_STRING_ARCH_strncpy 1 -# define strncpy(dest, src, n) \ - (__extension__ (__builtin_constant_p (src) \ - ? ((strlen (src) + 1 >= ((size_t) (n)) \ - ? (char *) memcpy ((char *) (dest), \ - (const char *) (src), n) \ - : __strncpy_cg ((dest), (src), strlen (src) + 1, n))) \ - : __strncpy_gg ((dest), (src), n))) -# define __strncpy_cg(dest, src, srclen, n) \ - (((srclen) % 4 == 0) \ - ? __strncpy_by4 (dest, src, srclen, n) \ - : (((srclen) % 2 == 0) \ - ? __strncpy_by2 (dest, src, srclen, n) \ - : __strncpy_byn (dest, src, srclen, n))) - -__STRING_INLINE char *__strncpy_by4 (char *__dest, const char __src[], - size_t __srclen, size_t __n); - -__STRING_INLINE char * -__strncpy_by4 (char *__dest, const char __src[], size_t __srclen, size_t __n) -{ - register char *__tmp = __dest; - register int __dummy1, __dummy2; - __asm__ __volatile__ - ("1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b" - : "=&r" (__dummy1), "=r" (__tmp), "=&r" (__src), "=&r" (__dummy2), - "=m" ( *(struct { __extension__ char __x[__srclen]; } *)__dest) - : "1" (__tmp), "2" (__src), "3" (__srclen / 4), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - (void) memset (__tmp, '\0', __n - __srclen); - return __dest; -} - -__STRING_INLINE char *__strncpy_by2 (char *__dest, const char __src[], - size_t __srclen, size_t __n); - -__STRING_INLINE char * -__strncpy_by2 (char *__dest, const char __src[], size_t __srclen, size_t __n) -{ - register char *__tmp = __dest; - register int __dummy1, __dummy2; - __asm__ __volatile__ - ("shrl $1,%3\n\t" - "jz 2f\n" /* only a word */ - "1:\n\t" - "movl (%2),%0\n\t" - "leal 4(%2),%2\n\t" - "movl %0,(%1)\n\t" - "leal 4(%1),%1\n\t" - "decl %3\n\t" - "jnz 1b\n" - "2:\n\t" - "movw (%2),%w0\n\t" - "movw %w0,(%1)\n\t" - : "=&q" (__dummy1), "=r" (__tmp), "=&r" (__src), "=&r" (__dummy2), - "=m" ( *(struct { __extension__ char __x[__srclen]; } *)__dest) - : "1" (__tmp), "2" (__src), "3" (__srclen / 2), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - (void) memset (__tmp + 2, '\0', __n - __srclen); - return __dest; -} - -__STRING_INLINE char *__strncpy_byn (char *__dest, const char __src[], - size_t __srclen, size_t __n); - -__STRING_INLINE char * -__strncpy_byn (char *__dest, const char __src[], size_t __srclen, size_t __n) -{ - register unsigned long int __d0, __d1; - register char *__tmp = __dest; - __asm__ __volatile__ - ("cld\n\t" - "shrl $1,%1\n\t" - "jnc 1f\n\t" - "movsb\n" - "1:\n\t" - "shrl $1,%1\n\t" - "jnc 2f\n\t" - "movsw\n" - "2:\n\t" - "rep; movsl" - : "=D" (__tmp), "=&c" (__d0), "=&S" (__d1), - "=m" ( *(struct { __extension__ char __x[__srclen]; } *)__dest) - : "1" (__srclen), "0" (__tmp),"2" (__src), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - (void) memset (__tmp, '\0', __n - __srclen); - return __dest; -} - -__STRING_INLINE char *__strncpy_gg (char *__dest, const char *__src, - size_t __n); - -__STRING_INLINE char * -__strncpy_gg (char *__dest, const char *__src, size_t __n) -{ - register char *__tmp = __dest; - register char __dummy; - if (__n > 0) - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%2\n\t" - "incl %0\n\t" - "movb %2,(%1)\n\t" - "incl %1\n\t" - "decl %3\n\t" - "je 3f\n\t" - "testb %2,%2\n\t" - "jne 1b\n\t" - "2:\n\t" - "movb %2,(%1)\n\t" - "incl %1\n\t" - "decl %3\n\t" - "jne 2b\n\t" - "3:" - : "=&r" (__src), "=&r" (__tmp), "=&q" (__dummy), "=&r" (__n) - : "0" (__src), "1" (__tmp), "3" (__n) - : "memory", "cc"); - - return __dest; -} - - -/* Append SRC onto DEST. */ -# define _HAVE_STRING_ARCH_strcat 1 -# define strcat(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? __strcat_c ((dest), (src), strlen (src) + 1) \ - : __strcat_g ((dest), (src)))) - -__STRING_INLINE char *__strcat_c (char *__dest, const char __src[], - size_t __srclen); - -__STRING_INLINE char * -__strcat_c (char *__dest, const char __src[], size_t __srclen) -{ -# ifdef __i686__ - register unsigned long int __d0; - register char *__tmp; - __asm__ __volatile__ - ("repne; scasb" - : "=D" (__tmp), "=&c" (__d0), - "=m" ( *(struct { char __x[0xfffffff]; } *)__dest) - : "0" (__dest), "1" (0xffffffff), "a" (0), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); - --__tmp; -# else - register char *__tmp = __dest - 1; - __asm__ __volatile__ - ("1:\n\t" - "incl %0\n\t" - "cmpb $0,(%0)\n\t" - "jne 1b\n" - : "=r" (__tmp), - "=m" ( *(struct { char __x[0xfffffff]; } *)__dest) - : "0" (__tmp), - "m" ( *(struct { __extension__ char __x[__srclen]; } *)__src) - : "cc"); -# endif - (void) memcpy (__tmp, __src, __srclen); - return __dest; -} - -__STRING_INLINE char *__strcat_g (char *__dest, const char *__src); - -__STRING_INLINE char * -__strcat_g (char *__dest, const char *__src) -{ - register char *__tmp = __dest - 1; - register char __dummy; - __asm__ __volatile__ - ("1:\n\t" - "incl %1\n\t" - "cmpb $0,(%1)\n\t" - "jne 1b\n" - "2:\n\t" - "movb (%2),%b0\n\t" - "incl %2\n\t" - "movb %b0,(%1)\n\t" - "incl %1\n\t" - "testb %b0,%b0\n\t" - "jne 2b\n" - : "=&q" (__dummy), "=&r" (__tmp), "=&r" (__src), - "=m" ( *(struct { char __x[0xfffffff]; } *)__dest) - : "1" (__tmp), "2" (__src), - "m" ( *(struct { char __x[0xfffffff]; } *)__src) - : "memory", "cc"); - return __dest; -} - - -/* Append no more than N characters from SRC onto DEST. */ -# define _HAVE_STRING_ARCH_strncat 1 -# define strncat(dest, src, n) \ - (__extension__ ({ char *__dest = (dest); \ - __builtin_constant_p (src) && __builtin_constant_p (n) \ - ? (strlen (src) < ((size_t) (n)) \ - ? strcat (__dest, (src)) \ - : (*(char *)__mempcpy (strchr (__dest, '\0'), \ - (const char *) (src), \ - (n)) = 0, __dest)) \ - : __strncat_g (__dest, (src), (n)); })) - -__STRING_INLINE char *__strncat_g (char *__dest, const char __src[], - size_t __n); - -__STRING_INLINE char * -__strncat_g (char *__dest, const char __src[], size_t __n) -{ - register char *__tmp = __dest; - register char __dummy; -# ifdef __i686__ - __asm__ __volatile__ - ("repne; scasb\n" - "movl %4, %3\n\t" - "decl %1\n\t" - "1:\n\t" - "subl $1,%3\n\t" - "jc 2f\n\t" - "movb (%2),%b0\n\t" - "movsb\n\t" - "testb %b0,%b0\n\t" - "jne 1b\n\t" - "decl %1\n" - "2:\n\t" - "movb $0,(%1)" - : "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&c" (__n) - : "g" (__n), "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff) - : "memory", "cc"); -# else - --__tmp; - __asm__ __volatile__ - ("1:\n\t" - "cmpb $0,1(%1)\n\t" - "leal 1(%1),%1\n\t" - "jne 1b\n" - "2:\n\t" - "subl $1,%3\n\t" - "jc 3f\n\t" - "movb (%2),%b0\n\t" - "leal 1(%2),%2\n\t" - "movb %b0,(%1)\n\t" - "leal 1(%1),%1\n\t" - "testb %b0,%b0\n\t" - "jne 2b\n\t" - "decl %1\n" - "3:\n\t" - "movb $0,(%1)" - : "=&q" (__dummy), "=&r" (__tmp), "=&r" (__src), "=&r" (__n) - : "1" (__tmp), "2" (__src), "3" (__n) - : "memory", "cc"); -#endif - return __dest; -} - - -/* Compare S1 and S2. */ -# define _HAVE_STRING_ARCH_strcmp 1 -# define strcmp(s1, s2) \ - (__extension__ (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ - && (sizeof ((s1)[0]) != 1 || strlen (s1) >= 4) \ - && (sizeof ((s2)[0]) != 1 || strlen (s2) >= 4) \ - ? memcmp ((const char *) (s1), (const char *) (s2), \ - (strlen (s1) < strlen (s2) \ - ? strlen (s1) : strlen (s2)) + 1) \ - : (__builtin_constant_p (s1) && sizeof ((s1)[0]) == 1 \ - && sizeof ((s2)[0]) == 1 && strlen (s1) < 4 \ - ? (__builtin_constant_p (s2) && sizeof ((s2)[0]) == 1 \ - ? __strcmp_cc ((const unsigned char *) (s1), \ - (const unsigned char *) (s2), \ - strlen (s1)) \ - : __strcmp_cg ((const unsigned char *) (s1), \ - (const unsigned char *) (s2), \ - strlen (s1))) \ - : (__builtin_constant_p (s2) && sizeof ((s1)[0]) == 1 \ - && sizeof ((s2)[0]) == 1 && strlen (s2) < 4 \ - ? (__builtin_constant_p (s1) \ - ? __strcmp_cc ((const unsigned char *) (s1), \ - (const unsigned char *) (s2), \ - strlen (s2)) \ - : __strcmp_gc ((const unsigned char *) (s1), \ - (const unsigned char *) (s2), \ - strlen (s2))) \ - : __strcmp_gg ((s1), (s2)))))) - -# define __strcmp_cc(s1, s2, l) \ - (__extension__ ({ register int __result = (s1)[0] - (s2)[0]; \ - if (l > 0 && __result == 0) \ - { \ - __result = (s1)[1] - (s2)[1]; \ - if (l > 1 && __result == 0) \ - { \ - __result = (s1)[2] - (s2)[2]; \ - if (l > 2 && __result == 0) \ - __result = (s1)[3] - (s2)[3]; \ - } \ - } \ - __result; })) - -# define __strcmp_cg(s1, s2, l1) \ - (__extension__ ({ const unsigned char *__s2 = (s2); \ - register int __result = (s1)[0] - __s2[0]; \ - if (l1 > 0 && __result == 0) \ - { \ - __result = (s1)[1] - __s2[1]; \ - if (l1 > 1 && __result == 0) \ - { \ - __result = (s1)[2] - __s2[2]; \ - if (l1 > 2 && __result == 0) \ - __result = (s1)[3] - __s2[3]; \ - } \ - } \ - __result; })) - -# define __strcmp_gc(s1, s2, l2) \ - (__extension__ ({ const unsigned char *__s1 = (s1); \ - register int __result = __s1[0] - (s2)[0]; \ - if (l2 > 0 && __result == 0) \ - { \ - __result = __s1[1] - (s2)[1]; \ - if (l2 > 1 && __result == 0) \ - { \ - __result = __s1[2] - (s2)[2]; \ - if (l2 > 2 && __result == 0) \ - __result = __s1[3] - (s2)[3]; \ - } \ - } \ - __result; })) - -__STRING_INLINE int __strcmp_gg (const char *__s1, const char *__s2); - -__STRING_INLINE int -__strcmp_gg (const char *__s1, const char *__s2) -{ - register int __res; - __asm__ __volatile__ - ("1:\n\t" - "movb (%1),%b0\n\t" - "leal 1(%1),%1\n\t" - "cmpb %b0,(%2)\n\t" - "jne 2f\n\t" - "leal 1(%2),%2\n\t" - "testb %b0,%b0\n\t" - "jne 1b\n\t" - "xorl %0,%0\n\t" - "jmp 3f\n" - "2:\n\t" - "movl $1,%0\n\t" - "jb 3f\n\t" - "negl %0\n" - "3:" - : "=q" (__res), "=&r" (__s1), "=&r" (__s2) - : "1" (__s1), "2" (__s2), - "m" ( *(struct { char __x[0xfffffff]; } *)__s1), - "m" ( *(struct { char __x[0xfffffff]; } *)__s2) - : "cc"); - return __res; -} - - -/* Compare N characters of S1 and S2. */ -# define _HAVE_STRING_ARCH_strncmp 1 -# define strncmp(s1, s2, n) \ - (__extension__ (__builtin_constant_p (s1) && strlen (s1) < ((size_t) (n)) \ - ? strcmp ((s1), (s2)) \ - : (__builtin_constant_p (s2) && strlen (s2) < ((size_t) (n))\ - ? strcmp ((s1), (s2)) \ - : __strncmp_g ((s1), (s2), (n))))) - -__STRING_INLINE int __strncmp_g (const char *__s1, const char *__s2, - size_t __n); - -__STRING_INLINE int -__strncmp_g (const char *__s1, const char *__s2, size_t __n) -{ - register int __res; - __asm__ __volatile__ - ("1:\n\t" - "subl $1,%3\n\t" - "jc 2f\n\t" - "movb (%1),%b0\n\t" - "incl %1\n\t" - "cmpb %b0,(%2)\n\t" - "jne 3f\n\t" - "incl %2\n\t" - "testb %b0,%b0\n\t" - "jne 1b\n" - "2:\n\t" - "xorl %0,%0\n\t" - "jmp 4f\n" - "3:\n\t" - "movl $1,%0\n\t" - "jb 4f\n\t" - "negl %0\n" - "4:" - : "=q" (__res), "=&r" (__s1), "=&r" (__s2), "=&r" (__n) - : "1" (__s1), "2" (__s2), "3" (__n), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s1), - "m" ( *(struct { __extension__ char __x[__n]; } *)__s2) - : "cc"); - return __res; -} - - -/* Find the first occurrence of C in S. */ -# define _HAVE_STRING_ARCH_strchr 1 -# define _USE_STRING_ARCH_strchr 1 -# define strchr(s, c) \ - (__extension__ (__builtin_constant_p (c) \ - ? ((c) == '\0' \ - ? (char *) __rawmemchr ((s), (c)) \ - : __strchr_c ((s), ((c) & 0xff) << 8)) \ - : __strchr_g ((s), (c)))) - -__STRING_INLINE char *__strchr_c (const char *__s, int __c); - -__STRING_INLINE char * -__strchr_c (const char *__s, int __c) -{ - register unsigned long int __d0; - register char *__res; - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%%al\n\t" - "cmpb %%ah,%%al\n\t" - "je 2f\n\t" - "leal 1(%0),%0\n\t" - "testb %%al,%%al\n\t" - "jne 1b\n\t" - "xorl %0,%0\n" - "2:" - : "=r" (__res), "=&a" (__d0) - : "0" (__s), "1" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} - -__STRING_INLINE char *__strchr_g (const char *__s, int __c); - -__STRING_INLINE char * -__strchr_g (const char *__s, int __c) -{ - register unsigned long int __d0; - register char *__res; - __asm__ __volatile__ - ("movb %%al,%%ah\n" - "1:\n\t" - "movb (%0),%%al\n\t" - "cmpb %%ah,%%al\n\t" - "je 2f\n\t" - "leal 1(%0),%0\n\t" - "testb %%al,%%al\n\t" - "jne 1b\n\t" - "xorl %0,%0\n" - "2:" - : "=r" (__res), "=&a" (__d0) - : "0" (__s), "1" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} - - -/* Find the first occurrence of C in S or the final NUL byte. */ -# define _HAVE_STRING_ARCH_strchrnul 1 -# define __strchrnul(s, c) \ - (__extension__ (__builtin_constant_p (c) \ - ? ((c) == '\0' \ - ? (char *) __rawmemchr ((s), c) \ - : __strchrnul_c ((s), ((c) & 0xff) << 8)) \ - : __strchrnul_g ((s), c))) - -__STRING_INLINE char *__strchrnul_c (const char *__s, int __c); - -__STRING_INLINE char * -__strchrnul_c (const char *__s, int __c) -{ - register unsigned long int __d0; - register char *__res; - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%%al\n\t" - "cmpb %%ah,%%al\n\t" - "je 2f\n\t" - "leal 1(%0),%0\n\t" - "testb %%al,%%al\n\t" - "jne 1b\n\t" - "decl %0\n" - "2:" - : "=r" (__res), "=&a" (__d0) - : "0" (__s), "1" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} - -__STRING_INLINE char *__strchrnul_g (const char *__s, int __c); - -__STRING_INLINE char * -__strchrnul_g (const char *__s, int __c) -{ - register unsigned long int __d0; - register char *__res; - __asm__ __volatile__ - ("movb %%al,%%ah\n" - "1:\n\t" - "movb (%0),%%al\n\t" - "cmpb %%ah,%%al\n\t" - "je 2f\n\t" - "leal 1(%0),%0\n\t" - "testb %%al,%%al\n\t" - "jne 1b\n\t" - "decl %0\n" - "2:" - : "=r" (__res), "=&a" (__d0) - : "0" (__s), "1" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} -# ifdef __USE_GNU -# define strchrnul(s, c) __strchrnul ((s), (c)) -# endif - - -# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Find the first occurrence of C in S. This is the BSD name. */ -# define _HAVE_STRING_ARCH_index 1 -# define index(s, c) \ - (__extension__ (__builtin_constant_p (c) \ - ? __strchr_c ((s), ((c) & 0xff) << 8) \ - : __strchr_g ((s), (c)))) -# endif - - -/* Find the last occurrence of C in S. */ -# define _HAVE_STRING_ARCH_strrchr 1 -# define strrchr(s, c) \ - (__extension__ (__builtin_constant_p (c) \ - ? __strrchr_c ((s), ((c) & 0xff) << 8) \ - : __strrchr_g ((s), (c)))) - -# ifdef __i686__ -__STRING_INLINE char *__strrchr_c (const char *__s, int __c); - -__STRING_INLINE char * -__strrchr_c (const char *__s, int __c) -{ - register unsigned long int __d0, __d1; - register char *__res; - __asm__ __volatile__ - ("cld\n" - "1:\n\t" - "lodsb\n\t" - "cmpb %h2,%b2\n\t" - "cmove %1,%0\n\t" - "testb %b2,%b2\n\t" - "jne 1b" - : "=d" (__res), "=&S" (__d0), "=&a" (__d1) - : "0" (1), "1" (__s), "2" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res - 1; -} - -__STRING_INLINE char *__strrchr_g (const char *__s, int __c); - -__STRING_INLINE char * -__strrchr_g (const char *__s, int __c) -{ - register unsigned long int __d0, __d1; - register char *__res; - __asm__ __volatile__ - ("movb %b2,%h2\n" - "cld\n\t" - "1:\n\t" - "lodsb\n\t" - "cmpb %h2,%b2\n\t" - "cmove %1,%0\n\t" - "testb %b2,%b2\n\t" - "jne 1b" - : "=d" (__res), "=&S" (__d0), "=&a" (__d1) - : "0" (1), "1" (__s), "2" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res - 1; -} -# else -__STRING_INLINE char *__strrchr_c (const char *__s, int __c); - -__STRING_INLINE char * -__strrchr_c (const char *__s, int __c) -{ - register unsigned long int __d0, __d1; - register char *__res; - __asm__ __volatile__ - ("cld\n" - "1:\n\t" - "lodsb\n\t" - "cmpb %%ah,%%al\n\t" - "jne 2f\n\t" - "leal -1(%%esi),%0\n" - "2:\n\t" - "testb %%al,%%al\n\t" - "jne 1b" - : "=d" (__res), "=&S" (__d0), "=&a" (__d1) - : "0" (0), "1" (__s), "2" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} - -__STRING_INLINE char *__strrchr_g (const char *__s, int __c); - -__STRING_INLINE char * -__strrchr_g (const char *__s, int __c) -{ - register unsigned long int __d0, __d1; - register char *__res; - __asm__ __volatile__ - ("movb %%al,%%ah\n" - "cld\n\t" - "1:\n\t" - "lodsb\n\t" - "cmpb %%ah,%%al\n\t" - "jne 2f\n\t" - "leal -1(%%esi),%0\n" - "2:\n\t" - "testb %%al,%%al\n\t" - "jne 1b" - : "=r" (__res), "=&S" (__d0), "=&a" (__d1) - : "0" (0), "1" (__s), "2" (__c), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return __res; -} -# endif - - -# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Find the last occurrence of C in S. This is the BSD name. */ -# define _HAVE_STRING_ARCH_rindex 1 -# define rindex(s, c) \ - (__extension__ (__builtin_constant_p (c) \ - ? __strrchr_c ((s), ((c) & 0xff) << 8) \ - : __strrchr_g ((s), (c)))) -# endif - - -/* Return the length of the initial segment of S which - consists entirely of characters not in REJECT. */ -# define _HAVE_STRING_ARCH_strcspn 1 -# define strcspn(s, reject) \ - (__extension__ (__builtin_constant_p (reject) && sizeof ((reject)[0]) == 1 \ - ? ((reject)[0] == '\0' \ - ? strlen (s) \ - : ((reject)[1] == '\0' \ - ? __strcspn_c1 ((s), (((reject)[0] << 8) & 0xff00)) \ - : __strcspn_cg ((s), (reject), strlen (reject)))) \ - : __strcspn_g ((s), (reject)))) - -__STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject); - -# ifndef _FORCE_INLINES -__STRING_INLINE size_t -__strcspn_c1 (const char *__s, int __reject) -{ - register unsigned long int __d0; - register char *__res; - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%%al\n\t" - "leal 1(%0),%0\n\t" - "cmpb %%ah,%%al\n\t" - "je 2f\n\t" - "testb %%al,%%al\n\t" - "jne 1b\n" - "2:" - : "=r" (__res), "=&a" (__d0) - : "0" (__s), "1" (__reject), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return (__res - 1) - __s; -} -# endif - -__STRING_INLINE size_t __strcspn_cg (const char *__s, const char __reject[], - size_t __reject_len); - -__STRING_INLINE size_t -__strcspn_cg (const char *__s, const char __reject[], size_t __reject_len) -{ - register unsigned long int __d0, __d1, __d2; - register const char *__res; - __asm__ __volatile__ - ("cld\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %5,%%edi\n\t" - "movl %6,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n" - "2:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "0" (__s), "d" (__reject), "g" (__reject_len) - : "memory", "cc"); - return (__res - 1) - __s; -} - -__STRING_INLINE size_t __strcspn_g (const char *__s, const char *__reject); -# ifdef __PIC__ - -__STRING_INLINE size_t -__strcspn_g (const char *__s, const char *__reject) -{ - register unsigned long int __d0, __d1, __d2; - register const char *__res; - __asm__ __volatile__ - ("pushl %%ebx\n\t" - "movl %4,%%edi\n\t" - "cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%ebx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %4,%%edi\n\t" - "movl %%ebx,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n" - "2:\n\t" - "popl %%ebx" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "r" (__reject), "0" (__s), "1" (0), "2" (0xffffffff) - : "memory", "cc"); - return (__res - 1) - __s; -} -# else -__STRING_INLINE size_t -__strcspn_g (const char *__s, const char *__reject) -{ - register unsigned long int __d0, __d1, __d2, __d3; - register const char *__res; - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%edx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %%ebx,%%edi\n\t" - "movl %%edx,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n" - "2:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2), "=&d" (__d3) - : "0" (__s), "1" (0), "2" (0xffffffff), "3" (__reject), "b" (__reject) - /* Clobber memory, otherwise GCC cannot handle this. */ - : "memory", "cc"); - return (__res - 1) - __s; -} -# endif - - -/* Return the length of the initial segment of S which - consists entirely of characters in ACCEPT. */ -# define _HAVE_STRING_ARCH_strspn 1 -# define strspn(s, accept) \ - (__extension__ (__builtin_constant_p (accept) && sizeof ((accept)[0]) == 1 \ - ? ((accept)[0] == '\0' \ - ? ((void) (s), 0) \ - : ((accept)[1] == '\0' \ - ? __strspn_c1 ((s), (((accept)[0] << 8 ) & 0xff00)) \ - : __strspn_cg ((s), (accept), strlen (accept)))) \ - : __strspn_g ((s), (accept)))) - -# ifndef _FORCE_INLINES -__STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept); - -__STRING_INLINE size_t -__strspn_c1 (const char *__s, int __accept) -{ - register unsigned long int __d0; - register char *__res; - /* Please note that __accept never can be '\0'. */ - __asm__ __volatile__ - ("1:\n\t" - "movb (%0),%b1\n\t" - "leal 1(%0),%0\n\t" - "cmpb %h1,%b1\n\t" - "je 1b" - : "=r" (__res), "=&q" (__d0) - : "0" (__s), "1" (__accept), - "m" ( *(struct { char __x[0xfffffff]; } *)__s) - : "cc"); - return (__res - 1) - __s; -} -# endif - -__STRING_INLINE size_t __strspn_cg (const char *__s, const char __accept[], - size_t __accept_len); - -__STRING_INLINE size_t -__strspn_cg (const char *__s, const char __accept[], size_t __accept_len) -{ - register unsigned long int __d0, __d1, __d2; - register const char *__res; - __asm__ __volatile__ - ("cld\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %5,%%edi\n\t" - "movl %6,%%ecx\n\t" - "repne; scasb\n\t" - "je 1b\n" - "2:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "0" (__s), "g" (__accept), "g" (__accept_len), - /* Since we do not know how large the memory we access it, use a - really large amount. */ - "m" ( *(struct { char __x[0xfffffff]; } *)__s), - "m" ( *(struct { __extension__ char __x[__accept_len]; } *)__accept) - : "cc"); - return (__res - 1) - __s; -} - -__STRING_INLINE size_t __strspn_g (const char *__s, const char *__accept); -# ifdef __PIC__ - -__STRING_INLINE size_t -__strspn_g (const char *__s, const char *__accept) -{ - register unsigned long int __d0, __d1, __d2; - register const char *__res; - __asm__ __volatile__ - ("pushl %%ebx\n\t" - "cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%ebx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %%edx,%%edi\n\t" - "movl %%ebx,%%ecx\n\t" - "repne; scasb\n\t" - "je 1b\n" - "2:\n\t" - "popl %%ebx" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "d" (__accept), "0" (__s), "1" (0), "2" (0xffffffff), "3" (__accept) - : "memory", "cc"); - return (__res - 1) - __s; -} -# else -__STRING_INLINE size_t -__strspn_g (const char *__s, const char *__accept) -{ - register unsigned long int __d0, __d1, __d2, __d3; - register const char *__res; - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%edx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %%ebx,%%edi\n\t" - "movl %%edx,%%ecx\n\t" - "repne; scasb\n\t" - "je 1b\n" - "2:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2), "=&d" (__d3) - : "0" (__s), "1" (0), "2" (0xffffffff), "3" (__accept), "b" (__accept) - : "memory", "cc"); - return (__res - 1) - __s; -} -# endif - - -/* Find the first occurrence in S of any character in ACCEPT. */ -# define _HAVE_STRING_ARCH_strpbrk 1 -# define strpbrk(s, accept) \ - (__extension__ (__builtin_constant_p (accept) && sizeof ((accept)[0]) == 1 \ - ? ((accept)[0] == '\0' \ - ? ((void) (s), (char *) 0) \ - : ((accept)[1] == '\0' \ - ? strchr ((s), (accept)[0]) \ - : __strpbrk_cg ((s), (accept), strlen (accept)))) \ - : __strpbrk_g ((s), (accept)))) - -__STRING_INLINE char *__strpbrk_cg (const char *__s, const char __accept[], - size_t __accept_len); - -__STRING_INLINE char * -__strpbrk_cg (const char *__s, const char __accept[], size_t __accept_len) -{ - register unsigned long int __d0, __d1, __d2; - register char *__res; - __asm__ __volatile__ - ("cld\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %5,%%edi\n\t" - "movl %6,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n\t" - "decl %0\n\t" - "jmp 3f\n" - "2:\n\t" - "xorl %0,%0\n" - "3:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "0" (__s), "d" (__accept), "g" (__accept_len) - : "memory", "cc"); - return __res; -} - -__STRING_INLINE char *__strpbrk_g (const char *__s, const char *__accept); -# ifdef __PIC__ - -__STRING_INLINE char * -__strpbrk_g (const char *__s, const char *__accept) -{ - register unsigned long int __d0, __d1, __d2; - register char *__res; - __asm__ __volatile__ - ("pushl %%ebx\n\t" - "movl %%edx,%%edi\n\t" - "cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%ebx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %%edx,%%edi\n\t" - "movl %%ebx,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n\t" - "decl %0\n\t" - "jmp 3f\n" - "2:\n\t" - "xorl %0,%0\n" - "3:\n\t" - "popl %%ebx" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&D" (__d2) - : "d" (__accept), "0" (__s), "1" (0), "2" (0xffffffff) - : "memory", "cc"); - return __res; -} -# else -__STRING_INLINE char * -__strpbrk_g (const char *__s, const char *__accept) -{ - register unsigned long int __d0, __d1, __d2, __d3; - register char *__res; - __asm__ __volatile__ - ("movl %%ebx,%%edi\n\t" - "cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "leal -1(%%ecx),%%edx\n" - "1:\n\t" - "lodsb\n\t" - "testb %%al,%%al\n\t" - "je 2f\n\t" - "movl %%ebx,%%edi\n\t" - "movl %%edx,%%ecx\n\t" - "repne; scasb\n\t" - "jne 1b\n\t" - "decl %0\n\t" - "jmp 3f\n" - "2:\n\t" - "xorl %0,%0\n" - "3:" - : "=S" (__res), "=&a" (__d0), "=&c" (__d1), "=&d" (__d2), "=&D" (__d3) - : "0" (__s), "1" (0), "2" (0xffffffff), "b" (__accept) - : "memory", "cc"); - return __res; -} -# endif - - -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -# define _HAVE_STRING_ARCH_strstr 1 -# define strstr(haystack, needle) \ - (__extension__ (__builtin_constant_p (needle) && sizeof ((needle)[0]) == 1 \ - ? ((needle)[0] == '\0' \ - ? (haystack) \ - : ((needle)[1] == '\0' \ - ? strchr ((haystack), (needle)[0]) \ - : __strstr_cg ((haystack), (needle), \ - strlen (needle)))) \ - : __strstr_g ((haystack), (needle)))) - -/* Please note that this function need not handle NEEDLEs with a - length shorter than two. */ -__STRING_INLINE char *__strstr_cg (const char *__haystack, - const char __needle[], - size_t __needle_len); - -__STRING_INLINE char * -__strstr_cg (const char *__haystack, const char __needle[], - size_t __needle_len) -{ - register unsigned long int __d0, __d1, __d2; - register char *__res; - __asm__ __volatile__ - ("cld\n" \ - "1:\n\t" - "movl %6,%%edi\n\t" - "movl %5,%%eax\n\t" - "movl %4,%%ecx\n\t" - "repe; cmpsb\n\t" - "je 2f\n\t" - "cmpb $0,-1(%%esi)\n\t" - "leal 1(%%eax),%5\n\t" - "jne 1b\n\t" - "xorl %%eax,%%eax\n" - "2:" - : "=&a" (__res), "=&S" (__d0), "=&D" (__d1), "=&c" (__d2) - : "g" (__needle_len), "1" (__haystack), "d" (__needle) - : "memory", "cc"); - return __res; -} - -__STRING_INLINE char *__strstr_g (const char *__haystack, - const char *__needle); -# ifdef __PIC__ - -__STRING_INLINE char * -__strstr_g (const char *__haystack, const char *__needle) -{ - register unsigned long int __d0, __d1, __d2; - register char *__res; - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "pushl %%ebx\n\t" - "decl %%ecx\n\t" /* NOTE! This also sets Z if searchstring='' */ - "movl %%ecx,%%ebx\n" - "1:\n\t" - "movl %%edx,%%edi\n\t" - "movl %%esi,%%eax\n\t" - "movl %%ebx,%%ecx\n\t" - "repe; cmpsb\n\t" - "je 2f\n\t" /* also works for empty string, see above */ - "cmpb $0,-1(%%esi)\n\t" - "leal 1(%%eax),%%esi\n\t" - "jne 1b\n\t" - "xorl %%eax,%%eax\n" - "2:\n\t" - "popl %%ebx" - : "=&a" (__res), "=&c" (__d0), "=&S" (__d1), "=&D" (__d2) - : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (__needle), - "d" (__needle) - : "memory", "cc"); - return __res; -} -# else -__STRING_INLINE char * -__strstr_g (const char *__haystack, const char *__needle) -{ - register unsigned long int __d0, __d1, __d2, __d3; - register char *__res; - __asm__ __volatile__ - ("cld\n\t" - "repne; scasb\n\t" - "notl %%ecx\n\t" - "decl %%ecx\n\t" /* NOTE! This also sets Z if searchstring='' */ - "movl %%ecx,%%edx\n" - "1:\n\t" - "movl %%ebx,%%edi\n\t" - "movl %%esi,%%eax\n\t" - "movl %%edx,%%ecx\n\t" - "repe; cmpsb\n\t" - "je 2f\n\t" /* also works for empty string, see above */ - "cmpb $0,-1(%%esi)\n\t" - "leal 1(%%eax),%%esi\n\t" - "jne 1b\n\t" - "xorl %%eax,%%eax\n" - "2:" - : "=&a" (__res), "=&c" (__d0), "=&S" (__d1), "=&D" (__d2), "=&d" (__d3) - : "0" (0), "1" (0xffffffff), "2" (__haystack), "3" (__needle), - "b" (__needle) - : "memory", "cc"); - return __res; -} -# endif - - -/* Bit find functions. We define only the i686 version since for the other - processors gcc generates good code. */ -# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -# ifdef __i686__ -# define _HAVE_STRING_ARCH_ffs 1 -# define ffs(word) (__builtin_constant_p (word) \ - ? __builtin_ffs (word) \ - : ({ int __cnt, __tmp; \ - __asm__ __volatile__ \ - ("bsfl %2,%0\n\t" \ - "cmovel %1,%0" \ - : "=&r" (__cnt), "=r" (__tmp) \ - : "rm" (word), "1" (-1)); \ - __cnt + 1; })) - -# ifndef ffsl -# define ffsl(word) ffs(word) -# endif -# endif /* i686 */ -# endif /* Misc || X/Open */ - -# ifndef _FORCE_INLINES -# undef __STRING_INLINE -# endif - -# endif /* use string inlines && GNU CC */ - -#endif diff --git a/libktorrent/miniboost/bits/string2.h b/libktorrent/miniboost/bits/string2.h deleted file mode 100644 index 0523a273..00000000 --- a/libktorrent/miniboost/bits/string2.h +++ /dev/null @@ -1,1329 +0,0 @@ -/* Machine-independant string function optimizations. - Copyright (C) 1997-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 1997. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STRING_H -# error "Never use directly; include instead." -#endif - -#ifndef __NO_STRING_INLINES - -/* Unlike the definitions in the header the - definitions contained here are not optimized down to assembler - level. Those optimizations are not always a good idea since this - means the code size increases a lot. Instead the definitions here - optimize some functions in a way which do not dramatically - increase the code size and which do not use assembler. The main - trick is to use GCC's `__builtin_constant_p' function. - - Every function XXX which has a defined version in - must be accompanied by a symbol _HAVE_STRING_ARCH_XXX - to make sure we don't get redefinitions. - - We must use here macros instead of inline functions since the - trick won't work with the latter. */ - -#ifndef __STRING_INLINE -# ifdef __cplusplus -# define __STRING_INLINE inline -# else -# define __STRING_INLINE __extern_inline -# endif -#endif - -#if _STRING_ARCH_unaligned -/* If we can do unaligned memory accesses we must know the endianess. */ -# include -# include - -# if __BYTE_ORDER == __LITTLE_ENDIAN -# define __STRING2_SMALL_GET16(src, idx) \ - (((const unsigned char *) (const char *) (src))[idx + 1] << 8 \ - | ((const unsigned char *) (const char *) (src))[idx]) -# define __STRING2_SMALL_GET32(src, idx) \ - (((((const unsigned char *) (const char *) (src))[idx + 3] << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 2]) << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 1]) << 8 \ - | ((const unsigned char *) (const char *) (src))[idx]) -# else -# define __STRING2_SMALL_GET16(src, idx) \ - (((const unsigned char *) (const char *) (src))[idx] << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 1]) -# define __STRING2_SMALL_GET32(src, idx) \ - (((((const unsigned char *) (const char *) (src))[idx] << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 1]) << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 2]) << 8 \ - | ((const unsigned char *) (const char *) (src))[idx + 3]) -# endif -#else -/* These are a few types we need for the optimizations if we cannot - use unaligned memory accesses. */ -# define __STRING2_COPY_TYPE(N) \ - typedef struct { unsigned char __arr[N]; } \ - __attribute__ ((__packed__)) __STRING2_COPY_ARR##N -__STRING2_COPY_TYPE (2); -__STRING2_COPY_TYPE (3); -__STRING2_COPY_TYPE (4); -__STRING2_COPY_TYPE (5); -__STRING2_COPY_TYPE (6); -__STRING2_COPY_TYPE (7); -__STRING2_COPY_TYPE (8); -# undef __STRING2_COPY_TYPE -#endif - -/* Dereferencing a pointer arg to run sizeof on it fails for the void - pointer case, so we use this instead. - Note that __x is evaluated twice. */ -#define __string2_1bptr_p(__x) \ - ((size_t)(const void *)((__x) + 1) - (size_t)(const void *)(__x) == 1) - -/* Set N bytes of S to C. */ -#if !defined _HAVE_STRING_ARCH_memset -# if !__GNUC_PREREQ (3, 0) -# if _STRING_ARCH_unaligned -# define memset(s, c, n) \ - (__extension__ (__builtin_constant_p (n) && (n) <= 16 \ - ? ((n) == 1 \ - ? __memset_1 (s, c) \ - : __memset_gc (s, c, n)) \ - : (__builtin_constant_p (c) && (c) == '\0' \ - ? ({ void *__s = (s); __bzero (__s, n); __s; }) \ - : memset (s, c, n)))) - -# define __memset_1(s, c) ({ void *__s = (s); \ - *((__uint8_t *) __s) = (__uint8_t) c; __s; }) - -# define __memset_gc(s, c, n) \ - ({ void *__s = (s); \ - union { \ - unsigned int __ui; \ - unsigned short int __usi; \ - unsigned char __uc; \ - } *__u = __s; \ - __uint8_t __c = (__uint8_t) (c); \ - \ - /* This `switch' statement will be removed at compile-time. */ \ - switch ((unsigned int) (n)) \ - { \ - case 15: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 11: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 7: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 3: \ - __u->__usi = (unsigned short int) __c * 0x0101; \ - __u = __extension__ ((void *) __u + 2); \ - __u->__uc = (unsigned char) __c; \ - break; \ - \ - case 14: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 10: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 6: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 2: \ - __u->__usi = (unsigned short int) __c * 0x0101; \ - break; \ - \ - case 13: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 9: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 5: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 1: \ - __u->__uc = (unsigned char) __c; \ - break; \ - \ - case 16: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 12: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 8: \ - __u->__ui = __c * 0x01010101; \ - __u = __extension__ ((void *) __u + 4); \ - case 4: \ - __u->__ui = __c * 0x01010101; \ - case 0: \ - break; \ - } \ - \ - __s; }) -# else -# define memset(s, c, n) \ - (__extension__ (__builtin_constant_p (c) && (c) == '\0' \ - ? ({ void *__s = (s); __bzero (__s, n); __s; }) \ - : memset (s, c, n))) -# endif -# endif - -/* GCC < 3.0 optimizes memset(s, 0, n) but not bzero(s, n). - The optimization is broken before EGCS 1.1. - GCC 3.0+ has __builtin_bzero as well, but at least till GCC 3.4 - if it decides to call the library function, it calls memset - and not bzero. */ -# if __GNUC_PREREQ (2, 91) -# define __bzero(s, n) __builtin_memset (s, '\0', n) -# endif - -#endif - - -/* Copy N bytes from SRC to DEST, returning pointer to byte following the - last copied. */ -#ifdef __USE_GNU -# if !defined _HAVE_STRING_ARCH_mempcpy || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_mempcpy -# if __GNUC_PREREQ (3, 4) -# define __mempcpy(dest, src, n) __builtin_mempcpy (dest, src, n) -# elif __GNUC_PREREQ (3, 0) -# define __mempcpy(dest, src, n) \ - (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \ - && __string2_1bptr_p (src) && n <= 8 \ - ? __builtin_memcpy (dest, src, n) + (n) \ - : __mempcpy (dest, src, n))) -# else -# define __mempcpy(dest, src, n) \ - (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \ - && __string2_1bptr_p (src) && n <= 8 \ - ? __mempcpy_small (dest, __mempcpy_args (src), n) \ - : __mempcpy (dest, src, n))) -# endif -/* In glibc we use this function frequently but for namespace reasons - we have to use the name `__mempcpy'. */ -# define mempcpy(dest, src, n) __mempcpy (dest, src, n) -# endif - -# if !__GNUC_PREREQ (3, 0) || defined _FORCE_INLINES -# if _STRING_ARCH_unaligned -# ifndef _FORCE_INLINES -# define __mempcpy_args(src) \ - ((const char *) (src))[0], ((const char *) (src))[2], \ - ((const char *) (src))[4], ((const char *) (src))[6], \ - __extension__ __STRING2_SMALL_GET16 (src, 0), \ - __extension__ __STRING2_SMALL_GET16 (src, 4), \ - __extension__ __STRING2_SMALL_GET32 (src, 0), \ - __extension__ __STRING2_SMALL_GET32 (src, 4) -# endif -__STRING_INLINE void *__mempcpy_small (void *, char, char, char, char, - __uint16_t, __uint16_t, __uint32_t, - __uint32_t, size_t); -__STRING_INLINE void * -__mempcpy_small (void *__dest1, - char __src0_1, char __src2_1, char __src4_1, char __src6_1, - __uint16_t __src0_2, __uint16_t __src4_2, - __uint32_t __src0_4, __uint32_t __src4_4, - size_t __srclen) -{ - union { - __uint32_t __ui; - __uint16_t __usi; - unsigned char __uc; - unsigned char __c; - } *__u = __dest1; - switch ((unsigned int) __srclen) - { - case 1: - __u->__c = __src0_1; - __u = __extension__ ((void *) __u + 1); - break; - case 2: - __u->__usi = __src0_2; - __u = __extension__ ((void *) __u + 2); - break; - case 3: - __u->__usi = __src0_2; - __u = __extension__ ((void *) __u + 2); - __u->__c = __src2_1; - __u = __extension__ ((void *) __u + 1); - break; - case 4: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - break; - case 5: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__c = __src4_1; - __u = __extension__ ((void *) __u + 1); - break; - case 6: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - __u = __extension__ ((void *) __u + 2); - break; - case 7: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - __u = __extension__ ((void *) __u + 2); - __u->__c = __src6_1; - __u = __extension__ ((void *) __u + 1); - break; - case 8: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__ui = __src4_4; - __u = __extension__ ((void *) __u + 4); - break; - } - return (void *) __u; -} -# else -# ifndef _FORCE_INLINES -# define __mempcpy_args(src) \ - ((const char *) (src))[0], \ - __extension__ ((__STRING2_COPY_ARR2) \ - { { ((const char *) (src))[0], ((const char *) (src))[1] } }), \ - __extension__ ((__STRING2_COPY_ARR3) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2] } }), \ - __extension__ ((__STRING2_COPY_ARR4) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3] } }), \ - __extension__ ((__STRING2_COPY_ARR5) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4] } }), \ - __extension__ ((__STRING2_COPY_ARR6) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5] } }), \ - __extension__ ((__STRING2_COPY_ARR7) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - ((const char *) (src))[6] } }), \ - __extension__ ((__STRING2_COPY_ARR8) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - ((const char *) (src))[6], ((const char *) (src))[7] } }) -# endif -__STRING_INLINE void *__mempcpy_small (void *, char, __STRING2_COPY_ARR2, - __STRING2_COPY_ARR3, - __STRING2_COPY_ARR4, - __STRING2_COPY_ARR5, - __STRING2_COPY_ARR6, - __STRING2_COPY_ARR7, - __STRING2_COPY_ARR8, size_t); -__STRING_INLINE void * -__mempcpy_small (void *__dest, char __src1, - __STRING2_COPY_ARR2 __src2, __STRING2_COPY_ARR3 __src3, - __STRING2_COPY_ARR4 __src4, __STRING2_COPY_ARR5 __src5, - __STRING2_COPY_ARR6 __src6, __STRING2_COPY_ARR7 __src7, - __STRING2_COPY_ARR8 __src8, size_t __srclen) -{ - union { - char __c; - __STRING2_COPY_ARR2 __sca2; - __STRING2_COPY_ARR3 __sca3; - __STRING2_COPY_ARR4 __sca4; - __STRING2_COPY_ARR5 __sca5; - __STRING2_COPY_ARR6 __sca6; - __STRING2_COPY_ARR7 __sca7; - __STRING2_COPY_ARR8 __sca8; - } *__u = __dest; - switch ((unsigned int) __srclen) - { - case 1: - __u->__c = __src1; - break; - case 2: - __extension__ __u->__sca2 = __src2; - break; - case 3: - __extension__ __u->__sca3 = __src3; - break; - case 4: - __extension__ __u->__sca4 = __src4; - break; - case 5: - __extension__ __u->__sca5 = __src5; - break; - case 6: - __extension__ __u->__sca6 = __src6; - break; - case 7: - __extension__ __u->__sca7 = __src7; - break; - case 8: - __extension__ __u->__sca8 = __src8; - break; - } - return __extension__ ((void *) __u + __srclen); -} -# endif -# endif -# endif -#endif - - -/* Return pointer to C in S. */ -#ifndef _HAVE_STRING_ARCH_strchr -extern void *__rawmemchr (const void *__s, int __c); -# if __GNUC_PREREQ (3, 2) -# define strchr(s, c) \ - (__extension__ (__builtin_constant_p (c) && !__builtin_constant_p (s) \ - && (c) == '\0' \ - ? (char *) __rawmemchr (s, c) \ - : __builtin_strchr (s, c))) -# else -# define strchr(s, c) \ - (__extension__ (__builtin_constant_p (c) && (c) == '\0' \ - ? (char *) __rawmemchr (s, c) \ - : strchr (s, c))) -# endif -#endif - - -/* Copy SRC to DEST. */ -#if (!defined _HAVE_STRING_ARCH_strcpy && !__GNUC_PREREQ (3, 0)) \ - || defined _FORCE_INLINES -# if !defined _HAVE_STRING_ARCH_strcpy && !__GNUC_PREREQ (3, 0) -# define strcpy(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? (__string2_1bptr_p (src) && strlen (src) + 1 <= 8 \ - ? __strcpy_small (dest, __strcpy_args (src), \ - strlen (src) + 1) \ - : (char *) memcpy (dest, src, strlen (src) + 1)) \ - : strcpy (dest, src))) -# endif - -# if _STRING_ARCH_unaligned -# ifndef _FORCE_INLINES -# define __strcpy_args(src) \ - __extension__ __STRING2_SMALL_GET16 (src, 0), \ - __extension__ __STRING2_SMALL_GET16 (src, 4), \ - __extension__ __STRING2_SMALL_GET32 (src, 0), \ - __extension__ __STRING2_SMALL_GET32 (src, 4) -# endif -__STRING_INLINE char *__strcpy_small (char *, __uint16_t, __uint16_t, - __uint32_t, __uint32_t, size_t); -__STRING_INLINE char * -__strcpy_small (char *__dest, - __uint16_t __src0_2, __uint16_t __src4_2, - __uint32_t __src0_4, __uint32_t __src4_4, - size_t __srclen) -{ - union { - __uint32_t __ui; - __uint16_t __usi; - unsigned char __uc; - } *__u = (void *) __dest; - switch ((unsigned int) __srclen) - { - case 1: - __u->__uc = '\0'; - break; - case 2: - __u->__usi = __src0_2; - break; - case 3: - __u->__usi = __src0_2; - __u = __extension__ ((void *) __u + 2); - __u->__uc = '\0'; - break; - case 4: - __u->__ui = __src0_4; - break; - case 5: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__uc = '\0'; - break; - case 6: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - break; - case 7: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - __u = __extension__ ((void *) __u + 2); - __u->__uc = '\0'; - break; - case 8: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__ui = __src4_4; - break; - } - return __dest; -} -# else -# ifndef _FORCE_INLINES -# define __strcpy_args(src) \ - __extension__ ((__STRING2_COPY_ARR2) \ - { { ((const char *) (src))[0], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR3) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR4) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR5) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR6) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR7) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR8) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - ((const char *) (src))[6], '\0' } }) -# endif -__STRING_INLINE char *__strcpy_small (char *, __STRING2_COPY_ARR2, - __STRING2_COPY_ARR3, - __STRING2_COPY_ARR4, - __STRING2_COPY_ARR5, - __STRING2_COPY_ARR6, - __STRING2_COPY_ARR7, - __STRING2_COPY_ARR8, size_t); -__STRING_INLINE char * -__strcpy_small (char *__dest, - __STRING2_COPY_ARR2 __src2, __STRING2_COPY_ARR3 __src3, - __STRING2_COPY_ARR4 __src4, __STRING2_COPY_ARR5 __src5, - __STRING2_COPY_ARR6 __src6, __STRING2_COPY_ARR7 __src7, - __STRING2_COPY_ARR8 __src8, size_t __srclen) -{ - union { - char __c; - __STRING2_COPY_ARR2 __sca2; - __STRING2_COPY_ARR3 __sca3; - __STRING2_COPY_ARR4 __sca4; - __STRING2_COPY_ARR5 __sca5; - __STRING2_COPY_ARR6 __sca6; - __STRING2_COPY_ARR7 __sca7; - __STRING2_COPY_ARR8 __sca8; - } *__u = (void *) __dest; - switch ((unsigned int) __srclen) - { - case 1: - __u->__c = '\0'; - break; - case 2: - __extension__ __u->__sca2 = __src2; - break; - case 3: - __extension__ __u->__sca3 = __src3; - break; - case 4: - __extension__ __u->__sca4 = __src4; - break; - case 5: - __extension__ __u->__sca5 = __src5; - break; - case 6: - __extension__ __u->__sca6 = __src6; - break; - case 7: - __extension__ __u->__sca7 = __src7; - break; - case 8: - __extension__ __u->__sca8 = __src8; - break; - } - return __dest; -} -# endif -#endif - - -/* Copy SRC to DEST, returning pointer to final NUL byte. */ -#ifdef __USE_GNU -# if !defined _HAVE_STRING_ARCH_stpcpy || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_stpcpy -# if __GNUC_PREREQ (3, 4) -# define __stpcpy(dest, src) __builtin_stpcpy (dest, src) -# elif __GNUC_PREREQ (3, 0) -# define __stpcpy(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? (__string2_1bptr_p (src) && strlen (src) + 1 <= 8 \ - ? __builtin_strcpy (dest, src) + strlen (src) \ - : ((char *) (__mempcpy) (dest, src, strlen (src) + 1) \ - - 1)) \ - : __stpcpy (dest, src))) -# else -# define __stpcpy(dest, src) \ - (__extension__ (__builtin_constant_p (src) \ - ? (__string2_1bptr_p (src) && strlen (src) + 1 <= 8 \ - ? __stpcpy_small (dest, __stpcpy_args (src), \ - strlen (src) + 1) \ - : ((char *) (__mempcpy) (dest, src, strlen (src) + 1) \ - - 1)) \ - : __stpcpy (dest, src))) -# endif -/* In glibc we use this function frequently but for namespace reasons - we have to use the name `__stpcpy'. */ -# define stpcpy(dest, src) __stpcpy (dest, src) -# endif - -# if !__GNUC_PREREQ (3, 0) || defined _FORCE_INLINES -# if _STRING_ARCH_unaligned -# ifndef _FORCE_INLINES -# define __stpcpy_args(src) \ - __extension__ __STRING2_SMALL_GET16 (src, 0), \ - __extension__ __STRING2_SMALL_GET16 (src, 4), \ - __extension__ __STRING2_SMALL_GET32 (src, 0), \ - __extension__ __STRING2_SMALL_GET32 (src, 4) -# endif -__STRING_INLINE char *__stpcpy_small (char *, __uint16_t, __uint16_t, - __uint32_t, __uint32_t, size_t); -__STRING_INLINE char * -__stpcpy_small (char *__dest, - __uint16_t __src0_2, __uint16_t __src4_2, - __uint32_t __src0_4, __uint32_t __src4_4, - size_t __srclen) -{ - union { - unsigned int __ui; - unsigned short int __usi; - unsigned char __uc; - char __c; - } *__u = (void *) __dest; - switch ((unsigned int) __srclen) - { - case 1: - __u->__uc = '\0'; - break; - case 2: - __u->__usi = __src0_2; - __u = __extension__ ((void *) __u + 1); - break; - case 3: - __u->__usi = __src0_2; - __u = __extension__ ((void *) __u + 2); - __u->__uc = '\0'; - break; - case 4: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 3); - break; - case 5: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__uc = '\0'; - break; - case 6: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - __u = __extension__ ((void *) __u + 1); - break; - case 7: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__usi = __src4_2; - __u = __extension__ ((void *) __u + 2); - __u->__uc = '\0'; - break; - case 8: - __u->__ui = __src0_4; - __u = __extension__ ((void *) __u + 4); - __u->__ui = __src4_4; - __u = __extension__ ((void *) __u + 3); - break; - } - return &__u->__c; -} -# else -# ifndef _FORCE_INLINES -# define __stpcpy_args(src) \ - __extension__ ((__STRING2_COPY_ARR2) \ - { { ((const char *) (src))[0], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR3) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR4) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR5) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR6) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR7) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - '\0' } }), \ - __extension__ ((__STRING2_COPY_ARR8) \ - { { ((const char *) (src))[0], ((const char *) (src))[1], \ - ((const char *) (src))[2], ((const char *) (src))[3], \ - ((const char *) (src))[4], ((const char *) (src))[5], \ - ((const char *) (src))[6], '\0' } }) -# endif -__STRING_INLINE char *__stpcpy_small (char *, __STRING2_COPY_ARR2, - __STRING2_COPY_ARR3, - __STRING2_COPY_ARR4, - __STRING2_COPY_ARR5, - __STRING2_COPY_ARR6, - __STRING2_COPY_ARR7, - __STRING2_COPY_ARR8, size_t); -__STRING_INLINE char * -__stpcpy_small (char *__dest, - __STRING2_COPY_ARR2 __src2, __STRING2_COPY_ARR3 __src3, - __STRING2_COPY_ARR4 __src4, __STRING2_COPY_ARR5 __src5, - __STRING2_COPY_ARR6 __src6, __STRING2_COPY_ARR7 __src7, - __STRING2_COPY_ARR8 __src8, size_t __srclen) -{ - union { - char __c; - __STRING2_COPY_ARR2 __sca2; - __STRING2_COPY_ARR3 __sca3; - __STRING2_COPY_ARR4 __sca4; - __STRING2_COPY_ARR5 __sca5; - __STRING2_COPY_ARR6 __sca6; - __STRING2_COPY_ARR7 __sca7; - __STRING2_COPY_ARR8 __sca8; - } *__u = (void *) __dest; - switch ((unsigned int) __srclen) - { - case 1: - __u->__c = '\0'; - break; - case 2: - __extension__ __u->__sca2 = __src2; - break; - case 3: - __extension__ __u->__sca3 = __src3; - break; - case 4: - __extension__ __u->__sca4 = __src4; - break; - case 5: - __extension__ __u->__sca5 = __src5; - break; - case 6: - __extension__ __u->__sca6 = __src6; - break; - case 7: - __extension__ __u->__sca7 = __src7; - break; - case 8: - __extension__ __u->__sca8 = __src8; - break; - } - return __dest + __srclen - 1; -} -# endif -# endif -# endif -#endif - - -/* Copy no more than N characters of SRC to DEST. */ -#ifndef _HAVE_STRING_ARCH_strncpy -# if __GNUC_PREREQ (3, 2) -# define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) -# else -# define strncpy(dest, src, n) \ - (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \ - ? (strlen (src) + 1 >= ((size_t) (n)) \ - ? (char *) memcpy (dest, src, n) \ - : strncpy (dest, src, n)) \ - : strncpy (dest, src, n))) -# endif -#endif - - -/* Append no more than N characters from SRC onto DEST. */ -#ifndef _HAVE_STRING_ARCH_strncat -# ifdef _USE_STRING_ARCH_strchr -# define strncat(dest, src, n) \ - (__extension__ ({ char *__dest = (dest); \ - __builtin_constant_p (src) && __builtin_constant_p (n) \ - ? (strlen (src) < ((size_t) (n)) \ - ? strcat (__dest, src) \ - : (*((char *) __mempcpy (strchr (__dest, '\0'), \ - src, n)) = '\0', __dest)) \ - : strncat (dest, src, n); })) -# elif __GNUC_PREREQ (3, 2) -# define strncat(dest, src, n) __builtin_strncat (dest, src, n) -# else -# define strncat(dest, src, n) \ - (__extension__ (__builtin_constant_p (src) && __builtin_constant_p (n) \ - ? (strlen (src) < ((size_t) (n)) \ - ? strcat (dest, src) \ - : strncat (dest, src, n)) \ - : strncat (dest, src, n))) -# endif -#endif - - -/* Compare characters of S1 and S2. */ -#ifndef _HAVE_STRING_ARCH_strcmp -# if __GNUC_PREREQ (3, 2) -# define strcmp(s1, s2) \ - __extension__ \ - ({ size_t __s1_len, __s2_len; \ - (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ - && (__s1_len = strlen (s1), __s2_len = strlen (s2), \ - (!__string2_1bptr_p (s1) || __s1_len >= 4) \ - && (!__string2_1bptr_p (s2) || __s2_len >= 4)) \ - ? __builtin_strcmp (s1, s2) \ - : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ - && (__s1_len = strlen (s1), __s1_len < 4) \ - ? (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ - ? __builtin_strcmp (s1, s2) \ - : __strcmp_cg (s1, s2, __s1_len)) \ - : (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ - && (__s2_len = strlen (s2), __s2_len < 4) \ - ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ - ? __builtin_strcmp (s1, s2) \ - : __strcmp_gc (s1, s2, __s2_len)) \ - : __builtin_strcmp (s1, s2)))); }) -# else -# define strcmp(s1, s2) \ - __extension__ \ - ({ size_t __s1_len, __s2_len; \ - (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ - && (__s1_len = strlen (s1), __s2_len = strlen (s2), \ - (!__string2_1bptr_p (s1) || __s1_len >= 4) \ - && (!__string2_1bptr_p (s2) || __s2_len >= 4)) \ - ? memcmp ((const char *) (s1), (const char *) (s2), \ - (__s1_len < __s2_len ? __s1_len : __s2_len) + 1) \ - : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ - && (__s1_len = strlen (s1), __s1_len < 4) \ - ? (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ - ? __strcmp_cc (s1, s2, __s1_len) \ - : __strcmp_cg (s1, s2, __s1_len)) \ - : (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ - && (__s2_len = strlen (s2), __s2_len < 4) \ - ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ - ? __strcmp_cc (s1, s2, __s2_len) \ - : __strcmp_gc (s1, s2, __s2_len)) \ - : strcmp (s1, s2)))); }) -# endif - -# define __strcmp_cc(s1, s2, l) \ - (__extension__ ({ int __result = \ - (((const unsigned char *) (const char *) (s1))[0] \ - - ((const unsigned char *) (const char *)(s2))[0]); \ - if (l > 0 && __result == 0) \ - { \ - __result = (((const unsigned char *) \ - (const char *) (s1))[1] \ - - ((const unsigned char *) \ - (const char *) (s2))[1]); \ - if (l > 1 && __result == 0) \ - { \ - __result = \ - (((const unsigned char *) \ - (const char *) (s1))[2] \ - - ((const unsigned char *) \ - (const char *) (s2))[2]); \ - if (l > 2 && __result == 0) \ - __result = \ - (((const unsigned char *) \ - (const char *) (s1))[3] \ - - ((const unsigned char *) \ - (const char *) (s2))[3]); \ - } \ - } \ - __result; })) - -# define __strcmp_cg(s1, s2, l1) \ - (__extension__ ({ const unsigned char *__s2 = \ - (const unsigned char *) (const char *) (s2); \ - int __result = \ - (((const unsigned char *) (const char *) (s1))[0] \ - - __s2[0]); \ - if (l1 > 0 && __result == 0) \ - { \ - __result = (((const unsigned char *) \ - (const char *) (s1))[1] - __s2[1]); \ - if (l1 > 1 && __result == 0) \ - { \ - __result = (((const unsigned char *) \ - (const char *) (s1))[2] - __s2[2]); \ - if (l1 > 2 && __result == 0) \ - __result = (((const unsigned char *) \ - (const char *) (s1))[3] \ - - __s2[3]); \ - } \ - } \ - __result; })) - -# define __strcmp_gc(s1, s2, l2) (- __strcmp_cg (s2, s1, l2)) -#endif - - -/* Compare N characters of S1 and S2. */ -#ifndef _HAVE_STRING_ARCH_strncmp -# define strncmp(s1, s2, n) \ - (__extension__ (__builtin_constant_p (n) \ - && ((__builtin_constant_p (s1) \ - && strlen (s1) < ((size_t) (n))) \ - || (__builtin_constant_p (s2) \ - && strlen (s2) < ((size_t) (n)))) \ - ? strcmp (s1, s2) : strncmp (s1, s2, n))) -#endif - - -/* Return the length of the initial segment of S which - consists entirely of characters not in REJECT. */ -#if !defined _HAVE_STRING_ARCH_strcspn || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_strcspn -# if __GNUC_PREREQ (3, 2) -# define strcspn(s, reject) \ - __extension__ \ - ({ char __r0, __r1, __r2; \ - (__builtin_constant_p (reject) && __string2_1bptr_p (reject) \ - ? ((__builtin_constant_p (s) && __string2_1bptr_p (s)) \ - ? __builtin_strcspn (s, reject) \ - : ((__r0 = ((const char *) (reject))[0], __r0 == '\0') \ - ? strlen (s) \ - : ((__r1 = ((const char *) (reject))[1], __r1 == '\0') \ - ? __strcspn_c1 (s, __r0) \ - : ((__r2 = ((const char *) (reject))[2], __r2 == '\0') \ - ? __strcspn_c2 (s, __r0, __r1) \ - : (((const char *) (reject))[3] == '\0' \ - ? __strcspn_c3 (s, __r0, __r1, __r2) \ - : __builtin_strcspn (s, reject)))))) \ - : __builtin_strcspn (s, reject)); }) -# else -# define strcspn(s, reject) \ - __extension__ \ - ({ char __r0, __r1, __r2; \ - (__builtin_constant_p (reject) && __string2_1bptr_p (reject) \ - ? ((__r0 = ((const char *) (reject))[0], __r0 == '\0') \ - ? strlen (s) \ - : ((__r1 = ((const char *) (reject))[1], __r1 == '\0') \ - ? __strcspn_c1 (s, __r0) \ - : ((__r2 = ((const char *) (reject))[2], __r2 == '\0') \ - ? __strcspn_c2 (s, __r0, __r1) \ - : (((const char *) (reject))[3] == '\0' \ - ? __strcspn_c3 (s, __r0, __r1, __r2) \ - : strcspn (s, reject))))) \ - : strcspn (s, reject)); }) -# endif -# endif - -__STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject); -__STRING_INLINE size_t -__strcspn_c1 (const char *__s, int __reject) -{ - size_t __result = 0; - while (__s[__result] != '\0' && __s[__result] != __reject) - ++__result; - return __result; -} - -__STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1, - int __reject2); -__STRING_INLINE size_t -__strcspn_c2 (const char *__s, int __reject1, int __reject2) -{ - size_t __result = 0; - while (__s[__result] != '\0' && __s[__result] != __reject1 - && __s[__result] != __reject2) - ++__result; - return __result; -} - -__STRING_INLINE size_t __strcspn_c3 (const char *__s, int __reject1, - int __reject2, int __reject3); -__STRING_INLINE size_t -__strcspn_c3 (const char *__s, int __reject1, int __reject2, - int __reject3) -{ - size_t __result = 0; - while (__s[__result] != '\0' && __s[__result] != __reject1 - && __s[__result] != __reject2 && __s[__result] != __reject3) - ++__result; - return __result; -} -#endif - - -/* Return the length of the initial segment of S which - consists entirely of characters in ACCEPT. */ -#if !defined _HAVE_STRING_ARCH_strspn || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_strspn -# if __GNUC_PREREQ (3, 2) -# define strspn(s, accept) \ - __extension__ \ - ({ char __a0, __a1, __a2; \ - (__builtin_constant_p (accept) && __string2_1bptr_p (accept) \ - ? ((__builtin_constant_p (s) && __string2_1bptr_p (s)) \ - ? __builtin_strspn (s, accept) \ - : ((__a0 = ((const char *) (accept))[0], __a0 == '\0') \ - ? ((void) (s), (size_t) 0) \ - : ((__a1 = ((const char *) (accept))[1], __a1 == '\0') \ - ? __strspn_c1 (s, __a0) \ - : ((__a2 = ((const char *) (accept))[2], __a2 == '\0') \ - ? __strspn_c2 (s, __a0, __a1) \ - : (((const char *) (accept))[3] == '\0' \ - ? __strspn_c3 (s, __a0, __a1, __a2) \ - : __builtin_strspn (s, accept)))))) \ - : __builtin_strspn (s, accept)); }) -# else -# define strspn(s, accept) \ - __extension__ \ - ({ char __a0, __a1, __a2; \ - (__builtin_constant_p (accept) && __string2_1bptr_p (accept) \ - ? ((__a0 = ((const char *) (accept))[0], __a0 == '\0') \ - ? ((void) (s), (size_t) 0) \ - : ((__a1 = ((const char *) (accept))[1], __a1 == '\0') \ - ? __strspn_c1 (s, __a0) \ - : ((__a2 = ((const char *) (accept))[2], __a2 == '\0') \ - ? __strspn_c2 (s, __a0, __a1) \ - : (((const char *) (accept))[3] == '\0' \ - ? __strspn_c3 (s, __a0, __a1, __a2) \ - : strspn (s, accept))))) \ - : strspn (s, accept)); }) -# endif -# endif - -__STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept); -__STRING_INLINE size_t -__strspn_c1 (const char *__s, int __accept) -{ - size_t __result = 0; - /* Please note that __accept never can be '\0'. */ - while (__s[__result] == __accept) - ++__result; - return __result; -} - -__STRING_INLINE size_t __strspn_c2 (const char *__s, int __accept1, - int __accept2); -__STRING_INLINE size_t -__strspn_c2 (const char *__s, int __accept1, int __accept2) -{ - size_t __result = 0; - /* Please note that __accept1 and __accept2 never can be '\0'. */ - while (__s[__result] == __accept1 || __s[__result] == __accept2) - ++__result; - return __result; -} - -__STRING_INLINE size_t __strspn_c3 (const char *__s, int __accept1, - int __accept2, int __accept3); -__STRING_INLINE size_t -__strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3) -{ - size_t __result = 0; - /* Please note that __accept1 to __accept3 never can be '\0'. */ - while (__s[__result] == __accept1 || __s[__result] == __accept2 - || __s[__result] == __accept3) - ++__result; - return __result; -} -#endif - - -/* Find the first occurrence in S of any character in ACCEPT. */ -#if !defined _HAVE_STRING_ARCH_strpbrk || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_strpbrk -# if __GNUC_PREREQ (3, 2) -# define strpbrk(s, accept) \ - __extension__ \ - ({ char __a0, __a1, __a2; \ - (__builtin_constant_p (accept) && __string2_1bptr_p (accept) \ - ? ((__builtin_constant_p (s) && __string2_1bptr_p (s)) \ - ? __builtin_strpbrk (s, accept) \ - : ((__a0 = ((const char *) (accept))[0], __a0 == '\0') \ - ? ((void) (s), (char *) NULL) \ - : ((__a1 = ((const char *) (accept))[1], __a1 == '\0') \ - ? __builtin_strchr (s, __a0) \ - : ((__a2 = ((const char *) (accept))[2], __a2 == '\0') \ - ? __strpbrk_c2 (s, __a0, __a1) \ - : (((const char *) (accept))[3] == '\0' \ - ? __strpbrk_c3 (s, __a0, __a1, __a2) \ - : __builtin_strpbrk (s, accept)))))) \ - : __builtin_strpbrk (s, accept)); }) -# else -# define strpbrk(s, accept) \ - __extension__ \ - ({ char __a0, __a1, __a2; \ - (__builtin_constant_p (accept) && __string2_1bptr_p (accept) \ - ? ((__a0 = ((const char *) (accept))[0], __a0 == '\0') \ - ? ((void) (s), (char *) NULL) \ - : ((__a1 = ((const char *) (accept))[1], __a1 == '\0') \ - ? strchr (s, __a0) \ - : ((__a2 = ((const char *) (accept))[2], __a2 == '\0') \ - ? __strpbrk_c2 (s, __a0, __a1) \ - : (((const char *) (accept))[3] == '\0' \ - ? __strpbrk_c3 (s, __a0, __a1, __a2) \ - : strpbrk (s, accept))))) \ - : strpbrk (s, accept)); }) -# endif -# endif - -__STRING_INLINE char *__strpbrk_c2 (const char *__s, int __accept1, - int __accept2); -__STRING_INLINE char * -__strpbrk_c2 (const char *__s, int __accept1, int __accept2) -{ - /* Please note that __accept1 and __accept2 never can be '\0'. */ - while (*__s != '\0' && *__s != __accept1 && *__s != __accept2) - ++__s; - return *__s == '\0' ? NULL : (char *) (size_t) __s; -} - -__STRING_INLINE char *__strpbrk_c3 (const char *__s, int __accept1, - int __accept2, int __accept3); -__STRING_INLINE char * -__strpbrk_c3 (const char *__s, int __accept1, int __accept2, int __accept3) -{ - /* Please note that __accept1 to __accept3 never can be '\0'. */ - while (*__s != '\0' && *__s != __accept1 && *__s != __accept2 - && *__s != __accept3) - ++__s; - return *__s == '\0' ? NULL : (char *) (size_t) __s; -} -#endif - - -/* Find the first occurrence of NEEDLE in HAYSTACK. Newer gcc versions - do this itself. */ -#if !defined _HAVE_STRING_ARCH_strstr && !__GNUC_PREREQ (2, 97) -# define strstr(haystack, needle) \ - (__extension__ (__builtin_constant_p (needle) && __string2_1bptr_p (needle) \ - ? (((const char *) (needle))[0] == '\0' \ - ? (char *) (size_t) (haystack) \ - : (((const char *) (needle))[1] == '\0' \ - ? strchr (haystack, \ - ((const char *) (needle))[0]) \ - : strstr (haystack, needle))) \ - : strstr (haystack, needle))) -#endif - - -#if !defined _HAVE_STRING_ARCH_strtok_r || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_strtok_r -# define __strtok_r(s, sep, nextp) \ - (__extension__ (__builtin_constant_p (sep) && __string2_1bptr_p (sep) \ - && ((const char *) (sep))[0] != '\0' \ - && ((const char *) (sep))[1] == '\0' \ - ? __strtok_r_1c (s, ((const char *) (sep))[0], nextp) \ - : __strtok_r (s, sep, nextp))) -# endif - -__STRING_INLINE char *__strtok_r_1c (char *__s, char __sep, char **__nextp); -__STRING_INLINE char * -__strtok_r_1c (char *__s, char __sep, char **__nextp) -{ - char *__result; - if (__s == NULL) - __s = *__nextp; - while (*__s == __sep) - ++__s; - __result = NULL; - if (*__s != '\0') - { - __result = __s++; - while (*__s != '\0') - if (*__s++ == __sep) - { - __s[-1] = '\0'; - break; - } - } - *__nextp = __s; - return __result; -} -# ifdef __USE_POSIX -# define strtok_r(s, sep, nextp) __strtok_r (s, sep, nextp) -# endif -#endif - - -#if !defined _HAVE_STRING_ARCH_strsep || defined _FORCE_INLINES -# ifndef _HAVE_STRING_ARCH_strsep - -extern char *__strsep_g (char **__stringp, const char *__delim); -# define __strsep(s, reject) \ - __extension__ \ - ({ char __r0, __r1, __r2; \ - (__builtin_constant_p (reject) && __string2_1bptr_p (reject) \ - && (__r0 = ((const char *) (reject))[0], \ - ((const char *) (reject))[0] != '\0') \ - ? ((__r1 = ((const char *) (reject))[1], \ - ((const char *) (reject))[1] == '\0') \ - ? __strsep_1c (s, __r0) \ - : ((__r2 = ((const char *) (reject))[2], __r2 == '\0') \ - ? __strsep_2c (s, __r0, __r1) \ - : (((const char *) (reject))[3] == '\0' \ - ? __strsep_3c (s, __r0, __r1, __r2) \ - : __strsep_g (s, reject)))) \ - : __strsep_g (s, reject)); }) -# endif - -__STRING_INLINE char *__strsep_1c (char **__s, char __reject); -__STRING_INLINE char * -__strsep_1c (char **__s, char __reject) -{ - char *__retval = *__s; - if (__retval != NULL && (*__s = strchr (__retval, __reject)) != NULL) - *(*__s)++ = '\0'; - return __retval; -} - -__STRING_INLINE char *__strsep_2c (char **__s, char __reject1, char __reject2); -__STRING_INLINE char * -__strsep_2c (char **__s, char __reject1, char __reject2) -{ - char *__retval = *__s; - if (__retval != NULL) - { - char *__cp = __retval; - while (1) - { - if (*__cp == '\0') - { - __cp = NULL; - break; - } - if (*__cp == __reject1 || *__cp == __reject2) - { - *__cp++ = '\0'; - break; - } - ++__cp; - } - *__s = __cp; - } - return __retval; -} - -__STRING_INLINE char *__strsep_3c (char **__s, char __reject1, char __reject2, - char __reject3); -__STRING_INLINE char * -__strsep_3c (char **__s, char __reject1, char __reject2, char __reject3) -{ - char *__retval = *__s; - if (__retval != NULL) - { - char *__cp = __retval; - while (1) - { - if (*__cp == '\0') - { - __cp = NULL; - break; - } - if (*__cp == __reject1 || *__cp == __reject2 || *__cp == __reject3) - { - *__cp++ = '\0'; - break; - } - ++__cp; - } - *__s = __cp; - } - return __retval; -} -# ifdef __USE_MISC -# define strsep(s, reject) __strsep (s, reject) -# endif -#endif - -/* We need the memory allocation functions for inline strdup(). - Referring to stdlib.h (even minimally) is not allowed - in any of the tight standards compliant modes. */ -#ifdef __USE_MISC - -# if !defined _HAVE_STRING_ARCH_strdup || !defined _HAVE_STRING_ARCH_strndup -# define __need_malloc_and_calloc -# include -# endif - -# ifndef _HAVE_STRING_ARCH_strdup - -extern char *__strdup (const char *__string) __THROW __attribute_malloc__; -# define __strdup(s) \ - (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \ - ? (((const char *) (s))[0] == '\0' \ - ? (char *) calloc ((size_t) 1, (size_t) 1) \ - : ({ size_t __len = strlen (s) + 1; \ - char *__retval = (char *) malloc (__len); \ - if (__retval != NULL) \ - __retval = (char *) memcpy (__retval, s, __len); \ - __retval; })) \ - : __strdup (s))) - -# if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -# define strdup(s) __strdup (s) -# endif -# endif - -# ifndef _HAVE_STRING_ARCH_strndup - -extern char *__strndup (const char *__string, size_t __n) - __THROW __attribute_malloc__; -# define __strndup(s, n) \ - (__extension__ (__builtin_constant_p (s) && __string2_1bptr_p (s) \ - ? (((const char *) (s))[0] == '\0' \ - ? (char *) calloc ((size_t) 1, (size_t) 1) \ - : ({ size_t __len = strlen (s) + 1; \ - size_t __n = (n); \ - char *__retval; \ - if (__n < __len) \ - __len = __n + 1; \ - __retval = (char *) malloc (__len); \ - if (__retval != NULL) \ - { \ - __retval[__len - 1] = '\0'; \ - __retval = (char *) memcpy (__retval, s, \ - __len - 1); \ - } \ - __retval; })) \ - : __strndup (s, n))) - -# ifdef __USE_XOPEN2K8 -# define strndup(s, n) __strndup (s, n) -# endif -# endif - -#endif /* Use misc. or use GNU. */ - -#ifndef _FORCE_INLINES -# undef __STRING_INLINE -#endif - -#endif /* No string inlines. */ diff --git a/libktorrent/miniboost/bits/string3.h b/libktorrent/miniboost/bits/string3.h deleted file mode 100644 index 76060903..00000000 --- a/libktorrent/miniboost/bits/string3.h +++ /dev/null @@ -1,151 +0,0 @@ -/* Copyright (C) 2004-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STRING_H -# error "Never use directly; include instead." -#endif - -__warndecl (__warn_memset_zero_len, - "memset used with constant zero length parameter; this could be due to transposed parameters"); - -#ifndef __cplusplus -/* XXX This is temporarily. We should not redefine any of the symbols - and instead integrate the error checking into the original - definitions. */ -# undef memcpy -# undef memmove -# undef memset -# undef strcat -# undef strcpy -# undef strncat -# undef strncpy -# ifdef __USE_GNU -# undef mempcpy -# undef stpcpy -# endif -# ifdef __USE_MISC -# undef bcopy -# undef bzero -# endif -#endif - - -__fortify_function void * -__NTH (memcpy (void *__restrict __dest, const void *__restrict __src, - size_t __len)) -{ - return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); -} - -__fortify_function void * -__NTH (memmove (void *__dest, const void *__src, size_t __len)) -{ - return __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); -} - -#ifdef __USE_GNU -__fortify_function void * -__NTH (mempcpy (void *__restrict __dest, const void *__restrict __src, - size_t __len)) -{ - return __builtin___mempcpy_chk (__dest, __src, __len, __bos0 (__dest)); -} -#endif - - -/* The first two tests here help to catch a somewhat common problem - where the second and third parameter are transposed. This is - especially problematic if the intended fill value is zero. In this - case no work is done at all. We detect these problems by referring - non-existing functions. */ -__fortify_function void * -__NTH (memset (void *__dest, int __ch, size_t __len)) -{ - if (__builtin_constant_p (__len) && __len == 0 - && (!__builtin_constant_p (__ch) || __ch != 0)) - { - __warn_memset_zero_len (); - return __dest; - } - return __builtin___memset_chk (__dest, __ch, __len, __bos0 (__dest)); -} - -#ifdef __USE_MISC -__fortify_function void -__NTH (bcopy (const void *__src, void *__dest, size_t __len)) -{ - (void) __builtin___memmove_chk (__dest, __src, __len, __bos0 (__dest)); -} - -__fortify_function void -__NTH (bzero (void *__dest, size_t __len)) -{ - (void) __builtin___memset_chk (__dest, '\0', __len, __bos0 (__dest)); -} -#endif - -__fortify_function char * -__NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) -{ - return __builtin___strcpy_chk (__dest, __src, __bos (__dest)); -} - -#ifdef __USE_GNU -__fortify_function char * -__NTH (stpcpy (char *__restrict __dest, const char *__restrict __src)) -{ - return __builtin___stpcpy_chk (__dest, __src, __bos (__dest)); -} -#endif - - -__fortify_function char * -__NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - size_t __len)) -{ - return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); -} - -// XXX We have no corresponding builtin yet. -extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n, - size_t __destlen) __THROW; -extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src, - size_t __n), stpncpy); - -__fortify_function char * -__NTH (stpncpy (char *__dest, const char *__src, size_t __n)) -{ - if (__bos (__dest) != (size_t) -1 - && (!__builtin_constant_p (__n) || __n <= __bos (__dest))) - return __stpncpy_chk (__dest, __src, __n, __bos (__dest)); - return __stpncpy_alias (__dest, __src, __n); -} - - -__fortify_function char * -__NTH (strcat (char *__restrict __dest, const char *__restrict __src)) -{ - return __builtin___strcat_chk (__dest, __src, __bos (__dest)); -} - - -__fortify_function char * -__NTH (strncat (char *__restrict __dest, const char *__restrict __src, - size_t __len)) -{ - return __builtin___strncat_chk (__dest, __src, __len, __bos (__dest)); -} diff --git a/libktorrent/miniboost/bits/sys_errlist.h b/libktorrent/miniboost/bits/sys_errlist.h deleted file mode 100644 index 4f4b9862..00000000 --- a/libktorrent/miniboost/bits/sys_errlist.h +++ /dev/null @@ -1,32 +0,0 @@ -/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version. - Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDIO_H -# error "Never include directly; use instead." -#endif - -/* sys_errlist and sys_nerr are deprecated. Use strerror instead. */ - -#ifdef __USE_MISC -extern int sys_nerr; -extern const char *const sys_errlist[]; -#endif -#ifdef __USE_GNU -extern int _sys_nerr; -extern const char *const _sys_errlist[]; -#endif diff --git a/libktorrent/miniboost/bits/time.h b/libktorrent/miniboost/bits/time.h deleted file mode 100644 index 10805475..00000000 --- a/libktorrent/miniboost/bits/time.h +++ /dev/null @@ -1,99 +0,0 @@ -/* System-dependent timing definitions. Linux version. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * Never include this file directly; use instead. - */ - -#if defined __need_timeval || defined __USE_GNU -# ifndef _STRUCT_TIMEVAL -# define _STRUCT_TIMEVAL 1 -# include - -/* A time value that is accurate to the nearest - microsecond but also has a range of years. */ -struct timeval - { - __time_t tv_sec; /* Seconds. */ - __suseconds_t tv_usec; /* Microseconds. */ - }; -# endif /* struct timeval */ -#endif - -#ifndef __need_timeval -# ifndef _BITS_TIME_H -# define _BITS_TIME_H 1 - -/* ISO/IEC 9899:1990 7.12.1: - The macro `CLOCKS_PER_SEC' is the number per second of the value - returned by the `clock' function. */ -/* CAE XSH, Issue 4, Version 2: - The value of CLOCKS_PER_SEC is required to be 1 million on all - XSI-conformant systems. */ -# define CLOCKS_PER_SEC 1000000l - -# if (!defined __STRICT_ANSI__ || defined __USE_POSIX) \ - && !defined __USE_XOPEN2K -/* Even though CLOCKS_PER_SEC has such a strange value CLK_TCK - presents the real value for clock ticks per second for the system. */ -# include -extern long int __sysconf (int); -# define CLK_TCK ((__clock_t) __sysconf (2)) /* 2 is _SC_CLK_TCK */ -# endif - -# ifdef __USE_POSIX199309 -/* Identifier for system-wide realtime clock. */ -# define CLOCK_REALTIME 0 -/* Monotonic system-wide clock. */ -# define CLOCK_MONOTONIC 1 -/* High-resolution timer from the CPU. */ -# define CLOCK_PROCESS_CPUTIME_ID 2 -/* Thread-specific CPU-time clock. */ -# define CLOCK_THREAD_CPUTIME_ID 3 -/* Monotonic system-wide clock, not adjusted for frequency scaling. */ -# define CLOCK_MONOTONIC_RAW 4 -/* Identifier for system-wide realtime clock, updated only on ticks. */ -# define CLOCK_REALTIME_COARSE 5 -/* Monotonic system-wide clock, updated only on ticks. */ -# define CLOCK_MONOTONIC_COARSE 6 -/* Monotonic system-wide clock that includes time spent in suspension. */ -# define CLOCK_BOOTTIME 7 -/* Like CLOCK_REALTIME but also wakes suspended system. */ -# define CLOCK_REALTIME_ALARM 8 -/* Like CLOCK_BOOTTIME but also wakes suspended system. */ -# define CLOCK_BOOTTIME_ALARM 9 - -/* Flag to indicate time is absolute. */ -# define TIMER_ABSTIME 1 -# endif - -# ifdef __USE_GNU -# include - -__BEGIN_DECLS - -/* Tune a POSIX clock. */ -extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) __THROW; - -__END_DECLS -# endif /* use GNU */ - -# endif /* bits/time.h */ -#endif - -#undef __need_timeval diff --git a/libktorrent/miniboost/bits/timex.h b/libktorrent/miniboost/bits/timex.h deleted file mode 100644 index ec5b4217..00000000 --- a/libktorrent/miniboost/bits/timex.h +++ /dev/null @@ -1,108 +0,0 @@ -/* Copyright (C) 1995-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_TIMEX_H -#define _BITS_TIMEX_H 1 - -#include - -/* These definitions from linux/timex.h as of 2.6.30. */ - -struct timex -{ - unsigned int modes; /* mode selector */ - __syscall_slong_t offset; /* time offset (usec) */ - __syscall_slong_t freq; /* frequency offset (scaled ppm) */ - __syscall_slong_t maxerror; /* maximum error (usec) */ - __syscall_slong_t esterror; /* estimated error (usec) */ - int status; /* clock command/status */ - __syscall_slong_t constant; /* pll time constant */ - __syscall_slong_t precision; /* clock precision (usec) (ro) */ - __syscall_slong_t tolerance; /* clock frequency tolerance (ppm) (ro) */ - struct timeval time; /* (read only) */ - __syscall_slong_t tick; /* (modified) usecs between clock ticks */ - __syscall_slong_t ppsfreq; /* pps frequency (scaled ppm) (ro) */ - __syscall_slong_t jitter; /* pps jitter (us) (ro) */ - int shift; /* interval duration (s) (shift) (ro) */ - __syscall_slong_t stabil; /* pps stability (scaled ppm) (ro) */ - __syscall_slong_t jitcnt; /* jitter limit exceeded (ro) */ - __syscall_slong_t calcnt; /* calibration intervals (ro) */ - __syscall_slong_t errcnt; /* calibration errors (ro) */ - __syscall_slong_t stbcnt; /* stability limit exceeded (ro) */ - - int tai; /* TAI offset (ro) */ - - /* ??? */ - int :32; int :32; int :32; int :32; - int :32; int :32; int :32; int :32; - int :32; int :32; int :32; -}; - -/* Mode codes (timex.mode) */ -#define ADJ_OFFSET 0x0001 /* time offset */ -#define ADJ_FREQUENCY 0x0002 /* frequency offset */ -#define ADJ_MAXERROR 0x0004 /* maximum time error */ -#define ADJ_ESTERROR 0x0008 /* estimated time error */ -#define ADJ_STATUS 0x0010 /* clock status */ -#define ADJ_TIMECONST 0x0020 /* pll time constant */ -#define ADJ_TAI 0x0080 /* set TAI offset */ -#define ADJ_MICRO 0x1000 /* select microsecond resolution */ -#define ADJ_NANO 0x2000 /* select nanosecond resolution */ -#define ADJ_TICK 0x4000 /* tick value */ -#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ -#define ADJ_OFFSET_SS_READ 0xa001 /* read-only adjtime */ - -/* xntp 3.4 compatibility names */ -#define MOD_OFFSET ADJ_OFFSET -#define MOD_FREQUENCY ADJ_FREQUENCY -#define MOD_MAXERROR ADJ_MAXERROR -#define MOD_ESTERROR ADJ_ESTERROR -#define MOD_STATUS ADJ_STATUS -#define MOD_TIMECONST ADJ_TIMECONST -#define MOD_CLKB ADJ_TICK -#define MOD_CLKA ADJ_OFFSET_SINGLESHOT /* 0x8000 in original */ -#define MOD_TAI ADJ_TAI -#define MOD_MICRO ADJ_MICRO -#define MOD_NANO ADJ_NANO - - -/* Status codes (timex.status) */ -#define STA_PLL 0x0001 /* enable PLL updates (rw) */ -#define STA_PPSFREQ 0x0002 /* enable PPS freq discipline (rw) */ -#define STA_PPSTIME 0x0004 /* enable PPS time discipline (rw) */ -#define STA_FLL 0x0008 /* select frequency-lock mode (rw) */ - -#define STA_INS 0x0010 /* insert leap (rw) */ -#define STA_DEL 0x0020 /* delete leap (rw) */ -#define STA_UNSYNC 0x0040 /* clock unsynchronized (rw) */ -#define STA_FREQHOLD 0x0080 /* hold frequency (rw) */ - -#define STA_PPSSIGNAL 0x0100 /* PPS signal present (ro) */ -#define STA_PPSJITTER 0x0200 /* PPS signal jitter exceeded (ro) */ -#define STA_PPSWANDER 0x0400 /* PPS signal wander exceeded (ro) */ -#define STA_PPSERROR 0x0800 /* PPS signal calibration error (ro) */ - -#define STA_CLOCKERR 0x1000 /* clock hardware fault (ro) */ -#define STA_NANO 0x2000 /* resolution (0 = us, 1 = ns) (ro) */ -#define STA_MODE 0x4000 /* mode (0 = PLL, 1 = FLL) (ro) */ -#define STA_CLK 0x8000 /* clock source (0 = A, 1 = B) (ro) */ - -/* Read-only bits */ -#define STA_RONLY (STA_PPSSIGNAL | STA_PPSJITTER | STA_PPSWANDER | \ - STA_PPSERROR | STA_CLOCKERR | STA_NANO | STA_MODE | STA_CLK) - -#endif /* bits/timex.h */ diff --git a/libktorrent/miniboost/bits/types.h b/libktorrent/miniboost/bits/types.h deleted file mode 100644 index 02e1220b..00000000 --- a/libktorrent/miniboost/bits/types.h +++ /dev/null @@ -1,194 +0,0 @@ -/* bits/types.h -- definitions of __*_t types underlying *_t types. - Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * Never include this file directly; use instead. - */ - -#ifndef _BITS_TYPES_H -#define _BITS_TYPES_H 1 - -#include -#include - -/* Convenience types. */ -typedef unsigned char __u_char; -typedef unsigned short int __u_short; -typedef unsigned int __u_int; -typedef unsigned long int __u_long; - -/* Fixed-size types, underlying types depend on word size and compiler. */ -typedef signed char __int8_t; -typedef unsigned char __uint8_t; -typedef signed short int __int16_t; -typedef unsigned short int __uint16_t; -typedef signed int __int32_t; -typedef unsigned int __uint32_t; -#if __WORDSIZE == 64 -typedef signed long int __int64_t; -typedef unsigned long int __uint64_t; -#else -__extension__ typedef signed long long int __int64_t; -__extension__ typedef unsigned long long int __uint64_t; -#endif - -/* quad_t is also 64 bits. */ -#if __WORDSIZE == 64 -typedef long int __quad_t; -typedef unsigned long int __u_quad_t; -#else -__extension__ typedef long long int __quad_t; -__extension__ typedef unsigned long long int __u_quad_t; -#endif - - -/* The machine-dependent file defines __*_T_TYPE - macros for each of the OS types we define below. The definitions - of those macros must use the following macros for underlying types. - We define __S_TYPE and __U_TYPE for the signed and unsigned - variants of each of the following integer types on this machine. - - 16 -- "natural" 16-bit type (always short) - 32 -- "natural" 32-bit type (always int) - 64 -- "natural" 64-bit type (long or long long) - LONG32 -- 32-bit type, traditionally long - QUAD -- 64-bit type, always long long - WORD -- natural type of __WORDSIZE bits (int or long) - LONGWORD -- type of __WORDSIZE bits, traditionally long - - We distinguish WORD/LONGWORD, 32/LONG32, and 64/QUAD so that the - conventional uses of `long' or `long long' type modifiers match the - types we define, even when a less-adorned type would be the same size. - This matters for (somewhat) portably writing printf/scanf formats for - these types, where using the appropriate l or ll format modifiers can - make the typedefs and the formats match up across all GNU platforms. If - we used `long' when it's 64 bits where `long long' is expected, then the - compiler would warn about the formats not matching the argument types, - and the programmer changing them to shut up the compiler would break the - program's portability. - - Here we assume what is presently the case in all the GCC configurations - we support: long long is always 64 bits, long is always word/address size, - and int is always 32 bits. */ - -#define __S16_TYPE short int -#define __U16_TYPE unsigned short int -#define __S32_TYPE int -#define __U32_TYPE unsigned int -#define __SLONGWORD_TYPE long int -#define __ULONGWORD_TYPE unsigned long int -#if __WORDSIZE == 32 -# define __SQUAD_TYPE __quad_t -# define __UQUAD_TYPE __u_quad_t -# define __SWORD_TYPE int -# define __UWORD_TYPE unsigned int -# define __SLONG32_TYPE long int -# define __ULONG32_TYPE unsigned long int -# define __S64_TYPE __quad_t -# define __U64_TYPE __u_quad_t -/* We want __extension__ before typedef's that use nonstandard base types - such as `long long' in C89 mode. */ -# define __STD_TYPE __extension__ typedef -#elif __WORDSIZE == 64 -# define __SQUAD_TYPE long int -# define __UQUAD_TYPE unsigned long int -# define __SWORD_TYPE long int -# define __UWORD_TYPE unsigned long int -# define __SLONG32_TYPE int -# define __ULONG32_TYPE unsigned int -# define __S64_TYPE long int -# define __U64_TYPE unsigned long int -/* No need to mark the typedef with __extension__. */ -# define __STD_TYPE typedef -#else -# error -#endif -#include /* Defines __*_T_TYPE macros. */ - - -__STD_TYPE __DEV_T_TYPE __dev_t; /* Type of device numbers. */ -__STD_TYPE __UID_T_TYPE __uid_t; /* Type of user identifications. */ -__STD_TYPE __GID_T_TYPE __gid_t; /* Type of group identifications. */ -__STD_TYPE __INO_T_TYPE __ino_t; /* Type of file serial numbers. */ -__STD_TYPE __INO64_T_TYPE __ino64_t; /* Type of file serial numbers (LFS).*/ -__STD_TYPE __MODE_T_TYPE __mode_t; /* Type of file attribute bitmasks. */ -__STD_TYPE __NLINK_T_TYPE __nlink_t; /* Type of file link counts. */ -__STD_TYPE __OFF_T_TYPE __off_t; /* Type of file sizes and offsets. */ -__STD_TYPE __OFF64_T_TYPE __off64_t; /* Type of file sizes and offsets (LFS). */ -__STD_TYPE __PID_T_TYPE __pid_t; /* Type of process identifications. */ -__STD_TYPE __FSID_T_TYPE __fsid_t; /* Type of file system IDs. */ -__STD_TYPE __CLOCK_T_TYPE __clock_t; /* Type of CPU usage counts. */ -__STD_TYPE __RLIM_T_TYPE __rlim_t; /* Type for resource measurement. */ -__STD_TYPE __RLIM64_T_TYPE __rlim64_t; /* Type for resource measurement (LFS). */ -__STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */ -__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */ -__STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */ -__STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */ - -__STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */ -__STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */ - -/* Clock ID used in clock and timer functions. */ -__STD_TYPE __CLOCKID_T_TYPE __clockid_t; - -/* Timer ID returned by `timer_create'. */ -__STD_TYPE __TIMER_T_TYPE __timer_t; - -/* Type to represent block size. */ -__STD_TYPE __BLKSIZE_T_TYPE __blksize_t; - -/* Types from the Large File Support interface. */ - -/* Type to count number of disk blocks. */ -__STD_TYPE __BLKCNT_T_TYPE __blkcnt_t; -__STD_TYPE __BLKCNT64_T_TYPE __blkcnt64_t; - -/* Type to count file system blocks. */ -__STD_TYPE __FSBLKCNT_T_TYPE __fsblkcnt_t; -__STD_TYPE __FSBLKCNT64_T_TYPE __fsblkcnt64_t; - -/* Type to count file system nodes. */ -__STD_TYPE __FSFILCNT_T_TYPE __fsfilcnt_t; -__STD_TYPE __FSFILCNT64_T_TYPE __fsfilcnt64_t; - -/* Type of miscellaneous file system fields. */ -__STD_TYPE __FSWORD_T_TYPE __fsword_t; - -__STD_TYPE __SSIZE_T_TYPE __ssize_t; /* Type of a byte count, or error. */ - -/* Signed long type used in system calls. */ -__STD_TYPE __SYSCALL_SLONG_TYPE __syscall_slong_t; -/* Unsigned long type used in system calls. */ -__STD_TYPE __SYSCALL_ULONG_TYPE __syscall_ulong_t; - -/* These few don't really vary by system, they always correspond - to one of the other defined types. */ -typedef __off64_t __loff_t; /* Type of file sizes and offsets (LFS). */ -typedef __quad_t *__qaddr_t; -typedef char *__caddr_t; - -/* Duplicates info from stdint.h but this is used in unistd.h. */ -__STD_TYPE __SWORD_TYPE __intptr_t; - -/* Duplicate info from sys/socket.h. */ -__STD_TYPE __U32_TYPE __socklen_t; - - -#undef __STD_TYPE - -#endif /* bits/types.h */ diff --git a/libktorrent/miniboost/bits/typesizes.h b/libktorrent/miniboost/bits/typesizes.h deleted file mode 100644 index 2e0984c8..00000000 --- a/libktorrent/miniboost/bits/typesizes.h +++ /dev/null @@ -1,89 +0,0 @@ -/* bits/typesizes.h -- underlying types for *_t. Linux/x86-64 version. - Copyright (C) 2012-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_TYPES_H -# error "Never include directly; use instead." -#endif - -#ifndef _BITS_TYPESIZES_H -#define _BITS_TYPESIZES_H 1 - -/* See for the meaning of these macros. This file exists so - that need not vary across different GNU platforms. */ - -/* X32 kernel interface is 64-bit. */ -#if defined __x86_64__ && defined __ILP32__ -# define __SYSCALL_SLONG_TYPE __SQUAD_TYPE -# define __SYSCALL_ULONG_TYPE __UQUAD_TYPE -#else -# define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE -# define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE -#endif - -#define __DEV_T_TYPE __UQUAD_TYPE -#define __UID_T_TYPE __U32_TYPE -#define __GID_T_TYPE __U32_TYPE -#define __INO_T_TYPE __SYSCALL_ULONG_TYPE -#define __INO64_T_TYPE __UQUAD_TYPE -#define __MODE_T_TYPE __U32_TYPE -#ifdef __x86_64__ -# define __NLINK_T_TYPE __SYSCALL_ULONG_TYPE -# define __FSWORD_T_TYPE __SYSCALL_SLONG_TYPE -#else -# define __NLINK_T_TYPE __UWORD_TYPE -# define __FSWORD_T_TYPE __SWORD_TYPE -#endif -#define __OFF_T_TYPE __SYSCALL_SLONG_TYPE -#define __OFF64_T_TYPE __SQUAD_TYPE -#define __PID_T_TYPE __S32_TYPE -#define __RLIM_T_TYPE __SYSCALL_ULONG_TYPE -#define __RLIM64_T_TYPE __UQUAD_TYPE -#define __BLKCNT_T_TYPE __SYSCALL_SLONG_TYPE -#define __BLKCNT64_T_TYPE __SQUAD_TYPE -#define __FSBLKCNT_T_TYPE __SYSCALL_ULONG_TYPE -#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE -#define __FSFILCNT_T_TYPE __SYSCALL_ULONG_TYPE -#define __FSFILCNT64_T_TYPE __UQUAD_TYPE -#define __ID_T_TYPE __U32_TYPE -#define __CLOCK_T_TYPE __SYSCALL_SLONG_TYPE -#define __TIME_T_TYPE __SYSCALL_SLONG_TYPE -#define __USECONDS_T_TYPE __U32_TYPE -#define __SUSECONDS_T_TYPE __SYSCALL_SLONG_TYPE -#define __DADDR_T_TYPE __S32_TYPE -#define __KEY_T_TYPE __S32_TYPE -#define __CLOCKID_T_TYPE __S32_TYPE -#define __TIMER_T_TYPE void * -#define __BLKSIZE_T_TYPE __SYSCALL_SLONG_TYPE -#define __FSID_T_TYPE struct { int __val[2]; } -#define __SSIZE_T_TYPE __SWORD_TYPE - -#ifdef __x86_64__ -/* Tell the libc code that off_t and off64_t are actually the same type - for all ABI purposes, even if possibly expressed as different base types - for C type-checking purposes. */ -# define __OFF_T_MATCHES_OFF64_T 1 - -/* Same for ino_t and ino64_t. */ -# define __INO_T_MATCHES_INO64_T 1 -#endif - -/* Number of descriptors that can fit in an `fd_set'. */ -#define __FD_SETSIZE 1024 - - -#endif /* bits/typesizes.h */ diff --git a/libktorrent/miniboost/bits/unistd.h b/libktorrent/miniboost/bits/unistd.h deleted file mode 100644 index 41cf7280..00000000 --- a/libktorrent/miniboost/bits/unistd.h +++ /dev/null @@ -1,385 +0,0 @@ -/* Checking macros for unistd functions. - Copyright (C) 2005-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _UNISTD_H -# error "Never include directly; use instead." -#endif - -extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes, - size_t __buflen) __wur; -extern ssize_t __REDIRECT (__read_alias, (int __fd, void *__buf, - size_t __nbytes), read) __wur; -extern ssize_t __REDIRECT (__read_chk_warn, - (int __fd, void *__buf, size_t __nbytes, - size_t __buflen), __read_chk) - __wur __warnattr ("read called with bigger length than size of " - "the destination buffer"); - -__fortify_function __wur ssize_t -read (int __fd, void *__buf, size_t __nbytes) -{ - if (__bos0 (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__nbytes)) - return __read_chk (__fd, __buf, __nbytes, __bos0 (__buf)); - - if (__nbytes > __bos0 (__buf)) - return __read_chk_warn (__fd, __buf, __nbytes, __bos0 (__buf)); - } - return __read_alias (__fd, __buf, __nbytes); -} - -#ifdef __USE_UNIX98 -extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize) __wur; -extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize) __wur; -extern ssize_t __REDIRECT (__pread_alias, - (int __fd, void *__buf, size_t __nbytes, - __off_t __offset), pread) __wur; -extern ssize_t __REDIRECT (__pread64_alias, - (int __fd, void *__buf, size_t __nbytes, - __off64_t __offset), pread64) __wur; -extern ssize_t __REDIRECT (__pread_chk_warn, - (int __fd, void *__buf, size_t __nbytes, - __off_t __offset, size_t __bufsize), __pread_chk) - __wur __warnattr ("pread called with bigger length than size of " - "the destination buffer"); -extern ssize_t __REDIRECT (__pread64_chk_warn, - (int __fd, void *__buf, size_t __nbytes, - __off64_t __offset, size_t __bufsize), - __pread64_chk) - __wur __warnattr ("pread64 called with bigger length than size of " - "the destination buffer"); - -# ifndef __USE_FILE_OFFSET64 -__fortify_function __wur ssize_t -pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) -{ - if (__bos0 (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__nbytes)) - return __pread_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf)); - - if ( __nbytes > __bos0 (__buf)) - return __pread_chk_warn (__fd, __buf, __nbytes, __offset, - __bos0 (__buf)); - } - return __pread_alias (__fd, __buf, __nbytes, __offset); -} -# else -__fortify_function __wur ssize_t -pread (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) -{ - if (__bos0 (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__nbytes)) - return __pread64_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf)); - - if ( __nbytes > __bos0 (__buf)) - return __pread64_chk_warn (__fd, __buf, __nbytes, __offset, - __bos0 (__buf)); - } - - return __pread64_alias (__fd, __buf, __nbytes, __offset); -} -# endif - -# ifdef __USE_LARGEFILE64 -__fortify_function __wur ssize_t -pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) -{ - if (__bos0 (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__nbytes)) - return __pread64_chk (__fd, __buf, __nbytes, __offset, __bos0 (__buf)); - - if ( __nbytes > __bos0 (__buf)) - return __pread64_chk_warn (__fd, __buf, __nbytes, __offset, - __bos0 (__buf)); - } - - return __pread64_alias (__fd, __buf, __nbytes, __offset); -} -# endif -#endif - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K -extern ssize_t __readlink_chk (const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __THROW __nonnull ((1, 2)) __wur; -extern ssize_t __REDIRECT_NTH (__readlink_alias, - (const char *__restrict __path, - char *__restrict __buf, size_t __len), readlink) - __nonnull ((1, 2)) __wur; -extern ssize_t __REDIRECT_NTH (__readlink_chk_warn, - (const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen), __readlink_chk) - __nonnull ((1, 2)) __wur __warnattr ("readlink called with bigger length " - "than size of destination buffer"); - -__fortify_function __nonnull ((1, 2)) __wur ssize_t -__NTH (readlink (const char *__restrict __path, char *__restrict __buf, - size_t __len)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __readlink_chk (__path, __buf, __len, __bos (__buf)); - - if ( __len > __bos (__buf)) - return __readlink_chk_warn (__path, __buf, __len, __bos (__buf)); - } - return __readlink_alias (__path, __buf, __len); -} -#endif - -#ifdef __USE_ATFILE -extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen) - __THROW __nonnull ((2, 3)) __wur; -extern ssize_t __REDIRECT_NTH (__readlinkat_alias, - (int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len), - readlinkat) - __nonnull ((2, 3)) __wur; -extern ssize_t __REDIRECT_NTH (__readlinkat_chk_warn, - (int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len, - size_t __buflen), __readlinkat_chk) - __nonnull ((2, 3)) __wur __warnattr ("readlinkat called with bigger " - "length than size of destination " - "buffer"); - -__fortify_function __nonnull ((2, 3)) __wur ssize_t -__NTH (readlinkat (int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __readlinkat_chk (__fd, __path, __buf, __len, __bos (__buf)); - - if (__len > __bos (__buf)) - return __readlinkat_chk_warn (__fd, __path, __buf, __len, - __bos (__buf)); - } - return __readlinkat_alias (__fd, __path, __buf, __len); -} -#endif - -extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen) - __THROW __wur; -extern char *__REDIRECT_NTH (__getcwd_alias, - (char *__buf, size_t __size), getcwd) __wur; -extern char *__REDIRECT_NTH (__getcwd_chk_warn, - (char *__buf, size_t __size, size_t __buflen), - __getcwd_chk) - __wur __warnattr ("getcwd caller with bigger length than size of " - "destination buffer"); - -__fortify_function __wur char * -__NTH (getcwd (char *__buf, size_t __size)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__size)) - return __getcwd_chk (__buf, __size, __bos (__buf)); - - if (__size > __bos (__buf)) - return __getcwd_chk_warn (__buf, __size, __bos (__buf)); - } - return __getcwd_alias (__buf, __size); -} - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -extern char *__getwd_chk (char *__buf, size_t buflen) - __THROW __nonnull ((1)) __wur; -extern char *__REDIRECT_NTH (__getwd_warn, (char *__buf), getwd) - __nonnull ((1)) __wur __warnattr ("please use getcwd instead, as getwd " - "doesn't specify buffer size"); - -__fortify_function __nonnull ((1)) __attribute_deprecated__ __wur char * -__NTH (getwd (char *__buf)) -{ - if (__bos (__buf) != (size_t) -1) - return __getwd_chk (__buf, __bos (__buf)); - return __getwd_warn (__buf); -} -#endif - -extern size_t __confstr_chk (int __name, char *__buf, size_t __len, - size_t __buflen) __THROW; -extern size_t __REDIRECT_NTH (__confstr_alias, (int __name, char *__buf, - size_t __len), confstr); -extern size_t __REDIRECT_NTH (__confstr_chk_warn, - (int __name, char *__buf, size_t __len, - size_t __buflen), __confstr_chk) - __warnattr ("confstr called with bigger length than size of destination " - "buffer"); - -__fortify_function size_t -__NTH (confstr (int __name, char *__buf, size_t __len)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __confstr_chk (__name, __buf, __len, __bos (__buf)); - - if (__bos (__buf) < __len) - return __confstr_chk_warn (__name, __buf, __len, __bos (__buf)); - } - return __confstr_alias (__name, __buf, __len); -} - - -extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen) - __THROW __wur; -extern int __REDIRECT_NTH (__getgroups_alias, (int __size, __gid_t __list[]), - getgroups) __wur; -extern int __REDIRECT_NTH (__getgroups_chk_warn, - (int __size, __gid_t __list[], size_t __listlen), - __getgroups_chk) - __wur __warnattr ("getgroups called with bigger group count than what " - "can fit into destination buffer"); - -__fortify_function int -__NTH (getgroups (int __size, __gid_t __list[])) -{ - if (__bos (__list) != (size_t) -1) - { - if (!__builtin_constant_p (__size) || __size < 0) - return __getgroups_chk (__size, __list, __bos (__list)); - - if (__size * sizeof (__gid_t) > __bos (__list)) - return __getgroups_chk_warn (__size, __list, __bos (__list)); - } - return __getgroups_alias (__size, __list); -} - - -extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen, - size_t __nreal) __THROW __nonnull ((2)); -extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf, - size_t __buflen), ttyname_r) - __nonnull ((2)); -extern int __REDIRECT_NTH (__ttyname_r_chk_warn, - (int __fd, char *__buf, size_t __buflen, - size_t __nreal), __ttyname_r_chk) - __nonnull ((2)) __warnattr ("ttyname_r called with bigger buflen than " - "size of destination buffer"); - -__fortify_function int -__NTH (ttyname_r (int __fd, char *__buf, size_t __buflen)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__buflen)) - return __ttyname_r_chk (__fd, __buf, __buflen, __bos (__buf)); - - if (__buflen > __bos (__buf)) - return __ttyname_r_chk_warn (__fd, __buf, __buflen, __bos (__buf)); - } - return __ttyname_r_alias (__fd, __buf, __buflen); -} - - -#if defined __USE_REENTRANT || defined __USE_POSIX199506 -extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal) - __nonnull ((1)); -extern int __REDIRECT (__getlogin_r_alias, (char *__buf, size_t __buflen), - getlogin_r) __nonnull ((1)); -extern int __REDIRECT (__getlogin_r_chk_warn, - (char *__buf, size_t __buflen, size_t __nreal), - __getlogin_r_chk) - __nonnull ((1)) __warnattr ("getlogin_r called with bigger buflen than " - "size of destination buffer"); - -__fortify_function int -getlogin_r (char *__buf, size_t __buflen) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__buflen)) - return __getlogin_r_chk (__buf, __buflen, __bos (__buf)); - - if (__buflen > __bos (__buf)) - return __getlogin_r_chk_warn (__buf, __buflen, __bos (__buf)); - } - return __getlogin_r_alias (__buf, __buflen); -} -#endif - - -#if defined __USE_MISC || defined __USE_UNIX98 -extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal) - __THROW __nonnull ((1)); -extern int __REDIRECT_NTH (__gethostname_alias, (char *__buf, size_t __buflen), - gethostname) __nonnull ((1)); -extern int __REDIRECT_NTH (__gethostname_chk_warn, - (char *__buf, size_t __buflen, size_t __nreal), - __gethostname_chk) - __nonnull ((1)) __warnattr ("gethostname called with bigger buflen than " - "size of destination buffer"); - -__fortify_function int -__NTH (gethostname (char *__buf, size_t __buflen)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__buflen)) - return __gethostname_chk (__buf, __buflen, __bos (__buf)); - - if (__buflen > __bos (__buf)) - return __gethostname_chk_warn (__buf, __buflen, __bos (__buf)); - } - return __gethostname_alias (__buf, __buflen); -} -#endif - - -#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_UNIX98) -extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal) - __THROW __nonnull ((1)) __wur; -extern int __REDIRECT_NTH (__getdomainname_alias, (char *__buf, - size_t __buflen), - getdomainname) __nonnull ((1)) __wur; -extern int __REDIRECT_NTH (__getdomainname_chk_warn, - (char *__buf, size_t __buflen, size_t __nreal), - __getdomainname_chk) - __nonnull ((1)) __wur __warnattr ("getdomainname called with bigger " - "buflen than size of destination " - "buffer"); - -__fortify_function int -__NTH (getdomainname (char *__buf, size_t __buflen)) -{ - if (__bos (__buf) != (size_t) -1) - { - if (!__builtin_constant_p (__buflen)) - return __getdomainname_chk (__buf, __buflen, __bos (__buf)); - - if (__buflen > __bos (__buf)) - return __getdomainname_chk_warn (__buf, __buflen, __bos (__buf)); - } - return __getdomainname_alias (__buf, __buflen); -} -#endif diff --git a/libktorrent/miniboost/bits/waitflags.h b/libktorrent/miniboost/bits/waitflags.h deleted file mode 100644 index 0f4e7b44..00000000 --- a/libktorrent/miniboost/bits/waitflags.h +++ /dev/null @@ -1,37 +0,0 @@ -/* Definitions of flag bits for `waitpid' et al. - Copyright (C) 1992-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#if !defined _SYS_WAIT_H && !defined _STDLIB_H -# error "Never include directly; use instead." -#endif - - -/* Bits in the third argument to `waitpid'. */ -#define WNOHANG 1 /* Don't block waiting. */ -#define WUNTRACED 2 /* Report status of stopped children. */ - -/* Bits in the fourth argument to `waitid'. */ -#define WSTOPPED 2 /* Report stopped child (same as WUNTRACED). */ -#define WEXITED 4 /* Report dead child. */ -#define WCONTINUED 8 /* Report continued child. */ -#define WNOWAIT 0x01000000 /* Don't reap, just poll status. */ - -#define __WNOTHREAD 0x20000000 /* Don't wait on children of other threads - in this group */ -#define __WALL 0x40000000 /* Wait for any child. */ -#define __WCLONE 0x80000000 /* Wait for cloned process. */ diff --git a/libktorrent/miniboost/bits/waitstatus.h b/libktorrent/miniboost/bits/waitstatus.h deleted file mode 100644 index 50875748..00000000 --- a/libktorrent/miniboost/bits/waitstatus.h +++ /dev/null @@ -1,105 +0,0 @@ -/* Definitions of status bits for `wait' et al. - Copyright (C) 1992-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#if !defined _SYS_WAIT_H && !defined _STDLIB_H -# error "Never include directly; use instead." -#endif - - -/* Everything extant so far uses these same bits. */ - - -/* If WIFEXITED(STATUS), the low-order 8 bits of the status. */ -#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8) - -/* If WIFSIGNALED(STATUS), the terminating signal. */ -#define __WTERMSIG(status) ((status) & 0x7f) - -/* If WIFSTOPPED(STATUS), the signal that stopped the child. */ -#define __WSTOPSIG(status) __WEXITSTATUS(status) - -/* Nonzero if STATUS indicates normal termination. */ -#define __WIFEXITED(status) (__WTERMSIG(status) == 0) - -/* Nonzero if STATUS indicates termination by a signal. */ -#define __WIFSIGNALED(status) \ - (((signed char) (((status) & 0x7f) + 1) >> 1) > 0) - -/* Nonzero if STATUS indicates the child is stopped. */ -#define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f) - -/* Nonzero if STATUS indicates the child continued after a stop. We only - define this if provides the WCONTINUED flag bit. */ -#ifdef WCONTINUED -# define __WIFCONTINUED(status) ((status) == __W_CONTINUED) -#endif - -/* Nonzero if STATUS indicates the child dumped core. */ -#define __WCOREDUMP(status) ((status) & __WCOREFLAG) - -/* Macros for constructing status values. */ -#define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig)) -#define __W_STOPCODE(sig) ((sig) << 8 | 0x7f) -#define __W_CONTINUED 0xffff -#define __WCOREFLAG 0x80 - - -#ifdef __USE_MISC - -# include - -union wait - { - int w_status; - struct - { -# if __BYTE_ORDER == __LITTLE_ENDIAN - unsigned int __w_termsig:7; /* Terminating signal. */ - unsigned int __w_coredump:1; /* Set if dumped core. */ - unsigned int __w_retcode:8; /* Return code if exited normally. */ - unsigned int:16; -# endif /* Little endian. */ -# if __BYTE_ORDER == __BIG_ENDIAN - unsigned int:16; - unsigned int __w_retcode:8; - unsigned int __w_coredump:1; - unsigned int __w_termsig:7; -# endif /* Big endian. */ - } __wait_terminated; - struct - { -# if __BYTE_ORDER == __LITTLE_ENDIAN - unsigned int __w_stopval:8; /* W_STOPPED if stopped. */ - unsigned int __w_stopsig:8; /* Stopping signal. */ - unsigned int:16; -# endif /* Little endian. */ -# if __BYTE_ORDER == __BIG_ENDIAN - unsigned int:16; - unsigned int __w_stopsig:8; /* Stopping signal. */ - unsigned int __w_stopval:8; /* W_STOPPED if stopped. */ -# endif /* Big endian. */ - } __wait_stopped; - }; - -# define w_termsig __wait_terminated.__w_termsig -# define w_coredump __wait_terminated.__w_coredump -# define w_retcode __wait_terminated.__w_retcode -# define w_stopsig __wait_stopped.__w_stopsig -# define w_stopval __wait_stopped.__w_stopval - -#endif /* Use misc. */ diff --git a/libktorrent/miniboost/bits/wchar-ldbl.h b/libktorrent/miniboost/bits/wchar-ldbl.h deleted file mode 100644 index 45453be1..00000000 --- a/libktorrent/miniboost/bits/wchar-ldbl.h +++ /dev/null @@ -1,74 +0,0 @@ -/* -mlong-double-64 compatibility mode for functions. - Copyright (C) 2006-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _WCHAR_H -# error "Never include directly; use instead." -#endif - -#if defined __USE_ISOC95 || defined __USE_UNIX98 -__BEGIN_NAMESPACE_C99 -__LDBL_REDIR_DECL (fwprintf); -__LDBL_REDIR_DECL (wprintf); -__LDBL_REDIR_DECL (swprintf); -__LDBL_REDIR_DECL (vfwprintf); -__LDBL_REDIR_DECL (vwprintf); -__LDBL_REDIR_DECL (vswprintf); -# if defined __USE_ISOC99 && !defined __USE_GNU \ - && !defined __REDIRECT \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -__LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf) -__LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf) -__LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf) -# else -__LDBL_REDIR_DECL (fwscanf); -__LDBL_REDIR_DECL (wscanf); -__LDBL_REDIR_DECL (swscanf); -# endif -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -__LDBL_REDIR1_DECL (wcstold, wcstod); -# if !defined __USE_GNU && !defined __REDIRECT \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -__LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf) -__LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf) -__LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf) -# else -__LDBL_REDIR_DECL (vfwscanf); -__LDBL_REDIR_DECL (vwscanf); -__LDBL_REDIR_DECL (vswscanf); -# endif -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_GNU -__LDBL_REDIR1_DECL (wcstold_l, wcstod_l); -#endif - -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -__LDBL_REDIR_DECL (__swprintf_chk) -__LDBL_REDIR_DECL (__vswprintf_chk) -# if __USE_FORTIFY_LEVEL > 1 -__LDBL_REDIR_DECL (__fwprintf_chk) -__LDBL_REDIR_DECL (__wprintf_chk) -__LDBL_REDIR_DECL (__vfwprintf_chk) -__LDBL_REDIR_DECL (__vwprintf_chk) -# endif -#endif diff --git a/libktorrent/miniboost/bits/wchar.h b/libktorrent/miniboost/bits/wchar.h deleted file mode 100644 index e4ca8dbf..00000000 --- a/libktorrent/miniboost/bits/wchar.h +++ /dev/null @@ -1,49 +0,0 @@ -/* wchar_t type related definitions. - Copyright (C) 2000-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _BITS_WCHAR_H -#define _BITS_WCHAR_H 1 - -/* The fallback definitions, for when __WCHAR_MAX__ or __WCHAR_MIN__ - are not defined, give the right value and type as long as both int - and wchar_t are 32-bit types. Adding L'\0' to a constant value - ensures that the type is correct; it is necessary to use (L'\0' + - 0) rather than just L'\0' so that the type in C++ is the promoted - version of wchar_t rather than the distinct wchar_t type itself. - Because wchar_t in preprocessor #if expressions is treated as - intmax_t or uintmax_t, the expression (L'\0' - 1) would have the - wrong value for WCHAR_MAX in such expressions and so cannot be used - to define __WCHAR_MAX in the unsigned case. */ - -#ifdef __WCHAR_MAX__ -# define __WCHAR_MAX __WCHAR_MAX__ -#elif L'\0' - 1 > 0 -# define __WCHAR_MAX (0xffffffffu + L'\0') -#else -# define __WCHAR_MAX (0x7fffffff + L'\0') -#endif - -#ifdef __WCHAR_MIN__ -# define __WCHAR_MIN __WCHAR_MIN__ -#elif L'\0' - 1 > 0 -# define __WCHAR_MIN (L'\0' + 0) -#else -# define __WCHAR_MIN (-__WCHAR_MAX - 1) -#endif - -#endif /* bits/wchar.h */ diff --git a/libktorrent/miniboost/bits/wchar2.h b/libktorrent/miniboost/bits/wchar2.h deleted file mode 100644 index 29ac6b31..00000000 --- a/libktorrent/miniboost/bits/wchar2.h +++ /dev/null @@ -1,593 +0,0 @@ -/* Checking macros for wchar functions. - Copyright (C) 2005-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _WCHAR_H -# error "Never include directly; use instead." -#endif - - -extern wchar_t *__wmemcpy_chk (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __THROW; -extern wchar_t *__REDIRECT_NTH (__wmemcpy_alias, - (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n), - wmemcpy); -extern wchar_t *__REDIRECT_NTH (__wmemcpy_chk_warn, - (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1), __wmemcpy_chk) - __warnattr ("wmemcpy called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n)) -{ - if (__bos0 (__s1) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wmemcpy_chk (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - - if (__n > __bos0 (__s1) / sizeof (wchar_t)) - return __wmemcpy_chk_warn (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - } - return __wmemcpy_alias (__s1, __s2, __n); -} - - -extern wchar_t *__wmemmove_chk (wchar_t *__s1, const wchar_t *__s2, - size_t __n, size_t __ns1) __THROW; -extern wchar_t *__REDIRECT_NTH (__wmemmove_alias, (wchar_t *__s1, - const wchar_t *__s2, - size_t __n), wmemmove); -extern wchar_t *__REDIRECT_NTH (__wmemmove_chk_warn, - (wchar_t *__s1, const wchar_t *__s2, - size_t __n, size_t __ns1), __wmemmove_chk) - __warnattr ("wmemmove called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)) -{ - if (__bos0 (__s1) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wmemmove_chk (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - - if (__n > __bos0 (__s1) / sizeof (wchar_t)) - return __wmemmove_chk_warn (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - } - return __wmemmove_alias (__s1, __s2, __n); -} - - -#ifdef __USE_GNU -extern wchar_t *__wmempcpy_chk (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1) __THROW; -extern wchar_t *__REDIRECT_NTH (__wmempcpy_alias, - (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, - size_t __n), wmempcpy); -extern wchar_t *__REDIRECT_NTH (__wmempcpy_chk_warn, - (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n, - size_t __ns1), __wmempcpy_chk) - __warnattr ("wmempcpy called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, - size_t __n)) -{ - if (__bos0 (__s1) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wmempcpy_chk (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - - if (__n > __bos0 (__s1) / sizeof (wchar_t)) - return __wmempcpy_chk_warn (__s1, __s2, __n, - __bos0 (__s1) / sizeof (wchar_t)); - } - return __wmempcpy_alias (__s1, __s2, __n); -} -#endif - - -extern wchar_t *__wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns) __THROW; -extern wchar_t *__REDIRECT_NTH (__wmemset_alias, (wchar_t *__s, wchar_t __c, - size_t __n), wmemset); -extern wchar_t *__REDIRECT_NTH (__wmemset_chk_warn, - (wchar_t *__s, wchar_t __c, size_t __n, - size_t __ns), __wmemset_chk) - __warnattr ("wmemset called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wmemset (wchar_t *__s, wchar_t __c, size_t __n)) -{ - if (__bos0 (__s) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wmemset_chk (__s, __c, __n, __bos0 (__s) / sizeof (wchar_t)); - - if (__n > __bos0 (__s) / sizeof (wchar_t)) - return __wmemset_chk_warn (__s, __c, __n, - __bos0 (__s) / sizeof (wchar_t)); - } - return __wmemset_alias (__s, __c, __n); -} - - -extern wchar_t *__wcscpy_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcscpy_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src), wcscpy); - -__fortify_function wchar_t * -__NTH (wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src)) -{ - if (__bos (__dest) != (size_t) -1) - return __wcscpy_chk (__dest, __src, __bos (__dest) / sizeof (wchar_t)); - return __wcscpy_alias (__dest, __src); -} - - -extern wchar_t *__wcpcpy_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __destlen) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcpcpy_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src), wcpcpy); - -__fortify_function wchar_t * -__NTH (wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src)) -{ - if (__bos (__dest) != (size_t) -1) - return __wcpcpy_chk (__dest, __src, __bos (__dest) / sizeof (wchar_t)); - return __wcpcpy_alias (__dest, __src); -} - - -extern wchar_t *__wcsncpy_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcsncpy_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n), wcsncpy); -extern wchar_t *__REDIRECT_NTH (__wcsncpy_chk_warn, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n, size_t __destlen), __wcsncpy_chk) - __warnattr ("wcsncpy called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, - size_t __n)) -{ - if (__bos (__dest) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wcsncpy_chk (__dest, __src, __n, - __bos (__dest) / sizeof (wchar_t)); - if (__n > __bos (__dest) / sizeof (wchar_t)) - return __wcsncpy_chk_warn (__dest, __src, __n, - __bos (__dest) / sizeof (wchar_t)); - } - return __wcsncpy_alias (__dest, __src, __n); -} - - -extern wchar_t *__wcpncpy_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n, - size_t __destlen) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcpncpy_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n), wcpncpy); -extern wchar_t *__REDIRECT_NTH (__wcpncpy_chk_warn, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n, size_t __destlen), __wcpncpy_chk) - __warnattr ("wcpncpy called with length bigger than size of destination " - "buffer"); - -__fortify_function wchar_t * -__NTH (wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, - size_t __n)) -{ - if (__bos (__dest) != (size_t) -1) - { - if (!__builtin_constant_p (__n)) - return __wcpncpy_chk (__dest, __src, __n, - __bos (__dest) / sizeof (wchar_t)); - if (__n > __bos (__dest) / sizeof (wchar_t)) - return __wcpncpy_chk_warn (__dest, __src, __n, - __bos (__dest) / sizeof (wchar_t)); - } - return __wcpncpy_alias (__dest, __src, __n); -} - - -extern wchar_t *__wcscat_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __destlen) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcscat_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src), wcscat); - -__fortify_function wchar_t * -__NTH (wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src)) -{ - if (__bos (__dest) != (size_t) -1) - return __wcscat_chk (__dest, __src, __bos (__dest) / sizeof (wchar_t)); - return __wcscat_alias (__dest, __src); -} - - -extern wchar_t *__wcsncat_chk (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n, size_t __destlen) __THROW; -extern wchar_t *__REDIRECT_NTH (__wcsncat_alias, - (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, - size_t __n), wcsncat); - -__fortify_function wchar_t * -__NTH (wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, - size_t __n)) -{ - if (__bos (__dest) != (size_t) -1) - return __wcsncat_chk (__dest, __src, __n, - __bos (__dest) / sizeof (wchar_t)); - return __wcsncat_alias (__dest, __src, __n); -} - - -extern int __swprintf_chk (wchar_t *__restrict __s, size_t __n, - int __flag, size_t __s_len, - const wchar_t *__restrict __format, ...) - __THROW /* __attribute__ ((__format__ (__wprintf__, 5, 6))) */; - -extern int __REDIRECT_NTH_LDBL (__swprintf_alias, - (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, ...), - swprintf); - -#ifdef __va_arg_pack -__fortify_function int -__NTH (swprintf (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, ...)) -{ - if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) - return __swprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - __bos (__s) / sizeof (wchar_t), - __fmt, __va_arg_pack ()); - return __swprintf_alias (__s, __n, __fmt, __va_arg_pack ()); -} -#elif !defined __cplusplus -/* XXX We might want to have support in gcc for swprintf. */ -# define swprintf(s, n, ...) \ - (__bos (s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1 \ - ? __swprintf_chk (s, n, __USE_FORTIFY_LEVEL - 1, \ - __bos (s) / sizeof (wchar_t), __VA_ARGS__) \ - : swprintf (s, n, __VA_ARGS__)) -#endif - -extern int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, - int __flag, size_t __s_len, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __THROW /* __attribute__ ((__format__ (__wprintf__, 5, 0))) */; - -extern int __REDIRECT_NTH_LDBL (__vswprintf_alias, - (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, - __gnuc_va_list __ap), vswprintf); - -__fortify_function int -__NTH (vswprintf (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __fmt, __gnuc_va_list __ap)) -{ - if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1) - return __vswprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, - __bos (__s) / sizeof (wchar_t), __fmt, __ap); - return __vswprintf_alias (__s, __n, __fmt, __ap); -} - - -#if __USE_FORTIFY_LEVEL > 1 - -extern int __fwprintf_chk (__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, ...); -extern int __wprintf_chk (int __flag, const wchar_t *__restrict __format, - ...); -extern int __vfwprintf_chk (__FILE *__restrict __stream, int __flag, - const wchar_t *__restrict __format, - __gnuc_va_list __ap); -extern int __vwprintf_chk (int __flag, const wchar_t *__restrict __format, - __gnuc_va_list __ap); - -# ifdef __va_arg_pack -__fortify_function int -wprintf (const wchar_t *__restrict __fmt, ...) -{ - return __wprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); -} - -__fortify_function int -fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __fmt, ...) -{ - return __fwprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, - __va_arg_pack ()); -} -# elif !defined __cplusplus -# define wprintf(...) \ - __wprintf_chk (__USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# define fwprintf(stream, ...) \ - __fwprintf_chk (stream, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) -# endif - -__fortify_function int -vwprintf (const wchar_t *__restrict __fmt, __gnuc_va_list __ap) -{ - return __vwprintf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __ap); -} - -__fortify_function int -vfwprintf (__FILE *__restrict __stream, - const wchar_t *__restrict __fmt, __gnuc_va_list __ap) -{ - return __vfwprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); -} - -#endif - -extern wchar_t *__fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream) __wur; -extern wchar_t *__REDIRECT (__fgetws_alias, - (wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream), fgetws) __wur; -extern wchar_t *__REDIRECT (__fgetws_chk_warn, - (wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream), __fgetws_chk) - __wur __warnattr ("fgetws called with bigger size than length " - "of destination buffer"); - -__fortify_function __wur wchar_t * -fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) -{ - if (__bos (__s) != (size_t) -1) - { - if (!__builtin_constant_p (__n) || __n <= 0) - return __fgetws_chk (__s, __bos (__s) / sizeof (wchar_t), - __n, __stream); - - if ((size_t) __n > __bos (__s) / sizeof (wchar_t)) - return __fgetws_chk_warn (__s, __bos (__s) / sizeof (wchar_t), - __n, __stream); - } - return __fgetws_alias (__s, __n, __stream); -} - -#ifdef __USE_GNU -extern wchar_t *__fgetws_unlocked_chk (wchar_t *__restrict __s, size_t __size, - int __n, __FILE *__restrict __stream) - __wur; -extern wchar_t *__REDIRECT (__fgetws_unlocked_alias, - (wchar_t *__restrict __s, int __n, - __FILE *__restrict __stream), fgetws_unlocked) - __wur; -extern wchar_t *__REDIRECT (__fgetws_unlocked_chk_warn, - (wchar_t *__restrict __s, size_t __size, int __n, - __FILE *__restrict __stream), - __fgetws_unlocked_chk) - __wur __warnattr ("fgetws_unlocked called with bigger size than length " - "of destination buffer"); - -__fortify_function __wur wchar_t * -fgetws_unlocked (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream) -{ - if (__bos (__s) != (size_t) -1) - { - if (!__builtin_constant_p (__n) || __n <= 0) - return __fgetws_unlocked_chk (__s, __bos (__s) / sizeof (wchar_t), - __n, __stream); - - if ((size_t) __n > __bos (__s) / sizeof (wchar_t)) - return __fgetws_unlocked_chk_warn (__s, __bos (__s) / sizeof (wchar_t), - __n, __stream); - } - return __fgetws_unlocked_alias (__s, __n, __stream); -} -#endif - - -extern size_t __wcrtomb_chk (char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __p, - size_t __buflen) __THROW __wur; -extern size_t __REDIRECT_NTH (__wcrtomb_alias, - (char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps), wcrtomb) __wur; - -__fortify_function __wur size_t -__NTH (wcrtomb (char *__restrict __s, wchar_t __wchar, - mbstate_t *__restrict __ps)) -{ - /* We would have to include to get a definition of MB_LEN_MAX. - But this would only disturb the namespace. So we define our own - version here. */ -#define __WCHAR_MB_LEN_MAX 16 -#if defined MB_LEN_MAX && MB_LEN_MAX != __WCHAR_MB_LEN_MAX -# error "Assumed value of MB_LEN_MAX wrong" -#endif - if (__bos (__s) != (size_t) -1 && __WCHAR_MB_LEN_MAX > __bos (__s)) - return __wcrtomb_chk (__s, __wchar, __ps, __bos (__s)); - return __wcrtomb_alias (__s, __wchar, __ps); -} - - -extern size_t __mbsrtowcs_chk (wchar_t *__restrict __dst, - const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __THROW; -extern size_t __REDIRECT_NTH (__mbsrtowcs_alias, - (wchar_t *__restrict __dst, - const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps), - mbsrtowcs); -extern size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn, - (wchar_t *__restrict __dst, - const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen), __mbsrtowcs_chk) - __warnattr ("mbsrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"); - -__fortify_function size_t -__NTH (mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, - size_t __len, mbstate_t *__restrict __ps)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __mbsrtowcs_chk (__dst, __src, __len, __ps, - __bos (__dst) / sizeof (wchar_t)); - - if (__len > __bos (__dst) / sizeof (wchar_t)) - return __mbsrtowcs_chk_warn (__dst, __src, __len, __ps, - __bos (__dst) / sizeof (wchar_t)); - } - return __mbsrtowcs_alias (__dst, __src, __len, __ps); -} - - -extern size_t __wcsrtombs_chk (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __THROW; -extern size_t __REDIRECT_NTH (__wcsrtombs_alias, - (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps), - wcsrtombs); -extern size_t __REDIRECT_NTH (__wcsrtombs_chk_warn, - (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen), __wcsrtombs_chk) - __warnattr ("wcsrtombs called with dst buffer smaller than len"); - -__fortify_function size_t -__NTH (wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, - size_t __len, mbstate_t *__restrict __ps)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __wcsrtombs_chk (__dst, __src, __len, __ps, __bos (__dst)); - - if (__len > __bos (__dst)) - return __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __bos (__dst)); - } - return __wcsrtombs_alias (__dst, __src, __len, __ps); -} - - -#ifdef __USE_GNU -extern size_t __mbsnrtowcs_chk (wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen) __THROW; -extern size_t __REDIRECT_NTH (__mbsnrtowcs_alias, - (wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps), - mbsnrtowcs); -extern size_t __REDIRECT_NTH (__mbsnrtowcs_chk_warn, - (wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps, - size_t __dstlen), __mbsnrtowcs_chk) - __warnattr ("mbsnrtowcs called with dst buffer smaller than len " - "* sizeof (wchar_t)"); - -__fortify_function size_t -__NTH (mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, - size_t __nmc, size_t __len, mbstate_t *__restrict __ps)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __mbsnrtowcs_chk (__dst, __src, __nmc, __len, __ps, - __bos (__dst) / sizeof (wchar_t)); - - if (__len > __bos (__dst) / sizeof (wchar_t)) - return __mbsnrtowcs_chk_warn (__dst, __src, __nmc, __len, __ps, - __bos (__dst) / sizeof (wchar_t)); - } - return __mbsnrtowcs_alias (__dst, __src, __nmc, __len, __ps); -} - - -extern size_t __wcsnrtombs_chk (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps, size_t __dstlen) - __THROW; -extern size_t __REDIRECT_NTH (__wcsnrtombs_alias, - (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps), wcsnrtombs); -extern size_t __REDIRECT_NTH (__wcsnrtombs_chk_warn, - (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps, - size_t __dstlen), __wcsnrtombs_chk) - __warnattr ("wcsnrtombs called with dst buffer smaller than len"); - -__fortify_function size_t -__NTH (wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, - size_t __nwc, size_t __len, mbstate_t *__restrict __ps)) -{ - if (__bos (__dst) != (size_t) -1) - { - if (!__builtin_constant_p (__len)) - return __wcsnrtombs_chk (__dst, __src, __nwc, __len, __ps, - __bos (__dst)); - - if (__len > __bos (__dst)) - return __wcsnrtombs_chk_warn (__dst, __src, __nwc, __len, __ps, - __bos (__dst)); - } - return __wcsnrtombs_alias (__dst, __src, __nwc, __len, __ps); -} -#endif diff --git a/libktorrent/miniboost/bits/wordsize.h b/libktorrent/miniboost/bits/wordsize.h deleted file mode 100644 index e25af287..00000000 --- a/libktorrent/miniboost/bits/wordsize.h +++ /dev/null @@ -1,13 +0,0 @@ -/* Determine the wordsize from the preprocessor defines. */ - -#if defined __x86_64__ && !defined __ILP32__ -# define __WORDSIZE 64 -#else -# define __WORDSIZE 32 -#endif - -#ifdef __x86_64__ -# define __WORDSIZE_TIME64_COMPAT32 1 -/* Both x86-64 and x32 use the 64-bit system call interface. */ -# define __SYSCALL_WORDSIZE 64 -#endif diff --git a/libktorrent/miniboost/bits/xopen_lim.h b/libktorrent/miniboost/bits/xopen_lim.h deleted file mode 100644 index 63fd1d8b..00000000 --- a/libktorrent/miniboost/bits/xopen_lim.h +++ /dev/null @@ -1,143 +0,0 @@ -/* Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * Never include this file directly; use instead. - */ - -/* Additional definitions from X/Open Portability Guide, Issue 4, Version 2 - System Interfaces and Headers, 4.16 - - Please note only the values which are not greater than the minimum - stated in the standard document are listed. The `sysconf' functions - should be used to obtain the actual value. */ - -#ifndef _XOPEN_LIM_H -#define _XOPEN_LIM_H 1 - -#define __need_IOV_MAX -#include - -/* We do not provide fixed values for - - ARG_MAX Maximum length of argument to the `exec' function - including environment data. - - ATEXIT_MAX Maximum number of functions that may be registered - with `atexit'. - - CHILD_MAX Maximum number of simultaneous processes per real - user ID. - - OPEN_MAX Maximum number of files that one process can have open - at anyone time. - - PAGESIZE - PAGE_SIZE Size of bytes of a page. - - PASS_MAX Maximum number of significant bytes in a password. - - We only provide a fixed limit for - - IOV_MAX Maximum number of `iovec' structures that one process has - available for use with `readv' or writev'. - - if this is indeed fixed by the underlying system. -*/ - - -/* Maximum number of `iovec' structures that one process has available - for use with `readv' or writev'. */ -#define _XOPEN_IOV_MAX _POSIX_UIO_MAXIOV - - -/* Maximum value of `digit' in calls to the `printf' and `scanf' - functions. We have no limit, so return a reasonable value. */ -#define NL_ARGMAX _POSIX_ARG_MAX - -/* Maximum number of bytes in a `LANG' name. We have no limit. */ -#define NL_LANGMAX _POSIX2_LINE_MAX - -/* Maximum message number. We have no limit. */ -#define NL_MSGMAX INT_MAX - -/* Maximum number of bytes in N-to-1 collation mapping. We have no - limit. */ -#define NL_NMAX INT_MAX - -/* Maximum set number. We have no limit. */ -#define NL_SETMAX INT_MAX - -/* Maximum number of bytes in a message. We have no limit. */ -#define NL_TEXTMAX INT_MAX - -/* Default process priority. */ -#define NZERO 20 - - -/* Number of bits in a word of type `int'. */ -#ifdef INT_MAX -# if INT_MAX == 32767 -# define WORD_BIT 16 -# else -# if INT_MAX == 2147483647 -# define WORD_BIT 32 -# else -/* Safe assumption. */ -# define WORD_BIT 64 -# endif -# endif -#elif defined __INT_MAX__ -# if __INT_MAX__ == 32767 -# define WORD_BIT 16 -# else -# if __INT_MAX__ == 2147483647 -# define WORD_BIT 32 -# else -/* Safe assumption. */ -# define WORD_BIT 64 -# endif -# endif -#else -# define WORD_BIT 32 -#endif - -/* Number of bits in a word of type `long int'. */ -#ifdef LONG_MAX -# if LONG_MAX == 2147483647 -# define LONG_BIT 32 -# else -/* Safe assumption. */ -# define LONG_BIT 64 -# endif -#elif defined __LONG_MAX__ -# if __LONG_MAX__ == 2147483647 -# define LONG_BIT 32 -# else -/* Safe assumption. */ -# define LONG_BIT 64 -# endif -#else -# include -# if __WORDSIZE == 64 -# define LONG_BIT 64 -# else -# define LONG_BIT 32 -# endif -#endif - -#endif /* bits/xopen_lim.h */ diff --git a/libktorrent/miniboost/boost/config.hpp b/libktorrent/miniboost/boost/config.hpp deleted file mode 100644 index d49bb27c..00000000 --- a/libktorrent/miniboost/boost/config.hpp +++ /dev/null @@ -1,67 +0,0 @@ -// Boost config.hpp configuration header file ------------------------------// - -// (C) Copyright John Maddock 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/libs/config for most recent version. - -// Boost config.hpp policy and rationale documentation has been moved to -// http://www.boost.org/libs/config -// -// CAUTION: This file is intended to be completely stable - -// DO NOT MODIFY THIS FILE! -// - -#ifndef BOOST_CONFIG_HPP -#define BOOST_CONFIG_HPP - -// if we don't have a user config, then use the default location: -#if !defined(BOOST_USER_CONFIG) && !defined(BOOST_NO_USER_CONFIG) -# define BOOST_USER_CONFIG -#if 0 -// For dependency trackers: -# include -#endif -#endif -// include it first: -#ifdef BOOST_USER_CONFIG -# include BOOST_USER_CONFIG -#endif - -// if we don't have a compiler config set, try and find one: -#if !defined(BOOST_COMPILER_CONFIG) && !defined(BOOST_NO_COMPILER_CONFIG) && !defined(BOOST_NO_CONFIG) -# include -#endif -// if we have a compiler config, include it now: -#ifdef BOOST_COMPILER_CONFIG -# include BOOST_COMPILER_CONFIG -#endif - -// if we don't have a std library config set, try and find one: -#if !defined(BOOST_STDLIB_CONFIG) && !defined(BOOST_NO_STDLIB_CONFIG) && !defined(BOOST_NO_CONFIG) && defined(__cplusplus) -# include -#endif -// if we have a std library config, include it now: -#ifdef BOOST_STDLIB_CONFIG -# include BOOST_STDLIB_CONFIG -#endif - -// if we don't have a platform config set, try and find one: -#if !defined(BOOST_PLATFORM_CONFIG) && !defined(BOOST_NO_PLATFORM_CONFIG) && !defined(BOOST_NO_CONFIG) -# include -#endif -// if we have a platform config, include it now: -#ifdef BOOST_PLATFORM_CONFIG -# include BOOST_PLATFORM_CONFIG -#endif - -// get config suffix code: -#include - -#ifdef BOOST_HAS_PRAGMA_ONCE -#pragma once -#endif - -#endif // BOOST_CONFIG_HPP diff --git a/libktorrent/miniboost/boost/config/abi/borland_prefix.hpp b/libktorrent/miniboost/boost/config/abi/borland_prefix.hpp deleted file mode 100644 index 3a0e5ae2..00000000 --- a/libktorrent/miniboost/boost/config/abi/borland_prefix.hpp +++ /dev/null @@ -1,27 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// for C++ Builder the following options effect the ABI: -// -// -b (on or off - effect emum sizes) -// -Vx (on or off - empty members) -// -Ve (on or off - empty base classes) -// -aX (alignment - 5 options). -// -pX (Calling convention - 4 options) -// -VmX (member pointer size and layout - 5 options) -// -VC (on or off, changes name mangling) -// -Vl (on or off, changes struct layout). - -// In addition the following warnings are sufficiently annoying (and -// unfixable) to have them turned off by default: -// -// 8027 - functions containing [for|while] loops are not expanded inline -// 8026 - functions taking class by value arguments are not expanded inline - -#pragma nopushoptwarn -# pragma option push -a8 -Vx- -Ve- -b- -pc -Vmv -VC- -Vl- -w-8027 -w-8026 - - - diff --git a/libktorrent/miniboost/boost/config/abi/borland_suffix.hpp b/libktorrent/miniboost/boost/config/abi/borland_suffix.hpp deleted file mode 100644 index 940535f3..00000000 --- a/libktorrent/miniboost/boost/config/abi/borland_suffix.hpp +++ /dev/null @@ -1,12 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -# pragma option pop -#pragma nopushoptwarn - - - - - diff --git a/libktorrent/miniboost/boost/config/abi/msvc_prefix.hpp b/libktorrent/miniboost/boost/config/abi/msvc_prefix.hpp deleted file mode 100644 index 97f06cdc..00000000 --- a/libktorrent/miniboost/boost/config/abi/msvc_prefix.hpp +++ /dev/null @@ -1,22 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// -// Boost binaries are built with the compiler's default ABI settings, -// if the user changes their default alignment in the VS IDE then their -// code will no longer be binary compatible with the bjam built binaries -// unless this header is included to force Boost code into a consistent ABI. -// -// Note that inclusion of this header is only necessary for libraries with -// separate source, header only libraries DO NOT need this as long as all -// translation units are built with the same options. -// -#if defined(_M_X64) -# pragma pack(push,16) -#else -# pragma pack(push,8) -#endif - - diff --git a/libktorrent/miniboost/boost/config/abi/msvc_suffix.hpp b/libktorrent/miniboost/boost/config/abi/msvc_suffix.hpp deleted file mode 100644 index a64d783e..00000000 --- a/libktorrent/miniboost/boost/config/abi/msvc_suffix.hpp +++ /dev/null @@ -1,8 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#pragma pack(pop) - - diff --git a/libktorrent/miniboost/boost/config/abi_prefix.hpp b/libktorrent/miniboost/boost/config/abi_prefix.hpp deleted file mode 100644 index 3b134749..00000000 --- a/libktorrent/miniboost/boost/config/abi_prefix.hpp +++ /dev/null @@ -1,25 +0,0 @@ -// abi_prefix header -------------------------------------------------------// - -// (c) Copyright John Maddock 2003 - -// Use, modification and distribution are subject to the Boost Software License, -// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt). - -#ifndef BOOST_CONFIG_ABI_PREFIX_HPP -# define BOOST_CONFIG_ABI_PREFIX_HPP -#else -# error double inclusion of header boost/config/abi_prefix.hpp is an error -#endif - -#include - -// this must occur after all other includes and before any code appears: -#ifdef BOOST_HAS_ABI_HEADERS -# include BOOST_ABI_PREFIX -#endif - -#if defined( __BORLANDC__ ) -#pragma nopushoptwarn -#endif - diff --git a/libktorrent/miniboost/boost/config/abi_suffix.hpp b/libktorrent/miniboost/boost/config/abi_suffix.hpp deleted file mode 100644 index 93916166..00000000 --- a/libktorrent/miniboost/boost/config/abi_suffix.hpp +++ /dev/null @@ -1,27 +0,0 @@ -// abi_sufffix header -------------------------------------------------------// - -// (c) Copyright John Maddock 2003 - -// Use, modification and distribution are subject to the Boost Software License, -// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt). - -// This header should be #included AFTER code that was preceded by a #include -// . - -#ifndef BOOST_CONFIG_ABI_PREFIX_HPP -# error Header boost/config/abi_suffix.hpp must only be used after boost/config/abi_prefix.hpp -#else -# undef BOOST_CONFIG_ABI_PREFIX_HPP -#endif - -// the suffix header occurs after all of our code: -#ifdef BOOST_HAS_ABI_HEADERS -# include BOOST_ABI_SUFFIX -#endif - -#if defined( __BORLANDC__ ) -#pragma nopushoptwarn -#endif - - diff --git a/libktorrent/miniboost/boost/config/auto_link.hpp b/libktorrent/miniboost/boost/config/auto_link.hpp deleted file mode 100644 index 13cbad43..00000000 --- a/libktorrent/miniboost/boost/config/auto_link.hpp +++ /dev/null @@ -1,429 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - /* - * LOCATION: see http://www.boost.org for most recent version. - * FILE auto_link.hpp - * VERSION see - * DESCRIPTION: Automatic library inclusion for Borland/Microsoft compilers. - */ - -/************************************************************************* - -USAGE: -~~~~~~ - -Before including this header you must define one or more of define the following macros: - -BOOST_LIB_NAME: Required: A string containing the basename of the library, - for example boost_regex. -BOOST_LIB_TOOLSET: Optional: the base name of the toolset. -BOOST_DYN_LINK: Optional: when set link to dll rather than static library. -BOOST_LIB_DIAGNOSTIC: Optional: when set the header will print out the name - of the library selected (useful for debugging). -BOOST_AUTO_LINK_NOMANGLE: Specifies that we should link to BOOST_LIB_NAME.lib, - rather than a mangled-name version. -BOOST_AUTO_LINK_TAGGED: Specifies that we link to libraries built with the --layout=tagged option. - This is essentially the same as the default name-mangled version, but without - the compiler name and version, or the Boost version. Just the build options. - -These macros will be undef'ed at the end of the header, further this header -has no include guards - so be sure to include it only once from your library! - -Algorithm: -~~~~~~~~~~ - -Libraries for Borland and Microsoft compilers are automatically -selected here, the name of the lib is selected according to the following -formula: - -BOOST_LIB_PREFIX - + BOOST_LIB_NAME - + "_" - + BOOST_LIB_TOOLSET - + BOOST_LIB_THREAD_OPT - + BOOST_LIB_RT_OPT - "-" - + BOOST_LIB_VERSION - -These are defined as: - -BOOST_LIB_PREFIX: "lib" for static libraries otherwise "". - -BOOST_LIB_NAME: The base name of the lib ( for example boost_regex). - -BOOST_LIB_TOOLSET: The compiler toolset name (vc6, vc7, bcb5 etc). - -BOOST_LIB_THREAD_OPT: "-mt" for multithread builds, otherwise nothing. - -BOOST_LIB_RT_OPT: A suffix that indicates the runtime library used, - contains one or more of the following letters after - a hyphen: - - s static runtime (dynamic if not present). - g debug/diagnostic runtime (release if not present). - y Python debug/diagnostic runtime (release if not present). - d debug build (release if not present). - p STLport build. - n STLport build without its IOStreams. - -BOOST_LIB_VERSION: The Boost version, in the form x_y, for Boost version x.y. - - -***************************************************************************/ - -#ifdef __cplusplus -# ifndef BOOST_CONFIG_HPP -# include -# endif -#elif defined(_MSC_VER) && !defined(__MWERKS__) && !defined(__EDG_VERSION__) -// -// C language compatability (no, honestly) -// -# define BOOST_MSVC _MSC_VER -# define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X) -# define BOOST_DO_STRINGIZE(X) #X -#endif -// -// Only include what follows for known and supported compilers: -// -#if defined(BOOST_MSVC) \ - || defined(__BORLANDC__) \ - || (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \ - || (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) - -#ifndef BOOST_VERSION_HPP -# include -#endif - -#ifndef BOOST_LIB_NAME -# error "Macro BOOST_LIB_NAME not set (internal error)" -#endif - -// -// error check: -// -#if defined(__MSVC_RUNTIME_CHECKS) && !defined(_DEBUG) -# pragma message("Using the /RTC option without specifying a debug runtime will lead to linker errors") -# pragma message("Hint: go to the code generation options and switch to one of the debugging runtimes") -# error "Incompatible build options" -#endif -// -// select toolset if not defined already: -// -#ifndef BOOST_LIB_TOOLSET -# if defined(BOOST_MSVC) && (BOOST_MSVC < 1200) - // Note: no compilers before 1200 are supported -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1300) - -# ifdef UNDER_CE - // eVC4: -# define BOOST_LIB_TOOLSET "evc4" -# else - // vc6: -# define BOOST_LIB_TOOLSET "vc6" -# endif - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1310) - - // vc7: -# define BOOST_LIB_TOOLSET "vc7" - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1400) - - // vc71: -# define BOOST_LIB_TOOLSET "vc71" - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1500) - - // vc80: -# define BOOST_LIB_TOOLSET "vc80" - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1600) - - // vc90: -# define BOOST_LIB_TOOLSET "vc90" - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1700) - - // vc10: -# define BOOST_LIB_TOOLSET "vc100" - -# elif defined(BOOST_MSVC) && (BOOST_MSVC < 1800) - - // vc11: -# define BOOST_LIB_TOOLSET "vc110" - -# elif defined(BOOST_MSVC) - - // vc12: -# define BOOST_LIB_TOOLSET "vc120" - -# elif defined(__BORLANDC__) - - // CBuilder 6: -# define BOOST_LIB_TOOLSET "bcb" - -# elif defined(__ICL) - - // Intel C++, no version number: -# define BOOST_LIB_TOOLSET "iw" - -# elif defined(__MWERKS__) && (__MWERKS__ <= 0x31FF ) - - // Metrowerks CodeWarrior 8.x -# define BOOST_LIB_TOOLSET "cw8" - -# elif defined(__MWERKS__) && (__MWERKS__ <= 0x32FF ) - - // Metrowerks CodeWarrior 9.x -# define BOOST_LIB_TOOLSET "cw9" - -# endif -#endif // BOOST_LIB_TOOLSET - -// -// select thread opt: -// -#if defined(_MT) || defined(__MT__) -# define BOOST_LIB_THREAD_OPT "-mt" -#else -# define BOOST_LIB_THREAD_OPT -#endif - -#if defined(_MSC_VER) || defined(__MWERKS__) - -# ifdef _DLL - -# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS)) - -# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-gydp" -# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG)) -# define BOOST_LIB_RT_OPT "-gdp" -# elif defined(_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-gydp" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-gdp" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# else -# define BOOST_LIB_RT_OPT "-p" -# endif - -# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) - -# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-gydpn" -# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG)) -# define BOOST_LIB_RT_OPT "-gdpn" -# elif defined(_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-gydpn" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-gdpn" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# else -# define BOOST_LIB_RT_OPT "-pn" -# endif - -# else - -# if defined(_DEBUG) && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-gyd" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-gd" -# else -# define BOOST_LIB_RT_OPT -# endif - -# endif - -# else - -# if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && (defined(_STLP_OWN_IOSTREAMS) || defined(__STL_OWN_IOSTREAMS)) - -# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sgydp" -# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG)) -# define BOOST_LIB_RT_OPT "-sgdp" -# elif defined(_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sgydp" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-sgdp" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# else -# define BOOST_LIB_RT_OPT "-sp" -# endif - -# elif defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) - -# if defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG))\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sgydpn" -# elif defined(_DEBUG) && (defined(__STL_DEBUG) || defined(_STLP_DEBUG)) -# define BOOST_LIB_RT_OPT "-sgdpn" -# elif defined(_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sgydpn" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-sgdpn" -# pragma message("warning: STLport debug versions are built with /D_STLP_DEBUG=1") -# error "Build options aren't compatible with pre-built libraries" -# else -# define BOOST_LIB_RT_OPT "-spn" -# endif - -# else - -# if defined(_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sgyd" -# elif defined(_DEBUG) -# define BOOST_LIB_RT_OPT "-sgd" -# else -# define BOOST_LIB_RT_OPT "-s" -# endif - -# endif - -# endif - -#elif defined(__BORLANDC__) - -// -// figure out whether we want the debug builds or not: -// -#if __BORLANDC__ > 0x561 -#pragma defineonoption BOOST_BORLAND_DEBUG -v -#endif -// -// sanity check: -// -#if defined(__STL_DEBUG) || defined(_STLP_DEBUG) -#error "Pre-built versions of the Boost libraries are not provided in STLport-debug form" -#endif - -# ifdef _RTLDLL - -# if defined(BOOST_BORLAND_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-yd" -# elif defined(BOOST_BORLAND_DEBUG) -# define BOOST_LIB_RT_OPT "-d" -# elif defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT -y -# else -# define BOOST_LIB_RT_OPT -# endif - -# else - -# if defined(BOOST_BORLAND_DEBUG)\ - && defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-syd" -# elif defined(BOOST_BORLAND_DEBUG) -# define BOOST_LIB_RT_OPT "-sd" -# elif defined(BOOST_DEBUG_PYTHON) && defined(BOOST_LINKING_PYTHON) -# define BOOST_LIB_RT_OPT "-sy" -# else -# define BOOST_LIB_RT_OPT "-s" -# endif - -# endif - -#endif - -// -// select linkage opt: -// -#if (defined(_DLL) || defined(_RTLDLL)) && defined(BOOST_DYN_LINK) -# define BOOST_LIB_PREFIX -#elif defined(BOOST_DYN_LINK) -# error "Mixing a dll boost library with a static runtime is a really bad idea..." -#else -# define BOOST_LIB_PREFIX "lib" -#endif - -// -// now include the lib: -// -#if defined(BOOST_LIB_NAME) \ - && defined(BOOST_LIB_PREFIX) \ - && defined(BOOST_LIB_TOOLSET) \ - && defined(BOOST_LIB_THREAD_OPT) \ - && defined(BOOST_LIB_RT_OPT) \ - && defined(BOOST_LIB_VERSION) - -#ifdef BOOST_AUTO_LINK_TAGGED -# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") -# ifdef BOOST_LIB_DIAGNOSTIC -# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT ".lib") -# endif -#elif defined(BOOST_AUTO_LINK_NOMANGLE) -# pragma comment(lib, BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") -# ifdef BOOST_LIB_DIAGNOSTIC -# pragma message ("Linking to lib file: " BOOST_STRINGIZE(BOOST_LIB_NAME) ".lib") -# endif -#else -# pragma comment(lib, BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") -# ifdef BOOST_LIB_DIAGNOSTIC -# pragma message ("Linking to lib file: " BOOST_LIB_PREFIX BOOST_STRINGIZE(BOOST_LIB_NAME) "-" BOOST_LIB_TOOLSET BOOST_LIB_THREAD_OPT BOOST_LIB_RT_OPT "-" BOOST_LIB_VERSION ".lib") -# endif -#endif - -#else -# error "some required macros where not defined (internal logic error)." -#endif - - -#endif // _MSC_VER || __BORLANDC__ - -// -// finally undef any macros we may have set: -// -#ifdef BOOST_LIB_PREFIX -# undef BOOST_LIB_PREFIX -#endif -#if defined(BOOST_LIB_NAME) -# undef BOOST_LIB_NAME -#endif -// Don't undef this one: it can be set by the user and should be the -// same for all libraries: -//#if defined(BOOST_LIB_TOOLSET) -//# undef BOOST_LIB_TOOLSET -//#endif -#if defined(BOOST_LIB_THREAD_OPT) -# undef BOOST_LIB_THREAD_OPT -#endif -#if defined(BOOST_LIB_RT_OPT) -# undef BOOST_LIB_RT_OPT -#endif -#if defined(BOOST_LIB_LINK_OPT) -# undef BOOST_LIB_LINK_OPT -#endif -#if defined(BOOST_LIB_DEBUG_OPT) -# undef BOOST_LIB_DEBUG_OPT -#endif -#if defined(BOOST_DYN_LINK) -# undef BOOST_DYN_LINK -#endif - - diff --git a/libktorrent/miniboost/boost/config/compiler/borland.hpp b/libktorrent/miniboost/boost/config/compiler/borland.hpp deleted file mode 100644 index d2a09024..00000000 --- a/libktorrent/miniboost/boost/config/compiler/borland.hpp +++ /dev/null @@ -1,288 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Aleksey Gurtovoy 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Borland C++ compiler setup: - -// -// versions check: -// we don't support Borland prior to version 5.4: -#if __BORLANDC__ < 0x540 -# error "Compiler not supported or configured - please reconfigure" -#endif - -// last known compiler version: -#if (__BORLANDC__ > 0x613) -//# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -//# else -//# pragma message( "Unknown compiler version - please run the configure tests and report the results") -//# endif -#elif (__BORLANDC__ == 0x600) -# error "CBuilderX preview compiler is no longer supported" -#endif - -// -// Support macros to help with standard library detection -#if (__BORLANDC__ < 0x560) || defined(_USE_OLD_RW_STL) -# define BOOST_BCB_WITH_ROGUE_WAVE -#elif __BORLANDC__ < 0x570 -# define BOOST_BCB_WITH_STLPORT -#else -# define BOOST_BCB_WITH_DINKUMWARE -#endif - -// -// Version 5.0 and below: -# if __BORLANDC__ <= 0x0550 -// Borland C++Builder 4 and 5: -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -# if __BORLANDC__ == 0x0550 -// Borland C++Builder 5, command-line compiler 5.5: -# define BOOST_NO_OPERATORS_IN_NAMESPACE -# endif -// Variadic macros do not exist for C++ Builder versions 5 and below -#define BOOST_NO_CXX11_VARIADIC_MACROS -# endif - -// Version 5.51 and below: -#if (__BORLANDC__ <= 0x551) -# define BOOST_NO_CV_SPECIALIZATIONS -# define BOOST_NO_CV_VOID_SPECIALIZATIONS -# define BOOST_NO_DEDUCED_TYPENAME -// workaround for missing WCHAR_MAX/WCHAR_MIN: -#ifdef __cplusplus -#include -#include -#else -#include -#include -#endif // __cplusplus -#ifndef WCHAR_MAX -# define WCHAR_MAX 0xffff -#endif -#ifndef WCHAR_MIN -# define WCHAR_MIN 0 -#endif -#endif - -// Borland C++ Builder 6 and below: -#if (__BORLANDC__ <= 0x564) - -# if defined(NDEBUG) && defined(__cplusplus) - // fix broken so that Boost.test works: -# include -# undef strcmp -# endif - // fix broken errno declaration: -# include -# ifndef errno -# define errno errno -# endif - -#endif - -// -// new bug in 5.61: -#if (__BORLANDC__ >= 0x561) && (__BORLANDC__ <= 0x580) - // this seems to be needed by the command line compiler, but not the IDE: -# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS -#endif - -// Borland C++ Builder 2006 Update 2 and below: -#if (__BORLANDC__ <= 0x582) -# define BOOST_NO_SFINAE -# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG -# define BOOST_NO_TEMPLATE_TEMPLATES - -# define BOOST_NO_PRIVATE_IN_AGGREGATE - -# ifdef _WIN32 -# define BOOST_NO_SWPRINTF -# elif defined(linux) || defined(__linux__) || defined(__linux) - // we should really be able to do without this - // but the wcs* functions aren't imported into std:: -# define BOOST_NO_STDC_NAMESPACE - // _CPPUNWIND doesn't get automatically set for some reason: -# pragma defineonoption BOOST_CPPUNWIND -x -# endif -#endif - -#if (__BORLANDC__ <= 0x613) // Beman has asked Alisdair for more info - // we shouldn't really need this - but too many things choke - // without it, this needs more investigation: -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -# define BOOST_NO_IS_ABSTRACT -# define BOOST_NO_FUNCTION_TYPE_SPECIALIZATIONS -# define BOOST_NO_USING_TEMPLATE -# define BOOST_SP_NO_SP_CONVERTIBLE - -// Temporary workaround -#define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS -#endif - -// Borland C++ Builder 2008 and below: -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE -# define BOOST_NO_NESTED_FRIENDSHIP -# define BOOST_NO_TYPENAME_WITH_CTOR -#if (__BORLANDC__ < 0x600) -# define BOOST_ILLEGAL_CV_REFERENCES -#endif - -// -// Positive Feature detection -// -// Borland C++ Builder 2008 and below: -#if (__BORLANDC__ >= 0x599) -# pragma defineonoption BOOST_CODEGEAR_0X_SUPPORT -Ax -#endif -// -// C++0x Macros: -// -#if !defined( BOOST_CODEGEAR_0X_SUPPORT ) || (__BORLANDC__ < 0x610) -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_CHAR32_T -# define BOOST_NO_CXX11_DECLTYPE -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_EXTERN_TEMPLATE -# define BOOST_NO_CXX11_RVALUE_REFERENCES -# define BOOST_NO_CXX11_SCOPED_ENUMS -# define BOOST_NO_CXX11_STATIC_ASSERT -#else -# define BOOST_HAS_ALIGNOF -# define BOOST_HAS_CHAR16_T -# define BOOST_HAS_CHAR32_T -# define BOOST_HAS_DECLTYPE -# define BOOST_HAS_EXPLICIT_CONVERSION_OPS -# define BOOST_HAS_REF_QUALIFIER -# define BOOST_HAS_RVALUE_REFS -# define BOOST_HAS_STATIC_ASSERT -#endif - -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS // UTF-8 still not supported -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -#if __BORLANDC__ >= 0x590 -# define BOOST_HAS_TR1_HASH - -# define BOOST_HAS_MACRO_USE_FACET -#endif - -// -// Post 0x561 we have long long and stdint.h: -#if __BORLANDC__ >= 0x561 -# ifndef __NO_LONG_LONG -# define BOOST_HAS_LONG_LONG -# else -# define BOOST_NO_LONG_LONG -# endif - // On non-Win32 platforms let the platform config figure this out: -# ifdef _WIN32 -# define BOOST_HAS_STDINT_H -# endif -#endif - -// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is -// defined, then we have 0x560 or greater with the Rogue Wave implementation -// which presumably has the std::DBL_MAX bug. -#if defined( BOOST_BCB_WITH_ROGUE_WAVE ) -// is partly broken, some macros define symbols that are really in -// namespace std, so you end up having to use illegal constructs like -// std::DBL_MAX, as a fix we'll just include float.h and have done with: -#include -#endif -// -// __int64: -// -#if (__BORLANDC__ >= 0x530) && !defined(__STRICT_ANSI__) -# define BOOST_HAS_MS_INT64 -#endif -// -// check for exception handling support: -// -#if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif -// -// all versions have a : -// -#ifndef __STRICT_ANSI__ -# define BOOST_HAS_DIRENT_H -#endif -// -// all versions support __declspec: -// -#if defined(__STRICT_ANSI__) -// config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined -# define BOOST_SYMBOL_EXPORT -#endif -// -// ABI fixing headers: -// -#if __BORLANDC__ != 0x600 // not implemented for version 6 compiler yet -#ifndef BOOST_ABI_PREFIX -# define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp" -#endif -#ifndef BOOST_ABI_SUFFIX -# define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp" -#endif -#endif -// -// Disable Win32 support in ANSI mode: -// -#if __BORLANDC__ < 0x600 -# pragma defineonoption BOOST_DISABLE_WIN32 -A -#elif defined(__STRICT_ANSI__) -# define BOOST_DISABLE_WIN32 -#endif -// -// MSVC compatibility mode does some nasty things: -// TODO: look up if this doesn't apply to the whole 12xx range -// -#if defined(_MSC_VER) && (_MSC_VER <= 1200) -# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP -# define BOOST_NO_VOID_RETURNS -#endif - -// Borland did not implement value-initialization completely, as I reported -// in 2007, Borland Report 51854, "Value-initialization: POD struct should be -// zero-initialized", http://qc.embarcadero.com/wc/qcmain.aspx?d=51854 -// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues -// (Niels Dekker, LKEB, April 2010) -#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION - -#define BOOST_COMPILER "Borland C++ version " BOOST_STRINGIZE(__BORLANDC__) diff --git a/libktorrent/miniboost/boost/config/compiler/clang.hpp b/libktorrent/miniboost/boost/config/compiler/clang.hpp deleted file mode 100644 index 6a178242..00000000 --- a/libktorrent/miniboost/boost/config/compiler/clang.hpp +++ /dev/null @@ -1,200 +0,0 @@ -// (C) Copyright Douglas Gregor 2010 -// -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Clang compiler setup. - -#define BOOST_HAS_PRAGMA_ONCE - -// When compiling with clang before __has_extension was defined, -// even if one writes 'defined(__has_extension) && __has_extension(xxx)', -// clang reports a compiler error. So the only workaround found is: - -#ifndef __has_extension -#define __has_extension __has_feature -#endif - -#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif - -#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_RTTI) -# define BOOST_NO_RTTI -#endif - -#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_TYPEID) -# define BOOST_NO_TYPEID -#endif - -#if defined(__int64) && !defined(__GNUC__) -# define BOOST_HAS_MS_INT64 -#endif - -#define BOOST_HAS_NRVO - -// Branch prediction hints -#if defined(__has_builtin) -#if __has_builtin(__builtin_expect) -#define BOOST_LIKELY(x) __builtin_expect(x, 1) -#define BOOST_UNLIKELY(x) __builtin_expect(x, 0) -#endif -#endif - -// Clang supports "long long" in all compilation modes. -#define BOOST_HAS_LONG_LONG - -#if defined(__SIZEOF_INT128__) -# define BOOST_HAS_INT128 -#endif - - -// -// Dynamic shared object (DSO) and dynamic-link library (DLL) support -// -#if !defined(_WIN32) && !defined(__WIN32__) && !defined(WIN32) -# define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default"))) -# define BOOST_SYMBOL_IMPORT -# define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) -#endif - -// -// The BOOST_FALLTHROUGH macro can be used to annotate implicit fall-through -// between switch labels. -// -#if __cplusplus >= 201103L && defined(__has_warning) -# if __has_feature(cxx_attributes) && __has_warning("-Wimplicit-fallthrough") -# define BOOST_FALLTHROUGH [[clang::fallthrough]] -# endif -#endif - -#if !__has_feature(cxx_auto_type) -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#endif - -// -// Currently clang on Windows using VC++ RTL does not support C++11's char16_t or char32_t -// -#if defined(_MSC_VER) || !(defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L) -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_CHAR32_T -#endif - -#if !__has_feature(cxx_constexpr) -# define BOOST_NO_CXX11_CONSTEXPR -#endif - -#if !__has_feature(cxx_decltype) -# define BOOST_NO_CXX11_DECLTYPE -#endif - -#if !__has_feature(cxx_decltype_incomplete_return_types) -# define BOOST_NO_CXX11_DECLTYPE_N3276 -#endif - -#if !__has_feature(cxx_defaulted_functions) -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#endif - -#if !__has_feature(cxx_deleted_functions) -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -#endif - -#if !__has_feature(cxx_explicit_conversions) -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#endif - -#if !__has_feature(cxx_default_function_template_args) -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#endif - -#if !__has_feature(cxx_generalized_initializers) -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#endif - -#if !__has_feature(cxx_lambdas) -# define BOOST_NO_CXX11_LAMBDAS -#endif - -#if !__has_feature(cxx_local_type_template_args) -# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#endif - -#if !__has_feature(cxx_noexcept) -# define BOOST_NO_CXX11_NOEXCEPT -#endif - -#if !__has_feature(cxx_nullptr) -# define BOOST_NO_CXX11_NULLPTR -#endif - -#if !__has_feature(cxx_range_for) -# define BOOST_NO_CXX11_RANGE_BASED_FOR -#endif - -#if !__has_feature(cxx_raw_string_literals) -# define BOOST_NO_CXX11_RAW_LITERALS -#endif - -#if !__has_feature(cxx_reference_qualified_functions) -# define BOOST_NO_CXX11_REF_QUALIFIERS -#endif - -#if !__has_feature(cxx_generalized_initializers) -# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#endif - -#if !__has_feature(cxx_rvalue_references) -# define BOOST_NO_CXX11_RVALUE_REFERENCES -#endif - -#if !__has_feature(cxx_strong_enums) -# define BOOST_NO_CXX11_SCOPED_ENUMS -#endif - -#if !__has_feature(cxx_static_assert) -# define BOOST_NO_CXX11_STATIC_ASSERT -#endif - -#if !__has_feature(cxx_alias_templates) -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -#endif - -#if !__has_feature(cxx_unicode_literals) -# define BOOST_NO_CXX11_UNICODE_LITERALS -#endif - -#if !__has_feature(cxx_variadic_templates) -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#endif - -#if !__has_feature(cxx_user_literals) -# define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#endif - -#if !(__has_feature(cxx_alignas) || __has_extension(cxx_alignas)) -# define BOOST_NO_CXX11_ALIGNAS -#endif - -#if !__has_feature(cxx_trailing_return) -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#endif - -#if !__has_feature(cxx_inline_namespaces) -# define BOOST_NO_CXX11_INLINE_NAMESPACES -#endif - -// Clang always supports variadic macros -// Clang always supports extern templates - -#ifndef BOOST_COMPILER -# define BOOST_COMPILER "Clang version " __clang_version__ -#endif - -// Macro used to identify the Clang compiler. -#define BOOST_CLANG 1 - diff --git a/libktorrent/miniboost/boost/config/compiler/codegear.hpp b/libktorrent/miniboost/boost/config/compiler/codegear.hpp deleted file mode 100644 index 6b52282f..00000000 --- a/libktorrent/miniboost/boost/config/compiler/codegear.hpp +++ /dev/null @@ -1,190 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Aleksey Gurtovoy 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// CodeGear C++ compiler setup: - -#if !defined( BOOST_WITH_CODEGEAR_WARNINGS ) -// these warnings occur frequently in optimized template code -# pragma warn -8004 // var assigned value, but never used -# pragma warn -8008 // condition always true/false -# pragma warn -8066 // dead code can never execute -# pragma warn -8104 // static members with ctors not threadsafe -# pragma warn -8105 // reference member in class without ctors -#endif -// -// versions check: -// last known and checked version is 0x621 -#if (__CODEGEARC__ > 0x621) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# else -# pragma message( "Unknown compiler version - please run the configure tests and report the results") -# endif -#endif - -// CodeGear C++ Builder 2009 -#if (__CODEGEARC__ <= 0x613) -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS -# define BOOST_NO_PRIVATE_IN_AGGREGATE -# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE - // we shouldn't really need this - but too many things choke - // without it, this needs more investigation: -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -# define BOOST_SP_NO_SP_CONVERTIBLE -#endif - -// CodeGear C++ Builder 2010 -#if (__CODEGEARC__ <= 0x621) -# define BOOST_NO_TYPENAME_WITH_CTOR // Cannot use typename keyword when making temporaries of a dependant type -# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -# define BOOST_NO_NESTED_FRIENDSHIP // TC1 gives nested classes access rights as any other member -# define BOOST_NO_USING_TEMPLATE -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -// Temporary hack, until specific MPL preprocessed headers are generated -# define BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS - -// CodeGear has not yet completely implemented value-initialization, for -// example for array types, as I reported in 2010: Embarcadero Report 83751, -// "Value-initialization: arrays should have each element value-initialized", -// http://qc.embarcadero.com/wc/qcmain.aspx?d=83751 -// Last checked version: Embarcadero C++ 6.21 -// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues -// (Niels Dekker, LKEB, April 2010) -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION - -# if defined(NDEBUG) && defined(__cplusplus) - // fix broken so that Boost.test works: -# include -# undef strcmp -# endif - // fix broken errno declaration: -# include -# ifndef errno -# define errno errno -# endif - -#endif - -// Reportedly, #pragma once is supported since C++ Builder 2010 -#if (__CODEGEARC__ >= 0x620) -# define BOOST_HAS_PRAGMA_ONCE -#endif - -// -// C++0x macros: -// -#if (__CODEGEARC__ <= 0x620) -#define BOOST_NO_CXX11_STATIC_ASSERT -#else -#define BOOST_HAS_STATIC_ASSERT -#endif -#define BOOST_HAS_CHAR16_T -#define BOOST_HAS_CHAR32_T -#define BOOST_HAS_LONG_LONG -// #define BOOST_HAS_ALIGNOF -#define BOOST_HAS_DECLTYPE -#define BOOST_HAS_EXPLICIT_CONVERSION_OPS -// #define BOOST_HAS_RVALUE_REFS -#define BOOST_HAS_SCOPED_ENUM -// #define BOOST_HAS_STATIC_ASSERT -#define BOOST_HAS_STD_TYPE_TRAITS - -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -// -// TR1 macros: -// -#define BOOST_HAS_TR1_HASH -#define BOOST_HAS_TR1_TYPE_TRAITS -#define BOOST_HAS_TR1_UNORDERED_MAP -#define BOOST_HAS_TR1_UNORDERED_SET - -#define BOOST_HAS_MACRO_USE_FACET - -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST - -// On non-Win32 platforms let the platform config figure this out: -#ifdef _WIN32 -# define BOOST_HAS_STDINT_H -#endif - -// -// __int64: -// -#if !defined(__STRICT_ANSI__) -# define BOOST_HAS_MS_INT64 -#endif -// -// check for exception handling support: -// -#if !defined(_CPPUNWIND) && !defined(BOOST_CPPUNWIND) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif -// -// all versions have a : -// -#if !defined(__STRICT_ANSI__) -# define BOOST_HAS_DIRENT_H -#endif -// -// all versions support __declspec: -// -#if defined(__STRICT_ANSI__) -// config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined -# define BOOST_SYMBOL_EXPORT -#endif -// -// ABI fixing headers: -// -#ifndef BOOST_ABI_PREFIX -# define BOOST_ABI_PREFIX "boost/config/abi/borland_prefix.hpp" -#endif -#ifndef BOOST_ABI_SUFFIX -# define BOOST_ABI_SUFFIX "boost/config/abi/borland_suffix.hpp" -#endif -// -// Disable Win32 support in ANSI mode: -// -# pragma defineonoption BOOST_DISABLE_WIN32 -A -// -// MSVC compatibility mode does some nasty things: -// TODO: look up if this doesn't apply to the whole 12xx range -// -#if defined(_MSC_VER) && (_MSC_VER <= 1200) -# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP -# define BOOST_NO_VOID_RETURNS -#endif - -#define BOOST_COMPILER "CodeGear C++ version " BOOST_STRINGIZE(__CODEGEARC__) - diff --git a/libktorrent/miniboost/boost/config/compiler/comeau.hpp b/libktorrent/miniboost/boost/config/compiler/comeau.hpp deleted file mode 100644 index 278222dc..00000000 --- a/libktorrent/miniboost/boost/config/compiler/comeau.hpp +++ /dev/null @@ -1,59 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright Douglas Gregor 2001. -// (C) Copyright Peter Dimov 2001. -// (C) Copyright Aleksey Gurtovoy 2003. -// (C) Copyright Beman Dawes 2003. -// (C) Copyright Jens Maurer 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Comeau C++ compiler setup: - -#include "boost/config/compiler/common_edg.hpp" - -#if (__COMO_VERSION__ <= 4245) - -# if defined(_MSC_VER) && _MSC_VER <= 1300 -# if _MSC_VER > 100 - // only set this in non-strict mode: -# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP -# endif -# endif - -// Void returns don't work when emulating VC 6 (Peter Dimov) -// TODO: look up if this doesn't apply to the whole 12xx range -# if defined(_MSC_VER) && (_MSC_VER < 1300) -# define BOOST_NO_VOID_RETURNS -# endif - -#endif // version 4245 - -// -// enable __int64 support in VC emulation mode -// -# if defined(_MSC_VER) && (_MSC_VER >= 1200) -# define BOOST_HAS_MS_INT64 -# endif - -#define BOOST_COMPILER "Comeau compiler version " BOOST_STRINGIZE(__COMO_VERSION__) - -// -// versions check: -// we don't know Comeau prior to version 4245: -#if __COMO_VERSION__ < 4245 -# error "Compiler not configured - please reconfigure" -#endif -// -// last known and checked version is 4245: -#if (__COMO_VERSION__ > 4245) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - - - diff --git a/libktorrent/miniboost/boost/config/compiler/common_edg.hpp b/libktorrent/miniboost/boost/config/compiler/common_edg.hpp deleted file mode 100644 index d5589add..00000000 --- a/libktorrent/miniboost/boost/config/compiler/common_edg.hpp +++ /dev/null @@ -1,113 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// (C) Copyright Jens Maurer 2001. -// (C) Copyright David Abrahams 2002. -// (C) Copyright Aleksey Gurtovoy 2002. -// (C) Copyright Markus Schoepflin 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// -// Options common to all edg based compilers. -// -// This is included from within the individual compiler mini-configs. - -#ifndef __EDG_VERSION__ -# error This file requires that __EDG_VERSION__ be defined. -#endif - -#if (__EDG_VERSION__ <= 238) -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_NO_SFINAE -#endif - -#if (__EDG_VERSION__ <= 240) -# define BOOST_NO_VOID_RETURNS -#endif - -#if (__EDG_VERSION__ <= 241) && !defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) -# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP -#endif - -#if (__EDG_VERSION__ <= 244) && !defined(BOOST_NO_TEMPLATE_TEMPLATES) -# define BOOST_NO_TEMPLATE_TEMPLATES -#endif - -#if (__EDG_VERSION__ < 300) && !defined(BOOST_NO_IS_ABSTRACT) -# define BOOST_NO_IS_ABSTRACT -#endif - -#if (__EDG_VERSION__ <= 303) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) -# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -#endif - -// See also kai.hpp which checks a Kai-specific symbol for EH -# if !defined(__KCC) && !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -# endif - -# if !defined(__NO_LONG_LONG) -# define BOOST_HAS_LONG_LONG -# else -# define BOOST_NO_LONG_LONG -# endif - -// Not sure what version was the first to support #pragma once, but -// different EDG-based compilers (e.g. Intel) supported it for ages. -// Add a proper version check if it causes problems. -#define BOOST_HAS_PRAGMA_ONCE - -// -// C++0x features -// -// See above for BOOST_NO_LONG_LONG -// -#if (__EDG_VERSION__ < 310) -# define BOOST_NO_CXX11_EXTERN_TEMPLATE -#endif -#if (__EDG_VERSION__ <= 310) -// No support for initializer lists -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#endif -#if (__EDG_VERSION__ < 400) -# define BOOST_NO_CXX11_VARIADIC_MACROS -#endif - -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -#ifdef c_plusplus -// EDG has "long long" in non-strict mode -// However, some libraries have insufficient "long long" support -// #define BOOST_HAS_LONG_LONG -#endif diff --git a/libktorrent/miniboost/boost/config/compiler/compaq_cxx.hpp b/libktorrent/miniboost/boost/config/compiler/compaq_cxx.hpp deleted file mode 100644 index b44486c6..00000000 --- a/libktorrent/miniboost/boost/config/compiler/compaq_cxx.hpp +++ /dev/null @@ -1,19 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Tru64 C++ compiler setup (now HP): - -#define BOOST_COMPILER "HP Tru64 C++ " BOOST_STRINGIZE(__DECCXX_VER) - -#include "boost/config/compiler/common_edg.hpp" - -// -// versions check: -// Nothing to do here? - - - diff --git a/libktorrent/miniboost/boost/config/compiler/cray.hpp b/libktorrent/miniboost/boost/config/compiler/cray.hpp deleted file mode 100644 index 94e932b8..00000000 --- a/libktorrent/miniboost/boost/config/compiler/cray.hpp +++ /dev/null @@ -1,89 +0,0 @@ -// (C) Copyright John Maddock 2011. -// (C) Copyright Cray, Inc. 2013 -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Greenhills C compiler setup: - -#define BOOST_COMPILER "Cray C version " BOOST_STRINGIZE(_RELEASE) - -#if _RELEASE < 8 -# error "Boost is not configured for Cray compilers prior to version 8, please try the configure script." -#endif - -// -// Check this is a recent EDG based compiler, otherwise we don't support it here: -// -#ifndef __EDG_VERSION__ -# error "Unsupported Cray compiler, please try running the configure script." -#endif - -#include "boost/config/compiler/common_edg.hpp" - - -// -// -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_HAS_NRVO -#define BOOST_NO_CXX11_VARIADIC_MACROS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#define BOOST_HAS_NRVO -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_REF_QUALIFIERS -//#define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG -#define BOOST_MATH_DISABLE_STD_FPCLASSIFY -//#define BOOST_HAS_FPCLASSIFY - -#define BOOST_SP_USE_PTHREADS -#define BOOST_AC_USE_PTHREADS - -/* everything that follows is working around what are thought to be - * compiler shortcomings. Revist all of these regularly. - */ - -//#define BOOST_USE_ENUM_STATIC_ASSERT -//#define BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS //(this may be implied by the previous #define - -// These constants should be provided by the -// compiler, at least when -hgnu is asserted on the command line. - -#ifndef __ATOMIC_RELAXED -#define __ATOMIC_RELAXED 0 -#define __ATOMIC_CONSUME 1 -#define __ATOMIC_ACQUIRE 2 -#define __ATOMIC_RELEASE 3 -#define __ATOMIC_ACQ_REL 4 -#define __ATOMIC_SEQ_CST 5 -#endif - - - diff --git a/libktorrent/miniboost/boost/config/compiler/digitalmars.hpp b/libktorrent/miniboost/boost/config/compiler/digitalmars.hpp deleted file mode 100644 index 7bc49ab4..00000000 --- a/libktorrent/miniboost/boost/config/compiler/digitalmars.hpp +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (C) Christof Meerwald 2003 -// Copyright (C) Dan Watkins 2003 -// -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// Digital Mars C++ compiler setup: -#define BOOST_COMPILER __DMC_VERSION_STRING__ - -#define BOOST_HAS_LONG_LONG -#define BOOST_HAS_PRAGMA_ONCE - -#if !defined(BOOST_STRICT_CONFIG) -#define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -#define BOOST_NO_OPERATORS_IN_NAMESPACE -#define BOOST_NO_UNREACHABLE_RETURN_DETECTION -#define BOOST_NO_SFINAE -#define BOOST_NO_USING_TEMPLATE -#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -#endif - -// -// has macros: -#define BOOST_HAS_DIRENT_H -#define BOOST_HAS_STDINT_H -#define BOOST_HAS_WINTHREADS - -#if (__DMC__ >= 0x847) -#define BOOST_HAS_EXPM1 -#define BOOST_HAS_LOG1P -#endif - -// -// Is this really the best way to detect whether the std lib is in namespace std? -// -#ifdef __cplusplus -#include -#endif -#if !defined(__STL_IMPORT_VENDOR_CSTD) && !defined(_STLP_IMPORT_VENDOR_CSTD) -# define BOOST_NO_STDC_NAMESPACE -#endif - - -// check for exception handling support: -#if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif - -// -// C++0x features -// -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -#if (__DMC__ <= 0x840) -#error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version is ...: -#if (__DMC__ > 0x848) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif diff --git a/libktorrent/miniboost/boost/config/compiler/gcc.hpp b/libktorrent/miniboost/boost/config/compiler/gcc.hpp deleted file mode 100644 index ef6b07e2..00000000 --- a/libktorrent/miniboost/boost/config/compiler/gcc.hpp +++ /dev/null @@ -1,266 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Darin Adler 2001 - 2002. -// (C) Copyright Jens Maurer 2001 - 2002. -// (C) Copyright Beman Dawes 2001 - 2003. -// (C) Copyright Douglas Gregor 2002. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Synge Todo 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// GNU C++ compiler setup. - -// -// Define BOOST_GCC so we know this is "real" GCC and not some pretender: -// -#if !defined(__CUDACC__) -#define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) -#endif - -#if __GNUC__ == 3 -# if defined (__PATHSCALE__) -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -# define BOOST_NO_IS_ABSTRACT -# endif - -# if __GNUC_MINOR__ < 4 -# define BOOST_NO_IS_ABSTRACT -# endif -# define BOOST_NO_CXX11_EXTERN_TEMPLATE -#endif -#if __GNUC__ < 4 -// -// All problems to gcc-3.x and earlier here: -// -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -# ifdef __OPEN64__ -# define BOOST_NO_IS_ABSTRACT -# endif -#endif - -// GCC prior to 3.4 had #pragma once too but it didn't work well with filesystem links -#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -#define BOOST_HAS_PRAGMA_ONCE -#endif - -#if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 4 ) -// Previous versions of GCC did not completely implement value-initialization: -// GCC Bug 30111, "Value-initialization of POD base class doesn't initialize -// members", reported by Jonathan Wakely in 2006, -// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30111 (fixed for GCC 4.4) -// GCC Bug 33916, "Default constructor fails to initialize array members", -// reported by Michael Elizabeth Chastain in 2007, -// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33916 (fixed for GCC 4.2.4) -// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues -#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -#endif - -#if !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif - - -// -// Threading support: Turn this on unconditionally here (except for -// those platforms where we can know for sure). It will get turned off again -// later if no threading API is detected. -// -#if !defined(__MINGW32__) && !defined(linux) && !defined(__linux) && !defined(__linux__) -# define BOOST_HAS_THREADS -#endif - -// -// gcc has "long long" -// Except on Darwin with standard compliance enabled (-pedantic) -// Apple gcc helpfully defines this macro we can query -// -#if !defined(__DARWIN_NO_LONG_LONG) -# define BOOST_HAS_LONG_LONG -#endif - -// -// gcc implements the named return value optimization since version 3.1 -// -#define BOOST_HAS_NRVO - -// Branch prediction hints -#define BOOST_LIKELY(x) __builtin_expect(x, 1) -#define BOOST_UNLIKELY(x) __builtin_expect(x, 0) - -// -// Dynamic shared object (DSO) and dynamic-link library (DLL) support -// -#if __GNUC__ >= 4 -# if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && !defined(__CYGWIN__) - // All Win32 development environments, including 64-bit Windows and MinGW, define - // _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment, - // so does not define _WIN32 or its variants. -# define BOOST_HAS_DECLSPEC -# define BOOST_SYMBOL_EXPORT __attribute__((__dllexport__)) -# define BOOST_SYMBOL_IMPORT __attribute__((__dllimport__)) -# else -# define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default"))) -# define BOOST_SYMBOL_IMPORT -# endif -# define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default"))) -#else -// config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined -# define BOOST_SYMBOL_EXPORT -#endif - -// -// RTTI and typeinfo detection is possible post gcc-4.3: -// -#if __GNUC__ * 100 + __GNUC_MINOR__ >= 403 -# ifndef __GXX_RTTI -# ifndef BOOST_NO_TYPEID -# define BOOST_NO_TYPEID -# endif -# ifndef BOOST_NO_RTTI -# define BOOST_NO_RTTI -# endif -# endif -#endif - -// -// Recent GCC versions have __int128 when in 64-bit mode. -// -// We disable this if the compiler is really nvcc as it -// doesn't actually support __int128 as of CUDA_VERSION=5000 -// even though it defines __SIZEOF_INT128__. -// See https://svn.boost.org/trac/boost/ticket/8048 -// Only re-enable this for nvcc if you're absolutely sure -// of the circumstances under which it's supported: -// -#if defined(__SIZEOF_INT128__) && !defined(__CUDACC__) -# define BOOST_HAS_INT128 -#endif - -// C++0x features in 4.3.n and later -// -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 2)) && defined(__GXX_EXPERIMENTAL_CXX0X__) -// C++0x features are only enabled when -std=c++0x or -std=gnu++0x are -// passed on the command line, which in turn defines -// __GXX_EXPERIMENTAL_CXX0X__. -# define BOOST_HAS_DECLTYPE -# define BOOST_HAS_RVALUE_REFS -# define BOOST_HAS_STATIC_ASSERT -# define BOOST_HAS_VARIADIC_TMPL -#else -# define BOOST_NO_CXX11_DECLTYPE -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -# define BOOST_NO_CXX11_RVALUE_REFERENCES -# define BOOST_NO_CXX11_STATIC_ASSERT - -// Variadic templates compiler: -// http://www.generic-programming.org/~dgregor/cpp/variadic-templates.html -# if defined(__VARIADIC_TEMPLATES) || (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4) && defined(__GXX_EXPERIMENTAL_CXX0X__)) -# define BOOST_HAS_VARIADIC_TMPL -# else -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -# endif -#endif - -// C++0x features in 4.4.n and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_CHAR32_T -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -# define BOOST_NO_CXX11_INLINE_NAMESPACES -#endif - -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) -# define BOOST_NO_SFINAE_EXPR -#endif - -// GCC 4.5 forbids declaration of defaulted functions in private or protected sections -#if !defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && (__GNUC__ == 4 && __GNUC_MINOR__ <= 5) -# define BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS -#endif - -// C++0x features in 4.5.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_LAMBDAS -# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -# define BOOST_NO_CXX11_RAW_LITERALS -# define BOOST_NO_CXX11_UNICODE_LITERALS -#endif - -// C++0x features in 4.5.1 and later -// -#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40501) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -// scoped enums have a serious bug in 4.4.0, so define BOOST_NO_CXX11_SCOPED_ENUMS before 4.5.1 -// See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38064 -# define BOOST_NO_CXX11_SCOPED_ENUMS -#endif - -// C++0x features in 4.6.n and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#endif - -// C++0x features in 4.7.n and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -# define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#endif - -// C++0x features in 4.8.n and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_ALIGNAS -#endif - -// C++0x features in 4.8.1 and later -// -#if (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40801) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_DECLTYPE_N3276 -# define BOOST_NO_CXX11_REF_QUALIFIERS -#endif - -#ifndef BOOST_COMPILER -# define BOOST_COMPILER "GNU C++ version " __VERSION__ -#endif - -// ConceptGCC compiler: -// http://www.generic-programming.org/software/ConceptGCC/ -#ifdef __GXX_CONCEPTS__ -# define BOOST_HAS_CONCEPTS -# define BOOST_COMPILER "ConceptGCC version " __VERSION__ -#endif - -// versions check: -// we don't know gcc prior to version 3.30: -#if (__GNUC__ < 3) || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3)) -# error "Compiler not configured - please reconfigure" -#endif -// -// last known and checked version is 4.6 (Pre-release): -#if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6)) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# else -// we don't emit warnings here anymore since there are no defect macros defined for -// gcc post 3.4, so any failures are gcc regressions... -//# warning "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - diff --git a/libktorrent/miniboost/boost/config/compiler/gcc_xml.hpp b/libktorrent/miniboost/boost/config/compiler/gcc_xml.hpp deleted file mode 100644 index f04af061..00000000 --- a/libktorrent/miniboost/boost/config/compiler/gcc_xml.hpp +++ /dev/null @@ -1,65 +0,0 @@ -// (C) Copyright John Maddock 2006. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// GCC-XML C++ compiler setup: - -# if !defined(__GCCXML_GNUC__) || ((__GCCXML_GNUC__ <= 3) && (__GCCXML_GNUC_MINOR__ <= 3)) -# define BOOST_NO_IS_ABSTRACT -# endif - -// -// Threading support: Turn this on unconditionally here (except for -// those platforms where we can know for sure). It will get turned off again -// later if no threading API is detected. -// -#if !defined(__MINGW32__) && !defined(_MSC_VER) && !defined(linux) && !defined(__linux) && !defined(__linux__) -# define BOOST_HAS_THREADS -#endif - -// -// gcc has "long long" -// -#define BOOST_HAS_LONG_LONG - -// C++0x features: -// -# define BOOST_NO_CXX11_CONSTEXPR -# define BOOST_NO_CXX11_NULLPTR -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -# define BOOST_NO_CXX11_DECLTYPE -# define BOOST_NO_CXX11_DECLTYPE_N3276 -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -# define BOOST_NO_CXX11_RVALUE_REFERENCES -# define BOOST_NO_CXX11_STATIC_ASSERT -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -# define BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_CHAR32_T -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_SCOPED_ENUMS -# define BOOST_NO_SFINAE_EXPR -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_LAMBDAS -# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -# define BOOST_NO_CXX11_RANGE_BASED_FOR -# define BOOST_NO_CXX11_RAW_LITERALS -# define BOOST_NO_CXX11_UNICODE_LITERALS -# define BOOST_NO_CXX11_NOEXCEPT -# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -# define BOOST_NO_CXX11_USER_DEFINED_LITERALS -# define BOOST_NO_CXX11_ALIGNAS -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -# define BOOST_NO_CXX11_INLINE_NAMESPACES -# define BOOST_NO_CXX11_REF_QUALIFIERS - -#define BOOST_COMPILER "GCC-XML C++ version " __GCCXML__ - - diff --git a/libktorrent/miniboost/boost/config/compiler/greenhills.hpp b/libktorrent/miniboost/boost/config/compiler/greenhills.hpp deleted file mode 100644 index 038b6b2b..00000000 --- a/libktorrent/miniboost/boost/config/compiler/greenhills.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Greenhills C++ compiler setup: - -#define BOOST_COMPILER "Greenhills C++ version " BOOST_STRINGIZE(__ghs) - -#include "boost/config/compiler/common_edg.hpp" - -// -// versions check: -// we don't support Greenhills prior to version 0: -#if __ghs < 0 -# error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version is 0: -#if (__ghs > 0) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - diff --git a/libktorrent/miniboost/boost/config/compiler/hp_acc.hpp b/libktorrent/miniboost/boost/config/compiler/hp_acc.hpp deleted file mode 100644 index fb63839a..00000000 --- a/libktorrent/miniboost/boost/config/compiler/hp_acc.hpp +++ /dev/null @@ -1,145 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001 - 2003. -// (C) Copyright Aleksey Gurtovoy 2002. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Toon Knapen 2003. -// (C) Copyright Boris Gubenko 2006 - 2007. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// HP aCC C++ compiler setup: - -#if defined(__EDG__) -#include "boost/config/compiler/common_edg.hpp" -#endif - -#if (__HP_aCC <= 33100) -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_NO_OPERATORS_IN_NAMESPACE -# if !defined(_NAMESPACE_STD) -# define BOOST_NO_STD_LOCALE -# define BOOST_NO_STRINGSTREAM -# endif -#endif - -#if (__HP_aCC <= 33300) -// member templates are sufficiently broken that we disable them for now -# define BOOST_NO_MEMBER_TEMPLATES -# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS -# define BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE -#endif - -#if (__HP_aCC <= 38000) -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#endif - -#if (__HP_aCC > 50000) && (__HP_aCC < 60000) -# define BOOST_NO_UNREACHABLE_RETURN_DETECTION -# define BOOST_NO_TEMPLATE_TEMPLATES -# define BOOST_NO_SWPRINTF -# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS -# define BOOST_NO_IS_ABSTRACT -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -#endif - -// optional features rather than defects: -#if (__HP_aCC >= 33900) -# define BOOST_HAS_LONG_LONG -# define BOOST_HAS_PARTIAL_STD_ALLOCATOR -#endif - -#if (__HP_aCC >= 50000 ) && (__HP_aCC <= 53800 ) || (__HP_aCC < 31300 ) -# define BOOST_NO_MEMBER_TEMPLATE_KEYWORD -#endif - -// This macro should not be defined when compiling in strict ansi -// mode, but, currently, we don't have the ability to determine -// what standard mode we are compiling with. Some future version -// of aCC6 compiler will provide predefined macros reflecting the -// compilation options, including the standard mode. -#if (__HP_aCC >= 60000) || ((__HP_aCC > 38000) && defined(__hpxstd98)) -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#endif - -#define BOOST_COMPILER "HP aCC version " BOOST_STRINGIZE(__HP_aCC) - -// -// versions check: -// we don't support HP aCC prior to version 33000: -#if __HP_aCC < 33000 -# error "Compiler not supported or configured - please reconfigure" -#endif - -// -// Extended checks for supporting aCC on PA-RISC -#if __HP_aCC > 30000 && __HP_aCC < 50000 -# if __HP_aCC < 38000 - // versions prior to version A.03.80 not supported -# error "Compiler version not supported - version A.03.80 or higher is required" -# elif !defined(__hpxstd98) - // must compile using the option +hpxstd98 with version A.03.80 and above -# error "Compiler option '+hpxstd98' is required for proper support" -# endif //PA-RISC -#endif - -// -// C++0x features -// -// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG -// -#if !defined(__EDG__) - -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -/* - See https://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1443331 and - https://forums13.itrc.hp.com/service/forums/questionanswer.do?threadId=1443436 -*/ - -#if (__HP_aCC < 62500) || !defined(HP_CXX0x_SOURCE) - #define BOOST_NO_CXX11_VARIADIC_MACROS -#endif - -#endif - -// -// last known and checked version for HP-UX/ia64 is 61300 -// last known and checked version for PA-RISC is 38000 -#if ((__HP_aCC > 61300) || ((__HP_aCC > 38000) && defined(__hpxstd98))) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif diff --git a/libktorrent/miniboost/boost/config/compiler/intel.hpp b/libktorrent/miniboost/boost/config/compiler/intel.hpp deleted file mode 100644 index cbc9422f..00000000 --- a/libktorrent/miniboost/boost/config/compiler/intel.hpp +++ /dev/null @@ -1,324 +0,0 @@ -// (C) Copyright John Maddock 2001-8. -// (C) Copyright Peter Dimov 2001. -// (C) Copyright Jens Maurer 2001. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Aleksey Gurtovoy 2002 - 2003. -// (C) Copyright Guillaume Melquiond 2002 - 2003. -// (C) Copyright Beman Dawes 2003. -// (C) Copyright Martin Wille 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Intel compiler setup: - -#include "boost/config/compiler/common_edg.hpp" - -#if defined(__INTEL_COMPILER) -# define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER -#elif defined(__ICL) -# define BOOST_INTEL_CXX_VERSION __ICL -#elif defined(__ICC) -# define BOOST_INTEL_CXX_VERSION __ICC -#elif defined(__ECC) -# define BOOST_INTEL_CXX_VERSION __ECC -#endif - -// Flags determined by comparing output of 'icpc -dM -E' with and without '-std=c++0x' -#if (!(defined(_WIN32) || defined(_WIN64)) && defined(__STDC_HOSTED__) && (__STDC_HOSTED__ && (BOOST_INTEL_CXX_VERSION <= 1200))) || defined(__GXX_EXPERIMENTAL_CPP0X__) || defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_INTEL_STDCXX0X -#endif -#if defined(_MSC_VER) && (_MSC_VER >= 1600) -# define BOOST_INTEL_STDCXX0X -#endif - -#ifdef BOOST_INTEL_STDCXX0X -#define BOOST_COMPILER "Intel C++ C++0x mode version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION) -#else -#define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION) -#endif -#define BOOST_INTEL BOOST_INTEL_CXX_VERSION - -#if defined(_WIN32) || defined(_WIN64) -# define BOOST_INTEL_WIN BOOST_INTEL -#else -# define BOOST_INTEL_LINUX BOOST_INTEL -#endif - -#if (BOOST_INTEL_CXX_VERSION <= 600) - -# if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov) - -// Boost libraries assume strong standard conformance unless otherwise -// indicated by a config macro. As configured by Intel, the EDG front-end -// requires certain compiler options be set to achieve that strong conformance. -// Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt) -// and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for -// details as they apply to particular versions of the compiler. When the -// compiler does not predefine a macro indicating if an option has been set, -// this config file simply assumes the option has been set. -// Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if -// the compiler option is not enabled. - -# define BOOST_NO_SWPRINTF -# endif - -// Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov) - -# if defined(_MSC_VER) && (_MSC_VER <= 1200) -# define BOOST_NO_VOID_RETURNS -# define BOOST_NO_INTEGRAL_INT64_T -# endif - -#endif - -#if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32) -# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS -#endif - -// See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864 -#if BOOST_INTEL_CXX_VERSION < 600 -# define BOOST_NO_INTRINSIC_WCHAR_T -#else -// We should test the macro _WCHAR_T_DEFINED to check if the compiler -// supports wchar_t natively. *BUT* there is a problem here: the standard -// headers define this macro if they typedef wchar_t. Anyway, we're lucky -// because they define it without a value, while Intel C++ defines it -// to 1. So we can check its value to see if the macro was defined natively -// or not. -// Under UNIX, the situation is exactly the same, but the macro _WCHAR_T -// is used instead. -# if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0) -# define BOOST_NO_INTRINSIC_WCHAR_T -# endif -#endif - -#if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) -// -// Figure out when Intel is emulating this gcc bug -// (All Intel versions prior to 9.0.26, and versions -// later than that if they are set up to emulate gcc 3.2 -// or earlier): -// -# if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912) -# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -# endif -#endif -#if (defined(__GNUC__) && (__GNUC__ < 4)) || (defined(_WIN32) && (BOOST_INTEL_CXX_VERSION <= 1200)) || (BOOST_INTEL_CXX_VERSION <= 1200) -// GCC or VC emulation: -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#endif -// -// Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T -// set correctly, if we don't do this now, we will get errors later -// in type_traits code among other things, getting this correct -// for the Intel compiler is actually remarkably fragile and tricky: -// -#ifdef __cplusplus -#if defined(BOOST_NO_INTRINSIC_WCHAR_T) -#include -template< typename T > struct assert_no_intrinsic_wchar_t; -template<> struct assert_no_intrinsic_wchar_t { typedef void type; }; -// if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T -// where it is defined above: -typedef assert_no_intrinsic_wchar_t::type assert_no_intrinsic_wchar_t_; -#else -template< typename T > struct assert_intrinsic_wchar_t; -template<> struct assert_intrinsic_wchar_t {}; -// if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line: -template<> struct assert_intrinsic_wchar_t {}; -#endif -#endif - -#if defined(_MSC_VER) && (_MSC_VER+0 >= 1000) -# if _MSC_VER >= 1200 -# define BOOST_HAS_MS_INT64 -# endif -# define BOOST_NO_SWPRINTF -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#elif defined(_WIN32) -# define BOOST_DISABLE_WIN32 -#endif - -// I checked version 6.0 build 020312Z, it implements the NRVO. -// Correct this as you find out which version of the compiler -// implemented the NRVO first. (Daniel Frey) -#if (BOOST_INTEL_CXX_VERSION >= 600) -# define BOOST_HAS_NRVO -#endif - -// Branch prediction hints -// I'm not sure 8.0 was the first version to support these builtins, -// update the condition if the version is not accurate. (Andrey Semashev) -#if defined(__GNUC__) && BOOST_INTEL_CXX_VERSION >= 800 -#define BOOST_LIKELY(x) __builtin_expect(x, 1) -#define BOOST_UNLIKELY(x) __builtin_expect(x, 0) -#endif - -// -// versions check: -// we don't support Intel prior to version 6.0: -#if BOOST_INTEL_CXX_VERSION < 600 -# error "Compiler not supported or configured - please reconfigure" -#endif - -// Intel on MacOS requires -#if defined(__APPLE__) && defined(__INTEL_COMPILER) -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#endif - -// Intel on Altix Itanium -#if defined(__itanium__) && defined(__INTEL_COMPILER) -# define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#endif - -// -// An attempt to value-initialize a pointer-to-member may trigger an -// internal error on Intel <= 11.1 (last checked version), as was -// reported by John Maddock, Intel support issue 589832, May 2010. -// Moreover, according to test results from Huang-Vista-x86_32_intel, -// intel-vc9-win-11.1 may leave a non-POD array uninitialized, in some -// cases when it should be value-initialized. -// (Niels Dekker, LKEB, May 2010) -// Apparently Intel 12.1 (compiler version number 9999 !!) has the same issue (compiler regression). -#if defined(__INTEL_COMPILER) -# if (__INTEL_COMPILER <= 1110) || (__INTEL_COMPILER == 9999) || (defined(_WIN32) && (__INTEL_COMPILER < 1500)) -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -# endif -#endif - -// -// Dynamic shared object (DSO) and dynamic-link library (DLL) support -// -#if defined(__GNUC__) && (__GNUC__ >= 4) -# define BOOST_SYMBOL_EXPORT __attribute__((visibility("default"))) -# define BOOST_SYMBOL_IMPORT -# define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default"))) -#endif -// -// C++0x features -// - ICC added static_assert in 11.0 (first version with C++0x support) -// -#if defined(BOOST_INTEL_STDCXX0X) -# undef BOOST_NO_CXX11_STATIC_ASSERT -// -// These pass our test cases, but aren't officially supported according to: -// http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/ -// -//# undef BOOST_NO_CXX11_LAMBDAS -//# undef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -//# undef BOOST_NO_CXX11_DECLTYPE -//# undef BOOST_NO_CXX11_AUTO_DECLARATIONS -//# undef BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#endif - -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION >= 1200) -//# undef BOOST_NO_CXX11_RVALUE_REFERENCES // Enabling this breaks Filesystem and Exception libraries -//# undef BOOST_NO_CXX11_SCOPED_ENUMS // doesn't really work!! -# undef BOOST_NO_CXX11_DELETED_FUNCTIONS -# undef BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# undef BOOST_NO_CXX11_LAMBDAS -# undef BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -# undef BOOST_NO_CXX11_DECLTYPE -# undef BOOST_NO_CXX11_AUTO_DECLARATIONS -# undef BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -# undef BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#endif - -// icl Version 12.1.0.233 Build 20110811 and possibly some other builds -// had an incorrect __INTEL_COMPILER value of 9999. Intel say this has been fixed. -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION > 1200) -# undef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -# undef BOOST_NO_CXX11_NULLPTR -# undef BOOST_NO_CXX11_RVALUE_REFERENCES -# undef BOOST_NO_SFINAE_EXPR -# undef BOOST_NO_CXX11_TEMPLATE_ALIASES -# undef BOOST_NO_CXX11_VARIADIC_TEMPLATES - -// http://software.intel.com/en-us/articles/c0x-features-supported-by-intel-c-compiler/ -// continues to list scoped enum support as "Partial" -//# undef BOOST_NO_CXX11_SCOPED_ENUMS -#endif -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION >= 1310) && !defined(_MSC_VER) -# undef BOOST_NO_CXX11_INLINE_NAMESPACES -# undef BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -// This one generates internal compiler errors in multiprecision, disabled for now: -//# undef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -// This one generates errors when used with conditional exception specifications, for example in multiprecision: -//# undef BOOST_NO_CXX11_NOEXCEPT -# undef BOOST_NO_CXX11_RANGE_BASED_FOR -# undef BOOST_NO_CXX11_SCOPED_ENUMS -# undef BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#endif -#if (BOOST_INTEL_CXX_VERSION >= 1310) -# undef BOOST_NO_SFINAE_EXPR -#endif -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION >= 1400) && !defined(_MSC_VER) -# undef BOOST_NO_CXX11_UNICODE_LITERALS -# undef BOOST_NO_CXX11_RAW_LITERALS -// This one generates errors when used with conditional exception specifications, for example in multiprecision: -//# undef BOOST_NO_CXX11_NOEXCEPT -// This breaks multiprecision: -//# undef BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# undef BOOST_NO_CXX11_HDR_THREAD -# undef BOOST_NO_CXX11_CHAR32_T -# undef BOOST_NO_CXX11_CHAR16_T -# undef BOOST_NO_CXX11_REF_QUALIFIERS -#endif - -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION <= 1310) -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#endif - -#if defined(BOOST_INTEL_STDCXX0X) && (BOOST_INTEL_CXX_VERSION == 1400) -// A regression in Intel's compiler means that seems to be broken in this release as well as : -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_TUPLE -#endif - -#if defined(_MSC_VER) && (_MSC_VER <= 1700) -// -// Although the Intel compiler is capable of supporting these, it appears not to in MSVC compatibility mode: -// -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -# if(BOOST_INTEL_CXX_VERSION < 1310) -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -# endif -#endif - -#if (BOOST_INTEL_CXX_VERSION < 1200) -// -// fenv.h appears not to work with Intel prior to 12.0: -// -# define BOOST_NO_FENV_H -#endif - -#if defined(_MSC_VER) && (_MSC_VER >= 1600) -# define BOOST_HAS_STDINT_H -#endif - -#if defined(__LP64__) && defined(__GNUC__) && (BOOST_INTEL_CXX_VERSION >= 1310) -# define BOOST_HAS_INT128 -#endif - -// -// last known and checked version: -#if (BOOST_INTEL_CXX_VERSION > 1310) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# elif defined(_MSC_VER) -// -// We don't emit this warning any more, since we have so few -// defect macros set anyway (just the one). -// -//# pragma message("Unknown compiler version - please run the configure tests and report the results") -# endif -#endif - diff --git a/libktorrent/miniboost/boost/config/compiler/kai.hpp b/libktorrent/miniboost/boost/config/compiler/kai.hpp deleted file mode 100644 index 2337e6a8..00000000 --- a/libktorrent/miniboost/boost/config/compiler/kai.hpp +++ /dev/null @@ -1,33 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright David Abrahams 2002. -// (C) Copyright Aleksey Gurtovoy 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Kai C++ compiler setup: - -#include "boost/config/compiler/common_edg.hpp" - -# if (__KCC_VERSION <= 4001) || !defined(BOOST_STRICT_CONFIG) - // at least on Sun, the contents of is not in namespace std -# define BOOST_NO_STDC_NAMESPACE -# endif - -// see also common_edg.hpp which needs a special check for __KCC -# if !defined(_EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -# endif - -// -// last known and checked version is 4001: -#if (__KCC_VERSION > 4001) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - - diff --git a/libktorrent/miniboost/boost/config/compiler/metrowerks.hpp b/libktorrent/miniboost/boost/config/compiler/metrowerks.hpp deleted file mode 100644 index c000215b..00000000 --- a/libktorrent/miniboost/boost/config/compiler/metrowerks.hpp +++ /dev/null @@ -1,149 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright Darin Adler 2001. -// (C) Copyright Peter Dimov 2001. -// (C) Copyright David Abrahams 2001 - 2002. -// (C) Copyright Beman Dawes 2001 - 2003. -// (C) Copyright Stefan Slapeta 2004. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Metrowerks C++ compiler setup: - -// locale support is disabled when linking with the dynamic runtime -# ifdef _MSL_NO_LOCALE -# define BOOST_NO_STD_LOCALE -# endif - -# if __MWERKS__ <= 0x2301 // 5.3 -# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING -# define BOOST_NO_POINTER_TO_MEMBER_CONST -# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS -# define BOOST_NO_MEMBER_TEMPLATE_KEYWORD -# endif - -# if __MWERKS__ <= 0x2401 // 6.2 -//# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING -# endif - -# if(__MWERKS__ <= 0x2407) // 7.x -# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS -# define BOOST_NO_UNREACHABLE_RETURN_DETECTION -# endif - -# if(__MWERKS__ <= 0x3003) // 8.x -# define BOOST_NO_SFINAE -# endif - -// the "|| !defined(BOOST_STRICT_CONFIG)" part should apply to the last -// tested version *only*: -# if(__MWERKS__ <= 0x3207) || !defined(BOOST_STRICT_CONFIG) // 9.6 -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -# define BOOST_NO_IS_ABSTRACT -# endif - -#if !__option(wchar_type) -# define BOOST_NO_INTRINSIC_WCHAR_T -#endif - -#if !__option(exceptions) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif - -#if (__INTEL__ && _WIN32) || (__POWERPC__ && macintosh) -# if __MWERKS__ == 0x3000 -# define BOOST_COMPILER_VERSION 8.0 -# elif __MWERKS__ == 0x3001 -# define BOOST_COMPILER_VERSION 8.1 -# elif __MWERKS__ == 0x3002 -# define BOOST_COMPILER_VERSION 8.2 -# elif __MWERKS__ == 0x3003 -# define BOOST_COMPILER_VERSION 8.3 -# elif __MWERKS__ == 0x3200 -# define BOOST_COMPILER_VERSION 9.0 -# elif __MWERKS__ == 0x3201 -# define BOOST_COMPILER_VERSION 9.1 -# elif __MWERKS__ == 0x3202 -# define BOOST_COMPILER_VERSION 9.2 -# elif __MWERKS__ == 0x3204 -# define BOOST_COMPILER_VERSION 9.3 -# elif __MWERKS__ == 0x3205 -# define BOOST_COMPILER_VERSION 9.4 -# elif __MWERKS__ == 0x3206 -# define BOOST_COMPILER_VERSION 9.5 -# elif __MWERKS__ == 0x3207 -# define BOOST_COMPILER_VERSION 9.6 -# else -# define BOOST_COMPILER_VERSION __MWERKS__ -# endif -#else -# define BOOST_COMPILER_VERSION __MWERKS__ -#endif - -// -// C++0x features -// -// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG -// -#if __MWERKS__ > 0x3206 && __option(rvalue_refs) -# define BOOST_HAS_RVALUE_REFS -#else -# define BOOST_NO_CXX11_RVALUE_REFERENCES -#endif -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_VARIADIC_MACROS -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -#define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) - -// -// versions check: -// we don't support Metrowerks prior to version 5.3: -#if __MWERKS__ < 0x2301 -# error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version: -#if (__MWERKS__ > 0x3205) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - - - - - - diff --git a/libktorrent/miniboost/boost/config/compiler/mpw.hpp b/libktorrent/miniboost/boost/config/compiler/mpw.hpp deleted file mode 100644 index 7a4ffa15..00000000 --- a/libktorrent/miniboost/boost/config/compiler/mpw.hpp +++ /dev/null @@ -1,90 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// (C) Copyright Aleksey Gurtovoy 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// MPW C++ compilers setup: - -# if defined(__SC__) -# define BOOST_COMPILER "MPW SCpp version " BOOST_STRINGIZE(__SC__) -# elif defined(__MRC__) -# define BOOST_COMPILER "MPW MrCpp version " BOOST_STRINGIZE(__MRC__) -# else -# error "Using MPW compiler configuration by mistake. Please update." -# endif - -// -// MPW 8.90: -// -#if (MPW_CPLUS <= 0x890) || !defined(BOOST_STRICT_CONFIG) -# define BOOST_NO_CV_SPECIALIZATIONS -# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS -# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS -# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION -# define BOOST_NO_INTRINSIC_WCHAR_T -# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -# define BOOST_NO_USING_TEMPLATE - -# define BOOST_NO_CWCHAR -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS - -# define BOOST_NO_STD_ALLOCATOR /* actually a bug with const reference overloading */ - -#endif - -// -// C++0x features -// -// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG -// -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_VARIADIC_MACROS -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS -// -// versions check: -// we don't support MPW prior to version 8.9: -#if MPW_CPLUS < 0x890 -# error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version is 0x890: -#if (MPW_CPLUS > 0x890) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - - diff --git a/libktorrent/miniboost/boost/config/compiler/nvcc.hpp b/libktorrent/miniboost/boost/config/compiler/nvcc.hpp deleted file mode 100644 index bbe81f6e..00000000 --- a/libktorrent/miniboost/boost/config/compiler/nvcc.hpp +++ /dev/null @@ -1,16 +0,0 @@ -// (C) Copyright Eric Jourdanneau, Joel Falcou 2010 -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// NVIDIA CUDA C++ compiler setup - -#ifndef BOOST_COMPILER -# define BOOST_COMPILER "NVIDIA CUDA C++ Compiler" -#endif - -// NVIDIA Specific support -// BOOST_GPU_ENABLED : Flag a function or a method as being enabled on the host and device -#define BOOST_GPU_ENABLED __host__ __device__ diff --git a/libktorrent/miniboost/boost/config/compiler/pathscale.hpp b/libktorrent/miniboost/boost/config/compiler/pathscale.hpp deleted file mode 100644 index 0625d7a1..00000000 --- a/libktorrent/miniboost/boost/config/compiler/pathscale.hpp +++ /dev/null @@ -1,84 +0,0 @@ -// (C) Copyright Bryce Lelbach 2011 - -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// PathScale EKOPath C++ Compiler - -#ifndef BOOST_COMPILER -# define BOOST_COMPILER "PathScale EKOPath C++ Compiler version " __PATHSCALE__ -#endif - -#if __PATHCC__ >= 4 -# define BOOST_MSVC6_MEMBER_TEMPLATES -# define BOOST_HAS_UNISTD_H -# define BOOST_HAS_STDINT_H -# define BOOST_HAS_SIGACTION -# define BOOST_HAS_SCHED_YIELD -# define BOOST_HAS_THREADS -# define BOOST_HAS_PTHREADS -# define BOOST_HAS_PTHREAD_YIELD -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_PARTIAL_STD_ALLOCATOR -# define BOOST_HAS_NRVO -# define BOOST_HAS_NL_TYPES_H -# define BOOST_HAS_NANOSLEEP -# define BOOST_HAS_LONG_LONG -# define BOOST_HAS_LOG1P -# define BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_EXPM1 -# define BOOST_HAS_DIRENT_H -# define BOOST_HAS_CLOCK_GETTIME -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -# define BOOST_NO_CXX11_UNICODE_LITERALS -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -# define BOOST_NO_CXX11_STATIC_ASSERT -# define BOOST_NO_SFINAE_EXPR -# define BOOST_NO_CXX11_SCOPED_ENUMS -# define BOOST_NO_CXX11_RVALUE_REFERENCES -# define BOOST_NO_CXX11_RANGE_BASED_FOR -# define BOOST_NO_CXX11_RAW_LITERALS -# define BOOST_NO_CXX11_NULLPTR -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_NOEXCEPT -# define BOOST_NO_CXX11_LAMBDAS -# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# define BOOST_NO_CXX11_DECLTYPE -# define BOOST_NO_CXX11_DECLTYPE_N3276 -# define BOOST_NO_CXX11_CONSTEXPR -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -# define BOOST_NO_CXX11_CHAR32_T -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_USER_DEFINED_LITERALS -# define BOOST_NO_CXX11_ALIGNAS -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -# define BOOST_NO_CXX11_INLINE_NAMESPACES -# define BOOST_NO_CXX11_REF_QUALIFIERS -#endif diff --git a/libktorrent/miniboost/boost/config/compiler/pgi.hpp b/libktorrent/miniboost/boost/config/compiler/pgi.hpp deleted file mode 100644 index 5cf61fa9..00000000 --- a/libktorrent/miniboost/boost/config/compiler/pgi.hpp +++ /dev/null @@ -1,126 +0,0 @@ -// (C) Copyright Noel Belcourt 2007. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// PGI C++ compiler setup: - -#define BOOST_COMPILER_VERSION __PGIC__##__PGIC_MINOR__ -#define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) - -// -// Threading support: -// Turn this on unconditionally here, it will get turned off again later -// if no threading API is detected. -// - -#if __PGIC__ >= 11 - -// options requested by configure --enable-test -#define BOOST_HAS_PTHREADS -#define BOOST_HAS_THREADS -#define BOOST_HAS_PTHREAD_YIELD -#define BOOST_HAS_NRVO -#define BOOST_HAS_LONG_LONG - -// options --enable-test wants undefined -#undef BOOST_NO_STDC_NAMESPACE -#undef BOOST_NO_EXCEPTION_STD_NAMESPACE -#undef BOOST_DEDUCED_TYPENAME - -#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_AUTO_DECLARATIONS - -#elif __PGIC__ >= 10 - -// options requested by configure --enable-test -#define BOOST_HAS_THREADS -#define BOOST_HAS_NRVO -#define BOOST_HAS_LONG_LONG -#if defined(linux) || defined(__linux) || defined(__linux__) -# define BOOST_HAS_STDINT_H -#endif - -// options --enable-test wants undefined -#undef BOOST_NO_STDC_NAMESPACE -#undef BOOST_NO_EXCEPTION_STD_NAMESPACE -#undef BOOST_DEDUCED_TYPENAME - -#elif __PGIC__ >= 7 - -#define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#define BOOST_NO_SWPRINTF -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_AUTO_DECLARATIONS - -#else - -# error "Pgi compiler not configured - please reconfigure" - -#endif -// -// C++0x features -// -// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG -// -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_NUMERIC_LIMITS -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_SWPRINTF -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_VARIADIC_MACROS -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX - -#define BOOST_NO_CXX11_HDR_UNORDERED_SET -#define BOOST_NO_CXX11_HDR_UNORDERED_MAP -#define BOOST_NO_CXX11_HDR_TYPEINDEX -#define BOOST_NO_CXX11_HDR_TYPE_TRAITS -#define BOOST_NO_CXX11_HDR_TUPLE -#define BOOST_NO_CXX11_HDR_THREAD -#define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -#define BOOST_NO_CXX11_HDR_REGEX -#define BOOST_NO_CXX11_HDR_RATIO -#define BOOST_NO_CXX11_HDR_RANDOM -#define BOOST_NO_CXX11_HDR_MUTEX -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_HDR_FUTURE -#define BOOST_NO_CXX11_HDR_FORWARD_LIST -#define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -#define BOOST_NO_CXX11_HDR_CODECVT -#define BOOST_NO_CXX11_HDR_CHRONO -#define BOOST_NO_CXX11_HDR_ARRAY -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -// -// version check: -// probably nothing to do here? - diff --git a/libktorrent/miniboost/boost/config/compiler/sgi_mipspro.hpp b/libktorrent/miniboost/boost/config/compiler/sgi_mipspro.hpp deleted file mode 100644 index 90688314..00000000 --- a/libktorrent/miniboost/boost/config/compiler/sgi_mipspro.hpp +++ /dev/null @@ -1,29 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// SGI C++ compiler setup: - -#define BOOST_COMPILER "SGI Irix compiler version " BOOST_STRINGIZE(_COMPILER_VERSION) - -#include "boost/config/compiler/common_edg.hpp" - -// -// Threading support: -// Turn this on unconditionally here, it will get turned off again later -// if no threading API is detected. -// -#define BOOST_HAS_THREADS -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP - -#undef BOOST_NO_SWPRINTF -#undef BOOST_DEDUCED_TYPENAME - -// -// version check: -// probably nothing to do here? - - diff --git a/libktorrent/miniboost/boost/config/compiler/sunpro_cc.hpp b/libktorrent/miniboost/boost/config/compiler/sunpro_cc.hpp deleted file mode 100644 index f2c85762..00000000 --- a/libktorrent/miniboost/boost/config/compiler/sunpro_cc.hpp +++ /dev/null @@ -1,154 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright Jens Maurer 2001 - 2003. -// (C) Copyright Peter Dimov 2002. -// (C) Copyright Aleksey Gurtovoy 2002 - 2003. -// (C) Copyright David Abrahams 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Sun C++ compiler setup: - -# if __SUNPRO_CC <= 0x500 -# define BOOST_NO_MEMBER_TEMPLATES -# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING -# endif - -# if (__SUNPRO_CC <= 0x520) - // - // Sunpro 5.2 and earler: - // - // although sunpro 5.2 supports the syntax for - // inline initialization it often gets the value - // wrong, especially where the value is computed - // from other constants (J Maddock 6th May 2001) -# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION - - // Although sunpro 5.2 supports the syntax for - // partial specialization, it often seems to - // bind to the wrong specialization. Better - // to disable it until suppport becomes more stable - // (J Maddock 6th May 2001). -# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -# endif - -# if (__SUNPRO_CC <= 0x530) - // Requesting debug info (-g) with Boost.Python results - // in an internal compiler error for "static const" - // initialized in-class. - // >> Assertion: (../links/dbg_cstabs.cc, line 611) - // while processing ../test.cpp at line 0. - // (Jens Maurer according to Gottfried Ganssauge 04 Mar 2002) -# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION - - // SunPro 5.3 has better support for partial specialization, - // but breaks when compiling std::less > - // (Jens Maurer 4 Nov 2001). - - // std::less specialization fixed as reported by George - // Heintzelman; partial specialization re-enabled - // (Peter Dimov 17 Jan 2002) - -//# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - - // integral constant expressions with 64 bit numbers fail -# define BOOST_NO_INTEGRAL_INT64_T -# endif - -# if (__SUNPRO_CC < 0x570) -# define BOOST_NO_TEMPLATE_TEMPLATES - // see http://lists.boost.org/MailArchives/boost/msg47184.php - // and http://lists.boost.org/MailArchives/boost/msg47220.php -# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION -# define BOOST_NO_SFINAE -# define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS -# endif -# if (__SUNPRO_CC <= 0x580) -# define BOOST_NO_IS_ABSTRACT -# endif - -# if (__SUNPRO_CC <= 0x5100) - // Sun 5.10 may not correctly value-initialize objects of - // some user defined types, as was reported in April 2010 - // (CR 6947016), and confirmed by Steve Clamage. - // (Niels Dekker, LKEB, May 2010). -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -# endif - -// -// Dynamic shared object (DSO) and dynamic-link library (DLL) support -// -#if __SUNPRO_CC > 0x500 -# define BOOST_SYMBOL_EXPORT __global -# define BOOST_SYMBOL_IMPORT __global -# define BOOST_SYMBOL_VISIBLE __global -#endif - - - -// -// Issues that effect all known versions: -// -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#define BOOST_NO_ADL_BARRIER - -// -// C++0x features -// -# define BOOST_HAS_LONG_LONG - -#define BOOST_NO_CXX11_AUTO_DECLARATIONS -#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_DECLTYPE -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_RVALUE_REFERENCES -#define BOOST_NO_CXX11_SCOPED_ENUMS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_STATIC_ASSERT -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#define BOOST_NO_CXX11_VARIADIC_MACROS -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS - -// -// Version -// - -#define BOOST_COMPILER "Sun compiler version " BOOST_STRINGIZE(__SUNPRO_CC) - -// -// versions check: -// we don't support sunpro prior to version 4: -#if __SUNPRO_CC < 0x400 -#error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version is 0x590: -#if (__SUNPRO_CC > 0x590) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif diff --git a/libktorrent/miniboost/boost/config/compiler/vacpp.hpp b/libktorrent/miniboost/boost/config/compiler/vacpp.hpp deleted file mode 100644 index bb7d5f50..00000000 --- a/libktorrent/miniboost/boost/config/compiler/vacpp.hpp +++ /dev/null @@ -1,132 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Toon Knapen 2001 - 2003. -// (C) Copyright Lie-Quan Lee 2001. -// (C) Copyright Markus Schoepflin 2002 - 2003. -// (C) Copyright Beman Dawes 2002 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Visual Age (IBM) C++ compiler setup: - -#if __IBMCPP__ <= 501 -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -# define BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS -#endif - -#if (__IBMCPP__ <= 502) -// Actually the compiler supports inclass member initialization but it -// requires a definition for the class member and it doesn't recognize -// it as an integral constant expression when used as a template argument. -# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION -# define BOOST_NO_INTEGRAL_INT64_T -# define BOOST_NO_MEMBER_TEMPLATE_KEYWORD -#endif - -#if (__IBMCPP__ <= 600) || !defined(BOOST_STRICT_CONFIG) -# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS -#endif - -#if (__IBMCPP__ <= 1110) -// XL C++ V11.1 and earlier versions may not always value-initialize -// a temporary object T(), when T is a non-POD aggregate class type. -// Michael Wong (IBM Canada Ltd) has confirmed this issue and gave it -// high priority. -- Niels Dekker (LKEB), May 2010. -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION -#endif - -// -// On AIX thread support seems to be indicated by _THREAD_SAFE: -// -#ifdef _THREAD_SAFE -# define BOOST_HAS_THREADS -#endif - -#define BOOST_COMPILER "IBM Visual Age version " BOOST_STRINGIZE(__IBMCPP__) - -// -// versions check: -// we don't support Visual age prior to version 5: -#if __IBMCPP__ < 500 -#error "Compiler not supported or configured - please reconfigure" -#endif -// -// last known and checked version is 1210: -#if (__IBMCPP__ > 1210) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# endif -#endif - -// Some versions of the compiler have issues with default arguments on partial specializations -#if __IBMCPP__ <= 1010 -#define BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS -#endif - -// -// C++0x features -// -// See boost\config\suffix.hpp for BOOST_NO_LONG_LONG -// -#if ! __IBMCPP_AUTO_TYPEDEDUCTION -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -#endif -#if ! __IBMCPP_UTF_LITERAL__ -# define BOOST_NO_CXX11_CHAR16_T -# define BOOST_NO_CXX11_CHAR32_T -#endif -#if ! __IBMCPP_CONSTEXPR -# define BOOST_NO_CXX11_CONSTEXPR -#endif -#if ! __IBMCPP_DECLTYPE -# define BOOST_NO_CXX11_DECLTYPE -#else -# define BOOST_HAS_DECLTYPE -#endif -#define BOOST_NO_CXX11_DECLTYPE_N3276 -#define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -#define BOOST_NO_CXX11_DELETED_FUNCTIONS -#if ! __IBMCPP_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -#endif -#if ! __IBMCPP_EXTERN_TEMPLATE -# define BOOST_NO_CXX11_EXTERN_TEMPLATE -#endif -#if ! __IBMCPP_VARIADIC_TEMPLATES -// not enabled separately at this time -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -#endif -#define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -#define BOOST_NO_CXX11_LAMBDAS -#define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_NULLPTR -#define BOOST_NO_CXX11_RANGE_BASED_FOR -#define BOOST_NO_CXX11_RAW_LITERALS -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#if ! __IBMCPP_RVALUE_REFERENCES -# define BOOST_NO_CXX11_RVALUE_REFERENCES -#endif -#if ! __IBMCPP_SCOPED_ENUM -# define BOOST_NO_CXX11_SCOPED_ENUMS -#endif -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -#if ! __IBMCPP_STATIC_ASSERT -# define BOOST_NO_CXX11_STATIC_ASSERT -#endif -#define BOOST_NO_CXX11_TEMPLATE_ALIASES -#define BOOST_NO_CXX11_UNICODE_LITERALS -#if ! __IBMCPP_VARIADIC_TEMPLATES -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -#endif -#if ! __C99_MACRO_WITH_VA_ARGS -# define BOOST_NO_CXX11_VARIADIC_MACROS -#endif -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -#define BOOST_NO_CXX11_INLINE_NAMESPACES -#define BOOST_NO_CXX11_REF_QUALIFIERS diff --git a/libktorrent/miniboost/boost/config/compiler/visualc.hpp b/libktorrent/miniboost/boost/config/compiler/visualc.hpp deleted file mode 100644 index 842f0865..00000000 --- a/libktorrent/miniboost/boost/config/compiler/visualc.hpp +++ /dev/null @@ -1,262 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Darin Adler 2001 - 2002. -// (C) Copyright Peter Dimov 2001. -// (C) Copyright Aleksey Gurtovoy 2002. -// (C) Copyright David Abrahams 2002 - 2003. -// (C) Copyright Beman Dawes 2002 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. -// -// Microsoft Visual C++ compiler setup: -// -// We need to be careful with the checks in this file, as contrary -// to popular belief there are versions with _MSC_VER with the final -// digit non-zero (mainly the MIPS cross compiler). -// -// So we either test _MSC_VER >= XXXX or else _MSC_VER < XXXX. -// No other comparisons (==, >, or <=) are safe. -// - -#define BOOST_MSVC _MSC_VER - -// -// Helper macro BOOST_MSVC_FULL_VER for use in Boost code: -// -#if _MSC_FULL_VER > 100000000 -# define BOOST_MSVC_FULL_VER _MSC_FULL_VER -#else -# define BOOST_MSVC_FULL_VER (_MSC_FULL_VER * 10) -#endif - -// Attempt to suppress VC6 warnings about the length of decorated names (obsolete): -#pragma warning( disable : 4503 ) // warning: decorated name length exceeded - -#define BOOST_HAS_PRAGMA_ONCE - -// -// versions check: -// we don't support Visual C++ prior to version 7.1: -#if _MSC_VER < 1310 -# error "Compiler not supported or configured - please reconfigure" -#endif - -#if _MSC_FULL_VER < 180020827 -# define BOOST_NO_FENV_H -#endif - -#if _MSC_VER < 1400 -// although a conforming signature for swprint exists in VC7.1 -// it appears not to actually work: -# define BOOST_NO_SWPRINTF -// Our extern template tests also fail for this compiler: -# define BOOST_NO_CXX11_EXTERN_TEMPLATE -// Variadic macros do not exist for VC7.1 and lower -# define BOOST_NO_CXX11_VARIADIC_MACROS -#endif - -#if _MSC_VER < 1500 // 140X == VC++ 8.0 -# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS -#endif - -#if _MSC_VER < 1600 // 150X == VC++ 9.0 - // A bug in VC9: -# define BOOST_NO_ADL_BARRIER -#endif - - -// MSVC (including the latest checked version) has not yet completely -// implemented value-initialization, as is reported: -// "VC++ does not value-initialize members of derived classes without -// user-declared constructor", reported in 2009 by Sylvester Hesp: -// https://connect.microsoft.com/VisualStudio/feedback/details/484295 -// "Presence of copy constructor breaks member class initialization", -// reported in 2009 by Alex Vakulenko: -// https://connect.microsoft.com/VisualStudio/feedback/details/499606 -// "Value-initialization in new-expression", reported in 2005 by -// Pavel Kuznetsov (MetaCommunications Engineering): -// https://connect.microsoft.com/VisualStudio/feedback/details/100744 -// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues -// (Niels Dekker, LKEB, May 2010) -# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION - -#ifndef _NATIVE_WCHAR_T_DEFINED -# define BOOST_NO_INTRINSIC_WCHAR_T -#endif - -// -// check for exception handling support: -#if !defined(_CPPUNWIND) && !defined(BOOST_NO_EXCEPTIONS) -# define BOOST_NO_EXCEPTIONS -#endif - -// -// __int64 support: -// -#define BOOST_HAS_MS_INT64 -#if defined(_MSC_EXTENSIONS) || (_MSC_VER >= 1400) -# define BOOST_HAS_LONG_LONG -#else -# define BOOST_NO_LONG_LONG -#endif -#if (_MSC_VER >= 1400) && !defined(_DEBUG) -# define BOOST_HAS_NRVO -#endif -// -// disable Win32 API's if compiler extensions are -// turned off: -// -#if !defined(_MSC_EXTENSIONS) && !defined(BOOST_DISABLE_WIN32) -# define BOOST_DISABLE_WIN32 -#endif -#if !defined(_CPPRTTI) && !defined(BOOST_NO_RTTI) -# define BOOST_NO_RTTI -#endif - -// -// TR1 features: -// -#if _MSC_VER >= 1700 -// # define BOOST_HAS_TR1_HASH // don't know if this is true yet. -// # define BOOST_HAS_TR1_TYPE_TRAITS // don't know if this is true yet. -# define BOOST_HAS_TR1_UNORDERED_MAP -# define BOOST_HAS_TR1_UNORDERED_SET -#endif - -// -// C++0x features -// -// See above for BOOST_NO_LONG_LONG - -// C++ features supported by VC++ 10 (aka 2010) -// -#if _MSC_VER < 1600 -# define BOOST_NO_CXX11_AUTO_DECLARATIONS -# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS -# define BOOST_NO_CXX11_LAMBDAS -# define BOOST_NO_CXX11_RVALUE_REFERENCES -# define BOOST_NO_CXX11_STATIC_ASSERT -# define BOOST_NO_CXX11_NULLPTR -# define BOOST_NO_CXX11_DECLTYPE -#endif // _MSC_VER < 1600 - -#if _MSC_VER >= 1600 -# define BOOST_HAS_STDINT_H -#endif - -// C++11 features supported by VC++ 11 (aka 2012) -// -#if _MSC_VER < 1700 -# define BOOST_NO_CXX11_RANGE_BASED_FOR -# define BOOST_NO_CXX11_SCOPED_ENUMS -#endif // _MSC_VER < 1700 - -// C++11 features supported by VC++ 12 (aka 2013). -// -#if _MSC_FULL_VER < 180020827 -# define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS -# define BOOST_NO_CXX11_DELETED_FUNCTIONS -# define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS -# define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS -# define BOOST_NO_CXX11_RAW_LITERALS -# define BOOST_NO_CXX11_TEMPLATE_ALIASES -# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES -# define BOOST_NO_CXX11_VARIADIC_TEMPLATES -# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX -# define BOOST_NO_CXX11_DECLTYPE_N3276 -#endif - -// C++11 features not supported by any versions -#define BOOST_NO_CXX11_CHAR16_T -#define BOOST_NO_CXX11_CHAR32_T -#define BOOST_NO_CXX11_CONSTEXPR -#define BOOST_NO_CXX11_NOEXCEPT -#define BOOST_NO_CXX11_REF_QUALIFIERS -#define BOOST_NO_CXX11_UNICODE_LITERALS -#define BOOST_NO_SFINAE_EXPR -#define BOOST_NO_TWO_PHASE_NAME_LOOKUP -#define BOOST_NO_CXX11_USER_DEFINED_LITERALS -#define BOOST_NO_CXX11_ALIGNAS -#define BOOST_NO_CXX11_INLINE_NAMESPACES - -// -// prefix and suffix headers: -// -#ifndef BOOST_ABI_PREFIX -# define BOOST_ABI_PREFIX "boost/config/abi/msvc_prefix.hpp" -#endif -#ifndef BOOST_ABI_SUFFIX -# define BOOST_ABI_SUFFIX "boost/config/abi/msvc_suffix.hpp" -#endif - -#ifndef BOOST_COMPILER -// TODO: -// these things are mostly bogus. 1200 means version 12.0 of the compiler. The -// artificial versions assigned to them only refer to the versions of some IDE -// these compilers have been shipped with, and even that is not all of it. Some -// were shipped with freely downloadable SDKs, others as crosscompilers in eVC. -// IOW, you can't use these 'versions' in any sensible way. Sorry. -# if defined(UNDER_CE) -# if _MSC_VER < 1400 - // Note: I'm not aware of any CE compiler with version 13xx -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown EVC++ compiler version - please run the configure tests and report the results" -# else -# pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results") -# endif -# elif _MSC_VER < 1500 -# define BOOST_COMPILER_VERSION evc8 -# elif _MSC_VER < 1600 -# define BOOST_COMPILER_VERSION evc9 -# elif _MSC_VER < 1700 -# define BOOST_COMPILER_VERSION evc10 -# elif _MSC_VER < 1800 -# define BOOST_COMPILER_VERSION evc11 -# elif _MSC_VER < 1900 -# define BOOST_COMPILER_VERSION evc12 -# else -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown EVC++ compiler version - please run the configure tests and report the results" -# else -# pragma message("Unknown EVC++ compiler version - please run the configure tests and report the results") -# endif -# endif -# else -# if _MSC_VER < 1310 - // Note: Versions up to 7.0 aren't supported. -# define BOOST_COMPILER_VERSION 5.0 -# elif _MSC_VER < 1300 -# define BOOST_COMPILER_VERSION 6.0 -# elif _MSC_VER < 1310 -# define BOOST_COMPILER_VERSION 7.0 -# elif _MSC_VER < 1400 -# define BOOST_COMPILER_VERSION 7.1 -# elif _MSC_VER < 1500 -# define BOOST_COMPILER_VERSION 8.0 -# elif _MSC_VER < 1600 -# define BOOST_COMPILER_VERSION 9.0 -# elif _MSC_VER < 1700 -# define BOOST_COMPILER_VERSION 10.0 -# elif _MSC_VER < 1800 -# define BOOST_COMPILER_VERSION 11.0 -# elif _MSC_VER < 1900 -# define BOOST_COMPILER_VERSION 12.0 -# else -# define BOOST_COMPILER_VERSION _MSC_VER -# endif -# endif - -# define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) -#endif - -// -// last known and checked version is 18.00.20827.3 (VC12 RC, aka 2013 RC): -#if (_MSC_VER > 1800 && _MSC_FULL_VER > 180020827) -# if defined(BOOST_ASSERT_CONFIG) -# error "Unknown compiler version - please run the configure tests and report the results" -# else -# pragma message("Unknown compiler version - please run the configure tests and report the results") -# endif -#endif diff --git a/libktorrent/miniboost/boost/config/no_tr1/cmath.hpp b/libktorrent/miniboost/boost/config/no_tr1/cmath.hpp deleted file mode 100644 index d8268d84..00000000 --- a/libktorrent/miniboost/boost/config/no_tr1/cmath.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2008. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// The aim of this header is just to include but to do -// so in a way that does not result in recursive inclusion of -// the Boost TR1 components if boost/tr1/tr1/cmath is in the -// include search path. We have to do this to avoid circular -// dependencies: -// - -#ifndef BOOST_CONFIG_CMATH -# define BOOST_CONFIG_CMATH - -# ifndef BOOST_TR1_NO_RECURSION -# define BOOST_TR1_NO_RECURSION -# define BOOST_CONFIG_NO_CMATH_RECURSION -# endif - -# include - -# ifdef BOOST_CONFIG_NO_CMATH_RECURSION -# undef BOOST_TR1_NO_RECURSION -# undef BOOST_CONFIG_NO_CMATH_RECURSION -# endif - -#endif diff --git a/libktorrent/miniboost/boost/config/no_tr1/complex.hpp b/libktorrent/miniboost/boost/config/no_tr1/complex.hpp deleted file mode 100644 index ca200922..00000000 --- a/libktorrent/miniboost/boost/config/no_tr1/complex.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// The aim of this header is just to include but to do -// so in a way that does not result in recursive inclusion of -// the Boost TR1 components if boost/tr1/tr1/complex is in the -// include search path. We have to do this to avoid circular -// dependencies: -// - -#ifndef BOOST_CONFIG_COMPLEX -# define BOOST_CONFIG_COMPLEX - -# ifndef BOOST_TR1_NO_RECURSION -# define BOOST_TR1_NO_RECURSION -# define BOOST_CONFIG_NO_COMPLEX_RECURSION -# endif - -# include - -# ifdef BOOST_CONFIG_NO_COMPLEX_RECURSION -# undef BOOST_TR1_NO_RECURSION -# undef BOOST_CONFIG_NO_COMPLEX_RECURSION -# endif - -#endif diff --git a/libktorrent/miniboost/boost/config/no_tr1/functional.hpp b/libktorrent/miniboost/boost/config/no_tr1/functional.hpp deleted file mode 100644 index e395efc1..00000000 --- a/libktorrent/miniboost/boost/config/no_tr1/functional.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// The aim of this header is just to include but to do -// so in a way that does not result in recursive inclusion of -// the Boost TR1 components if boost/tr1/tr1/functional is in the -// include search path. We have to do this to avoid circular -// dependencies: -// - -#ifndef BOOST_CONFIG_FUNCTIONAL -# define BOOST_CONFIG_FUNCTIONAL - -# ifndef BOOST_TR1_NO_RECURSION -# define BOOST_TR1_NO_RECURSION -# define BOOST_CONFIG_NO_FUNCTIONAL_RECURSION -# endif - -# include - -# ifdef BOOST_CONFIG_NO_FUNCTIONAL_RECURSION -# undef BOOST_TR1_NO_RECURSION -# undef BOOST_CONFIG_NO_FUNCTIONAL_RECURSION -# endif - -#endif diff --git a/libktorrent/miniboost/boost/config/no_tr1/memory.hpp b/libktorrent/miniboost/boost/config/no_tr1/memory.hpp deleted file mode 100644 index 2b5d2080..00000000 --- a/libktorrent/miniboost/boost/config/no_tr1/memory.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// The aim of this header is just to include but to do -// so in a way that does not result in recursive inclusion of -// the Boost TR1 components if boost/tr1/tr1/memory is in the -// include search path. We have to do this to avoid circular -// dependencies: -// - -#ifndef BOOST_CONFIG_MEMORY -# define BOOST_CONFIG_MEMORY - -# ifndef BOOST_TR1_NO_RECURSION -# define BOOST_TR1_NO_RECURSION -# define BOOST_CONFIG_NO_MEMORY_RECURSION -# endif - -# include - -# ifdef BOOST_CONFIG_NO_MEMORY_RECURSION -# undef BOOST_TR1_NO_RECURSION -# undef BOOST_CONFIG_NO_MEMORY_RECURSION -# endif - -#endif diff --git a/libktorrent/miniboost/boost/config/no_tr1/utility.hpp b/libktorrent/miniboost/boost/config/no_tr1/utility.hpp deleted file mode 100644 index dea8f115..00000000 --- a/libktorrent/miniboost/boost/config/no_tr1/utility.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) -// -// The aim of this header is just to include but to do -// so in a way that does not result in recursive inclusion of -// the Boost TR1 components if boost/tr1/tr1/utility is in the -// include search path. We have to do this to avoid circular -// dependencies: -// - -#ifndef BOOST_CONFIG_UTILITY -# define BOOST_CONFIG_UTILITY - -# ifndef BOOST_TR1_NO_RECURSION -# define BOOST_TR1_NO_RECURSION -# define BOOST_CONFIG_NO_UTILITY_RECURSION -# endif - -# include - -# ifdef BOOST_CONFIG_NO_UTILITY_RECURSION -# undef BOOST_TR1_NO_RECURSION -# undef BOOST_CONFIG_NO_UTILITY_RECURSION -# endif - -#endif diff --git a/libktorrent/miniboost/boost/config/platform/aix.hpp b/libktorrent/miniboost/boost/config/platform/aix.hpp deleted file mode 100644 index 894ef42c..00000000 --- a/libktorrent/miniboost/boost/config/platform/aix.hpp +++ /dev/null @@ -1,33 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// IBM/Aix specific config options: - -#define BOOST_PLATFORM "IBM Aix" - -#define BOOST_HAS_UNISTD_H -#define BOOST_HAS_NL_TYPES_H -#define BOOST_HAS_NANOSLEEP -#define BOOST_HAS_CLOCK_GETTIME - -// This needs support in "boost/cstdint.hpp" exactly like FreeBSD. -// This platform has header named which includes all -// the things needed. -#define BOOST_HAS_STDINT_H - -// Threading API's: -#define BOOST_HAS_PTHREADS -#define BOOST_HAS_PTHREAD_DELAY_NP -#define BOOST_HAS_SCHED_YIELD -//#define BOOST_HAS_PTHREAD_YIELD - -// boilerplate code: -#include - - - - diff --git a/libktorrent/miniboost/boost/config/platform/amigaos.hpp b/libktorrent/miniboost/boost/config/platform/amigaos.hpp deleted file mode 100644 index 34bcf412..00000000 --- a/libktorrent/miniboost/boost/config/platform/amigaos.hpp +++ /dev/null @@ -1,15 +0,0 @@ -// (C) Copyright John Maddock 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -#define BOOST_PLATFORM "AmigaOS" - -#define BOOST_DISABLE_THREADS -#define BOOST_NO_CWCHAR -#define BOOST_NO_STD_WSTRING -#define BOOST_NO_INTRINSIC_WCHAR_T - - diff --git a/libktorrent/miniboost/boost/config/platform/beos.hpp b/libktorrent/miniboost/boost/config/platform/beos.hpp deleted file mode 100644 index 48c3d8dc..00000000 --- a/libktorrent/miniboost/boost/config/platform/beos.hpp +++ /dev/null @@ -1,26 +0,0 @@ -// (C) Copyright John Maddock 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// BeOS specific config options: - -#define BOOST_PLATFORM "BeOS" - -#define BOOST_NO_CWCHAR -#define BOOST_NO_CWCTYPE -#define BOOST_HAS_UNISTD_H - -#define BOOST_HAS_BETHREADS - -#ifndef BOOST_DISABLE_THREADS -# define BOOST_HAS_THREADS -#endif - -// boilerplate code: -#include - - - diff --git a/libktorrent/miniboost/boost/config/platform/bsd.hpp b/libktorrent/miniboost/boost/config/platform/bsd.hpp deleted file mode 100644 index a0142978..00000000 --- a/libktorrent/miniboost/boost/config/platform/bsd.hpp +++ /dev/null @@ -1,86 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Darin Adler 2001. -// (C) Copyright Douglas Gregor 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// generic BSD config options: - -#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__DragonFly__) -#error "This platform is not BSD" -#endif - -#ifdef __FreeBSD__ -#define BOOST_PLATFORM "FreeBSD " BOOST_STRINGIZE(__FreeBSD__) -#elif defined(__NetBSD__) -#define BOOST_PLATFORM "NetBSD " BOOST_STRINGIZE(__NetBSD__) -#elif defined(__OpenBSD__) -#define BOOST_PLATFORM "OpenBSD " BOOST_STRINGIZE(__OpenBSD__) -#elif defined(__DragonFly__) -#define BOOST_PLATFORM "DragonFly " BOOST_STRINGIZE(__DragonFly__) -#endif - -// -// is this the correct version check? -// FreeBSD has but does not -// advertise the fact in : -// -#if (defined(__FreeBSD__) && (__FreeBSD__ >= 3)) || defined(__DragonFly__) -# define BOOST_HAS_NL_TYPES_H -#endif - -// -// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in -// and not in -// -#if (defined(__FreeBSD__) && (__FreeBSD__ <= 3))\ - || defined(__OpenBSD__) || defined(__DragonFly__) -# define BOOST_HAS_PTHREADS -#endif - -// -// No wide character support in the BSD header files: -// -#if defined(__NetBSD__) -#define __NetBSD_GCC__ (__GNUC__ * 1000000 \ - + __GNUC_MINOR__ * 1000 \ - + __GNUC_PATCHLEVEL__) -// XXX - the following is required until c++config.h -// defines _GLIBCXX_HAVE_SWPRINTF and friends -// or the preprocessor conditionals are removed -// from the cwchar header. -#define _GLIBCXX_HAVE_SWPRINTF 1 -#endif - -#if !((defined(__FreeBSD__) && (__FreeBSD__ >= 5)) \ - || (defined(__NetBSD_GCC__) && (__NetBSD_GCC__ >= 2095003)) || defined(__DragonFly__)) -# define BOOST_NO_CWCHAR -#endif -// -// The BSD has macros only, no functions: -// -#if !defined(__OpenBSD__) || defined(__DragonFly__) -# define BOOST_NO_CTYPE_FUNCTIONS -#endif - -// -// thread API's not auto detected: -// -#define BOOST_HAS_SCHED_YIELD -#define BOOST_HAS_NANOSLEEP -#define BOOST_HAS_GETTIMEOFDAY -#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -#define BOOST_HAS_SIGACTION - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include - - - - - - diff --git a/libktorrent/miniboost/boost/config/platform/cray.hpp b/libktorrent/miniboost/boost/config/platform/cray.hpp deleted file mode 100644 index 5c476e41..00000000 --- a/libktorrent/miniboost/boost/config/platform/cray.hpp +++ /dev/null @@ -1,18 +0,0 @@ -// (C) Copyright John Maddock 2011. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - -// See http://www.boost.org for most recent version. - -// SGI Irix specific config options: - -#define BOOST_PLATFORM "Cray" - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include - - - diff --git a/libktorrent/miniboost/boost/config/platform/cygwin.hpp b/libktorrent/miniboost/boost/config/platform/cygwin.hpp deleted file mode 100644 index b7ef572f..00000000 --- a/libktorrent/miniboost/boost/config/platform/cygwin.hpp +++ /dev/null @@ -1,58 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// cygwin specific config options: - -#define BOOST_PLATFORM "Cygwin" -#define BOOST_HAS_DIRENT_H -#define BOOST_HAS_LOG1P -#define BOOST_HAS_EXPM1 - -// -// Threading API: -// See if we have POSIX threads, if we do use them, otherwise -// revert to native Win threads. -#define BOOST_HAS_UNISTD_H -#include -#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS) -# define BOOST_HAS_PTHREADS -# define BOOST_HAS_SCHED_YIELD -# define BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_SIGACTION -#else -# if !defined(BOOST_HAS_WINTHREADS) -# define BOOST_HAS_WINTHREADS -# endif -# define BOOST_HAS_FTIME -#endif - -// -// find out if we have a stdint.h, there should be a better way to do this: -// -#include -#ifdef _STDINT_H -#define BOOST_HAS_STDINT_H -#endif - -/// Cygwin has no fenv.h -#define BOOST_NO_FENV_H - -// boilerplate code: -#include - -// -// Cygwin lies about XSI conformance, there is no nl_types.h: -// -#ifdef BOOST_HAS_NL_TYPES_H -# undef BOOST_HAS_NL_TYPES_H -#endif - - - - - diff --git a/libktorrent/miniboost/boost/config/platform/hpux.hpp b/libktorrent/miniboost/boost/config/platform/hpux.hpp deleted file mode 100644 index 19ce68e5..00000000 --- a/libktorrent/miniboost/boost/config/platform/hpux.hpp +++ /dev/null @@ -1,87 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001 - 2003. -// (C) Copyright David Abrahams 2002. -// (C) Copyright Toon Knapen 2003. -// (C) Copyright Boris Gubenko 2006 - 2007. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// hpux specific config options: - -#define BOOST_PLATFORM "HP-UX" - -// In principle, HP-UX has a nice under the name -// However, it has the following problem: -// Use of UINT32_C(0) results in "0u l" for the preprocessed source -// (verifyable with gcc 2.95.3) -#if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__HP_aCC) -# define BOOST_HAS_STDINT_H -#endif - -#if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE)) -# define BOOST_NO_SWPRINTF -#endif -#if defined(__HP_aCC) && !defined(_INCLUDE__STDC_A1_SOURCE) -# define BOOST_NO_CWCTYPE -#endif - -#if defined(__GNUC__) -# if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3)) - // GNU C on HP-UX does not support threads (checked up to gcc 3.3) -# define BOOST_DISABLE_THREADS -# elif !defined(BOOST_DISABLE_THREADS) - // threads supported from gcc-3.3 onwards: -# define BOOST_HAS_THREADS -# define BOOST_HAS_PTHREADS -# endif -#elif defined(__HP_aCC) && !defined(BOOST_DISABLE_THREADS) -# define BOOST_HAS_PTHREADS -#endif - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include - -// the following are always available: -#ifndef BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_GETTIMEOFDAY -#endif -#ifndef BOOST_HAS_SCHED_YIELD -# define BOOST_HAS_SCHED_YIELD -#endif -#ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -#endif -#ifndef BOOST_HAS_NL_TYPES_H -# define BOOST_HAS_NL_TYPES_H -#endif -#ifndef BOOST_HAS_NANOSLEEP -# define BOOST_HAS_NANOSLEEP -#endif -#ifndef BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_GETTIMEOFDAY -#endif -#ifndef BOOST_HAS_DIRENT_H -# define BOOST_HAS_DIRENT_H -#endif -#ifndef BOOST_HAS_CLOCK_GETTIME -# define BOOST_HAS_CLOCK_GETTIME -#endif -#ifndef BOOST_HAS_SIGACTION -# define BOOST_HAS_SIGACTION -#endif -#ifndef BOOST_HAS_NRVO -# ifndef __parisc -# define BOOST_HAS_NRVO -# endif -#endif -#ifndef BOOST_HAS_LOG1P -# define BOOST_HAS_LOG1P -#endif -#ifndef BOOST_HAS_EXPM1 -# define BOOST_HAS_EXPM1 -#endif - diff --git a/libktorrent/miniboost/boost/config/platform/irix.hpp b/libktorrent/miniboost/boost/config/platform/irix.hpp deleted file mode 100644 index aeae49c8..00000000 --- a/libktorrent/miniboost/boost/config/platform/irix.hpp +++ /dev/null @@ -1,31 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - -// See http://www.boost.org for most recent version. - -// SGI Irix specific config options: - -#define BOOST_PLATFORM "SGI Irix" - -#define BOOST_NO_SWPRINTF -// -// these are not auto detected by POSIX feature tests: -// -#define BOOST_HAS_GETTIMEOFDAY -#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE - -#ifdef __GNUC__ - // GNU C on IRIX does not support threads (checked up to gcc 3.3) -# define BOOST_DISABLE_THREADS -#endif - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include - - - diff --git a/libktorrent/miniboost/boost/config/platform/linux.hpp b/libktorrent/miniboost/boost/config/platform/linux.hpp deleted file mode 100644 index a02aff78..00000000 --- a/libktorrent/miniboost/boost/config/platform/linux.hpp +++ /dev/null @@ -1,103 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// linux specific config options: - -#define BOOST_PLATFORM "linux" - -// make sure we have __GLIBC_PREREQ if available at all -#ifdef __cplusplus -#include -#else -#include -#endif - -// -// added to glibc 2.1.1 -// We can only test for 2.1 though: -// -#if defined(__GLIBC__) && ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))) - // defines int64_t unconditionally, but defines - // int64_t only if __GNUC__. Thus, assume a fully usable - // only when using GCC. -# if defined __GNUC__ -# define BOOST_HAS_STDINT_H -# endif -#endif - -#if defined(__LIBCOMO__) - // - // como on linux doesn't have std:: c functions: - // NOTE: versions of libcomo prior to beta28 have octal version numbering, - // e.g. version 25 is 21 (dec) - // -# if __LIBCOMO_VERSION__ <= 20 -# define BOOST_NO_STDC_NAMESPACE -# endif - -# if __LIBCOMO_VERSION__ <= 21 -# define BOOST_NO_SWPRINTF -# endif - -#endif - -// -// If glibc is past version 2 then we definitely have -// gettimeofday, earlier versions may or may not have it: -// -#if defined(__GLIBC__) && (__GLIBC__ >= 2) -# define BOOST_HAS_GETTIMEOFDAY -#endif - -#ifdef __USE_POSIX199309 -# define BOOST_HAS_NANOSLEEP -#endif - -#if defined(__GLIBC__) && defined(__GLIBC_PREREQ) -// __GLIBC_PREREQ is available since 2.1.2 - - // swprintf is available since glibc 2.2.0 -# if !__GLIBC_PREREQ(2,2) || (!defined(__USE_ISOC99) && !defined(__USE_UNIX98)) -# define BOOST_NO_SWPRINTF -# endif -#else -# define BOOST_NO_SWPRINTF -#endif - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include -#define BOOST_HAS_PTHREAD_YIELD - -#ifndef __GNUC__ -// -// if the compiler is not gcc we still need to be able to parse -// the GNU system headers, some of which (mainly ) -// use GNU specific extensions: -// -# ifndef __extension__ -# define __extension__ -# endif -# ifndef __const__ -# define __const__ const -# endif -# ifndef __volatile__ -# define __volatile__ volatile -# endif -# ifndef __signed__ -# define __signed__ signed -# endif -# ifndef __typeof__ -# define __typeof__ typeof -# endif -# ifndef __inline__ -# define __inline__ inline -# endif -#endif - - diff --git a/libktorrent/miniboost/boost/config/platform/macos.hpp b/libktorrent/miniboost/boost/config/platform/macos.hpp deleted file mode 100644 index 6d876b12..00000000 --- a/libktorrent/miniboost/boost/config/platform/macos.hpp +++ /dev/null @@ -1,87 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Darin Adler 2001 - 2002. -// (C) Copyright Bill Kempf 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Mac OS specific config options: - -#define BOOST_PLATFORM "Mac OS" - -#if __MACH__ && !defined(_MSL_USING_MSL_C) - -// Using the Mac OS X system BSD-style C library. - -# ifndef BOOST_HAS_UNISTD_H -# define BOOST_HAS_UNISTD_H -# endif -// -// Begin by including our boilerplate code for POSIX -// feature detection, this is safe even when using -// the MSL as Metrowerks supply their own -// to replace the platform-native BSD one. G++ users -// should also always be able to do this on MaxOS X. -// -# include -# ifndef BOOST_HAS_STDINT_H -# define BOOST_HAS_STDINT_H -# endif - -// -// BSD runtime has pthreads, sigaction, sched_yield and gettimeofday, -// of these only pthreads are advertised in , so set the -// other options explicitly: -// -# define BOOST_HAS_SCHED_YIELD -# define BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_SIGACTION - -# if (__GNUC__ < 3) && !defined( __APPLE_CC__) - -// GCC strange "ignore std" mode works better if you pretend everything -// is in the std namespace, for the most part. - -# define BOOST_NO_STDC_NAMESPACE -# endif - -# if (__GNUC__ == 4) - -// Both gcc and intel require these. -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_NANOSLEEP - -# endif - -#else - -// Using the MSL C library. - -// We will eventually support threads in non-Carbon builds, but we do -// not support this yet. -# if ( defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON ) || ( defined(TARGET_CARBON) && TARGET_CARBON ) - -# if !defined(BOOST_HAS_PTHREADS) -// MPTasks support is deprecated/removed from Boost: -//# define BOOST_HAS_MPTASKS -# elif ( __dest_os == __mac_os_x ) -// We are doing a Carbon/Mach-O/MSL build which has pthreads, but only the -// gettimeofday and no posix. -# define BOOST_HAS_GETTIMEOFDAY -# endif - -#ifdef BOOST_HAS_PTHREADS -# define BOOST_HAS_THREADS -#endif - -// The remote call manager depends on this. -# define BOOST_BIND_ENABLE_PASCAL - -# endif - -#endif - - - diff --git a/libktorrent/miniboost/boost/config/platform/qnxnto.hpp b/libktorrent/miniboost/boost/config/platform/qnxnto.hpp deleted file mode 100644 index b1377c8d..00000000 --- a/libktorrent/miniboost/boost/config/platform/qnxnto.hpp +++ /dev/null @@ -1,31 +0,0 @@ -// (C) Copyright Jim Douglas 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// QNX specific config options: - -#define BOOST_PLATFORM "QNX" - -#define BOOST_HAS_UNISTD_H -#include - -// QNX claims XOpen version 5 compatibility, but doesn't have an nl_types.h -// or log1p and expm1: -#undef BOOST_HAS_NL_TYPES_H -#undef BOOST_HAS_LOG1P -#undef BOOST_HAS_EXPM1 - -#define BOOST_HAS_PTHREADS -#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE - -#define BOOST_HAS_GETTIMEOFDAY -#define BOOST_HAS_CLOCK_GETTIME -#define BOOST_HAS_NANOSLEEP - - - - - diff --git a/libktorrent/miniboost/boost/config/platform/solaris.hpp b/libktorrent/miniboost/boost/config/platform/solaris.hpp deleted file mode 100644 index 9f925666..00000000 --- a/libktorrent/miniboost/boost/config/platform/solaris.hpp +++ /dev/null @@ -1,28 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// sun specific config options: - -#define BOOST_PLATFORM "Sun Solaris" - -#define BOOST_HAS_GETTIMEOFDAY - -// boilerplate code: -#define BOOST_HAS_UNISTD_H -#include - -// -// pthreads don't actually work with gcc unless _PTHREADS is defined: -// -#if defined(__GNUC__) && defined(_POSIX_THREADS) && !defined(_PTHREADS) -# undef BOOST_HAS_PTHREADS -#endif - - - - diff --git a/libktorrent/miniboost/boost/config/platform/symbian.hpp b/libktorrent/miniboost/boost/config/platform/symbian.hpp deleted file mode 100644 index e02a7782..00000000 --- a/libktorrent/miniboost/boost/config/platform/symbian.hpp +++ /dev/null @@ -1,97 +0,0 @@ -// (C) Copyright Yuriy Krasnoschek 2009. -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// symbian specific config options: - - -#define BOOST_PLATFORM "Symbian" -#define BOOST_SYMBIAN 1 - - -#if defined(__S60_3X__) -// Open C / C++ plugin was introdused in this SDK, earlier versions don't have CRT / STL -# define BOOST_S60_3rd_EDITION_FP2_OR_LATER_SDK -// make sure we have __GLIBC_PREREQ if available at all -#ifdef __cplusplus -#include -#else -#include -#endif// boilerplate code: -# define BOOST_HAS_UNISTD_H -# include -// S60 SDK defines _POSIX_VERSION as POSIX.1 -# ifndef BOOST_HAS_STDINT_H -# define BOOST_HAS_STDINT_H -# endif -# ifndef BOOST_HAS_GETTIMEOFDAY -# define BOOST_HAS_GETTIMEOFDAY -# endif -# ifndef BOOST_HAS_DIRENT_H -# define BOOST_HAS_DIRENT_H -# endif -# ifndef BOOST_HAS_SIGACTION -# define BOOST_HAS_SIGACTION -# endif -# ifndef BOOST_HAS_PTHREADS -# define BOOST_HAS_PTHREADS -# endif -# ifndef BOOST_HAS_NANOSLEEP -# define BOOST_HAS_NANOSLEEP -# endif -# ifndef BOOST_HAS_SCHED_YIELD -# define BOOST_HAS_SCHED_YIELD -# endif -# ifndef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# endif -# ifndef BOOST_HAS_LOG1P -# define BOOST_HAS_LOG1P -# endif -# ifndef BOOST_HAS_EXPM1 -# define BOOST_HAS_EXPM1 -# endif -# ifndef BOOST_POSIX_API -# define BOOST_POSIX_API -# endif -// endianess support -# include -// Symbian SDK provides _BYTE_ORDER instead of __BYTE_ORDER -# ifndef __LITTLE_ENDIAN -# ifdef _LITTLE_ENDIAN -# define __LITTLE_ENDIAN _LITTLE_ENDIAN -# else -# define __LITTLE_ENDIAN 1234 -# endif -# endif -# ifndef __BIG_ENDIAN -# ifdef _BIG_ENDIAN -# define __BIG_ENDIAN _BIG_ENDIAN -# else -# define __BIG_ENDIAN 4321 -# endif -# endif -# ifndef __BYTE_ORDER -# define __BYTE_ORDER __LITTLE_ENDIAN // Symbian is LE -# endif -// Known limitations -# define BOOST_ASIO_DISABLE_SERIAL_PORT -# define BOOST_DATE_TIME_NO_LOCALE -# define BOOST_NO_STD_WSTRING -# define BOOST_EXCEPTION_DISABLE -# define BOOST_NO_EXCEPTIONS - -#else // TODO: More platform support e.g. UIQ -# error "Unsuppoted Symbian SDK" -#endif - -#if defined(__WINSCW__) && !defined(BOOST_DISABLE_WIN32) -# define BOOST_DISABLE_WIN32 // winscw defines WIN32 macro -#endif - - diff --git a/libktorrent/miniboost/boost/config/platform/vms.hpp b/libktorrent/miniboost/boost/config/platform/vms.hpp deleted file mode 100644 index f70efcfb..00000000 --- a/libktorrent/miniboost/boost/config/platform/vms.hpp +++ /dev/null @@ -1,25 +0,0 @@ -// (C) Copyright Artyom Beilis 2010. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -#ifndef BOOST_CONFIG_PLATFORM_VMS_HPP -#define BOOST_CONFIG_PLATFORM_VMS_HPP - -#define BOOST_PLATFORM "OpenVMS" - -#undef BOOST_HAS_STDINT_H -#define BOOST_HAS_UNISTD_H -#define BOOST_HAS_NL_TYPES_H -#define BOOST_HAS_GETTIMEOFDAY -#define BOOST_HAS_DIRENT_H -#define BOOST_HAS_PTHREADS -#define BOOST_HAS_NANOSLEEP -#define BOOST_HAS_CLOCK_GETTIME -#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -#define BOOST_HAS_LOG1P -#define BOOST_HAS_EXPM1 -#define BOOST_HAS_THREADS -#undef BOOST_HAS_SCHED_YIELD - -#endif diff --git a/libktorrent/miniboost/boost/config/platform/vxworks.hpp b/libktorrent/miniboost/boost/config/platform/vxworks.hpp deleted file mode 100644 index cdda0158..00000000 --- a/libktorrent/miniboost/boost/config/platform/vxworks.hpp +++ /dev/null @@ -1,369 +0,0 @@ -// (C) Copyright Dustin Spicuzza 2009. -// Adapted to vxWorks 6.9 by Peter Brockamp 2012. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Since WRS does not yet properly support boost under vxWorks -// and this file was badly outdated, but I was keen on using it, -// I patched boost myself to make things work. This has been tested -// and adapted by me for vxWorks 6.9 *only*, as I'm lacking access -// to earlier 6.X versions! The only thing I know for sure is that -// very old versions of vxWorks (namely everything below 6.x) are -// absolutely unable to use boost. This is mainly due to the completely -// outdated libraries and ancient compiler (GCC 2.96 or worse). Do -// not even think of getting this to work, a miserable failure will -// be guaranteed! -// Equally, this file has been tested for RTPs (Real Time Processes) -// only, not for DKMs (Downloadable Kernel Modules). These two types -// of executables differ largely in the available functionality of -// the C-library, STL, and so on. A DKM uses a library similar to those -// of vxWorks 5.X - with all its limitations and incompatibilities -// with respect to ANSI C++ and STL. So probably there might be problems -// with the usage of boost from DKMs. WRS or any voluteers are free to -// prove the opposite! - -// ==================================================================== -// -// Some important information regarding the usage of POSIX semaphores: -// ------------------------------------------------------------------- -// -// VxWorks as a real time operating system handles threads somewhat -// different from what "normal" OSes do, regarding their scheduling! -// This could lead to a scenario called "priority inversion" when using -// semaphores, see http://en.wikipedia.org/wiki/Priority_inversion. -// -// Now, VxWorks POSIX-semaphores for DKM's default to the usage of -// priority inverting semaphores, which is fine. On the other hand, -// for RTP's it defaults to using non priority inverting semaphores, -// which could easily pose a serious problem for a real time process, -// i.e. deadlocks! To overcome this two possibilities do exist: -// -// a) Patch every piece of boost that uses semaphores to instanciate -// the proper type of semaphores. This is non-intrusive with respect -// to the OS and could relatively easy been done by giving all -// semaphores attributes deviating from the default (for in-depth -// information see the POSIX functions pthread_mutexattr_init() -// and pthread_mutexattr_setprotocol()). However this breaks all -// too easily, as with every new version some boost library could -// all in a sudden start using semaphores, resurrecting the very -// same, hard to locate problem over and over again! -// -// b) We could change the default properties for POSIX-semaphores -// that VxWorks uses for RTP's and this is being suggested here, -// as it will more or less seamlessly integrate with boost. I got -// the following information from WRS how to do this, compare -// Wind River TSR# 1209768: -// -// Instructions for changing the default properties of POSIX- -// semaphores for RTP's in VxWorks 6.9: -// - Edit the file /vxworks-6.9/target/usr/src/posix/pthreadLib.c -// in the root of your Workbench-installation. -// - Around line 917 there should be the definition of the default -// mutex attributes: -// -// LOCAL pthread_mutexattr_t defaultMutexAttr = -// { -// PTHREAD_INITIALIZED_OBJ, PTHREAD_PRIO_NONE, 0, -// PTHREAD_MUTEX_DEFAULT -// }; -// -// Here, replace PTHREAD_PRIO_NONE by PTHREAD_PRIO_INHERIT. -// - Around line 1236 there should be a definition for the function -// pthread_mutexattr_init(). A couple of lines below you should -// find a block of code like this: -// -// pAttr->mutexAttrStatus = PTHREAD_INITIALIZED_OBJ; -// pAttr->mutexAttrProtocol = PTHREAD_PRIO_NONE; -// pAttr->mutexAttrPrioceiling = 0; -// pAttr->mutexAttrType = PTHREAD_MUTEX_DEFAULT; -// -// Here again, replace PTHREAD_PRIO_NONE by PTHREAD_PRIO_INHERIT. -// - Finally, rebuild your VSB. This will create a new VxWorks kernel -// with the changed properties. That's it! Now, using boost should -// no longer cause any problems with task deadlocks! -// -// And here's another useful piece of information concerning VxWorks' -// POSIX-functionality in general: -// VxWorks is not a genuine POSIX-OS in itself, rather it is using a -// kind of compatibility layer (sort of a wrapper) to emulate the -// POSIX-functionality by using its own resources and functions. -// At the time a task (thread) calls it's first POSIX-function during -// runtime it is being transformed by the OS into a POSIX-thread. -// This transformation does include a call to malloc() to allocate the -// memory required for the housekeeping of POSIX-threads. In a high -// priority RTP this malloc() call may be highly undesirable, as its -// timing is more or less unpredictable (depending on what your actual -// heap looks like). You can circumvent this problem by calling the -// function thread_self() at a well defined point in the code of the -// task, e.g. shortly after the task spawns up. Thereby you are able -// to define the time when the task-transformation will take place and -// you could shift it to an uncritical point where a malloc() call is -// tolerable. So, if this could pose a problem for your code, remember -// to call thread_self() from the affected task at an early stage. -// -// ==================================================================== - -// Block out all versions before vxWorks 6.x, as these don't work: -// Include header with the vxWorks version information and query them -#include -#if !defined(_WRS_VXWORKS_MAJOR) || (_WRS_VXWORKS_MAJOR < 6) -# error "The vxWorks version you're using is so badly outdated,\ - it doesn't work at all with boost, sorry, no chance!" -#endif - -// Handle versions above 5.X but below 6.9 -#if (_WRS_VXWORKS_MAJOR == 6) && (_WRS_VXWORKS_MINOR < 9) -// TODO: Starting from what version does vxWorks work with boost? -// We can't reasonably insert a #warning "" as a user hint here, -// as this will show up with every file including some boost header, -// badly bugging the user... So for the time being we just leave it. -#endif - -// vxWorks specific config options: -// -------------------------------- -#define BOOST_PLATFORM "vxWorks" - -// Special behaviour for DKMs: -#ifdef _WRS_KERNEL - // DKMs do not have the -header, - // but apparently they do have an intrinsic wchar_t meanwhile! -# define BOOST_NO_CWCHAR - - // Lots of wide-functions and -headers are unavailable for DKMs as well: -# define BOOST_NO_CWCTYPE -# define BOOST_NO_SWPRINTF -# define BOOST_NO_STD_WSTRING -# define BOOST_NO_STD_WSTREAMBUF -#endif - -// Generally available headers: -#define BOOST_HAS_UNISTD_H -#define BOOST_HAS_STDINT_H -#define BOOST_HAS_DIRENT_H -#define BOOST_HAS_SLIST - -// vxWorks does not have installed an iconv-library by default, -// so unfortunately no Unicode support from scratch is available! -// Thus, instead it is suggested to switch to ICU, as this seems -// to be the most complete and portable option... -#define BOOST_LOCALE_WITH_ICU - -// Generally available functionality: -#define BOOST_HAS_THREADS -#define BOOST_HAS_NANOSLEEP -#define BOOST_HAS_GETTIMEOFDAY -#define BOOST_HAS_CLOCK_GETTIME -#define BOOST_HAS_MACRO_USE_FACET - -// Generally unavailable functionality, delivered by boost's test function: -//#define BOOST_NO_DEDUCED_TYPENAME // Commented this out, boost's test gives an errorneous result! -#define BOOST_NO_CXX11_EXTERN_TEMPLATE -#define BOOST_NO_CXX11_VARIADIC_MACROS - -// Generally available threading API's: -#define BOOST_HAS_PTHREADS -#define BOOST_HAS_SCHED_YIELD -#define BOOST_HAS_SIGACTION - -// Functionality available for RTPs only: -#ifdef __RTP__ -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# define BOOST_HAS_LOG1P -# define BOOST_HAS_EXPM1 -#endif - -// Functionality available for DKMs only: -#ifdef _WRS_KERNEL - // Luckily, at the moment there seems to be none! -#endif - -// These #defines allow posix_features to work, since vxWorks doesn't -// #define them itself for DKMs (for RTPs on the contrary it does): -#ifdef _WRS_KERNEL -# ifndef _POSIX_TIMERS -# define _POSIX_TIMERS 1 -# endif -# ifndef _POSIX_THREADS -# define _POSIX_THREADS 1 -# endif -#endif - -// vxWorks doesn't work with asio serial ports: -#define BOOST_ASIO_DISABLE_SERIAL_PORT -// TODO: The problem here seems to bee that vxWorks uses its own, very specific -// ways to handle serial ports, incompatible with POSIX or anything... -// Maybe a specific implementation would be possible, but until the -// straight need arises... This implementation would presumably consist -// of some vxWorks specific ioctl-calls, etc. Any voluteers? - -// vxWorks-around: #defines CLOCKS_PER_SEC as sysClkRateGet() but -// miserably fails to #include the required to make -// sysClkRateGet() available! So we manually include it here. -#ifdef __RTP__ -# include -# include -#endif - -// vxWorks-around: In the macros INT32_C(), UINT32_C(), INT64_C() and -// UINT64_C() are defined errorneously, yielding not a signed/ -// unsigned long/long long type, but a signed/unsigned int/long -// type. Eventually this leads to compile errors in ratio_fwd.hpp, -// when trying to define several constants which do not fit into a -// long type! We correct them here by redefining. -#include - -// Some macro-magic to do the job -#define VX_JOIN(X, Y) VX_DO_JOIN(X, Y) -#define VX_DO_JOIN(X, Y) VX_DO_JOIN2(X, Y) -#define VX_DO_JOIN2(X, Y) X##Y - -// Correctly setup the macros -#undef INT32_C -#undef UINT32_C -#undef INT64_C -#undef UINT64_C -#define INT32_C(x) VX_JOIN(x, L) -#define UINT32_C(x) VX_JOIN(x, UL) -#define INT64_C(x) VX_JOIN(x, LL) -#define UINT64_C(x) VX_JOIN(x, ULL) - -// #include Libraries required for the following function adaption -#include -#include -#include - -// Use C-linkage for the following helper functions -extern "C" { - -// vxWorks-around: The required functions getrlimit() and getrlimit() are missing. -// But we have the similar functions getprlimit() and setprlimit(), -// which may serve the purpose. -// Problem: The vxWorks-documentation regarding these functions -// doesn't deserve its name! It isn't documented what the first two -// parameters idtype and id mean, so we must fall back to an educated -// guess - null, argh... :-/ - -// TODO: getprlimit() and setprlimit() do exist for RTPs only, for whatever reason. -// Thus for DKMs there would have to be another implementation. -#ifdef __RTP__ - inline int getrlimit(int resource, struct rlimit *rlp){ - return getprlimit(0, 0, resource, rlp); - } - - inline int setrlimit(int resource, const struct rlimit *rlp){ - return setprlimit(0, 0, resource, const_cast(rlp)); - } -#endif - -// vxWorks has ftruncate() only, so we do simulate truncate(): -inline int truncate(const char *p, off_t l){ - int fd = open(p, O_WRONLY); - if (fd == -1){ - errno = EACCES; - return -1; - } - if (ftruncate(fd, l) == -1){ - close(fd); - errno = EACCES; - return -1; - } - return close(fd); -} - -// Fake symlink handling by dummy functions: -inline int symlink(const char*, const char*){ - // vxWorks has no symlinks -> always return an error! - errno = EACCES; - return -1; -} - -inline ssize_t readlink(const char*, char*, size_t){ - // vxWorks has no symlinks -> always return an error! - errno = EACCES; - return -1; -} - -// vxWorks claims to implement gettimeofday in sys/time.h -// but nevertheless does not provide it! See -// https://support.windriver.com/olsPortal/faces/maintenance/techtipDetail_noHeader.jspx?docId=16442&contentId=WR_TECHTIP_006256 -// We implement a surrogate version here via clock_gettime: -inline int gettimeofday(struct timeval *tv, void * /*tzv*/) { - struct timespec ts; - clock_gettime(CLOCK_MONOTONIC, &ts); - tv->tv_sec = ts.tv_sec; - tv->tv_usec = ts.tv_nsec / 1000; - return 0; -} - -// vxWorks does provide neither struct tms nor function times()! -// We implement an empty dummy-function, simply setting the user -// and system time to the half of thew actual system ticks-value -// and the child user and system time to 0. -// Rather ugly but at least it suppresses compiler errors... -// Unfortunately, this of course *does* have an severe impact on -// dependant libraries, actually this is chrono only! Here it will -// not be possible to correctly use user and system times! But -// as vxWorks is lacking the ability to calculate user and system -// process times there seems to be no other possible solution. -struct tms{ - clock_t tms_utime; // User CPU time - clock_t tms_stime; // System CPU time - clock_t tms_cutime; // User CPU time of terminated child processes - clock_t tms_cstime; // System CPU time of terminated child processes -}; - -inline clock_t times(struct tms *t){ - struct timespec ts; - clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); - clock_t ticks(static_cast(static_cast(ts.tv_sec) * CLOCKS_PER_SEC + - static_cast(ts.tv_nsec) * CLOCKS_PER_SEC / 1000000.0)); - t->tms_utime = ticks/2U; - t->tms_stime = ticks/2U; - t->tms_cutime = 0; // vxWorks is lacking the concept of a child process! - t->tms_cstime = 0; // -> Set the wait times for childs to 0 - return ticks; -} - -} // extern "C" - -// Put the selfmade functions into the std-namespace, just in case -namespace std { -# ifdef __RTP__ - using ::getrlimit; - using ::setrlimit; -# endif - using ::truncate; - using ::symlink; - using ::readlink; - using ::times; - using ::gettimeofday; -} - -// Some more macro-magic: -// vxWorks-around: Some functions are not present or broken in vxWorks -// but may be patched to life via helper macros... - -// Include signal.h which might contain a typo to be corrected here -#include - -#define getpagesize() sysconf(_SC_PAGESIZE) // getpagesize is deprecated anyway! -#ifndef S_ISSOCK -# define S_ISSOCK(mode) ((mode & S_IFMT) == S_IFSOCK) // Is file a socket? -#endif -#define lstat(p, b) stat(p, b) // lstat() == stat(), as vxWorks has no symlinks! -#ifndef FPE_FLTINV -# define FPE_FLTINV (FPE_FLTSUB+1) // vxWorks has no FPE_FLTINV, so define one as a dummy -#endif -#if !defined(BUS_ADRALN) && defined(BUS_ADRALNR) -# define BUS_ADRALN BUS_ADRALNR // Correct a supposed typo in vxWorks' -#endif -//typedef int locale_t; // locale_t is a POSIX-extension, currently unpresent in vxWorks! - -// #include boilerplate code: -#include - -// vxWorks lies about XSI conformance, there is no nl_types.h: -#undef BOOST_HAS_NL_TYPES_H diff --git a/libktorrent/miniboost/boost/config/platform/win32.hpp b/libktorrent/miniboost/boost/config/platform/win32.hpp deleted file mode 100644 index 2a91519e..00000000 --- a/libktorrent/miniboost/boost/config/platform/win32.hpp +++ /dev/null @@ -1,80 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Bill Kempf 2001. -// (C) Copyright Aleksey Gurtovoy 2003. -// (C) Copyright Rene Rivera 2005. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Win32 specific config options: - -#define BOOST_PLATFORM "Win32" - -// Get the information about the MinGW runtime, i.e. __MINGW32_*VERSION. -#if defined(__MINGW32__) -# include <_mingw.h> -#endif - -#if defined(__GNUC__) && !defined(BOOST_NO_SWPRINTF) -# define BOOST_NO_SWPRINTF -#endif - -// Default defines for BOOST_SYMBOL_EXPORT and BOOST_SYMBOL_IMPORT -// If a compiler doesn't support __declspec(dllexport)/__declspec(dllimport), -// its boost/config/compiler/ file must define BOOST_SYMBOL_EXPORT and -// BOOST_SYMBOL_IMPORT -#ifndef BOOST_SYMBOL_EXPORT -# define BOOST_HAS_DECLSPEC -# define BOOST_SYMBOL_EXPORT __declspec(dllexport) -# define BOOST_SYMBOL_IMPORT __declspec(dllimport) -#endif - -#if defined(__MINGW32__) && ((__MINGW32_MAJOR_VERSION > 2) || ((__MINGW32_MAJOR_VERSION == 2) && (__MINGW32_MINOR_VERSION >= 0))) -# define BOOST_HAS_STDINT_H -# ifndef __STDC_LIMIT_MACROS -# define __STDC_LIMIT_MACROS -# endif -# define BOOST_HAS_DIRENT_H -# define BOOST_HAS_UNISTD_H -#endif - -#if defined(__MINGW32__) && (__GNUC__ >= 4) -# define BOOST_HAS_EXPM1 -# define BOOST_HAS_LOG1P -# define BOOST_HAS_GETTIMEOFDAY -#endif -// -// Win32 will normally be using native Win32 threads, -// but there is a pthread library avaliable as an option, -// we used to disable this when BOOST_DISABLE_WIN32 was -// defined but no longer - this should allow some -// files to be compiled in strict mode - while maintaining -// a consistent setting of BOOST_HAS_THREADS across -// all translation units (needed for shared_ptr etc). -// - -#ifndef BOOST_HAS_PTHREADS -# define BOOST_HAS_WINTHREADS -#endif - -// -// WinCE configuration: -// -#if defined(_WIN32_WCE) || defined(UNDER_CE) -# define BOOST_NO_ANSI_APIS -// Windows CE does not have a conforming signature for swprintf -# define BOOST_NO_SWPRINTF -#else -# define BOOST_HAS_GETSYSTEMTIMEASFILETIME -# define BOOST_HAS_THREADEX -# define BOOST_HAS_GETSYSTEMTIMEASFILETIME -#endif - -#ifndef BOOST_DISABLE_WIN32 -// WEK: Added -#define BOOST_HAS_FTIME -#define BOOST_WINDOWS 1 - -#endif diff --git a/libktorrent/miniboost/boost/config/posix_features.hpp b/libktorrent/miniboost/boost/config/posix_features.hpp deleted file mode 100644 index d1295479..00000000 --- a/libktorrent/miniboost/boost/config/posix_features.hpp +++ /dev/null @@ -1,95 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - -// See http://www.boost.org for most recent version. - -// All POSIX feature tests go in this file, -// Note that we test _POSIX_C_SOURCE and _XOPEN_SOURCE as well -// _POSIX_VERSION and _XOPEN_VERSION: on some systems POSIX API's -// may be present but none-functional unless _POSIX_C_SOURCE and -// _XOPEN_SOURCE have been defined to the right value (it's up -// to the user to do this *before* including any header, although -// in most cases the compiler will do this for you). - -# if defined(BOOST_HAS_UNISTD_H) -# include - - // XOpen has , but is this the correct version check? -# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION >= 3) -# define BOOST_HAS_NL_TYPES_H -# endif - - // POSIX version 6 requires -# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 200100) -# define BOOST_HAS_STDINT_H -# endif - - // POSIX version 2 requires -# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199009L) -# define BOOST_HAS_DIRENT_H -# endif - - // POSIX version 3 requires to have sigaction: -# if defined(_POSIX_VERSION) && (_POSIX_VERSION >= 199506L) -# define BOOST_HAS_SIGACTION -# endif - // POSIX defines _POSIX_THREADS > 0 for pthread support, - // however some platforms define _POSIX_THREADS without - // a value, hence the (_POSIX_THREADS+0 >= 0) check. - // Strictly speaking this may catch platforms with a - // non-functioning stub , but such occurrences should - // occur very rarely if at all. -# if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_MPTASKS) -# define BOOST_HAS_PTHREADS -# endif - - // BOOST_HAS_NANOSLEEP: - // This is predicated on _POSIX_TIMERS or _XOPEN_REALTIME: -# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)) \ - || (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0)) -# define BOOST_HAS_NANOSLEEP -# endif - - // BOOST_HAS_CLOCK_GETTIME: - // This is predicated on _POSIX_TIMERS (also on _XOPEN_REALTIME - // but at least one platform - linux - defines that flag without - // defining clock_gettime): -# if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS+0 >= 0)) -# define BOOST_HAS_CLOCK_GETTIME -# endif - - // BOOST_HAS_SCHED_YIELD: - // This is predicated on _POSIX_PRIORITY_SCHEDULING or - // on _POSIX_THREAD_PRIORITY_SCHEDULING or on _XOPEN_REALTIME. -# if defined(_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING+0 > 0)\ - || (defined(_POSIX_THREAD_PRIORITY_SCHEDULING) && (_POSIX_THREAD_PRIORITY_SCHEDULING+0 > 0))\ - || (defined(_XOPEN_REALTIME) && (_XOPEN_REALTIME+0 >= 0)) -# define BOOST_HAS_SCHED_YIELD -# endif - - // BOOST_HAS_GETTIMEOFDAY: - // BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE: - // These are predicated on _XOPEN_VERSION, and appears to be first released - // in issue 4, version 2 (_XOPEN_VERSION > 500). - // Likewise for the functions log1p and expm1. -# if defined(_XOPEN_VERSION) && (_XOPEN_VERSION+0 >= 500) -# define BOOST_HAS_GETTIMEOFDAY -# if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE+0 >= 500) -# define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# endif -# ifndef BOOST_HAS_LOG1P -# define BOOST_HAS_LOG1P -# endif -# ifndef BOOST_HAS_EXPM1 -# define BOOST_HAS_EXPM1 -# endif -# endif - -# endif - - - - diff --git a/libktorrent/miniboost/boost/config/requires_threads.hpp b/libktorrent/miniboost/boost/config/requires_threads.hpp deleted file mode 100644 index cfaff230..00000000 --- a/libktorrent/miniboost/boost/config/requires_threads.hpp +++ /dev/null @@ -1,92 +0,0 @@ -// (C) Copyright John Maddock 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - -#ifndef BOOST_CONFIG_REQUIRES_THREADS_HPP -#define BOOST_CONFIG_REQUIRES_THREADS_HPP - -#ifndef BOOST_CONFIG_HPP -# include -#endif - -#if defined(BOOST_DISABLE_THREADS) - -// -// special case to handle versions of gcc which don't currently support threads: -// -#if defined(__GNUC__) && ((__GNUC__ < 3) || (__GNUC_MINOR__ <= 3) || !defined(BOOST_STRICT_CONFIG)) -// -// this is checked up to gcc 3.3: -// -#if defined(__sgi) || defined(__hpux) -# error "Multi-threaded programs are not supported by gcc on HPUX or Irix (last checked with gcc 3.3)" -#endif - -#endif - -# error "Threading support unavaliable: it has been explicitly disabled with BOOST_DISABLE_THREADS" - -#elif !defined(BOOST_HAS_THREADS) - -# if defined __COMO__ -// Comeau C++ -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_MT (Windows) or -D_REENTRANT (Unix)" - -#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC) -// Intel -#ifdef _WIN32 -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd" -#else -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -openmp" -#endif - -# elif defined __GNUC__ -// GNU C++: -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)" - -#elif defined __sgi -// SGI MIPSpro C++ -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -D_SGI_MP_SOURCE" - -#elif defined __DECCXX -// Compaq Tru64 Unix cxx -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread" - -#elif defined __BORLANDC__ -// Borland -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -tWM" - -#elif defined __MWERKS__ -// Metrowerks CodeWarrior -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either -runtime sm, -runtime smd, -runtime dm, or -runtime dmd" - -#elif defined __SUNPRO_CC -// Sun Workshop Compiler C++ -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt" - -#elif defined __HP_aCC -// HP aCC -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: -mt" - -#elif defined(__IBMCPP__) -// IBM Visual Age -# error "Compiler threading support is not turned on. Please compile the code with the xlC_r compiler" - -#elif defined _MSC_VER -// Microsoft Visual C++ -// -// Must remain the last #elif since some other vendors (Metrowerks, for -// example) also #define _MSC_VER -# error "Compiler threading support is not turned on. Please set the correct command line options for threading: either /MT /MTd /MD or /MDd" - -#else - -# error "Compiler threading support is not turned on. Please consult your compiler's documentation for the appropriate options to use" - -#endif // compilers - -#endif // BOOST_HAS_THREADS - -#endif // BOOST_CONFIG_REQUIRES_THREADS_HPP diff --git a/libktorrent/miniboost/boost/config/select_compiler_config.hpp b/libktorrent/miniboost/boost/config/select_compiler_config.hpp deleted file mode 100644 index 62053ba0..00000000 --- a/libktorrent/miniboost/boost/config/select_compiler_config.hpp +++ /dev/null @@ -1,143 +0,0 @@ -// Boost compiler configuration selection header file - -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Martin Wille 2003. -// (C) Copyright Guillaume Melquiond 2003. -// -// Distributed under the Boost Software License, Version 1.0. -// (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/ for most recent version. - -// locate which compiler we are using and define -// BOOST_COMPILER_CONFIG as needed: - -#if defined __CUDACC__ -// NVIDIA CUDA C++ compiler for GPU -# include "boost/config/compiler/nvcc.hpp" - -#endif - -#if defined(__GCCXML__) -// GCC-XML emulates other compilers, it has to appear first here! -# define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp" - -#elif defined(_CRAYC) -// EDG based Cray compiler: -# define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp" - -#elif defined __COMO__ -// Comeau C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp" - -#elif defined(__PATHSCALE__) && (__PATHCC__ >= 4) -// PathScale EKOPath compiler (has to come before clang and gcc) -# define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp" - -#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC) -// Intel -# define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp" - -#elif defined __clang__ -// Clang C++ emulates GCC, so it has to appear early. -# define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp" - -#elif defined __DMC__ -// Digital Mars C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp" - -# elif defined __GNUC__ -// GNU C++: -# define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp" - -#elif defined __KCC -// Kai C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp" - -#elif defined __sgi -// SGI MIPSpro C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp" - -#elif defined __DECCXX -// Compaq Tru64 Unix cxx -# define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp" - -#elif defined __ghs -// Greenhills C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp" - -#elif defined __CODEGEARC__ -// CodeGear - must be checked for before Borland -# define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp" - -#elif defined __BORLANDC__ -// Borland -# define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp" - -#elif defined __MWERKS__ -// Metrowerks CodeWarrior -# define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp" - -#elif defined __SUNPRO_CC -// Sun Workshop Compiler C++ -# define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp" - -#elif defined __HP_aCC -// HP aCC -# define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp" - -#elif defined(__MRC__) || defined(__SC__) -// MPW MrCpp or SCpp -# define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp" - -#elif defined(__IBMCPP__) -// IBM Visual Age -# define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp" - -#elif defined(__PGI) -// Portland Group Inc. -# define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp" - -#elif defined _MSC_VER -// Microsoft Visual C++ -// -// Must remain the last #elif since some other vendors (Metrowerks, for -// example) also #define _MSC_VER -# define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp" - -#elif defined (BOOST_ASSERT_CONFIG) -// this must come last - generate an error if we don't -// recognise the compiler: -# error "Unknown compiler - please configure (http://www.boost.org/libs/config/config.htm#configuring) and report the results to the main boost mailing list (http://www.boost.org/more/mailing_lists.htm#main)" - -#endif - -#if 0 -// -// This section allows dependency scanners to find all the headers we *might* include: -// -#include "boost/config/compiler/gcc_xml.hpp" -#include "boost/config/compiler/cray.hpp" -#include "boost/config/compiler/comeau.hpp" -#include "boost/config/compiler/pathscale.hpp" -#include "boost/config/compiler/intel.hpp" -#include "boost/config/compiler/clang.hpp" -#include "boost/config/compiler/digitalmars.hpp" -#include "boost/config/compiler/gcc.hpp" -#include "boost/config/compiler/kai.hpp" -#include "boost/config/compiler/sgi_mipspro.hpp" -#include "boost/config/compiler/compaq_cxx.hpp" -#include "boost/config/compiler/greenhills.hpp" -#include "boost/config/compiler/codegear.hpp" -#include "boost/config/compiler/borland.hpp" -#include "boost/config/compiler/metrowerks.hpp" -#include "boost/config/compiler/sunpro_cc.hpp" -#include "boost/config/compiler/hp_acc.hpp" -#include "boost/config/compiler/mpw.hpp" -#include "boost/config/compiler/vacpp.hpp" -#include "boost/config/compiler/pgi.hpp" -#include "boost/config/compiler/visualc.hpp" - -#endif - diff --git a/libktorrent/miniboost/boost/config/select_platform_config.hpp b/libktorrent/miniboost/boost/config/select_platform_config.hpp deleted file mode 100644 index 2dddc6a2..00000000 --- a/libktorrent/miniboost/boost/config/select_platform_config.hpp +++ /dev/null @@ -1,129 +0,0 @@ -// Boost compiler configuration selection header file - -// (C) Copyright John Maddock 2001 - 2002. -// (C) Copyright Jens Maurer 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// locate which platform we are on and define BOOST_PLATFORM_CONFIG as needed. -// Note that we define the headers to include using "header_name" not -// in order to prevent macro expansion within the header -// name (for example "linux" is a macro on linux systems). - -#if (defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) && !defined(_CRAYC) -// linux, also other platforms (Hurd etc) that use GLIBC, should these really have their own config headers though? -# define BOOST_PLATFORM_CONFIG "boost/config/platform/linux.hpp" - -#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) -// BSD: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/bsd.hpp" - -#elif defined(sun) || defined(__sun) -// solaris: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/solaris.hpp" - -#elif defined(__sgi) -// SGI Irix: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/irix.hpp" - -#elif defined(__hpux) -// hp unix: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/hpux.hpp" - -#elif defined(__CYGWIN__) -// cygwin is not win32: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/cygwin.hpp" - -#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) -// win32: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp" - -#elif defined(__BEOS__) -// BeOS -# define BOOST_PLATFORM_CONFIG "boost/config/platform/beos.hpp" - -#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) -// MacOS -# define BOOST_PLATFORM_CONFIG "boost/config/platform/macos.hpp" - -#elif defined(__IBMCPP__) || defined(_AIX) -// IBM -# define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp" - -#elif defined(__amigaos__) -// AmigaOS -# define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp" - -#elif defined(__QNXNTO__) -// QNX: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/qnxnto.hpp" - -#elif defined(__VXWORKS__) -// vxWorks: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/vxworks.hpp" - -#elif defined(__SYMBIAN32__) -// Symbian: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/symbian.hpp" - -#elif defined(_CRAYC) -// Cray: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/cray.hpp" - -#elif defined(__VMS) -// VMS: -# define BOOST_PLATFORM_CONFIG "boost/config/platform/vms.hpp" -#else - -# if defined(unix) \ - || defined(__unix) \ - || defined(_XOPEN_SOURCE) \ - || defined(_POSIX_SOURCE) - - // generic unix platform: - -# ifndef BOOST_HAS_UNISTD_H -# define BOOST_HAS_UNISTD_H -# endif - -# include - -# endif - -# if defined (BOOST_ASSERT_CONFIG) - // this must come last - generate an error if we don't - // recognise the platform: -# error "Unknown platform - please configure and report the results to boost.org" -# endif - -#endif - -#if 0 -// -// This section allows dependency scanners to find all the files we *might* include: -// -# include "boost/config/platform/linux.hpp" -# include "boost/config/platform/bsd.hpp" -# include "boost/config/platform/solaris.hpp" -# include "boost/config/platform/irix.hpp" -# include "boost/config/platform/hpux.hpp" -# include "boost/config/platform/cygwin.hpp" -# include "boost/config/platform/win32.hpp" -# include "boost/config/platform/beos.hpp" -# include "boost/config/platform/macos.hpp" -# include "boost/config/platform/aix.hpp" -# include "boost/config/platform/amigaos.hpp" -# include "boost/config/platform/qnxnto.hpp" -# include "boost/config/platform/vxworks.hpp" -# include "boost/config/platform/symbian.hpp" -# include "boost/config/platform/cray.hpp" -# include "boost/config/platform/vms.hpp" -# include - - - -#endif - diff --git a/libktorrent/miniboost/boost/config/select_stdlib_config.hpp b/libktorrent/miniboost/boost/config/select_stdlib_config.hpp deleted file mode 100644 index 6ae860b0..00000000 --- a/libktorrent/miniboost/boost/config/select_stdlib_config.hpp +++ /dev/null @@ -1,99 +0,0 @@ -// Boost compiler configuration selection header file - -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001 - 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - - -// See http://www.boost.org for most recent version. - -// locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed: - -// First include to determine if some version of STLport is in use as the std lib -// (do not rely on this header being included since users can short-circuit this header -// if they know whose std lib they are using.) -#ifdef __cplusplus -# include -#else -# include -#endif - -#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION) -// STLPort library; this _must_ come first, otherwise since -// STLport typically sits on top of some other library, we -// can end up detecting that first rather than STLport: -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp" - -#else - -// If our std lib was not some version of STLport, then include as it is about -// the smallest of the std lib headers that includes real C++ stuff. (Some std libs do not -// include their C++-related macros in so this additional include makes sure -// we get those definitions) -// (again do not rely on this header being included since users can short-circuit this -// header if they know whose std lib they are using.) -#include - -#if defined(__LIBCOMO__) -// Comeau STL: -#define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp" - -#elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER) -// Rogue Wave library: -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp" - -#elif defined(_LIBCPP_VERSION) -// libc++ -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcpp.hpp" - -#elif defined(__GLIBCPP__) || defined(__GLIBCXX__) -// GNU libstdc++ 3 -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp" - -#elif defined(__STL_CONFIG_H) -// generic SGI STL -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp" - -#elif defined(__MSL_CPP__) -// MSL standard lib: -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp" - -#elif defined(__IBMCPP__) -// take the default VACPP std lib -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp" - -#elif defined(MSIPL_COMPILE_H) -// Modena C++ standard library -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp" - -#elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER) -// Dinkumware Library (this has to appear after any possible replacement libraries): -# define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp" - -#elif defined (BOOST_ASSERT_CONFIG) -// this must come last - generate an error if we don't -// recognise the library: -# error "Unknown standard library - please configure and report the results to boost.org" - -#endif - -#endif - -#if 0 -// -// This section allows dependency scanners to find all the files we *might* include: -// -# include "boost/config/stdlib/stlport.hpp" -# include "boost/config/stdlib/libcomo.hpp" -# include "boost/config/stdlib/roguewave.hpp" -# include "boost/config/stdlib/libcpp.hpp" -# include "boost/config/stdlib/libstdcpp3.hpp" -# include "boost/config/stdlib/sgi.hpp" -# include "boost/config/stdlib/msl.hpp" -# include "boost/config/stdlib/vacpp.hpp" -# include "boost/config/stdlib/modena.hpp" -# include "boost/config/stdlib/dinkumware.hpp" -#endif - diff --git a/libktorrent/miniboost/boost/config/stdlib/dinkumware.hpp b/libktorrent/miniboost/boost/config/stdlib/dinkumware.hpp deleted file mode 100644 index 6fb6322a..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/dinkumware.hpp +++ /dev/null @@ -1,164 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001. -// (C) Copyright Peter Dimov 2001. -// (C) Copyright David Abrahams 2002. -// (C) Copyright Guillaume Melquiond 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Dinkumware standard library config: - -#if !defined(_YVALS) && !defined(_CPPLIB_VER) -#include -#if !defined(_YVALS) && !defined(_CPPLIB_VER) -#error This is not the Dinkumware lib! -#endif -#endif - - -#if defined(_CPPLIB_VER) && (_CPPLIB_VER >= 306) - // full dinkumware 3.06 and above - // fully conforming provided the compiler supports it: -# if !(defined(_GLOBAL_USING) && (_GLOBAL_USING+0 > 0)) && !defined(__BORLANDC__) && !defined(_STD) && !(defined(__ICC) && (__ICC >= 700)) // can be defined in yvals.h -# define BOOST_NO_STDC_NAMESPACE -# endif -# if !(defined(_HAS_MEMBER_TEMPLATES_REBIND) && (_HAS_MEMBER_TEMPLATES_REBIND+0 > 0)) && !(defined(_MSC_VER) && (_MSC_VER > 1300)) && defined(BOOST_MSVC) -# define BOOST_NO_STD_ALLOCATOR -# endif -# define BOOST_HAS_PARTIAL_STD_ALLOCATOR -# if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) - // if this lib version is set up for vc6 then there is no std::use_facet: -# define BOOST_NO_STD_USE_FACET -# define BOOST_HAS_TWO_ARG_USE_FACET - // C lib functions aren't in namespace std either: -# define BOOST_NO_STDC_NAMESPACE - // and nor is -# define BOOST_NO_EXCEPTION_STD_NAMESPACE -# endif -// There's no numeric_limits support unless _LONGLONG is defined: -# if !defined(_LONGLONG) && (_CPPLIB_VER <= 310) -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -# endif -// 3.06 appears to have (non-sgi versions of) & , -// and no at all -#else -# define BOOST_MSVC_STD_ITERATOR 1 -# define BOOST_NO_STD_ITERATOR -# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS -# define BOOST_NO_STD_ALLOCATOR -# define BOOST_NO_STDC_NAMESPACE -# define BOOST_NO_STD_USE_FACET -# define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN -# define BOOST_HAS_MACRO_USE_FACET -# ifndef _CPPLIB_VER - // Updated Dinkum library defines this, and provides - // its own min and max definitions, as does MTA version. -# ifndef __MTA__ -# define BOOST_NO_STD_MIN_MAX -# endif -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -# endif -#endif - -// -// std extension namespace is stdext for vc7.1 and later, -// the same applies to other compilers that sit on top -// of vc7.1 (Intel and Comeau): -// -#if defined(_MSC_VER) && (_MSC_VER >= 1310) && !defined(__BORLANDC__) -# define BOOST_STD_EXTENSION_NAMESPACE stdext -#endif - - -#if (defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__BORLANDC__)) || !defined(_CPPLIB_VER) || (_CPPLIB_VER < 306) - // if we're using a dinkum lib that's - // been configured for VC6/7 then there is - // no iterator traits (true even for icl) -# define BOOST_NO_STD_ITERATOR_TRAITS -#endif - -#if defined(__ICL) && (__ICL < 800) && defined(_CPPLIB_VER) && (_CPPLIB_VER <= 310) -// Intel C++ chokes over any non-trivial use of -// this may be an overly restrictive define, but regex fails without it: -# define BOOST_NO_STD_LOCALE -#endif - -// Fix for VC++ 8.0 on up ( I do not have a previous version to test ) -// or clang-cl. If exceptions are off you must manually include the -// header before including the header. Admittedly -// trying to use Boost libraries or the standard C++ libraries without -// exception support is not suggested but currently clang-cl ( v 3.4 ) -// does not support exceptions and must be compiled with exceptions off. -#if !_HAS_EXCEPTIONS && ((defined(BOOST_MSVC) && BOOST_MSVC >= 1400) || (defined(__clang__) && defined(_MSC_VER))) -#include -#endif -#include -#if ( (!_HAS_EXCEPTIONS && !defined(__ghs__)) || (!_HAS_NAMESPACE && defined(__ghs__)) ) && !defined(__TI_COMPILER_VERSION__) -# define BOOST_NO_STD_TYPEINFO -#endif - -// C++0x headers implemented in 520 (as shipped by Microsoft) -// -#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 520 -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_SMART_PTR -#endif - -#if ((!defined(_HAS_TR1_IMPORTS) || (_HAS_TR1_IMPORTS+0 == 0)) && !defined(BOOST_NO_CXX11_HDR_TUPLE)) \ - && (!defined(_CPPLIB_VER) || _CPPLIB_VER < 610) -# define BOOST_NO_CXX11_HDR_TUPLE -#endif - -// C++0x headers implemented in 540 (as shipped by Microsoft) -// -#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 540 -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -#endif - -// C++0x headers implemented in 610 (as shipped by Microsoft) -// -#if !defined(_CPPLIB_VER) || _CPPLIB_VER < 610 -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_ALLOCATOR -// 540 has std::align but it is not a conforming implementation -# define BOOST_NO_CXX11_STD_ALIGN -#endif - -// 520..610 have std::addressof, but it doesn't support functions -// -# define BOOST_NO_CXX11_ADDRESSOF - -#ifdef _CPPLIB_VER -# define BOOST_DINKUMWARE_STDLIB _CPPLIB_VER -#else -# define BOOST_DINKUMWARE_STDLIB 1 -#endif - -#ifdef _CPPLIB_VER -# define BOOST_STDLIB "Dinkumware standard library version " BOOST_STRINGIZE(_CPPLIB_VER) -#else -# define BOOST_STDLIB "Dinkumware standard library version 1.x" -#endif diff --git a/libktorrent/miniboost/boost/config/stdlib/libcomo.hpp b/libktorrent/miniboost/boost/config/stdlib/libcomo.hpp deleted file mode 100644 index 5aacfb2a..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/libcomo.hpp +++ /dev/null @@ -1,75 +0,0 @@ -// (C) Copyright John Maddock 2002 - 2003. -// (C) Copyright Jens Maurer 2002 - 2003. -// (C) Copyright Beman Dawes 2002 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Comeau STL: - -#if !defined(__LIBCOMO__) -# include -# if !defined(__LIBCOMO__) -# error "This is not the Comeau STL!" -# endif -#endif - -// -// std::streambuf is non-standard -// NOTE: versions of libcomo prior to beta28 have octal version numbering, -// e.g. version 25 is 21 (dec) -#if __LIBCOMO_VERSION__ <= 22 -# define BOOST_NO_STD_WSTREAMBUF -#endif - -#if (__LIBCOMO_VERSION__ <= 31) && defined(_WIN32) -#define BOOST_NO_SWPRINTF -#endif - -#if __LIBCOMO_VERSION__ >= 31 -# define BOOST_HAS_HASH -# define BOOST_HAS_SLIST -#endif - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -// -// Intrinsic type_traits support. -// The SGI STL has it's own __type_traits class, which -// has intrinsic compiler support with SGI's compilers. -// Whatever map SGI style type traits to boost equivalents: -// -#define BOOST_HAS_SGI_TYPE_TRAITS - -#define BOOST_STDLIB "Comeau standard library " BOOST_STRINGIZE(__LIBCOMO_VERSION__) - - diff --git a/libktorrent/miniboost/boost/config/stdlib/libcpp.hpp b/libktorrent/miniboost/boost/config/stdlib/libcpp.hpp deleted file mode 100644 index 88184ef9..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/libcpp.hpp +++ /dev/null @@ -1,46 +0,0 @@ -// (C) Copyright Christopher Jefferson 2011. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// config for libc++ -// Might need more in here later. - -#if !defined(_LIBCPP_VERSION) -# include -# if !defined(_LIBCPP_VERSION) -# error "This is not libc++!" -# endif -#endif - -#define BOOST_STDLIB "libc++ version " BOOST_STRINGIZE(_LIBCPP_VERSION) - -#define BOOST_HAS_THREADS - -#ifdef _LIBCPP_HAS_NO_VARIADICS -# define BOOST_NO_CXX11_HDR_TUPLE -#endif - -// BOOST_NO_CXX11_ALLOCATOR should imply no support for the C++11 -// allocator model. The C++11 allocator model requires a conforming -// std::allocator_traits which is only possible with C++11 template -// aliases since members rebind_alloc and rebind_traits require it. -#if defined(_LIBCPP_HAS_NO_TEMPLATE_ALIASES) -# define BOOST_NO_CXX11_ALLOCATOR -#endif - -// -// These appear to be unusable/incomplete so far: -// -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_HDR_ATOMIC - -// libc++ uses a non-standard messages_base -#define BOOST_NO_STD_MESSAGES - -// --- end --- diff --git a/libktorrent/miniboost/boost/config/stdlib/libstdcpp3.hpp b/libktorrent/miniboost/boost/config/stdlib/libstdcpp3.hpp deleted file mode 100644 index 2fd6ea7d..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/libstdcpp3.hpp +++ /dev/null @@ -1,178 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright Jens Maurer 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// config for libstdc++ v3 -// not much to go in here: - -#define BOOST_GNU_STDLIB 1 - -#ifdef __GLIBCXX__ -#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCXX__) -#else -#define BOOST_STDLIB "GNU libstdc++ version " BOOST_STRINGIZE(__GLIBCPP__) -#endif - -#if !defined(_GLIBCPP_USE_WCHAR_T) && !defined(_GLIBCXX_USE_WCHAR_T) -# define BOOST_NO_CWCHAR -# define BOOST_NO_CWCTYPE -# define BOOST_NO_STD_WSTRING -# define BOOST_NO_STD_WSTREAMBUF -#endif - -#if defined(__osf__) && !defined(_REENTRANT) \ - && ( defined(_GLIBCXX_HAVE_GTHR_DEFAULT) || defined(_GLIBCPP_HAVE_GTHR_DEFAULT) ) -// GCC 3 on Tru64 forces the definition of _REENTRANT when any std lib header -// file is included, therefore for consistency we define it here as well. -# define _REENTRANT -#endif - -#ifdef __GLIBCXX__ // gcc 3.4 and greater: -# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \ - || defined(_GLIBCXX__PTHREADS) \ - || defined(_GLIBCXX_HAS_GTHREADS) \ - || defined(_WIN32) \ - || defined(_AIX) - // - // If the std lib has thread support turned on, then turn it on in Boost - // as well. We do this because some gcc-3.4 std lib headers define _REENTANT - // while others do not... - // -# define BOOST_HAS_THREADS -# else -# define BOOST_DISABLE_THREADS -# endif -#elif defined(__GLIBCPP__) \ - && !defined(_GLIBCPP_HAVE_GTHR_DEFAULT) \ - && !defined(_GLIBCPP__PTHREADS) - // disable thread support if the std lib was built single threaded: -# define BOOST_DISABLE_THREADS -#endif - -#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT) -// linux on arm apparently doesn't define _REENTRANT -// so just turn on threading support whenever the std lib is thread safe: -# define BOOST_HAS_THREADS -#endif - -#if !defined(_GLIBCPP_USE_LONG_LONG) \ - && !defined(_GLIBCXX_USE_LONG_LONG)\ - && defined(BOOST_HAS_LONG_LONG) -// May have been set by compiler/*.hpp, but "long long" without library -// support is useless. -# undef BOOST_HAS_LONG_LONG -#endif - -// Apple doesn't seem to reliably defined a *unix* macro -#if !defined(CYGWIN) && ( defined(__unix__) \ - || defined(__unix) \ - || defined(unix) \ - || defined(__APPLE__) \ - || defined(__APPLE) \ - || defined(APPLE)) -# include -#endif - -#if defined(__GLIBCXX__) || (defined(__GLIBCPP__) && __GLIBCPP__>=20020514) // GCC >= 3.1.0 -# define BOOST_STD_EXTENSION_NAMESPACE __gnu_cxx -# define BOOST_HAS_SLIST -# define BOOST_HAS_HASH -# define BOOST_SLIST_HEADER -# if !defined(__GNUC__) || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) -# define BOOST_HASH_SET_HEADER -# define BOOST_HASH_MAP_HEADER -# else -# define BOOST_HASH_SET_HEADER -# define BOOST_HASH_MAP_HEADER -# endif -#endif - -// stdlibc++ C++0x support is detected via __GNUC__, __GNUC_MINOR__, and possibly -// __GNUC_PATCHLEVEL__ at the suggestion of Jonathan Wakely, one of the stdlibc++ -// developers. He also commented: -// -// "I'm not sure how useful __GLIBCXX__ is for your purposes, for instance in -// GCC 4.2.4 it is set to 20080519 but in GCC 4.3.0 it is set to 20080305. -// Although 4.3.0 was released earlier than 4.2.4, it has better C++0x support -// than any release in the 4.2 series." -// -// Another resource for understanding stdlibc++ features is: -// http://gcc.gnu.org/onlinedocs/libstdc++/manual/status.html#manual.intro.status.standard.200x - -// C++0x headers in GCC 4.3.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -#endif - -// C++0x headers in GCC 4.4.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 4) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_SMART_PTR -#else -# define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG -# define BOOST_HAS_TR1_COMPLEX_OVERLOADS -#endif - -#if (!defined(_GLIBCXX_HAS_GTHREADS) || !defined(_GLIBCXX_USE_C99_STDINT_TR1)) && (!defined(BOOST_NO_CXX11_HDR_CONDITION_VARIABLE) || !defined(BOOST_NO_CXX11_HDR_MUTEX)) -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_MUTEX -#endif - -// C++0x features in GCC 4.5.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_RANDOM -#endif - -// C++0x features in GCC 4.6.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_ADDRESSOF -#endif - -// C++0x features in GCC 4.7.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -// Note that although existed prior to 4.7, "steady_clock" is spelled "monotonic_clock" -// so 4.7.0 is the first truely conforming one. -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_ALLOCATOR -#endif -// C++0x features in GCC 4.7.0 and later -// -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -// Note that although existed prior to gcc 4.8 it was largely unimplemented for many types: -# define BOOST_NO_CXX11_HDR_ATOMIC -#endif -#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 9) || !defined(__GXX_EXPERIMENTAL_CXX0X__) -// Although is present and compilable against, the actual implementation is not functional -// even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively. -# define BOOST_NO_CXX11_HDR_REGEX -#endif -// C++0x headers not yet (fully!) implemented -// -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_STD_ALIGN - -// --- end --- diff --git a/libktorrent/miniboost/boost/config/stdlib/modena.hpp b/libktorrent/miniboost/boost/config/stdlib/modena.hpp deleted file mode 100644 index f2a83888..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/modena.hpp +++ /dev/null @@ -1,59 +0,0 @@ -// (C) Copyright Jens Maurer 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Modena C++ standard library (comes with KAI C++) - -#if !defined(MSIPL_COMPILE_H) -# include -# if !defined(__MSIPL_COMPILE_H) -# error "This is not the Modena C++ library!" -# endif -#endif - -#ifndef MSIPL_NL_TYPES -#define BOOST_NO_STD_MESSAGES -#endif - -#ifndef MSIPL_WCHART -#define BOOST_NO_STD_WSTRING -#endif - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -#define BOOST_STDLIB "Modena C++ standard library" - - - - - diff --git a/libktorrent/miniboost/boost/config/stdlib/msl.hpp b/libktorrent/miniboost/boost/config/stdlib/msl.hpp deleted file mode 100644 index b8f43a12..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/msl.hpp +++ /dev/null @@ -1,87 +0,0 @@ -// (C) Copyright John Maddock 2001. -// (C) Copyright Darin Adler 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Metrowerks standard library: - -#ifndef __MSL_CPP__ -# include -# ifndef __MSL_CPP__ -# error This is not the MSL standard library! -# endif -#endif - -#if __MSL_CPP__ >= 0x6000 // Pro 6 -# define BOOST_HAS_HASH -# define BOOST_STD_EXTENSION_NAMESPACE Metrowerks -#endif -#define BOOST_HAS_SLIST - -#if __MSL_CPP__ < 0x6209 -# define BOOST_NO_STD_MESSAGES -#endif - -// check C lib version for -#include - -#if defined(__MSL__) && (__MSL__ >= 0x5000) -# define BOOST_HAS_STDINT_H -# if !defined(__PALMOS_TRAPS__) -# define BOOST_HAS_UNISTD_H -# endif - // boilerplate code: -# include -#endif - -#if defined(_MWMT) || _MSL_THREADSAFE -# define BOOST_HAS_THREADS -#endif - -#ifdef _MSL_NO_EXPLICIT_FUNC_TEMPLATE_ARG -# define BOOST_NO_STD_USE_FACET -# define BOOST_HAS_TWO_ARG_USE_FACET -#endif - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -#define BOOST_STDLIB "Metrowerks Standard Library version " BOOST_STRINGIZE(__MSL_CPP__) - - - - - - - - - diff --git a/libktorrent/miniboost/boost/config/stdlib/roguewave.hpp b/libktorrent/miniboost/boost/config/stdlib/roguewave.hpp deleted file mode 100644 index 2b4e8636..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/roguewave.hpp +++ /dev/null @@ -1,189 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Jens Maurer 2001. -// (C) Copyright David Abrahams 2003. -// (C) Copyright Boris Gubenko 2007. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// Rogue Wave std lib: - -#define BOOST_RW_STDLIB 1 - -#if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) -# include -# if !defined(__STD_RWCOMPILER_H__) && !defined(_RWSTD_VER) -# error This is not the Rogue Wave standard library -# endif -#endif -// -// figure out a consistent version number: -// -#ifndef _RWSTD_VER -# define BOOST_RWSTD_VER 0x010000 -#elif _RWSTD_VER < 0x010000 -# define BOOST_RWSTD_VER (_RWSTD_VER << 8) -#else -# define BOOST_RWSTD_VER _RWSTD_VER -#endif - -#ifndef _RWSTD_VER -# define BOOST_STDLIB "Rogue Wave standard library version (Unknown version)" -#elif _RWSTD_VER < 0x04010200 - # define BOOST_STDLIB "Rogue Wave standard library version " BOOST_STRINGIZE(_RWSTD_VER) -#else -# ifdef _RWSTD_VER_STR -# define BOOST_STDLIB "Apache STDCXX standard library version " _RWSTD_VER_STR -# else -# define BOOST_STDLIB "Apache STDCXX standard library version " BOOST_STRINGIZE(_RWSTD_VER) -# endif -#endif - -// -// Prior to version 2.2.0 the primary template for std::numeric_limits -// does not have compile time constants, even though specializations of that -// template do: -// -#if BOOST_RWSTD_VER < 0x020200 -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -#endif - -// Sun CC 5.5 patch 113817-07 adds long long specialization, but does not change the -// library version number (http://sunsolve6.sun.com/search/document.do?assetkey=1-21-113817): -#if BOOST_RWSTD_VER <= 0x020101 && (!defined(__SUNPRO_CC) || (__SUNPRO_CC < 0x550)) -# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS -# endif - -// -// Borland version of numeric_limits lacks __int64 specialisation: -// -#ifdef __BORLANDC__ -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -#endif - -// -// No std::iterator if it can't figure out default template args: -// -#if defined(_RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || defined(RWSTD_NO_SIMPLE_DEFAULT_TEMPLATES) || (BOOST_RWSTD_VER < 0x020000) -# define BOOST_NO_STD_ITERATOR -#endif - -// -// No iterator traits without partial specialization: -// -#if defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) || defined(RWSTD_NO_CLASS_PARTIAL_SPEC) -# define BOOST_NO_STD_ITERATOR_TRAITS -#endif - -// -// Prior to version 2.0, std::auto_ptr was buggy, and there were no -// new-style iostreams, and no conformant std::allocator: -// -#if (BOOST_RWSTD_VER < 0x020000) -# define BOOST_NO_AUTO_PTR -# define BOOST_NO_STRINGSTREAM -# define BOOST_NO_STD_ALLOCATOR -# define BOOST_NO_STD_LOCALE -#endif - -// -// No template iterator constructors without member template support: -// -#if defined(RWSTD_NO_MEMBER_TEMPLATES) || defined(_RWSTD_NO_MEMBER_TEMPLATES) -# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS -#endif - -// -// RW defines _RWSTD_ALLOCATOR if the allocator is conformant and in use -// (the or _HPACC_ part is a hack - the library seems to define _RWSTD_ALLOCATOR -// on HP aCC systems even though the allocator is in fact broken): -// -#if !defined(_RWSTD_ALLOCATOR) || (defined(__HP_aCC) && __HP_aCC <= 33100) -# define BOOST_NO_STD_ALLOCATOR -#endif - -// -// If we have a std::locale, we still may not have std::use_facet: -// -#if defined(_RWSTD_NO_TEMPLATE_ON_RETURN_TYPE) && !defined(BOOST_NO_STD_LOCALE) -# define BOOST_NO_STD_USE_FACET -# define BOOST_HAS_TWO_ARG_USE_FACET -#endif - -// -// There's no std::distance prior to version 2, or without -// partial specialization support: -// -#if (BOOST_RWSTD_VER < 0x020000) || defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) - #define BOOST_NO_STD_DISTANCE -#endif - -// -// Some versions of the rogue wave library don't have assignable -// OutputIterators: -// -#if BOOST_RWSTD_VER < 0x020100 -# define BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN -#endif - -// -// Disable BOOST_HAS_LONG_LONG when the library has no support for it. -// -#if !defined(_RWSTD_LONG_LONG) && defined(BOOST_HAS_LONG_LONG) -# undef BOOST_HAS_LONG_LONG -#endif - -// -// check that on HP-UX, the proper RW library is used -// -#if defined(__HP_aCC) && !defined(_HP_NAMESPACE_STD) -# error "Boost requires Standard RW library. Please compile and link with -AA" -#endif - -// -// Define macros specific to RW V2.2 on HP-UX -// -#if defined(__HP_aCC) && (BOOST_RWSTD_VER == 0x02020100) -# ifndef __HP_TC1_MAKE_PAIR -# define __HP_TC1_MAKE_PAIR -# endif -# ifndef _HP_INSTANTIATE_STD2_VL -# define _HP_INSTANTIATE_STD2_VL -# endif -#endif - -#if _RWSTD_VER < 0x05000000 -# define BOOST_NO_CXX11_HDR_ARRAY -#endif -// type_traits header is incomplete: -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -// -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - diff --git a/libktorrent/miniboost/boost/config/stdlib/sgi.hpp b/libktorrent/miniboost/boost/config/stdlib/sgi.hpp deleted file mode 100644 index bda77c22..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/sgi.hpp +++ /dev/null @@ -1,151 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2003. -// (C) Copyright Darin Adler 2001. -// (C) Copyright Jens Maurer 2001 - 2003. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// generic SGI STL: - -#if !defined(__STL_CONFIG_H) -# include -# if !defined(__STL_CONFIG_H) -# error "This is not the SGI STL!" -# endif -#endif - -// -// No std::iterator traits without partial specialisation: -// -#if !defined(__STL_CLASS_PARTIAL_SPECIALIZATION) -# define BOOST_NO_STD_ITERATOR_TRAITS -#endif - -// -// No std::stringstream with gcc < 3 -// -#if defined(__GNUC__) && (__GNUC__ < 3) && \ - ((__GNUC_MINOR__ < 95) || (__GNUC_MINOR__ == 96)) && \ - !defined(__STL_USE_NEW_IOSTREAMS) || \ - defined(__APPLE_CC__) - // Note that we only set this for GNU C++ prior to 2.95 since the - // latest patches for that release do contain a minimal - // If you are running a 2.95 release prior to 2.95.3 then this will need - // setting, but there is no way to detect that automatically (other - // than by running the configure script). - // Also, the unofficial GNU C++ 2.96 included in RedHat 7.1 doesn't - // have . -# define BOOST_NO_STRINGSTREAM -#endif - -// Apple doesn't seem to reliably defined a *unix* macro -#if !defined(CYGWIN) && ( defined(__unix__) \ - || defined(__unix) \ - || defined(unix) \ - || defined(__APPLE__) \ - || defined(__APPLE) \ - || defined(APPLE)) -# include -#endif - - -// -// Assume no std::locale without own iostreams (this may be an -// incorrect assumption in some cases): -// -#if !defined(__SGI_STL_OWN_IOSTREAMS) && !defined(__STL_USE_NEW_IOSTREAMS) -# define BOOST_NO_STD_LOCALE -#endif - -// -// Original native SGI streams have non-standard std::messages facet: -// -#if defined(__sgi) && (_COMPILER_VERSION <= 650) && !defined(__SGI_STL_OWN_IOSTREAMS) -# define BOOST_NO_STD_LOCALE -#endif - -// -// SGI's new iostreams have missing "const" in messages<>::open -// -#if defined(__sgi) && (_COMPILER_VERSION <= 740) && defined(__STL_USE_NEW_IOSTREAMS) -# define BOOST_NO_STD_MESSAGES -#endif - -// -// No template iterator constructors, or std::allocator -// without member templates: -// -#if !defined(__STL_MEMBER_TEMPLATES) -# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS -# define BOOST_NO_STD_ALLOCATOR -#endif - -// -// We always have SGI style hash_set, hash_map, and slist: -// -#define BOOST_HAS_HASH -#define BOOST_HAS_SLIST - -// -// If this is GNU libstdc++2, then no and no std::wstring: -// -#if (defined(__GNUC__) && (__GNUC__ < 3)) -# include -# if defined(__BASTRING__) -# define BOOST_NO_LIMITS -// Note: will provide compile-time constants -# undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -# define BOOST_NO_STD_WSTRING -# endif -#endif - -// -// There is no standard iterator unless we have namespace support: -// -#if !defined(__STL_USE_NAMESPACES) -# define BOOST_NO_STD_ITERATOR -#endif - -// -// Intrinsic type_traits support. -// The SGI STL has it's own __type_traits class, which -// has intrinsic compiler support with SGI's compilers. -// Whatever map SGI style type traits to boost equivalents: -// -#define BOOST_HAS_SGI_TYPE_TRAITS - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -#define BOOST_STDLIB "SGI standard library" - - - diff --git a/libktorrent/miniboost/boost/config/stdlib/stlport.hpp b/libktorrent/miniboost/boost/config/stdlib/stlport.hpp deleted file mode 100644 index fd5d3a5a..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/stlport.hpp +++ /dev/null @@ -1,246 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// (C) Copyright Darin Adler 2001. -// (C) Copyright Jens Maurer 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -// STLPort standard library config: - -#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) -# include -# if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) -# error "This is not STLPort!" -# endif -#endif - -// Apple doesn't seem to reliably defined a *unix* macro -#if !defined(CYGWIN) && ( defined(__unix__) \ - || defined(__unix) \ - || defined(unix) \ - || defined(__APPLE__) \ - || defined(__APPLE) \ - || defined(APPLE)) -# include -#endif - -// -// __STL_STATIC_CONST_INIT_BUG implies BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -// for versions prior to 4.1(beta) -// -#if (defined(__STL_STATIC_CONST_INIT_BUG) || defined(_STLP_STATIC_CONST_INIT_BUG)) && (__SGI_STL_PORT <= 0x400) -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -#endif - -// -// If STLport thinks that there is no partial specialisation, then there is no -// std::iterator traits: -// -#if !(defined(_STLP_CLASS_PARTIAL_SPECIALIZATION) || defined(__STL_CLASS_PARTIAL_SPECIALIZATION)) -# define BOOST_NO_STD_ITERATOR_TRAITS -#endif - -// -// No new style iostreams on GCC without STLport's iostreams enabled: -// -#if (defined(__GNUC__) && (__GNUC__ < 3)) && !(defined(__SGI_STL_OWN_IOSTREAMS) || defined(_STLP_OWN_IOSTREAMS)) -# define BOOST_NO_STRINGSTREAM -#endif - -// -// No new iostreams implies no std::locale, and no std::stringstream: -// -#if defined(__STL_NO_IOSTREAMS) || defined(__STL_NO_NEW_IOSTREAMS) || defined(_STLP_NO_IOSTREAMS) || defined(_STLP_NO_NEW_IOSTREAMS) -# define BOOST_NO_STD_LOCALE -# define BOOST_NO_STRINGSTREAM -#endif - -// -// If the streams are not native, and we have a "using ::x" compiler bug -// then the io stream facets are not available in namespace std:: -// -#ifdef _STLPORT_VERSION -# if !(_STLPORT_VERSION >= 0x500) && !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) -# define BOOST_NO_STD_LOCALE -# endif -#else -# if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__) -# define BOOST_NO_STD_LOCALE -# endif -#endif - -#if defined(_STLPORT_VERSION) && (_STLPORT_VERSION >= 0x520) -# define BOOST_HAS_TR1_UNORDERED_SET -# define BOOST_HAS_TR1_UNORDERED_MAP -#endif -// -// Without member template support enabled, their are no template -// iterate constructors, and no std::allocator: -// -#if !(defined(__STL_MEMBER_TEMPLATES) || defined(_STLP_MEMBER_TEMPLATES)) -# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS -# define BOOST_NO_STD_ALLOCATOR -#endif -// -// however we always have at least a partial allocator: -// -#define BOOST_HAS_PARTIAL_STD_ALLOCATOR - -#if !defined(_STLP_MEMBER_TEMPLATE_CLASSES) || defined(_STLP_DONT_SUPPORT_REBIND_MEMBER_TEMPLATE) -# define BOOST_NO_STD_ALLOCATOR -#endif - -#if defined(_STLP_NO_MEMBER_TEMPLATE_KEYWORD) && defined(BOOST_MSVC) && (BOOST_MSVC <= 1300) -# define BOOST_NO_STD_ALLOCATOR -#endif - -// -// If STLport thinks there is no wchar_t at all, then we have to disable -// the support for the relevant specilazations of std:: templates. -// -#if !defined(_STLP_HAS_WCHAR_T) && !defined(_STLP_WCHAR_T_IS_USHORT) -# ifndef BOOST_NO_STD_WSTRING -# define BOOST_NO_STD_WSTRING -# endif -# ifndef BOOST_NO_STD_WSTREAMBUF -# define BOOST_NO_STD_WSTREAMBUF -# endif -#endif - -// -// We always have SGI style hash_set, hash_map, and slist: -// -#ifndef _STLP_NO_EXTENSIONS -#define BOOST_HAS_HASH -#define BOOST_HAS_SLIST -#endif - -// -// STLport does a good job of importing names into namespace std::, -// but doesn't always get them all, define BOOST_NO_STDC_NAMESPACE, since our -// workaround does not conflict with STLports: -// -// -// Harold Howe says: -// Borland switched to STLport in BCB6. Defining BOOST_NO_STDC_NAMESPACE with -// BCB6 does cause problems. If we detect C++ Builder, then don't define -// BOOST_NO_STDC_NAMESPACE -// -#if !defined(__BORLANDC__) && !defined(__DMC__) -// -// If STLport is using it's own namespace, and the real names are in -// the global namespace, then we duplicate STLport's using declarations -// (by defining BOOST_NO_STDC_NAMESPACE), we do this because STLport doesn't -// necessarily import all the names we need into namespace std:: -// -# if (defined(__STL_IMPORT_VENDOR_CSTD) \ - || defined(__STL_USE_OWN_NAMESPACE) \ - || defined(_STLP_IMPORT_VENDOR_CSTD) \ - || defined(_STLP_USE_OWN_NAMESPACE)) \ - && (defined(__STL_VENDOR_GLOBAL_CSTD) || defined (_STLP_VENDOR_GLOBAL_CSTD)) -# define BOOST_NO_STDC_NAMESPACE -# define BOOST_NO_EXCEPTION_STD_NAMESPACE -# endif -#elif defined(__BORLANDC__) && __BORLANDC__ < 0x560 -// STLport doesn't import std::abs correctly: -#include -namespace std { using ::abs; } -// and strcmp/strcpy don't get imported either ('cos they are macros) -#include -#ifdef strcpy -# undef strcpy -#endif -#ifdef strcmp -# undef strcmp -#endif -#ifdef _STLP_VENDOR_CSTD -namespace std{ using _STLP_VENDOR_CSTD::strcmp; using _STLP_VENDOR_CSTD::strcpy; } -#endif -#endif - -// -// std::use_facet may be non-standard, uses a class instead: -// -#if defined(__STL_NO_EXPLICIT_FUNCTION_TMPL_ARGS) || defined(_STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS) -# define BOOST_NO_STD_USE_FACET -# define BOOST_HAS_STLP_USE_FACET -#endif - -// -// If STLport thinks there are no wide functions, etc. is not working; but -// only if BOOST_NO_STDC_NAMESPACE is not defined (if it is then we do the import -// into std:: ourselves). -// -#if defined(_STLP_NO_NATIVE_WIDE_FUNCTIONS) && !defined(BOOST_NO_STDC_NAMESPACE) -# define BOOST_NO_CWCHAR -# define BOOST_NO_CWCTYPE -#endif - -// -// If STLport for some reason was configured so that it thinks that wchar_t -// is not an intrinsic type, then we have to disable the support for it as -// well (we would be missing required specializations otherwise). -// -#if !defined( _STLP_HAS_WCHAR_T) || defined(_STLP_WCHAR_T_IS_USHORT) -# undef BOOST_NO_INTRINSIC_WCHAR_T -# define BOOST_NO_INTRINSIC_WCHAR_T -#endif - -// -// Borland ships a version of STLport with C++ Builder 6 that lacks -// hashtables and the like: -// -#if defined(__BORLANDC__) && (__BORLANDC__ == 0x560) -# undef BOOST_HAS_HASH -#endif - -// -// gcc-2.95.3/STLPort does not like the using declarations we use to get ADL with std::min/max -// -#if defined(__GNUC__) && (__GNUC__ < 3) -# include // for std::min and std::max -# define BOOST_USING_STD_MIN() ((void)0) -# define BOOST_USING_STD_MAX() ((void)0) -namespace boost { using std::min; using std::max; } -#endif - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -#define BOOST_STDLIB "STLPort standard library version " BOOST_STRINGIZE(__SGI_STL_PORT) - - - - - - - - diff --git a/libktorrent/miniboost/boost/config/stdlib/vacpp.hpp b/libktorrent/miniboost/boost/config/stdlib/vacpp.hpp deleted file mode 100644 index a58ec1c5..00000000 --- a/libktorrent/miniboost/boost/config/stdlib/vacpp.hpp +++ /dev/null @@ -1,57 +0,0 @@ -// (C) Copyright John Maddock 2001 - 2002. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org for most recent version. - -#if __IBMCPP__ <= 501 -# define BOOST_NO_STD_ALLOCATOR -#endif - -#define BOOST_HAS_MACRO_USE_FACET -#define BOOST_NO_STD_MESSAGES - -// Apple doesn't seem to reliably defined a *unix* macro -#if !defined(CYGWIN) && ( defined(__unix__) \ - || defined(__unix) \ - || defined(unix) \ - || defined(__APPLE__) \ - || defined(__APPLE) \ - || defined(APPLE)) -# include -#endif - -// C++0x headers not yet implemented -// -# define BOOST_NO_CXX11_HDR_ARRAY -# define BOOST_NO_CXX11_HDR_CHRONO -# define BOOST_NO_CXX11_HDR_CODECVT -# define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE -# define BOOST_NO_CXX11_HDR_FORWARD_LIST -# define BOOST_NO_CXX11_HDR_FUTURE -# define BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# define BOOST_NO_CXX11_HDR_MUTEX -# define BOOST_NO_CXX11_HDR_RANDOM -# define BOOST_NO_CXX11_HDR_RATIO -# define BOOST_NO_CXX11_HDR_REGEX -# define BOOST_NO_CXX11_HDR_SYSTEM_ERROR -# define BOOST_NO_CXX11_HDR_THREAD -# define BOOST_NO_CXX11_HDR_TUPLE -# define BOOST_NO_CXX11_HDR_TYPE_TRAITS -# define BOOST_NO_CXX11_HDR_TYPEINDEX -# define BOOST_NO_CXX11_HDR_UNORDERED_MAP -# define BOOST_NO_CXX11_HDR_UNORDERED_SET -# define BOOST_NO_CXX11_NUMERIC_LIMITS -# define BOOST_NO_CXX11_ALLOCATOR -# define BOOST_NO_CXX11_ATOMIC_SMART_PTR -# define BOOST_NO_CXX11_SMART_PTR -# define BOOST_NO_CXX11_HDR_FUNCTIONAL -# define BOOST_NO_CXX11_HDR_ATOMIC -# define BOOST_NO_CXX11_STD_ALIGN -# define BOOST_NO_CXX11_ADDRESSOF - -#define BOOST_STDLIB "Visual Age default standard library" - - - diff --git a/libktorrent/miniboost/boost/config/suffix.hpp b/libktorrent/miniboost/boost/config/suffix.hpp deleted file mode 100644 index a3fda525..00000000 --- a/libktorrent/miniboost/boost/config/suffix.hpp +++ /dev/null @@ -1,971 +0,0 @@ -// Boost config.hpp configuration header file ------------------------------// -// boostinspect:ndprecated_macros -- tell the inspect tool to ignore this file - -// Copyright (c) 2001-2003 John Maddock -// Copyright (c) 2001 Darin Adler -// Copyright (c) 2001 Peter Dimov -// Copyright (c) 2002 Bill Kempf -// Copyright (c) 2002 Jens Maurer -// Copyright (c) 2002-2003 David Abrahams -// Copyright (c) 2003 Gennaro Prota -// Copyright (c) 2003 Eric Friedman -// Copyright (c) 2010 Eric Jourdanneau, Joel Falcou -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/ for most recent version. - -// Boost config.hpp policy and rationale documentation has been moved to -// http://www.boost.org/libs/config/ -// -// This file is intended to be stable, and relatively unchanging. -// It should contain boilerplate code only - no compiler specific -// code unless it is unavoidable - no changes unless unavoidable. - -#ifndef BOOST_CONFIG_SUFFIX_HPP -#define BOOST_CONFIG_SUFFIX_HPP - -#if defined(__GNUC__) && (__GNUC__ >= 4) -// -// Some GCC-4.x versions issue warnings even when __extension__ is used, -// so use this as a workaround: -// -#pragma GCC system_header -#endif - -// -// ensure that visibility macros are always defined, thus symplifying use -// -#ifndef BOOST_SYMBOL_EXPORT -# define BOOST_SYMBOL_EXPORT -#endif -#ifndef BOOST_SYMBOL_IMPORT -# define BOOST_SYMBOL_IMPORT -#endif -#ifndef BOOST_SYMBOL_VISIBLE -# define BOOST_SYMBOL_VISIBLE -#endif - -// -// look for long long by looking for the appropriate macros in . -// Note that we use limits.h rather than climits for maximal portability, -// remember that since these just declare a bunch of macros, there should be -// no namespace issues from this. -// -#if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG) \ - && !defined(BOOST_MSVC) && !defined(__BORLANDC__) -# include -# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX)) -# define BOOST_HAS_LONG_LONG -# else -# define BOOST_NO_LONG_LONG -# endif -#endif - -// GCC 3.x will clean up all of those nasty macro definitions that -// BOOST_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine -// it under GCC 3.x. -#if defined(__GNUC__) && (__GNUC__ >= 3) && defined(BOOST_NO_CTYPE_FUNCTIONS) -# undef BOOST_NO_CTYPE_FUNCTIONS -#endif - -// -// Assume any extensions are in namespace std:: unless stated otherwise: -// -# ifndef BOOST_STD_EXTENSION_NAMESPACE -# define BOOST_STD_EXTENSION_NAMESPACE std -# endif - -// -// If cv-qualified specializations are not allowed, then neither are cv-void ones: -// -# if defined(BOOST_NO_CV_SPECIALIZATIONS) \ - && !defined(BOOST_NO_CV_VOID_SPECIALIZATIONS) -# define BOOST_NO_CV_VOID_SPECIALIZATIONS -# endif - -// -// If there is no numeric_limits template, then it can't have any compile time -// constants either! -// -# if defined(BOOST_NO_LIMITS) \ - && !defined(BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS) -# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS -# endif - -// -// if there is no long long then there is no specialisation -// for numeric_limits either: -// -#if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_LONG_LONG_NUMERIC_LIMITS) -# define BOOST_NO_LONG_LONG_NUMERIC_LIMITS -#endif - -// -// if there is no __int64 then there is no specialisation -// for numeric_limits<__int64> either: -// -#if !defined(BOOST_HAS_MS_INT64) && !defined(BOOST_NO_MS_INT64_NUMERIC_LIMITS) -# define BOOST_NO_MS_INT64_NUMERIC_LIMITS -#endif - -// -// if member templates are supported then so is the -// VC6 subset of member templates: -// -# if !defined(BOOST_NO_MEMBER_TEMPLATES) \ - && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) -# define BOOST_MSVC6_MEMBER_TEMPLATES -# endif - -// -// Without partial specialization, can't test for partial specialisation bugs: -// -# if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ - && !defined(BOOST_BCB_PARTIAL_SPECIALIZATION_BUG) -# define BOOST_BCB_PARTIAL_SPECIALIZATION_BUG -# endif - -// -// Without partial specialization, we can't have array-type partial specialisations: -// -# if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ - && !defined(BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS) -# define BOOST_NO_ARRAY_TYPE_SPECIALIZATIONS -# endif - -// -// Without partial specialization, std::iterator_traits can't work: -// -# if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ - && !defined(BOOST_NO_STD_ITERATOR_TRAITS) -# define BOOST_NO_STD_ITERATOR_TRAITS -# endif - -// -// Without partial specialization, partial -// specialization with default args won't work either: -// -# if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) \ - && !defined(BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS) -# define BOOST_NO_PARTIAL_SPECIALIZATION_IMPLICIT_DEFAULT_ARGS -# endif - -// -// Without member template support, we can't have template constructors -// in the standard library either: -// -# if defined(BOOST_NO_MEMBER_TEMPLATES) \ - && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \ - && !defined(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS) -# define BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS -# endif - -// -// Without member template support, we can't have a conforming -// std::allocator template either: -// -# if defined(BOOST_NO_MEMBER_TEMPLATES) \ - && !defined(BOOST_MSVC6_MEMBER_TEMPLATES) \ - && !defined(BOOST_NO_STD_ALLOCATOR) -# define BOOST_NO_STD_ALLOCATOR -# endif - -// -// without ADL support then using declarations will break ADL as well: -// -#if defined(BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL) -# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL -#endif - -// -// Without typeid support we have no dynamic RTTI either: -// -#if defined(BOOST_NO_TYPEID) && !defined(BOOST_NO_RTTI) -# define BOOST_NO_RTTI -#endif - -// -// If we have a standard allocator, then we have a partial one as well: -// -#if !defined(BOOST_NO_STD_ALLOCATOR) -# define BOOST_HAS_PARTIAL_STD_ALLOCATOR -#endif - -// -// We can't have a working std::use_facet if there is no std::locale: -// -# if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_USE_FACET) -# define BOOST_NO_STD_USE_FACET -# endif - -// -// We can't have a std::messages facet if there is no std::locale: -// -# if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_MESSAGES) -# define BOOST_NO_STD_MESSAGES -# endif - -// -// We can't have a working std::wstreambuf if there is no std::locale: -// -# if defined(BOOST_NO_STD_LOCALE) && !defined(BOOST_NO_STD_WSTREAMBUF) -# define BOOST_NO_STD_WSTREAMBUF -# endif - -// -// We can't have a if there is no : -// -# if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_CWCTYPE) -# define BOOST_NO_CWCTYPE -# endif - -// -// We can't have a swprintf if there is no : -// -# if defined(BOOST_NO_CWCHAR) && !defined(BOOST_NO_SWPRINTF) -# define BOOST_NO_SWPRINTF -# endif - -// -// If Win32 support is turned off, then we must turn off -// threading support also, unless there is some other -// thread API enabled: -// -#if defined(BOOST_DISABLE_WIN32) && defined(_WIN32) \ - && !defined(BOOST_DISABLE_THREADS) && !defined(BOOST_HAS_PTHREADS) -# define BOOST_DISABLE_THREADS -#endif - -// -// Turn on threading support if the compiler thinks that it's in -// multithreaded mode. We put this here because there are only a -// limited number of macros that identify this (if there's any missing -// from here then add to the appropriate compiler section): -// -#if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \ - || defined(_PTHREADS) || defined(__APPLE__) || defined(__DragonFly__)) \ - && !defined(BOOST_HAS_THREADS) -# define BOOST_HAS_THREADS -#endif - -// -// Turn threading support off if BOOST_DISABLE_THREADS is defined: -// -#if defined(BOOST_DISABLE_THREADS) && defined(BOOST_HAS_THREADS) -# undef BOOST_HAS_THREADS -#endif - -// -// Turn threading support off if we don't recognise the threading API: -// -#if defined(BOOST_HAS_THREADS) && !defined(BOOST_HAS_PTHREADS)\ - && !defined(BOOST_HAS_WINTHREADS) && !defined(BOOST_HAS_BETHREADS)\ - && !defined(BOOST_HAS_MPTASKS) -# undef BOOST_HAS_THREADS -#endif - -// -// Turn threading detail macros off if we don't (want to) use threading -// -#ifndef BOOST_HAS_THREADS -# undef BOOST_HAS_PTHREADS -# undef BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE -# undef BOOST_HAS_PTHREAD_YIELD -# undef BOOST_HAS_PTHREAD_DELAY_NP -# undef BOOST_HAS_WINTHREADS -# undef BOOST_HAS_BETHREADS -# undef BOOST_HAS_MPTASKS -#endif - -// -// If the compiler claims to be C99 conformant, then it had better -// have a : -// -# if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901) -# define BOOST_HAS_STDINT_H -# ifndef BOOST_HAS_LOG1P -# define BOOST_HAS_LOG1P -# endif -# ifndef BOOST_HAS_EXPM1 -# define BOOST_HAS_EXPM1 -# endif -# endif - -// -// Define BOOST_NO_SLIST and BOOST_NO_HASH if required. -// Note that this is for backwards compatibility only. -// -# if !defined(BOOST_HAS_SLIST) && !defined(BOOST_NO_SLIST) -# define BOOST_NO_SLIST -# endif - -# if !defined(BOOST_HAS_HASH) && !defined(BOOST_NO_HASH) -# define BOOST_NO_HASH -# endif - -// -// Set BOOST_SLIST_HEADER if not set already: -// -#if defined(BOOST_HAS_SLIST) && !defined(BOOST_SLIST_HEADER) -# define BOOST_SLIST_HEADER -#endif - -// -// Set BOOST_HASH_SET_HEADER if not set already: -// -#if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_SET_HEADER) -# define BOOST_HASH_SET_HEADER -#endif - -// -// Set BOOST_HASH_MAP_HEADER if not set already: -// -#if defined(BOOST_HAS_HASH) && !defined(BOOST_HASH_MAP_HEADER) -# define BOOST_HASH_MAP_HEADER -#endif - -// BOOST_HAS_ABI_HEADERS -// This macro gets set if we have headers that fix the ABI, -// and prevent ODR violations when linking to external libraries: -#if defined(BOOST_ABI_PREFIX) && defined(BOOST_ABI_SUFFIX) && !defined(BOOST_HAS_ABI_HEADERS) -# define BOOST_HAS_ABI_HEADERS -#endif - -#if defined(BOOST_HAS_ABI_HEADERS) && defined(BOOST_DISABLE_ABI_HEADERS) -# undef BOOST_HAS_ABI_HEADERS -#endif - -// BOOST_NO_STDC_NAMESPACE workaround --------------------------------------// -// Because std::size_t usage is so common, even in boost headers which do not -// otherwise use the C library, the workaround is included here so -// that ugly workaround code need not appear in many other boost headers. -// NOTE WELL: This is a workaround for non-conforming compilers; -// must still be #included in the usual places so that inclusion -// works as expected with standard conforming compilers. The resulting -// double inclusion of is harmless. - -# if defined(BOOST_NO_STDC_NAMESPACE) && defined(__cplusplus) -# include - namespace std { using ::ptrdiff_t; using ::size_t; } -# endif - -// Workaround for the unfortunate min/max macros defined by some platform headers - -#define BOOST_PREVENT_MACRO_SUBSTITUTION - -#ifndef BOOST_USING_STD_MIN -# define BOOST_USING_STD_MIN() using std::min -#endif - -#ifndef BOOST_USING_STD_MAX -# define BOOST_USING_STD_MAX() using std::max -#endif - -// BOOST_NO_STD_MIN_MAX workaround -----------------------------------------// - -# if defined(BOOST_NO_STD_MIN_MAX) && defined(__cplusplus) - -namespace std { - template - inline const _Tp& min BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) { - return __b < __a ? __b : __a; - } - template - inline const _Tp& max BOOST_PREVENT_MACRO_SUBSTITUTION (const _Tp& __a, const _Tp& __b) { - return __a < __b ? __b : __a; - } -} - -# endif - -// BOOST_STATIC_CONSTANT workaround --------------------------------------- // -// On compilers which don't allow in-class initialization of static integral -// constant members, we must use enums as a workaround if we want the constants -// to be available at compile-time. This macro gives us a convenient way to -// declare such constants. - -# ifdef BOOST_NO_INCLASS_MEMBER_INITIALIZATION -# define BOOST_STATIC_CONSTANT(type, assignment) enum { assignment } -# else -# define BOOST_STATIC_CONSTANT(type, assignment) static const type assignment -# endif - -// BOOST_USE_FACET / HAS_FACET workaround ----------------------------------// -// When the standard library does not have a conforming std::use_facet there -// are various workarounds available, but they differ from library to library. -// The same problem occurs with has_facet. -// These macros provide a consistent way to access a locale's facets. -// Usage: -// replace -// std::use_facet(loc); -// with -// BOOST_USE_FACET(Type, loc); -// Note do not add a std:: prefix to the front of BOOST_USE_FACET! -// Use for BOOST_HAS_FACET is analogous. - -#if defined(BOOST_NO_STD_USE_FACET) -# ifdef BOOST_HAS_TWO_ARG_USE_FACET -# define BOOST_USE_FACET(Type, loc) std::use_facet(loc, static_cast(0)) -# define BOOST_HAS_FACET(Type, loc) std::has_facet(loc, static_cast(0)) -# elif defined(BOOST_HAS_MACRO_USE_FACET) -# define BOOST_USE_FACET(Type, loc) std::_USE(loc, Type) -# define BOOST_HAS_FACET(Type, loc) std::_HAS(loc, Type) -# elif defined(BOOST_HAS_STLP_USE_FACET) -# define BOOST_USE_FACET(Type, loc) (*std::_Use_facet(loc)) -# define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc) -# endif -#else -# define BOOST_USE_FACET(Type, loc) std::use_facet< Type >(loc) -# define BOOST_HAS_FACET(Type, loc) std::has_facet< Type >(loc) -#endif - -// BOOST_NESTED_TEMPLATE workaround ------------------------------------------// -// Member templates are supported by some compilers even though they can't use -// the A::template member syntax, as a workaround replace: -// -// typedef typename A::template rebind binder; -// -// with: -// -// typedef typename A::BOOST_NESTED_TEMPLATE rebind binder; - -#ifndef BOOST_NO_MEMBER_TEMPLATE_KEYWORD -# define BOOST_NESTED_TEMPLATE template -#else -# define BOOST_NESTED_TEMPLATE -#endif - -// BOOST_UNREACHABLE_RETURN(x) workaround -------------------------------------// -// Normally evaluates to nothing, unless BOOST_NO_UNREACHABLE_RETURN_DETECTION -// is defined, in which case it evaluates to return x; Use when you have a return -// statement that can never be reached. - -#ifdef BOOST_NO_UNREACHABLE_RETURN_DETECTION -# define BOOST_UNREACHABLE_RETURN(x) return x; -#else -# define BOOST_UNREACHABLE_RETURN(x) -#endif - -// BOOST_DEDUCED_TYPENAME workaround ------------------------------------------// -// -// Some compilers don't support the use of `typename' for dependent -// types in deduced contexts, e.g. -// -// template void f(T, typename T::type); -// ^^^^^^^^ -// Replace these declarations with: -// -// template void f(T, BOOST_DEDUCED_TYPENAME T::type); - -#ifndef BOOST_NO_DEDUCED_TYPENAME -# define BOOST_DEDUCED_TYPENAME typename -#else -# define BOOST_DEDUCED_TYPENAME -#endif - -#ifndef BOOST_NO_TYPENAME_WITH_CTOR -# define BOOST_CTOR_TYPENAME typename -#else -# define BOOST_CTOR_TYPENAME -#endif - -// long long workaround ------------------------------------------// -// On gcc (and maybe other compilers?) long long is alway supported -// but it's use may generate either warnings (with -ansi), or errors -// (with -pedantic -ansi) unless it's use is prefixed by __extension__ -// -#if defined(BOOST_HAS_LONG_LONG) && defined(__cplusplus) -namespace boost{ -# ifdef __GNUC__ - __extension__ typedef long long long_long_type; - __extension__ typedef unsigned long long ulong_long_type; -# else - typedef long long long_long_type; - typedef unsigned long long ulong_long_type; -# endif -} -#endif -// same again for __int128: -#if defined(BOOST_HAS_INT128) && defined(__cplusplus) -namespace boost{ -# ifdef __GNUC__ - __extension__ typedef __int128 int128_type; - __extension__ typedef unsigned __int128 uint128_type; -# else - typedef __int128 int128_type; - typedef unsigned __int128 uint128_type; -# endif -} -#endif - -// BOOST_[APPEND_]EXPLICIT_TEMPLATE_[NON_]TYPE macros --------------------------// - -// These macros are obsolete. Port away and remove. - -# define BOOST_EXPLICIT_TEMPLATE_TYPE(t) -# define BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(t) -# define BOOST_EXPLICIT_TEMPLATE_NON_TYPE(t, v) -# define BOOST_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) - -# define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(t) -# define BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(t) -# define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE(t, v) -# define BOOST_APPEND_EXPLICIT_TEMPLATE_NON_TYPE_SPEC(t, v) - -// When BOOST_NO_STD_TYPEINFO is defined, we can just import -// the global definition into std namespace: -#if defined(BOOST_NO_STD_TYPEINFO) && defined(__cplusplus) -#include -namespace std{ using ::type_info; } -#endif - -// ---------------------------------------------------------------------------// - -// -// Helper macro BOOST_STRINGIZE: -// Converts the parameter X to a string after macro replacement -// on X has been performed. -// -#define BOOST_STRINGIZE(X) BOOST_DO_STRINGIZE(X) -#define BOOST_DO_STRINGIZE(X) #X - -// -// Helper macro BOOST_JOIN: -// The following piece of macro magic joins the two -// arguments together, even when one of the arguments is -// itself a macro (see 16.3.1 in C++ standard). The key -// is that macro expansion of macro arguments does not -// occur in BOOST_DO_JOIN2 but does in BOOST_DO_JOIN. -// -#define BOOST_JOIN( X, Y ) BOOST_DO_JOIN( X, Y ) -#define BOOST_DO_JOIN( X, Y ) BOOST_DO_JOIN2(X,Y) -#define BOOST_DO_JOIN2( X, Y ) X##Y - -// -// Set some default values for compiler/library/platform names. -// These are for debugging config setup only: -// -# ifndef BOOST_COMPILER -# define BOOST_COMPILER "Unknown ISO C++ Compiler" -# endif -# ifndef BOOST_STDLIB -# define BOOST_STDLIB "Unknown ISO standard library" -# endif -# ifndef BOOST_PLATFORM -# if defined(unix) || defined(__unix) || defined(_XOPEN_SOURCE) \ - || defined(_POSIX_SOURCE) -# define BOOST_PLATFORM "Generic Unix" -# else -# define BOOST_PLATFORM "Unknown" -# endif -# endif - -// -// Set some default values GPU support -// -# ifndef BOOST_GPU_ENABLED -# define BOOST_GPU_ENABLED -# endif - -// BOOST_FORCEINLINE ---------------------------------------------// -// Macro to use in place of 'inline' to force a function to be inline -#if !defined(BOOST_FORCEINLINE) -# if defined(_MSC_VER) -# define BOOST_FORCEINLINE __forceinline -# elif defined(__GNUC__) && __GNUC__ > 3 - // Clang also defines __GNUC__ (as 4) -# define BOOST_FORCEINLINE inline __attribute__ ((__always_inline__)) -# else -# define BOOST_FORCEINLINE inline -# endif -#endif - -// BOOST_NOINLINE ---------------------------------------------// -// Macro to use in place of 'inline' to prevent a function to be inlined -#if !defined(BOOST_NOINLINE) -# if defined(_MSC_VER) -# define BOOST_NOINLINE __declspec(noinline) -# elif defined(__GNUC__) && __GNUC__ > 3 - // Clang also defines __GNUC__ (as 4) -# if defined(__CUDACC__) - // nvcc doesn't always parse __noinline__, - // see: https://svn.boost.org/trac/boost/ticket/9392 -# define BOOST_NOINLINE __attribute__ ((noinline)) -# else -# define BOOST_NOINLINE __attribute__ ((__noinline__)) -# endif -# else -# define BOOST_NOINLINE -# endif -#endif - -// BOOST_NORETURN ---------------------------------------------// -// Macro to use before a function declaration/definition to designate -// the function as not returning normally (i.e. with a return statement -// or by leaving the function scope, if the function return type is void). -#if !defined(BOOST_NORETURN) -# if defined(_MSC_VER) -# define BOOST_NORETURN __declspec(noreturn) -# elif defined(__GNUC__) -# define BOOST_NORETURN __attribute__ ((__noreturn__)) -# else -# define BOOST_NO_NORETURN -# define BOOST_NORETURN -# endif -#endif - -// Branch prediction hints -// These macros are intended to wrap conditional expressions that yield true or false -// -// if (BOOST_LIKELY(var == 10)) -// { -// // the most probable code here -// } -// -#if !defined(BOOST_LIKELY) -# define BOOST_LIKELY(x) x -#endif -#if !defined(BOOST_UNLIKELY) -# define BOOST_UNLIKELY(x) x -#endif - -// Type and data alignment specification -// -#if !defined(BOOST_NO_CXX11_ALIGNAS) -# define BOOST_ALIGNMENT(x) alignas(x) -#elif defined(_MSC_VER) -# define BOOST_ALIGNMENT(x) __declspec(align(x)) -#elif defined(__GNUC__) -# define BOOST_ALIGNMENT(x) __attribute__ ((__aligned__(x))) -#else -# define BOOST_NO_ALIGNMENT -# define BOOST_ALIGNMENT(x) -#endif - -// Defaulted and deleted function declaration helpers -// These macros are intended to be inside a class definition. -// BOOST_DEFAULTED_FUNCTION accepts the function declaration and its -// body, which will be used if the compiler doesn't support defaulted functions. -// BOOST_DELETED_FUNCTION only accepts the function declaration. It -// will expand to a private function declaration, if the compiler doesn't support -// deleted functions. Because of this it is recommended to use BOOST_DELETED_FUNCTION -// in the end of the class definition. -// -// class my_class -// { -// public: -// // Default-constructible -// BOOST_DEFAULTED_FUNCTION(my_class(), {}) -// // Copying prohibited -// BOOST_DELETED_FUNCTION(my_class(my_class const&)) -// BOOST_DELETED_FUNCTION(my_class& operator= (my_class const&)) -// }; -// -#if !(defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) || defined(BOOST_NO_CXX11_NON_PUBLIC_DEFAULTED_FUNCTIONS)) -# define BOOST_DEFAULTED_FUNCTION(fun, body) fun = default; -#else -# define BOOST_DEFAULTED_FUNCTION(fun, body) fun body -#endif - -#if !defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) -# define BOOST_DELETED_FUNCTION(fun) fun = delete; -#else -# define BOOST_DELETED_FUNCTION(fun) private: fun; -#endif - -// -// Set BOOST_NO_DECLTYPE_N3276 when BOOST_NO_DECLTYPE is defined -// -#if defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_CXX11_DECLTYPE_N3276) -#define BOOST_NO_CXX11_DECLTYPE_N3276 BOOST_NO_CXX11_DECLTYPE -#endif - -// -------------------- Deprecated macros for 1.50 --------------------------- -// These will go away in a future release - -// Use BOOST_NO_CXX11_HDR_UNORDERED_SET or BOOST_NO_CXX11_HDR_UNORDERED_MAP -// instead of BOOST_NO_STD_UNORDERED -#if defined(BOOST_NO_CXX11_HDR_UNORDERED_MAP) || defined (BOOST_NO_CXX11_HDR_UNORDERED_SET) -# ifndef BOOST_NO_CXX11_STD_UNORDERED -# define BOOST_NO_CXX11_STD_UNORDERED -# endif -#endif - -// Use BOOST_NO_CXX11_HDR_INITIALIZER_LIST instead of BOOST_NO_INITIALIZER_LISTS -#if defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST) && !defined(BOOST_NO_INITIALIZER_LISTS) -# define BOOST_NO_INITIALIZER_LISTS -#endif - -// Use BOOST_NO_CXX11_HDR_ARRAY instead of BOOST_NO_0X_HDR_ARRAY -#if defined(BOOST_NO_CXX11_HDR_ARRAY) && !defined(BOOST_NO_0X_HDR_ARRAY) -# define BOOST_NO_0X_HDR_ARRAY -#endif -// Use BOOST_NO_CXX11_HDR_CHRONO instead of BOOST_NO_0X_HDR_CHRONO -#if defined(BOOST_NO_CXX11_HDR_CHRONO) && !defined(BOOST_NO_0X_HDR_CHRONO) -# define BOOST_NO_0X_HDR_CHRONO -#endif -// Use BOOST_NO_CXX11_HDR_CODECVT instead of BOOST_NO_0X_HDR_CODECVT -#if defined(BOOST_NO_CXX11_HDR_CODECVT) && !defined(BOOST_NO_0X_HDR_CODECVT) -# define BOOST_NO_0X_HDR_CODECVT -#endif -// Use BOOST_NO_CXX11_HDR_CONDITION_VARIABLE instead of BOOST_NO_0X_HDR_CONDITION_VARIABLE -#if defined(BOOST_NO_CXX11_HDR_CONDITION_VARIABLE) && !defined(BOOST_NO_0X_HDR_CONDITION_VARIABLE) -# define BOOST_NO_0X_HDR_CONDITION_VARIABLE -#endif -// Use BOOST_NO_CXX11_HDR_FORWARD_LIST instead of BOOST_NO_0X_HDR_FORWARD_LIST -#if defined(BOOST_NO_CXX11_HDR_FORWARD_LIST) && !defined(BOOST_NO_0X_HDR_FORWARD_LIST) -# define BOOST_NO_0X_HDR_FORWARD_LIST -#endif -// Use BOOST_NO_CXX11_HDR_FUTURE instead of BOOST_NO_0X_HDR_FUTURE -#if defined(BOOST_NO_CXX11_HDR_FUTURE) && !defined(BOOST_NO_0X_HDR_FUTURE) -# define BOOST_NO_0X_HDR_FUTURE -#endif - -// Use BOOST_NO_CXX11_HDR_INITIALIZER_LIST -// instead of BOOST_NO_0X_HDR_INITIALIZER_LIST or BOOST_NO_INITIALIZER_LISTS -#ifdef BOOST_NO_CXX11_HDR_INITIALIZER_LIST -# ifndef BOOST_NO_0X_HDR_INITIALIZER_LIST -# define BOOST_NO_0X_HDR_INITIALIZER_LIST -# endif -# ifndef BOOST_NO_INITIALIZER_LISTS -# define BOOST_NO_INITIALIZER_LISTS -# endif -#endif - -// Use BOOST_NO_CXX11_HDR_MUTEX instead of BOOST_NO_0X_HDR_MUTEX -#if defined(BOOST_NO_CXX11_HDR_MUTEX) && !defined(BOOST_NO_0X_HDR_MUTEX) -# define BOOST_NO_0X_HDR_MUTEX -#endif -// Use BOOST_NO_CXX11_HDR_RANDOM instead of BOOST_NO_0X_HDR_RANDOM -#if defined(BOOST_NO_CXX11_HDR_RANDOM) && !defined(BOOST_NO_0X_HDR_RANDOM) -# define BOOST_NO_0X_HDR_RANDOM -#endif -// Use BOOST_NO_CXX11_HDR_RATIO instead of BOOST_NO_0X_HDR_RATIO -#if defined(BOOST_NO_CXX11_HDR_RATIO) && !defined(BOOST_NO_0X_HDR_RATIO) -# define BOOST_NO_0X_HDR_RATIO -#endif -// Use BOOST_NO_CXX11_HDR_REGEX instead of BOOST_NO_0X_HDR_REGEX -#if defined(BOOST_NO_CXX11_HDR_REGEX) && !defined(BOOST_NO_0X_HDR_REGEX) -# define BOOST_NO_0X_HDR_REGEX -#endif -// Use BOOST_NO_CXX11_HDR_SYSTEM_ERROR instead of BOOST_NO_0X_HDR_SYSTEM_ERROR -#if defined(BOOST_NO_CXX11_HDR_SYSTEM_ERROR) && !defined(BOOST_NO_0X_HDR_SYSTEM_ERROR) -# define BOOST_NO_0X_HDR_SYSTEM_ERROR -#endif -// Use BOOST_NO_CXX11_HDR_THREAD instead of BOOST_NO_0X_HDR_THREAD -#if defined(BOOST_NO_CXX11_HDR_THREAD) && !defined(BOOST_NO_0X_HDR_THREAD) -# define BOOST_NO_0X_HDR_THREAD -#endif -// Use BOOST_NO_CXX11_HDR_TUPLE instead of BOOST_NO_0X_HDR_TUPLE -#if defined(BOOST_NO_CXX11_HDR_TUPLE) && !defined(BOOST_NO_0X_HDR_TUPLE) -# define BOOST_NO_0X_HDR_TUPLE -#endif -// Use BOOST_NO_CXX11_HDR_TYPE_TRAITS instead of BOOST_NO_0X_HDR_TYPE_TRAITS -#if defined(BOOST_NO_CXX11_HDR_TYPE_TRAITS) && !defined(BOOST_NO_0X_HDR_TYPE_TRAITS) -# define BOOST_NO_0X_HDR_TYPE_TRAITS -#endif -// Use BOOST_NO_CXX11_HDR_TYPEINDEX instead of BOOST_NO_0X_HDR_TYPEINDEX -#if defined(BOOST_NO_CXX11_HDR_TYPEINDEX) && !defined(BOOST_NO_0X_HDR_TYPEINDEX) -# define BOOST_NO_0X_HDR_TYPEINDEX -#endif -// Use BOOST_NO_CXX11_HDR_UNORDERED_MAP instead of BOOST_NO_0X_HDR_UNORDERED_MAP -#if defined(BOOST_NO_CXX11_HDR_UNORDERED_MAP) && !defined(BOOST_NO_0X_HDR_UNORDERED_MAP) -# define BOOST_NO_0X_HDR_UNORDERED_MAP -#endif -// Use BOOST_NO_CXX11_HDR_UNORDERED_SET instead of BOOST_NO_0X_HDR_UNORDERED_SET -#if defined(BOOST_NO_CXX11_HDR_UNORDERED_SET) && !defined(BOOST_NO_0X_HDR_UNORDERED_SET) -# define BOOST_NO_0X_HDR_UNORDERED_SET -#endif - -// ------------------ End of deprecated macros for 1.50 --------------------------- - -// -------------------- Deprecated macros for 1.51 --------------------------- -// These will go away in a future release - -// Use BOOST_NO_CXX11_AUTO_DECLARATIONS instead of BOOST_NO_AUTO_DECLARATIONS -#if defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) && !defined(BOOST_NO_AUTO_DECLARATIONS) -# define BOOST_NO_AUTO_DECLARATIONS -#endif -// Use BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS instead of BOOST_NO_AUTO_MULTIDECLARATIONS -#if defined(BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS) && !defined(BOOST_NO_AUTO_MULTIDECLARATIONS) -# define BOOST_NO_AUTO_MULTIDECLARATIONS -#endif -// Use BOOST_NO_CXX11_CHAR16_T instead of BOOST_NO_CHAR16_T -#if defined(BOOST_NO_CXX11_CHAR16_T) && !defined(BOOST_NO_CHAR16_T) -# define BOOST_NO_CHAR16_T -#endif -// Use BOOST_NO_CXX11_CHAR32_T instead of BOOST_NO_CHAR32_T -#if defined(BOOST_NO_CXX11_CHAR32_T) && !defined(BOOST_NO_CHAR32_T) -# define BOOST_NO_CHAR32_T -#endif -// Use BOOST_NO_CXX11_TEMPLATE_ALIASES instead of BOOST_NO_TEMPLATE_ALIASES -#if defined(BOOST_NO_CXX11_TEMPLATE_ALIASES) && !defined(BOOST_NO_TEMPLATE_ALIASES) -# define BOOST_NO_TEMPLATE_ALIASES -#endif -// Use BOOST_NO_CXX11_CONSTEXPR instead of BOOST_NO_CONSTEXPR -#if defined(BOOST_NO_CXX11_CONSTEXPR) && !defined(BOOST_NO_CONSTEXPR) -# define BOOST_NO_CONSTEXPR -#endif -// Use BOOST_NO_CXX11_DECLTYPE_N3276 instead of BOOST_NO_DECLTYPE_N3276 -#if defined(BOOST_NO_CXX11_DECLTYPE_N3276) && !defined(BOOST_NO_DECLTYPE_N3276) -# define BOOST_NO_DECLTYPE_N3276 -#endif -// Use BOOST_NO_CXX11_DECLTYPE instead of BOOST_NO_DECLTYPE -#if defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_NO_DECLTYPE) -# define BOOST_NO_DECLTYPE -#endif -// Use BOOST_NO_CXX11_DEFAULTED_FUNCTIONS instead of BOOST_NO_DEFAULTED_FUNCTIONS -#if defined(BOOST_NO_CXX11_DEFAULTED_FUNCTIONS) && !defined(BOOST_NO_DEFAULTED_FUNCTIONS) -# define BOOST_NO_DEFAULTED_FUNCTIONS -#endif -// Use BOOST_NO_CXX11_DELETED_FUNCTIONS instead of BOOST_NO_DELETED_FUNCTIONS -#if defined(BOOST_NO_CXX11_DELETED_FUNCTIONS) && !defined(BOOST_NO_DELETED_FUNCTIONS) -# define BOOST_NO_DELETED_FUNCTIONS -#endif -// Use BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS instead of BOOST_NO_EXPLICIT_CONVERSION_OPERATORS -#if defined(BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS) && !defined(BOOST_NO_EXPLICIT_CONVERSION_OPERATORS) -# define BOOST_NO_EXPLICIT_CONVERSION_OPERATORS -#endif -// Use BOOST_NO_CXX11_EXTERN_TEMPLATE instead of BOOST_NO_EXTERN_TEMPLATE -#if defined(BOOST_NO_CXX11_EXTERN_TEMPLATE) && !defined(BOOST_NO_EXTERN_TEMPLATE) -# define BOOST_NO_EXTERN_TEMPLATE -#endif -// Use BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS instead of BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS -#if defined(BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS) && !defined(BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS) -# define BOOST_NO_FUNCTION_TEMPLATE_DEFAULT_ARGS -#endif -// Use BOOST_NO_CXX11_LAMBDAS instead of BOOST_NO_LAMBDAS -#if defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_LAMBDAS) -# define BOOST_NO_LAMBDAS -#endif -// Use BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS instead of BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS -#if defined(BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS) && !defined(BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS) -# define BOOST_NO_LOCAL_CLASS_TEMPLATE_PARAMETERS -#endif -// Use BOOST_NO_CXX11_NOEXCEPT instead of BOOST_NO_NOEXCEPT -#if defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_NOEXCEPT) -# define BOOST_NO_NOEXCEPT -#endif -// Use BOOST_NO_CXX11_NULLPTR instead of BOOST_NO_NULLPTR -#if defined(BOOST_NO_CXX11_NULLPTR) && !defined(BOOST_NO_NULLPTR) -# define BOOST_NO_NULLPTR -#endif -// Use BOOST_NO_CXX11_RAW_LITERALS instead of BOOST_NO_RAW_LITERALS -#if defined(BOOST_NO_CXX11_RAW_LITERALS) && !defined(BOOST_NO_RAW_LITERALS) -# define BOOST_NO_RAW_LITERALS -#endif -// Use BOOST_NO_CXX11_RVALUE_REFERENCES instead of BOOST_NO_RVALUE_REFERENCES -#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_RVALUE_REFERENCES) -# define BOOST_NO_RVALUE_REFERENCES -#endif -// Use BOOST_NO_CXX11_SCOPED_ENUMS instead of BOOST_NO_SCOPED_ENUMS -#if defined(BOOST_NO_CXX11_SCOPED_ENUMS) && !defined(BOOST_NO_SCOPED_ENUMS) -# define BOOST_NO_SCOPED_ENUMS -#endif -// Use BOOST_NO_CXX11_STATIC_ASSERT instead of BOOST_NO_STATIC_ASSERT -#if defined(BOOST_NO_CXX11_STATIC_ASSERT) && !defined(BOOST_NO_STATIC_ASSERT) -# define BOOST_NO_STATIC_ASSERT -#endif -// Use BOOST_NO_CXX11_STD_UNORDERED instead of BOOST_NO_STD_UNORDERED -#if defined(BOOST_NO_CXX11_STD_UNORDERED) && !defined(BOOST_NO_STD_UNORDERED) -# define BOOST_NO_STD_UNORDERED -#endif -// Use BOOST_NO_CXX11_UNICODE_LITERALS instead of BOOST_NO_UNICODE_LITERALS -#if defined(BOOST_NO_CXX11_UNICODE_LITERALS) && !defined(BOOST_NO_UNICODE_LITERALS) -# define BOOST_NO_UNICODE_LITERALS -#endif -// Use BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX instead of BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX -#if defined(BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX) && !defined(BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX) -# define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX -#endif -// Use BOOST_NO_CXX11_VARIADIC_TEMPLATES instead of BOOST_NO_VARIADIC_TEMPLATES -#if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_VARIADIC_TEMPLATES) -# define BOOST_NO_VARIADIC_TEMPLATES -#endif -// Use BOOST_NO_CXX11_VARIADIC_MACROS instead of BOOST_NO_VARIADIC_MACROS -#if defined(BOOST_NO_CXX11_VARIADIC_MACROS) && !defined(BOOST_NO_VARIADIC_MACROS) -# define BOOST_NO_VARIADIC_MACROS -#endif -// Use BOOST_NO_CXX11_NUMERIC_LIMITS instead of BOOST_NO_NUMERIC_LIMITS_LOWEST -#if defined(BOOST_NO_CXX11_NUMERIC_LIMITS) && !defined(BOOST_NO_NUMERIC_LIMITS_LOWEST) -# define BOOST_NO_NUMERIC_LIMITS_LOWEST -#endif -// ------------------ End of deprecated macros for 1.51 --------------------------- - - - -// -// Helper macros BOOST_NOEXCEPT, BOOST_NOEXCEPT_IF, BOOST_NOEXCEPT_EXPR -// These aid the transition to C++11 while still supporting C++03 compilers -// -#ifdef BOOST_NO_CXX11_NOEXCEPT -# define BOOST_NOEXCEPT -# define BOOST_NOEXCEPT_OR_NOTHROW throw() -# define BOOST_NOEXCEPT_IF(Predicate) -# define BOOST_NOEXCEPT_EXPR(Expression) false -#else -# define BOOST_NOEXCEPT noexcept -# define BOOST_NOEXCEPT_OR_NOTHROW noexcept -# define BOOST_NOEXCEPT_IF(Predicate) noexcept((Predicate)) -# define BOOST_NOEXCEPT_EXPR(Expression) noexcept((Expression)) -#endif -// -// Helper macro BOOST_FALLTHROUGH -// Fallback definition of BOOST_FALLTHROUGH macro used to mark intended -// fall-through between case labels in a switch statement. We use a definition -// that requires a semicolon after it to avoid at least one type of misuse even -// on unsupported compilers. -// -#ifndef BOOST_FALLTHROUGH -# define BOOST_FALLTHROUGH ((void)0) -#endif - -// -// constexpr workarounds -// -#if defined(BOOST_NO_CXX11_CONSTEXPR) -#define BOOST_CONSTEXPR -#define BOOST_CONSTEXPR_OR_CONST const -#else -#define BOOST_CONSTEXPR constexpr -#define BOOST_CONSTEXPR_OR_CONST constexpr -#endif - -#define BOOST_STATIC_CONSTEXPR static BOOST_CONSTEXPR_OR_CONST - -// -// Set BOOST_HAS_STATIC_ASSERT when BOOST_NO_CXX11_STATIC_ASSERT is not defined -// -#if !defined(BOOST_NO_CXX11_STATIC_ASSERT) && !defined(BOOST_HAS_STATIC_ASSERT) -# define BOOST_HAS_STATIC_ASSERT -#endif - -// -// Set BOOST_HAS_RVALUE_REFS when BOOST_NO_CXX11_RVALUE_REFERENCES is not defined -// -#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_HAS_RVALUE_REFS) -#define BOOST_HAS_RVALUE_REFS -#endif - -// -// Set BOOST_HAS_VARIADIC_TMPL when BOOST_NO_CXX11_VARIADIC_TEMPLATES is not defined -// -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_HAS_VARIADIC_TMPL) -#define BOOST_HAS_VARIADIC_TMPL -#endif - -// -// Finish off with checks for macros that are depricated / no longer supported, -// if any of these are set then it's very likely that much of Boost will no -// longer work. So stop with a #error for now, but give the user a chance -// to continue at their own risk if they really want to: -// -#if defined(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(BOOST_CONFIG_ALLOW_DEPRECATED) -# error "You are using a compiler which lacks features which are now a minimum requirement in order to use Boost, define BOOST_CONFIG_ALLOW_DEPRECATED if you want to continue at your own risk!!!" -#endif - -#endif diff --git a/libktorrent/miniboost/boost/config/user.hpp b/libktorrent/miniboost/boost/config/user.hpp deleted file mode 100644 index d226a2d1..00000000 --- a/libktorrent/miniboost/boost/config/user.hpp +++ /dev/null @@ -1,123 +0,0 @@ -// boost/config/user.hpp ---------------------------------------------------// - -// (C) Copyright John Maddock 2001. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// Do not check in modified versions of this file, -// This file may be customized by the end user, but not by boost. - -// -// Use this file to define a site and compiler specific -// configuration policy: -// - -// define this to locate a compiler config file: -// #define BOOST_COMPILER_CONFIG - -// define this to locate a stdlib config file: -// #define BOOST_STDLIB_CONFIG - -// define this to locate a platform config file: -// #define BOOST_PLATFORM_CONFIG - -// define this to disable compiler config, -// use if your compiler config has nothing to set: -// #define BOOST_NO_COMPILER_CONFIG - -// define this to disable stdlib config, -// use if your stdlib config has nothing to set: -// #define BOOST_NO_STDLIB_CONFIG - -// define this to disable platform config, -// use if your platform config has nothing to set: -// #define BOOST_NO_PLATFORM_CONFIG - -// define this to disable all config options, -// excluding the user config. Use if your -// setup is fully ISO compliant, and has no -// useful extensions, or for autoconf generated -// setups: -// #define BOOST_NO_CONFIG - -// define this to make the config "optimistic" -// about unknown compiler versions. Normally -// unknown compiler versions are assumed to have -// all the defects of the last known version, however -// setting this flag, causes the config to assume -// that unknown compiler versions are fully conformant -// with the standard: -// #define BOOST_STRICT_CONFIG - -// define this to cause the config to halt compilation -// with an #error if it encounters anything unknown -- -// either an unknown compiler version or an unknown -// compiler/platform/library: -// #define BOOST_ASSERT_CONFIG - - -// define if you want to disable threading support, even -// when available: -// #define BOOST_DISABLE_THREADS - -// define when you want to disable Win32 specific features -// even when available: -// #define BOOST_DISABLE_WIN32 - -// BOOST_DISABLE_ABI_HEADERS: Stops boost headers from including any -// prefix/suffix headers that normally control things like struct -// packing and alignment. -// #define BOOST_DISABLE_ABI_HEADERS - -// BOOST_ABI_PREFIX: A prefix header to include in place of whatever -// boost.config would normally select, any replacement should set up -// struct packing and alignment options as required. -// #define BOOST_ABI_PREFIX my-header-name - -// BOOST_ABI_SUFFIX: A suffix header to include in place of whatever -// boost.config would normally select, any replacement should undo -// the effects of the prefix header. -// #define BOOST_ABI_SUFFIX my-header-name - -// BOOST_ALL_DYN_LINK: Forces all libraries that have separate source, -// to be linked as dll's rather than static libraries on Microsoft Windows -// (this macro is used to turn on __declspec(dllimport) modifiers, so that -// the compiler knows which symbols to look for in a dll rather than in a -// static library). Note that there may be some libraries that can only -// be linked in one way (statically or dynamically), in these cases this -// macro has no effect. -// #define BOOST_ALL_DYN_LINK - -// BOOST_WHATEVER_DYN_LINK: Forces library "whatever" to be linked as a dll -// rather than a static library on Microsoft Windows: replace the WHATEVER -// part of the macro name with the name of the library that you want to -// dynamically link to, for example use BOOST_DATE_TIME_DYN_LINK or -// BOOST_REGEX_DYN_LINK etc (this macro is used to turn on __declspec(dllimport) -// modifiers, so that the compiler knows which symbols to look for in a dll -// rather than in a static library). -// Note that there may be some libraries that can only -// be linked in one way (statically or dynamically), -// in these cases this macro is unsupported. -// #define BOOST_WHATEVER_DYN_LINK - -// BOOST_ALL_NO_LIB: Tells the config system not to automatically select -// which libraries to link against. -// Normally if a compiler supports #pragma lib, then the correct library -// build variant will be automatically selected and linked against, -// simply by the act of including one of that library's headers. -// This macro turns that feature off. -// #define BOOST_ALL_NO_LIB - -// BOOST_WHATEVER_NO_LIB: Tells the config system not to automatically -// select which library to link against for library "whatever", -// replace WHATEVER in the macro name with the name of the library; -// for example BOOST_DATE_TIME_NO_LIB or BOOST_REGEX_NO_LIB. -// Normally if a compiler supports #pragma lib, then the correct library -// build variant will be automatically selected and linked against, simply -// by the act of including one of that library's headers. This macro turns -// that feature off. -// #define BOOST_WHATEVER_NO_LIB - - - diff --git a/libktorrent/miniboost/boost/config/warning_disable.hpp b/libktorrent/miniboost/boost/config/warning_disable.hpp deleted file mode 100644 index fea8e829..00000000 --- a/libktorrent/miniboost/boost/config/warning_disable.hpp +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright John Maddock 2008 -// Use, modification, and distribution is subject to the Boost Software -// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -// -// This file exists to turn off some overly-pedantic warning emitted -// by certain compilers. You should include this header only in: -// -// * A test case, before any other headers, or, -// * A library source file before any other headers. -// -// IT SHOULD NOT BE INCLUDED BY ANY BOOST HEADER. -// -// YOU SHOULD NOT INCLUDE IT IF YOU CAN REASONABLY FIX THE WARNING. -// -// The only warnings disabled here are those that are: -// -// * Quite unreasonably pedantic. -// * Generally only emitted by a single compiler. -// * Can't easily be fixed: for example if the vendors own std lib -// code emits these warnings! -// -// Note that THIS HEADER MUST NOT INCLUDE ANY OTHER HEADERS: -// not even std library ones! Doing so may turn the warning -// off too late to be of any use. For example the VC++ C4996 -// warning can be emitted from if that header is included -// before or by this one :-( -// - -#ifndef BOOST_CONFIG_WARNING_DISABLE_HPP -#define BOOST_CONFIG_WARNING_DISABLE_HPP - -#if defined(_MSC_VER) && (_MSC_VER >= 1400) - // Error 'function': was declared deprecated - // http://msdn2.microsoft.com/en-us/library/ttcz0bys(VS.80).aspx - // This error is emitted when you use some perfectly conforming - // std lib functions in a perfectly correct way, and also by - // some of Microsoft's own std lib code ! -# pragma warning(disable:4996) -#endif -#if defined(__INTEL_COMPILER) || defined(__ICL) - // As above: gives warning when a "deprecated" - // std library function is encountered. -# pragma warning(disable:1786) -#endif - -#endif // BOOST_CONFIG_WARNING_DISABLE_HPP diff --git a/libktorrent/miniboost/boost/core/addressof.hpp b/libktorrent/miniboost/boost/core/addressof.hpp deleted file mode 100644 index a90fcc3e..00000000 --- a/libktorrent/miniboost/boost/core/addressof.hpp +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (C) 2002 Brad King (brad.king@kitware.com) -// Douglas Gregor (gregod@cs.rpi.edu) -// -// Copyright (C) 2002, 2008, 2013 Peter Dimov -// -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) - -// For more information, see http://www.boost.org - -#ifndef BOOST_CORE_ADDRESSOF_HPP -#define BOOST_CORE_ADDRESSOF_HPP - -# include -# include -# include - -namespace boost -{ - -namespace detail -{ - -template struct addr_impl_ref -{ - T & v_; - - BOOST_FORCEINLINE addr_impl_ref( T & v ): v_( v ) {} - BOOST_FORCEINLINE operator T& () const { return v_; } - -private: - addr_impl_ref & operator=(const addr_impl_ref &); -}; - -template struct addressof_impl -{ - static BOOST_FORCEINLINE T * f( T & v, long ) - { - return reinterpret_cast( - &const_cast(reinterpret_cast(v))); - } - - static BOOST_FORCEINLINE T * f( T * v, int ) - { - return v; - } -}; - -#if !defined( BOOST_NO_CXX11_NULLPTR ) - -#if defined( __clang__ ) && !defined( _LIBCPP_VERSION ) && !defined( BOOST_NO_CXX11_DECLTYPE ) - - typedef decltype(nullptr) addr_nullptr_t; - -#else - - typedef std::nullptr_t addr_nullptr_t; - -#endif - -template<> struct addressof_impl< addr_nullptr_t > -{ - typedef addr_nullptr_t T; - - static BOOST_FORCEINLINE T * f( T & v, int ) - { - return &v; - } -}; - -template<> struct addressof_impl< addr_nullptr_t const > -{ - typedef addr_nullptr_t const T; - - static BOOST_FORCEINLINE T * f( T & v, int ) - { - return &v; - } -}; - -template<> struct addressof_impl< addr_nullptr_t volatile > -{ - typedef addr_nullptr_t volatile T; - - static BOOST_FORCEINLINE T * f( T & v, int ) - { - return &v; - } -}; - -template<> struct addressof_impl< addr_nullptr_t const volatile > -{ - typedef addr_nullptr_t const volatile T; - - static BOOST_FORCEINLINE T * f( T & v, int ) - { - return &v; - } -}; - -#endif - -} // namespace detail - -template -BOOST_FORCEINLINE -T * addressof( T & v ) -{ -#if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x610 ) ) ) || defined( __SUNPRO_CC ) - - return boost::detail::addressof_impl::f( v, 0 ); - -#else - - return boost::detail::addressof_impl::f( boost::detail::addr_impl_ref( v ), 0 ); - -#endif -} - -#if defined( __SUNPRO_CC ) && BOOST_WORKAROUND( __SUNPRO_CC, BOOST_TESTED_AT( 0x590 ) ) - -namespace detail -{ - -template struct addressof_addp -{ - typedef T * type; -}; - -} // namespace detail - -template< class T, std::size_t N > -BOOST_FORCEINLINE -typename detail::addressof_addp< T[N] >::type addressof( T (&t)[N] ) -{ - return &t; -} - -#endif - -// Borland doesn't like casting an array reference to a char reference -// but these overloads work around the problem. -#if defined( __BORLANDC__ ) && BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564)) -template -BOOST_FORCEINLINE -T (*addressof(T (&t)[N]))[N] -{ - return reinterpret_cast(&t); -} - -template -BOOST_FORCEINLINE -const T (*addressof(const T (&t)[N]))[N] -{ - return reinterpret_cast(&t); -} -#endif - -} // namespace boost - -#endif // BOOST_CORE_ADDRESSOF_HPP diff --git a/libktorrent/miniboost/boost/detail/workaround.hpp b/libktorrent/miniboost/boost/detail/workaround.hpp deleted file mode 100644 index 40b3423b..00000000 --- a/libktorrent/miniboost/boost/detail/workaround.hpp +++ /dev/null @@ -1,267 +0,0 @@ -// Copyright David Abrahams 2002. -// Distributed under the Boost Software License, Version 1.0. (See -// accompanying file LICENSE_1_0.txt or copy at -// http://www.boost.org/LICENSE_1_0.txt) -#ifndef WORKAROUND_DWA2002126_HPP -# define WORKAROUND_DWA2002126_HPP - -// Compiler/library version workaround macro -// -// Usage: -// -// #if BOOST_WORKAROUND(BOOST_MSVC, < 1300) -// // workaround for eVC4 and VC6 -// ... // workaround code here -// #endif -// -// When BOOST_STRICT_CONFIG is defined, expands to 0. Otherwise, the -// first argument must be undefined or expand to a numeric -// value. The above expands to: -// -// (BOOST_MSVC) != 0 && (BOOST_MSVC) < 1300 -// -// When used for workarounds that apply to the latest known version -// and all earlier versions of a compiler, the following convention -// should be observed: -// -// #if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1301)) -// -// The version number in this case corresponds to the last version in -// which the workaround was known to have been required. When -// BOOST_DETECT_OUTDATED_WORKAROUNDS is not the defined, the macro -// BOOST_TESTED_AT(x) expands to "!= 0", which effectively activates -// the workaround for any version of the compiler. When -// BOOST_DETECT_OUTDATED_WORKAROUNDS is defined, a compiler warning or -// error will be issued if the compiler version exceeds the argument -// to BOOST_TESTED_AT(). This can be used to locate workarounds which -// may be obsoleted by newer versions. - -# ifndef BOOST_STRICT_CONFIG - -#include - -#ifndef __BORLANDC__ -#define __BORLANDC___WORKAROUND_GUARD 1 -#else -#define __BORLANDC___WORKAROUND_GUARD 0 -#endif -#ifndef __CODEGEARC__ -#define __CODEGEARC___WORKAROUND_GUARD 1 -#else -#define __CODEGEARC___WORKAROUND_GUARD 0 -#endif -#ifndef _MSC_VER -#define _MSC_VER_WORKAROUND_GUARD 1 -#else -#define _MSC_VER_WORKAROUND_GUARD 0 -#endif -#ifndef _MSC_FULL_VER -#define _MSC_FULL_VER_WORKAROUND_GUARD 1 -#else -#define _MSC_FULL_VER_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_MSVC -#define BOOST_MSVC_WORKAROUND_GUARD 1 -#else -#define BOOST_MSVC_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_MSVC_FULL_VER -#define BOOST_MSVC_FULL_VER_WORKAROUND_GUARD 1 -#else -#define BOOST_MSVC_FULL_VER_WORKAROUND_GUARD 0 -#endif -#ifndef __GNUC__ -#define __GNUC___WORKAROUND_GUARD 1 -#else -#define __GNUC___WORKAROUND_GUARD 0 -#endif -#ifndef __GNUC_MINOR__ -#define __GNUC_MINOR___WORKAROUND_GUARD 1 -#else -#define __GNUC_MINOR___WORKAROUND_GUARD 0 -#endif -#ifndef __GNUC_PATCHLEVEL__ -#define __GNUC_PATCHLEVEL___WORKAROUND_GUARD 1 -#else -#define __GNUC_PATCHLEVEL___WORKAROUND_GUARD 0 -#endif -#ifndef __IBMCPP__ -#define __IBMCPP___WORKAROUND_GUARD 1 -#else -#define __IBMCPP___WORKAROUND_GUARD 0 -#endif -#ifndef __SUNPRO_CC -#define __SUNPRO_CC_WORKAROUND_GUARD 1 -#else -#define __SUNPRO_CC_WORKAROUND_GUARD 0 -#endif -#ifndef __DECCXX_VER -#define __DECCXX_VER_WORKAROUND_GUARD 1 -#else -#define __DECCXX_VER_WORKAROUND_GUARD 0 -#endif -#ifndef __MWERKS__ -#define __MWERKS___WORKAROUND_GUARD 1 -#else -#define __MWERKS___WORKAROUND_GUARD 0 -#endif -#ifndef __EDG__ -#define __EDG___WORKAROUND_GUARD 1 -#else -#define __EDG___WORKAROUND_GUARD 0 -#endif -#ifndef __EDG_VERSION__ -#define __EDG_VERSION___WORKAROUND_GUARD 1 -#else -#define __EDG_VERSION___WORKAROUND_GUARD 0 -#endif -#ifndef __HP_aCC -#define __HP_aCC_WORKAROUND_GUARD 1 -#else -#define __HP_aCC_WORKAROUND_GUARD 0 -#endif -#ifndef __hpxstd98 -#define __hpxstd98_WORKAROUND_GUARD 1 -#else -#define __hpxstd98_WORKAROUND_GUARD 0 -#endif -#ifndef _CRAYC -#define _CRAYC_WORKAROUND_GUARD 1 -#else -#define _CRAYC_WORKAROUND_GUARD 0 -#endif -#ifndef __DMC__ -#define __DMC___WORKAROUND_GUARD 1 -#else -#define __DMC___WORKAROUND_GUARD 0 -#endif -#ifndef MPW_CPLUS -#define MPW_CPLUS_WORKAROUND_GUARD 1 -#else -#define MPW_CPLUS_WORKAROUND_GUARD 0 -#endif -#ifndef __COMO__ -#define __COMO___WORKAROUND_GUARD 1 -#else -#define __COMO___WORKAROUND_GUARD 0 -#endif -#ifndef __COMO_VERSION__ -#define __COMO_VERSION___WORKAROUND_GUARD 1 -#else -#define __COMO_VERSION___WORKAROUND_GUARD 0 -#endif -#ifndef __INTEL_COMPILER -#define __INTEL_COMPILER_WORKAROUND_GUARD 1 -#else -#define __INTEL_COMPILER_WORKAROUND_GUARD 0 -#endif -#ifndef __ICL -#define __ICL_WORKAROUND_GUARD 1 -#else -#define __ICL_WORKAROUND_GUARD 0 -#endif -#ifndef _COMPILER_VERSION -#define _COMPILER_VERSION_WORKAROUND_GUARD 1 -#else -#define _COMPILER_VERSION_WORKAROUND_GUARD 0 -#endif - -#ifndef _RWSTD_VER -#define _RWSTD_VER_WORKAROUND_GUARD 1 -#else -#define _RWSTD_VER_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_RWSTD_VER -#define BOOST_RWSTD_VER_WORKAROUND_GUARD 1 -#else -#define BOOST_RWSTD_VER_WORKAROUND_GUARD 0 -#endif -#ifndef __GLIBCPP__ -#define __GLIBCPP___WORKAROUND_GUARD 1 -#else -#define __GLIBCPP___WORKAROUND_GUARD 0 -#endif -#ifndef _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC -#define _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC_WORKAROUND_GUARD 1 -#else -#define _GLIBCXX_USE_C99_FP_MACROS_DYNAMIC_WORKAROUND_GUARD 0 -#endif -#ifndef __SGI_STL_PORT -#define __SGI_STL_PORT_WORKAROUND_GUARD 1 -#else -#define __SGI_STL_PORT_WORKAROUND_GUARD 0 -#endif -#ifndef _STLPORT_VERSION -#define _STLPORT_VERSION_WORKAROUND_GUARD 1 -#else -#define _STLPORT_VERSION_WORKAROUND_GUARD 0 -#endif -#ifndef __LIBCOMO_VERSION__ -#define __LIBCOMO_VERSION___WORKAROUND_GUARD 1 -#else -#define __LIBCOMO_VERSION___WORKAROUND_GUARD 0 -#endif -#ifndef _CPPLIB_VER -#define _CPPLIB_VER_WORKAROUND_GUARD 1 -#else -#define _CPPLIB_VER_WORKAROUND_GUARD 0 -#endif - -#ifndef BOOST_INTEL_CXX_VERSION -#define BOOST_INTEL_CXX_VERSION_WORKAROUND_GUARD 1 -#else -#define BOOST_INTEL_CXX_VERSION_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_INTEL_WIN -#define BOOST_INTEL_WIN_WORKAROUND_GUARD 1 -#else -#define BOOST_INTEL_WIN_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_DINKUMWARE_STDLIB -#define BOOST_DINKUMWARE_STDLIB_WORKAROUND_GUARD 1 -#else -#define BOOST_DINKUMWARE_STDLIB_WORKAROUND_GUARD 0 -#endif -#ifndef BOOST_INTEL -#define BOOST_INTEL_WORKAROUND_GUARD 1 -#else -#define BOOST_INTEL_WORKAROUND_GUARD 0 -#endif -// Always define to zero, if it's used it'll be defined my MPL: -#define BOOST_MPL_CFG_GCC_WORKAROUND_GUARD 0 - -# define BOOST_WORKAROUND(symbol, test) \ - ((symbol ## _WORKAROUND_GUARD + 0 == 0) && \ - (symbol != 0) && (1 % (( (symbol test) ) + 1))) -// ^ ^ ^ ^ -// The extra level of parenthesis nesting above, along with the -// BOOST_OPEN_PAREN indirection below, is required to satisfy the -// broken preprocessor in MWCW 8.3 and earlier. -// -// The basic mechanism works as follows: -// (symbol test) + 1 => if (symbol test) then 2 else 1 -// 1 % ((symbol test) + 1) => if (symbol test) then 1 else 0 -// -// The complication with % is for cooperation with BOOST_TESTED_AT(). -// When "test" is BOOST_TESTED_AT(x) and -// BOOST_DETECT_OUTDATED_WORKAROUNDS is #defined, -// -// symbol test => if (symbol <= x) then 1 else -1 -// (symbol test) + 1 => if (symbol <= x) then 2 else 0 -// 1 % ((symbol test) + 1) => if (symbol <= x) then 1 else divide-by-zero -// - -# ifdef BOOST_DETECT_OUTDATED_WORKAROUNDS -# define BOOST_OPEN_PAREN ( -# define BOOST_TESTED_AT(value) > value) ?(-1): BOOST_OPEN_PAREN 1 -# else -# define BOOST_TESTED_AT(value) != ((value)-(value)) -# endif - -# else - -# define BOOST_WORKAROUND(symbol, test) 0 - -# endif - -#endif // WORKAROUND_DWA2002126_HPP diff --git a/libktorrent/miniboost/boost/static_assert.hpp b/libktorrent/miniboost/boost/static_assert.hpp deleted file mode 100644 index d083a9c3..00000000 --- a/libktorrent/miniboost/boost/static_assert.hpp +++ /dev/null @@ -1,195 +0,0 @@ -// (C) Copyright John Maddock 2000. -// Use, modification and distribution are subject to the -// Boost Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/libs/static_assert for documentation. - -/* - Revision history: - 02 August 2000 - Initial version. -*/ - -#ifndef BOOST_STATIC_ASSERT_HPP -#define BOOST_STATIC_ASSERT_HPP - -#include -#include - -#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) -// -// This is horrible, but it seems to be the only we can shut up the -// "anonymous variadic macros were introduced in C99 [-Wvariadic-macros]" -// warning that get spewed out otherwise in non-C++11 mode. -// -#pragma GCC system_header -#endif - -#ifndef BOOST_NO_CXX11_STATIC_ASSERT -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT_MSG( ... ) static_assert(__VA_ARGS__) -# else -# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B ) -# endif -#else -# define BOOST_STATIC_ASSERT_MSG( B, Msg ) BOOST_STATIC_ASSERT( B ) -#endif - -#ifdef __BORLANDC__ -// -// workaround for buggy integral-constant expression support: -#define BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS -#endif - -#if defined(__GNUC__) && (__GNUC__ == 3) && ((__GNUC_MINOR__ == 3) || (__GNUC_MINOR__ == 4)) -// gcc 3.3 and 3.4 don't produce good error messages with the default version: -# define BOOST_SA_GCC_WORKAROUND -#endif - -// -// If the compiler issues warnings about old C style casts, -// then enable this: -// -#if defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 4))) -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT_BOOL_CAST( ... ) ((__VA_ARGS__) == 0 ? false : true) -# else -# define BOOST_STATIC_ASSERT_BOOL_CAST( x ) ((x) == 0 ? false : true) -# endif -#else -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT_BOOL_CAST( ... ) (bool)(__VA_ARGS__) -# else -# define BOOST_STATIC_ASSERT_BOOL_CAST(x) (bool)(x) -# endif -#endif -// -// If the compiler warns about unused typedefs then enable this: -// -#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) -# define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE __attribute__((unused)) -#else -# define BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE -#endif - -#ifndef BOOST_NO_CXX11_STATIC_ASSERT -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__, #__VA_ARGS__) -# else -# define BOOST_STATIC_ASSERT( B ) static_assert(B, #B) -# endif -#else - -namespace boost{ - -// HP aCC cannot deal with missing names for template value parameters -template struct STATIC_ASSERTION_FAILURE; - -template <> struct STATIC_ASSERTION_FAILURE { enum { value = 1 }; }; - -// HP aCC cannot deal with missing names for template value parameters -template struct static_assert_test{}; - -} - -// -// Implicit instantiation requires that all member declarations be -// instantiated, but that the definitions are *not* instantiated. -// -// It's not particularly clear how this applies to enum's or typedefs; -// both are described as declarations [7.1.3] and [7.2] in the standard, -// however some compilers use "delayed evaluation" of one or more of -// these when implicitly instantiating templates. We use typedef declarations -// by default, but try defining BOOST_USE_ENUM_STATIC_ASSERT if the enum -// version gets better results from your compiler... -// -// Implementation: -// Both of these versions rely on sizeof(incomplete_type) generating an error -// message containing the name of the incomplete type. We use -// "STATIC_ASSERTION_FAILURE" as the type name here to generate -// an eye catching error message. The result of the sizeof expression is either -// used as an enum initialiser, or as a template argument depending which version -// is in use... -// Note that the argument to the assert is explicitly cast to bool using old- -// style casts: too many compilers currently have problems with static_cast -// when used inside integral constant expressions. -// -#if !defined(BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS) - -#if defined(BOOST_MSVC) && (BOOST_MSVC < 1300) -// __LINE__ macro broken when -ZI is used see Q199057 -// fortunately MSVC ignores duplicate typedef's. -#define BOOST_STATIC_ASSERT( B ) \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >)\ - > boost_static_assert_typedef_ -#elif defined(BOOST_MSVC) && defined(BOOST_NO_CXX11_VARIADIC_MACROS) -#define BOOST_STATIC_ASSERT( B ) \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST ( B ) >)>\ - BOOST_JOIN(boost_static_assert_typedef_, __COUNTER__) -#elif defined(BOOST_MSVC) -#define BOOST_STATIC_ASSERT(...) \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST (__VA_ARGS__) >)>\ - BOOST_JOIN(boost_static_assert_typedef_, __COUNTER__) -#elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && defined(BOOST_NO_CXX11_VARIADIC_MACROS) -// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error -// instead of warning in case of failure -# define BOOST_STATIC_ASSERT( B ) \ - typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \ - [ ::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( B ) >::value ] -#elif (defined(BOOST_INTEL_CXX_VERSION) || defined(BOOST_SA_GCC_WORKAROUND)) && !defined(BOOST_NO_CXX11_VARIADIC_MACROS) -// agurt 15/sep/02: a special care is needed to force Intel C++ issue an error -// instead of warning in case of failure -# define BOOST_STATIC_ASSERT(...) \ - typedef char BOOST_JOIN(boost_static_assert_typedef_, __LINE__) \ - [ ::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( __VA_ARGS__ ) >::value ] -#elif defined(__sgi) -// special version for SGI MIPSpro compiler -#define BOOST_STATIC_ASSERT( B ) \ - BOOST_STATIC_CONSTANT(bool, \ - BOOST_JOIN(boost_static_assert_test_, __LINE__) = ( B )); \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< \ - BOOST_JOIN(boost_static_assert_test_, __LINE__) >)>\ - BOOST_JOIN(boost_static_assert_typedef_, __LINE__) -#elif BOOST_WORKAROUND(__MWERKS__, <= 0x3003) -// special version for CodeWarrior <= 8.x -#define BOOST_STATIC_ASSERT( B ) \ - BOOST_STATIC_CONSTANT(int, \ - BOOST_JOIN(boost_static_assert_test_, __LINE__) = \ - sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( B ) >) ) -#else -// generic version -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT( ... ) \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( __VA_ARGS__ ) >)>\ - BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE -# else -# define BOOST_STATIC_ASSERT( B ) \ - typedef ::boost::static_assert_test<\ - sizeof(::boost::STATIC_ASSERTION_FAILURE< BOOST_STATIC_ASSERT_BOOL_CAST( B ) >)>\ - BOOST_JOIN(boost_static_assert_typedef_, __LINE__) BOOST_STATIC_ASSERT_UNUSED_ATTRIBUTE -# endif -#endif - -#else -// alternative enum based implementation: -# ifndef BOOST_NO_CXX11_VARIADIC_MACROS -# define BOOST_STATIC_ASSERT( ... ) \ - enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \ - = sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( __VA_ARGS__ ) >) } -# else -# define BOOST_STATIC_ASSERT(B) \ - enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \ - = sizeof(::boost::STATIC_ASSERTION_FAILURE< (bool)( B ) >) } -# endif -#endif -#endif // defined(BOOST_NO_CXX11_STATIC_ASSERT) - -#endif // BOOST_STATIC_ASSERT_HPP - - diff --git a/libktorrent/miniboost/boost/utility/addressof.hpp b/libktorrent/miniboost/boost/utility/addressof.hpp deleted file mode 100644 index db4da804..00000000 --- a/libktorrent/miniboost/boost/utility/addressof.hpp +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2014 Glen Fernandes - * - * Distributed under the Boost Software License, Version 1.0. (See - * accompanying file LICENSE_1_0.txt or copy at - * http://www.boost.org/LICENSE_1_0.txt) - */ - -#ifndef BOOST_UTILITY_ADDRESSOF_HPP -#define BOOST_UTILITY_ADDRESSOF_HPP - -// The header file at this path is deprecated; -// use boost/core/addressof.hpp instead. - -#include - -#endif diff --git a/libktorrent/miniboost/boost/version.hpp b/libktorrent/miniboost/boost/version.hpp deleted file mode 100644 index fc4c9697..00000000 --- a/libktorrent/miniboost/boost/version.hpp +++ /dev/null @@ -1,32 +0,0 @@ -// Boost version.hpp configuration header file ------------------------------// - -// (C) Copyright John maddock 1999. Distributed under the Boost -// Software License, Version 1.0. (See accompanying file -// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - -// See http://www.boost.org/libs/config for documentation - -#ifndef BOOST_VERSION_HPP -#define BOOST_VERSION_HPP - -// -// Caution, this is the only boost header that is guarenteed -// to change with every boost release, including this header -// will cause a recompile every time a new boost version is -// released. -// -// BOOST_VERSION % 100 is the patch level -// BOOST_VERSION / 100 % 1000 is the minor version -// BOOST_VERSION / 100000 is the major version - -#define BOOST_VERSION 105600 - -// -// BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION -// but as a *string* in the form "x_y[_z]" where x is the major version -// number, y is the minor version number, and z is the patch level if not 0. -// This is used by to select which library version to link to. - -#define BOOST_LIB_VERSION "1_56" - -#endif diff --git a/libktorrent/miniboost/ctype.h b/libktorrent/miniboost/ctype.h deleted file mode 100644 index 0a9ffba5..00000000 --- a/libktorrent/miniboost/ctype.h +++ /dev/null @@ -1,349 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard 7.4: Character handling - */ - -#ifndef _CTYPE_H -#define _CTYPE_H 1 - -#include -#include - -__BEGIN_DECLS - -#ifndef _ISbit -/* These are all the characteristics of characters. - If there get to be more than 16 distinct characteristics, - many things must be changed that use `unsigned short int's. - - The characteristics are stored always in network byte order (big - endian). We define the bit value interpretations here dependent on the - machine's byte order. */ - -# include -# if __BYTE_ORDER == __BIG_ENDIAN -# define _ISbit(bit) (1 << (bit)) -# else /* __BYTE_ORDER == __LITTLE_ENDIAN */ -# define _ISbit(bit) ((bit) < 8 ? ((1 << (bit)) << 8) : ((1 << (bit)) >> 8)) -# endif - -enum -{ - _ISupper = _ISbit (0), /* UPPERCASE. */ - _ISlower = _ISbit (1), /* lowercase. */ - _ISalpha = _ISbit (2), /* Alphabetic. */ - _ISdigit = _ISbit (3), /* Numeric. */ - _ISxdigit = _ISbit (4), /* Hexadecimal numeric. */ - _ISspace = _ISbit (5), /* Whitespace. */ - _ISprint = _ISbit (6), /* Printing. */ - _ISgraph = _ISbit (7), /* Graphical. */ - _ISblank = _ISbit (8), /* Blank (usually SPC and TAB). */ - _IScntrl = _ISbit (9), /* Control character. */ - _ISpunct = _ISbit (10), /* Punctuation. */ - _ISalnum = _ISbit (11) /* Alphanumeric. */ -}; -#endif /* ! _ISbit */ - -/* These are defined in ctype-info.c. - The declarations here must match those in localeinfo.h. - - In the thread-specific locale model (see `uselocale' in ) - we cannot use global variables for these as was done in the past. - Instead, the following accessor functions return the address of - each variable, which is local to the current thread if multithreaded. - - These point into arrays of 384, so they can be indexed by any `unsigned - char' value [0,255]; by EOF (-1); or by any `signed char' value - [-128,-1). ISO C requires that the ctype functions work for `unsigned - char' values and for EOF; we also support negative `signed char' values - for broken old programs. The case conversion arrays are of `int's - rather than `unsigned char's because tolower (EOF) must be EOF, which - doesn't fit into an `unsigned char'. But today more important is that - the arrays are also used for multi-byte character sets. */ -extern const unsigned short int **__ctype_b_loc (void) - __THROW __attribute__ ((__const__)); -extern const __int32_t **__ctype_tolower_loc (void) - __THROW __attribute__ ((__const__)); -extern const __int32_t **__ctype_toupper_loc (void) - __THROW __attribute__ ((__const__)); - - -#ifndef __cplusplus -# define __isctype(c, type) \ - ((*__ctype_b_loc ())[(int) (c)] & (unsigned short int) type) -#elif defined __USE_EXTERN_INLINES -# define __isctype_f(type) \ - __extern_inline int \ - is##type (int __c) __THROW \ - { \ - return (*__ctype_b_loc ())[(int) (__c)] & (unsigned short int) _IS##type; \ - } -#endif - -#define __isascii(c) (((c) & ~0x7f) == 0) /* If C is a 7 bit value. */ -#define __toascii(c) ((c) & 0x7f) /* Mask off high bits. */ - -#define __exctype(name) extern int name (int) __THROW - -__BEGIN_NAMESPACE_STD - -/* The following names are all functions: - int isCHARACTERISTIC(int c); - which return nonzero iff C has CHARACTERISTIC. - For the meaning of the characteristic names, see the `enum' above. */ -__exctype (isalnum); -__exctype (isalpha); -__exctype (iscntrl); -__exctype (isdigit); -__exctype (islower); -__exctype (isgraph); -__exctype (isprint); -__exctype (ispunct); -__exctype (isspace); -__exctype (isupper); -__exctype (isxdigit); - - -/* Return the lowercase version of C. */ -extern int tolower (int __c) __THROW; - -/* Return the uppercase version of C. */ -extern int toupper (int __c) __THROW; - -__END_NAMESPACE_STD - - -/* ISO C99 introduced one new function. */ -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 - -__exctype (isblank); - -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_GNU -/* Test C for a set of character classes according to MASK. */ -extern int isctype (int __c, int __mask) __THROW; -#endif - -#if defined __USE_MISC || defined __USE_XOPEN - -/* Return nonzero iff C is in the ASCII set - (i.e., is no more than 7 bits wide). */ -extern int isascii (int __c) __THROW; - -/* Return the part of C that is in the ASCII set - (i.e., the low-order 7 bits of C). */ -extern int toascii (int __c) __THROW; - -/* These are the same as `toupper' and `tolower' except that they do not - check the argument for being in the range of a `char'. */ -__exctype (_toupper); -__exctype (_tolower); -#endif /* Use X/Open or use misc. */ - -/* This code is needed for the optimized mapping functions. */ -#define __tobody(c, f, a, args) \ - (__extension__ \ - ({ int __res; \ - if (sizeof (c) > 1) \ - { \ - if (__builtin_constant_p (c)) \ - { \ - int __c = (c); \ - __res = __c < -128 || __c > 255 ? __c : (a)[__c]; \ - } \ - else \ - __res = f args; \ - } \ - else \ - __res = (a)[(int) (c)]; \ - __res; })) - -#if !defined __NO_CTYPE -# ifdef __isctype_f -__isctype_f (alnum) -__isctype_f (alpha) -__isctype_f (cntrl) -__isctype_f (digit) -__isctype_f (lower) -__isctype_f (graph) -__isctype_f (print) -__isctype_f (punct) -__isctype_f (space) -__isctype_f (upper) -__isctype_f (xdigit) -# ifdef __USE_ISOC99 -__isctype_f (blank) -# endif -# elif defined __isctype -# define isalnum(c) __isctype((c), _ISalnum) -# define isalpha(c) __isctype((c), _ISalpha) -# define iscntrl(c) __isctype((c), _IScntrl) -# define isdigit(c) __isctype((c), _ISdigit) -# define islower(c) __isctype((c), _ISlower) -# define isgraph(c) __isctype((c), _ISgraph) -# define isprint(c) __isctype((c), _ISprint) -# define ispunct(c) __isctype((c), _ISpunct) -# define isspace(c) __isctype((c), _ISspace) -# define isupper(c) __isctype((c), _ISupper) -# define isxdigit(c) __isctype((c), _ISxdigit) -# ifdef __USE_ISOC99 -# define isblank(c) __isctype((c), _ISblank) -# endif -# endif - -# ifdef __USE_EXTERN_INLINES -__extern_inline int -__NTH (tolower (int __c)) -{ - return __c >= -128 && __c < 256 ? (*__ctype_tolower_loc ())[__c] : __c; -} - -__extern_inline int -__NTH (toupper (int __c)) -{ - return __c >= -128 && __c < 256 ? (*__ctype_toupper_loc ())[__c] : __c; -} -# endif - -# if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus -# define tolower(c) __tobody (c, tolower, *__ctype_tolower_loc (), (c)) -# define toupper(c) __tobody (c, toupper, *__ctype_toupper_loc (), (c)) -# endif /* Optimizing gcc */ - -# if defined __USE_MISC || defined __USE_XOPEN -# define isascii(c) __isascii (c) -# define toascii(c) __toascii (c) - -# define _tolower(c) ((int) (*__ctype_tolower_loc ())[(int) (c)]) -# define _toupper(c) ((int) (*__ctype_toupper_loc ())[(int) (c)]) -# endif - -#endif /* Not __NO_CTYPE. */ - - -#ifdef __USE_XOPEN2K8 -/* The concept of one static locale per category is not very well - thought out. Many applications will need to process its data using - information from several different locales. Another application is - the implementation of the internationalization handling in the - upcoming ISO C++ standard library. To support this another set of - the functions using locale data exist which have an additional - argument. - - Attention: all these functions are *not* standardized in any form. - This is a proof-of-concept implementation. */ - -/* Structure for reentrant locale using functions. This is an - (almost) opaque type for the user level programs. */ -# include - -/* These definitions are similar to the ones above but all functions - take as an argument a handle for the locale which shall be used. */ -# define __isctype_l(c, type, locale) \ - ((locale)->__ctype_b[(int) (c)] & (unsigned short int) type) - -# define __exctype_l(name) \ - extern int name (int, __locale_t) __THROW - -/* The following names are all functions: - int isCHARACTERISTIC(int c, locale_t *locale); - which return nonzero iff C has CHARACTERISTIC. - For the meaning of the characteristic names, see the `enum' above. */ -__exctype_l (isalnum_l); -__exctype_l (isalpha_l); -__exctype_l (iscntrl_l); -__exctype_l (isdigit_l); -__exctype_l (islower_l); -__exctype_l (isgraph_l); -__exctype_l (isprint_l); -__exctype_l (ispunct_l); -__exctype_l (isspace_l); -__exctype_l (isupper_l); -__exctype_l (isxdigit_l); - -__exctype_l (isblank_l); - - -/* Return the lowercase version of C in locale L. */ -extern int __tolower_l (int __c, __locale_t __l) __THROW; -extern int tolower_l (int __c, __locale_t __l) __THROW; - -/* Return the uppercase version of C. */ -extern int __toupper_l (int __c, __locale_t __l) __THROW; -extern int toupper_l (int __c, __locale_t __l) __THROW; - -# if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus -# define __tolower_l(c, locale) \ - __tobody (c, __tolower_l, (locale)->__ctype_tolower, (c, locale)) -# define __toupper_l(c, locale) \ - __tobody (c, __toupper_l, (locale)->__ctype_toupper, (c, locale)) -# define tolower_l(c, locale) __tolower_l ((c), (locale)) -# define toupper_l(c, locale) __toupper_l ((c), (locale)) -# endif /* Optimizing gcc */ - - -# ifndef __NO_CTYPE -# define __isalnum_l(c,l) __isctype_l((c), _ISalnum, (l)) -# define __isalpha_l(c,l) __isctype_l((c), _ISalpha, (l)) -# define __iscntrl_l(c,l) __isctype_l((c), _IScntrl, (l)) -# define __isdigit_l(c,l) __isctype_l((c), _ISdigit, (l)) -# define __islower_l(c,l) __isctype_l((c), _ISlower, (l)) -# define __isgraph_l(c,l) __isctype_l((c), _ISgraph, (l)) -# define __isprint_l(c,l) __isctype_l((c), _ISprint, (l)) -# define __ispunct_l(c,l) __isctype_l((c), _ISpunct, (l)) -# define __isspace_l(c,l) __isctype_l((c), _ISspace, (l)) -# define __isupper_l(c,l) __isctype_l((c), _ISupper, (l)) -# define __isxdigit_l(c,l) __isctype_l((c), _ISxdigit, (l)) - -# define __isblank_l(c,l) __isctype_l((c), _ISblank, (l)) - -# ifdef __USE_MISC -# define __isascii_l(c,l) ((l), __isascii (c)) -# define __toascii_l(c,l) ((l), __toascii (c)) -# endif - -# define isalnum_l(c,l) __isalnum_l ((c), (l)) -# define isalpha_l(c,l) __isalpha_l ((c), (l)) -# define iscntrl_l(c,l) __iscntrl_l ((c), (l)) -# define isdigit_l(c,l) __isdigit_l ((c), (l)) -# define islower_l(c,l) __islower_l ((c), (l)) -# define isgraph_l(c,l) __isgraph_l ((c), (l)) -# define isprint_l(c,l) __isprint_l ((c), (l)) -# define ispunct_l(c,l) __ispunct_l ((c), (l)) -# define isspace_l(c,l) __isspace_l ((c), (l)) -# define isupper_l(c,l) __isupper_l ((c), (l)) -# define isxdigit_l(c,l) __isxdigit_l ((c), (l)) - -# define isblank_l(c,l) __isblank_l ((c), (l)) - -# ifdef __USE_MISC -# define isascii_l(c,l) __isascii_l ((c), (l)) -# define toascii_l(c,l) __toascii_l ((c), (l)) -# endif - -# endif /* Not __NO_CTYPE. */ - -#endif /* Use POSIX 2008. */ - -__END_DECLS - -#endif /* ctype.h */ diff --git a/libktorrent/miniboost/endian.h b/libktorrent/miniboost/endian.h deleted file mode 100644 index 9368b5c3..00000000 --- a/libktorrent/miniboost/endian.h +++ /dev/null @@ -1,96 +0,0 @@ -/* Copyright (C) 1992-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _ENDIAN_H -#define _ENDIAN_H 1 - -#include - -/* Definitions for byte order, according to significance of bytes, - from low addresses to high addresses. The value is what you get by - putting '4' in the most significant byte, '3' in the second most - significant byte, '2' in the second least significant byte, and '1' - in the least significant byte, and then writing down one digit for - each byte, starting with the byte at the lowest address at the left, - and proceeding to the byte with the highest address at the right. */ - -#define __LITTLE_ENDIAN 1234 -#define __BIG_ENDIAN 4321 -#define __PDP_ENDIAN 3412 - -/* This file defines `__BYTE_ORDER' for the particular machine. */ -#include - -/* Some machines may need to use a different endianness for floating point - values. */ -#ifndef __FLOAT_WORD_ORDER -# define __FLOAT_WORD_ORDER __BYTE_ORDER -#endif - -#ifdef __USE_MISC -# define LITTLE_ENDIAN __LITTLE_ENDIAN -# define BIG_ENDIAN __BIG_ENDIAN -# define PDP_ENDIAN __PDP_ENDIAN -# define BYTE_ORDER __BYTE_ORDER -#endif - -#if __BYTE_ORDER == __LITTLE_ENDIAN -# define __LONG_LONG_PAIR(HI, LO) LO, HI -#elif __BYTE_ORDER == __BIG_ENDIAN -# define __LONG_LONG_PAIR(HI, LO) HI, LO -#endif - - -#if defined __USE_MISC && !defined __ASSEMBLER__ -/* Conversion interfaces. */ -# include - -# if __BYTE_ORDER == __LITTLE_ENDIAN -# define htobe16(x) __bswap_16 (x) -# define htole16(x) (x) -# define be16toh(x) __bswap_16 (x) -# define le16toh(x) (x) - -# define htobe32(x) __bswap_32 (x) -# define htole32(x) (x) -# define be32toh(x) __bswap_32 (x) -# define le32toh(x) (x) - -# define htobe64(x) __bswap_64 (x) -# define htole64(x) (x) -# define be64toh(x) __bswap_64 (x) -# define le64toh(x) (x) - -# else -# define htobe16(x) (x) -# define htole16(x) __bswap_16 (x) -# define be16toh(x) (x) -# define le16toh(x) __bswap_16 (x) - -# define htobe32(x) (x) -# define htole32(x) __bswap_32 (x) -# define be32toh(x) (x) -# define le32toh(x) __bswap_32 (x) - -# define htobe64(x) (x) -# define htole64(x) __bswap_64 (x) -# define be64toh(x) (x) -# define le64toh(x) __bswap_64 (x) -# endif -#endif - -#endif /* endian.h */ diff --git a/libktorrent/miniboost/errno.h b/libktorrent/miniboost/errno.h deleted file mode 100644 index 93602216..00000000 --- a/libktorrent/miniboost/errno.h +++ /dev/null @@ -1,72 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.5 Errors - */ - -#ifndef _ERRNO_H - -/* The includer defined __need_Emath if he wants only the definitions - of EDOM and ERANGE, and not everything else. */ -#ifndef __need_Emath -# define _ERRNO_H 1 -# include -#endif - -__BEGIN_DECLS - -/* Get the error number constants from the system-specific file. - This file will test __need_Emath and _ERRNO_H. */ -#include -#undef __need_Emath - -#ifdef _ERRNO_H - -/* Declare the `errno' variable, unless it's defined as a macro by - bits/errno.h. This is the case in GNU, where it is a per-thread - variable. This redeclaration using the macro still works, but it - will be a function declaration without a prototype and may trigger - a -Wstrict-prototypes warning. */ -#ifndef errno -extern int errno; -#endif - -#ifdef __USE_GNU - -/* The full and simple forms of the name with which the program was - invoked. These variables are set up automatically at startup based on - the value of ARGV[0] (this works only if you use GNU ld). */ -extern char *program_invocation_name, *program_invocation_short_name; -#endif /* __USE_GNU */ -#endif /* _ERRNO_H */ - -__END_DECLS - -#endif /* _ERRNO_H */ - -/* The Hurd defines `error_t' as an enumerated type so - that printing `error_t' values in the debugger shows the names. We - might need this definition sometimes even if this file was included - before. */ -#if defined __USE_GNU || defined __need_error_t -# ifndef __error_t_defined -typedef int error_t; -# define __error_t_defined 1 -# endif -# undef __need_error_t -#endif diff --git a/libktorrent/miniboost/features.h b/libktorrent/miniboost/features.h deleted file mode 100644 index ddb883a4..00000000 --- a/libktorrent/miniboost/features.h +++ /dev/null @@ -1,392 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _FEATURES_H -#define _FEATURES_H 1 - -/* These are defined by the user (or the compiler) - to specify the desired environment: - - __STRICT_ANSI__ ISO Standard C. - _ISOC99_SOURCE Extensions to ISO C89 from ISO C99. - _ISOC11_SOURCE Extensions to ISO C99 from ISO C11. - _POSIX_SOURCE IEEE Std 1003.1. - _POSIX_C_SOURCE If ==1, like _POSIX_SOURCE; if >=2 add IEEE Std 1003.2; - if >=199309L, add IEEE Std 1003.1b-1993; - if >=199506L, add IEEE Std 1003.1c-1995; - if >=200112L, all of IEEE 1003.1-2004 - if >=200809L, all of IEEE 1003.1-2008 - _XOPEN_SOURCE Includes POSIX and XPG things. Set to 500 if - Single Unix conformance is wanted, to 600 for the - sixth revision, to 700 for the seventh revision. - _XOPEN_SOURCE_EXTENDED XPG things and X/Open Unix extensions. - _LARGEFILE_SOURCE Some more functions for correct standard I/O. - _LARGEFILE64_SOURCE Additional functionality from LFS for large files. - _FILE_OFFSET_BITS=N Select default filesystem interface. - _ATFILE_SOURCE Additional *at interfaces. - _GNU_SOURCE All of the above, plus GNU extensions. - _DEFAULT_SOURCE The default set of features (taking precedence over - __STRICT_ANSI__). - _REENTRANT Select additionally reentrant object. - _THREAD_SAFE Same as _REENTRANT, often used by other systems. - _FORTIFY_SOURCE If set to numeric value > 0 additional security - measures are defined, according to level. - - The `-ansi' switch to the GNU C compiler, and standards conformance - options such as `-std=c99', define __STRICT_ANSI__. If none of - these are defined, or if _DEFAULT_SOURCE is defined, the default is - to have _POSIX_SOURCE set to one and _POSIX_C_SOURCE set to - 200809L, as well as enabling miscellaneous functions from BSD and - SVID. If more than one of these are defined, they accumulate. For - example __STRICT_ANSI__, _POSIX_SOURCE and _POSIX_C_SOURCE together - give you ISO C, 1003.1, and 1003.2, but nothing else. - - These are defined by this file and are used by the - header files to decide what to declare or define: - - __USE_ISOC11 Define ISO C11 things. - __USE_ISOC99 Define ISO C99 things. - __USE_ISOC95 Define ISO C90 AMD1 (C95) things. - __USE_POSIX Define IEEE Std 1003.1 things. - __USE_POSIX2 Define IEEE Std 1003.2 things. - __USE_POSIX199309 Define IEEE Std 1003.1, and .1b things. - __USE_POSIX199506 Define IEEE Std 1003.1, .1b, .1c and .1i things. - __USE_XOPEN Define XPG things. - __USE_XOPEN_EXTENDED Define X/Open Unix things. - __USE_UNIX98 Define Single Unix V2 things. - __USE_XOPEN2K Define XPG6 things. - __USE_XOPEN2KXSI Define XPG6 XSI things. - __USE_XOPEN2K8 Define XPG7 things. - __USE_XOPEN2K8XSI Define XPG7 XSI things. - __USE_LARGEFILE Define correct standard I/O things. - __USE_LARGEFILE64 Define LFS things with separate names. - __USE_FILE_OFFSET64 Define 64bit interface as default. - __USE_MISC Define things from 4.3BSD or System V Unix. - __USE_ATFILE Define *at interfaces and AT_* constants for them. - __USE_GNU Define GNU extensions. - __USE_REENTRANT Define reentrant/thread-safe *_r functions. - __USE_FORTIFY_LEVEL Additional security measures used, according to level. - - The macros `__GNU_LIBRARY__', `__GLIBC__', and `__GLIBC_MINOR__' are - defined by this file unconditionally. `__GNU_LIBRARY__' is provided - only for compatibility. All new code should use the other symbols - to test for features. - - All macros listed above as possibly being defined by this file are - explicitly undefined if they are not explicitly defined. - Feature-test macros that are not defined by the user or compiler - but are implied by the other feature-test macros defined (or by the - lack of any definitions) are defined by the file. */ - - -/* Undefine everything, so we get a clean slate. */ -#undef __USE_ISOC11 -#undef __USE_ISOC99 -#undef __USE_ISOC95 -#undef __USE_ISOCXX11 -#undef __USE_POSIX -#undef __USE_POSIX2 -#undef __USE_POSIX199309 -#undef __USE_POSIX199506 -#undef __USE_XOPEN -#undef __USE_XOPEN_EXTENDED -#undef __USE_UNIX98 -#undef __USE_XOPEN2K -#undef __USE_XOPEN2KXSI -#undef __USE_XOPEN2K8 -#undef __USE_XOPEN2K8XSI -#undef __USE_LARGEFILE -#undef __USE_LARGEFILE64 -#undef __USE_FILE_OFFSET64 -#undef __USE_MISC -#undef __USE_ATFILE -#undef __USE_GNU -#undef __USE_REENTRANT -#undef __USE_FORTIFY_LEVEL -#undef __KERNEL_STRICT_NAMES - -/* Suppress kernel-name space pollution unless user expressedly asks - for it. */ -#ifndef _LOOSE_KERNEL_NAMES -# define __KERNEL_STRICT_NAMES -#endif - -/* Convenience macros to test the versions of glibc and gcc. - Use them like this: - #if __GNUC_PREREQ (2,8) - ... code requiring gcc 2.8 or later ... - #endif - Note - they won't work for gcc1 or glibc1, since the _MINOR macros - were not defined then. */ -#if defined __GNUC__ && defined __GNUC_MINOR__ -# define __GNUC_PREREQ(maj, min) \ - ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) -#else -# define __GNUC_PREREQ(maj, min) 0 -#endif - -/* _BSD_SOURCE and _SVID_SOURCE are deprecated aliases for - _DEFAULT_SOURCE. If _DEFAULT_SOURCE is present we do not - issue a warning; the expectation is that the source is being - transitioned to use the new macro. */ -#if (defined _BSD_SOURCE || defined _SVID_SOURCE) \ - && !defined _DEFAULT_SOURCE -# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" -# undef _DEFAULT_SOURCE -# define _DEFAULT_SOURCE 1 -#endif - -/* If _GNU_SOURCE was defined by the user, turn on all the other features. */ -#ifdef _GNU_SOURCE -# undef _ISOC95_SOURCE -# define _ISOC95_SOURCE 1 -# undef _ISOC99_SOURCE -# define _ISOC99_SOURCE 1 -# undef _ISOC11_SOURCE -# define _ISOC11_SOURCE 1 -# undef _POSIX_SOURCE -# define _POSIX_SOURCE 1 -# undef _POSIX_C_SOURCE -# define _POSIX_C_SOURCE 200809L -# undef _XOPEN_SOURCE -# define _XOPEN_SOURCE 700 -# undef _XOPEN_SOURCE_EXTENDED -# define _XOPEN_SOURCE_EXTENDED 1 -# undef _LARGEFILE64_SOURCE -# define _LARGEFILE64_SOURCE 1 -# undef _DEFAULT_SOURCE -# define _DEFAULT_SOURCE 1 -# undef _ATFILE_SOURCE -# define _ATFILE_SOURCE 1 -#endif - -/* If nothing (other than _GNU_SOURCE and _DEFAULT_SOURCE) is defined, - define _DEFAULT_SOURCE. */ -#if (defined _DEFAULT_SOURCE \ - || (!defined __STRICT_ANSI__ \ - && !defined _ISOC99_SOURCE \ - && !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE \ - && !defined _XOPEN_SOURCE)) -# undef _DEFAULT_SOURCE -# define _DEFAULT_SOURCE 1 -#endif - -/* This is to enable the ISO C11 extension. */ -#if (defined _ISOC11_SOURCE \ - || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L)) -# define __USE_ISOC11 1 -#endif - -/* This is to enable the ISO C99 extension. */ -#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \ - || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L)) -# define __USE_ISOC99 1 -#endif - -/* This is to enable the ISO C90 Amendment 1:1995 extension. */ -#if (defined _ISOC99_SOURCE || defined _ISOC11_SOURCE \ - || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199409L)) -# define __USE_ISOC95 1 -#endif - -/* This is to enable compatibility for ISO C++11. - - So far g++ does not provide a macro. Check the temporary macro for - now, too. */ -#if ((defined __cplusplus && __cplusplus >= 201103L) \ - || defined __GXX_EXPERIMENTAL_CXX0X__) -# define __USE_ISOCXX11 1 -#endif - -/* If none of the ANSI/POSIX macros are defined, or if _DEFAULT_SOURCE - is defined, use POSIX.1-2008 (or another version depending on - _XOPEN_SOURCE). */ -#ifdef _DEFAULT_SOURCE -# if !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE -# define __USE_POSIX_IMPLICITLY 1 -# endif -# undef _POSIX_SOURCE -# define _POSIX_SOURCE 1 -# undef _POSIX_C_SOURCE -# define _POSIX_C_SOURCE 200809L -#endif -#if ((!defined __STRICT_ANSI__ || (_XOPEN_SOURCE - 0) >= 500) && \ - !defined _POSIX_SOURCE && !defined _POSIX_C_SOURCE) -# define _POSIX_SOURCE 1 -# if defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 500 -# define _POSIX_C_SOURCE 2 -# elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 600 -# define _POSIX_C_SOURCE 199506L -# elif defined _XOPEN_SOURCE && (_XOPEN_SOURCE - 0) < 700 -# define _POSIX_C_SOURCE 200112L -# else -# define _POSIX_C_SOURCE 200809L -# endif -# define __USE_POSIX_IMPLICITLY 1 -#endif - -#if defined _POSIX_SOURCE || _POSIX_C_SOURCE >= 1 || defined _XOPEN_SOURCE -# define __USE_POSIX 1 -#endif - -#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 2 || defined _XOPEN_SOURCE -# define __USE_POSIX2 1 -#endif - -#if (_POSIX_C_SOURCE - 0) >= 199309L -# define __USE_POSIX199309 1 -#endif - -#if (_POSIX_C_SOURCE - 0) >= 199506L -# define __USE_POSIX199506 1 -#endif - -#if (_POSIX_C_SOURCE - 0) >= 200112L -# define __USE_XOPEN2K 1 -# undef __USE_ISOC95 -# define __USE_ISOC95 1 -# undef __USE_ISOC99 -# define __USE_ISOC99 1 -#endif - -#if (_POSIX_C_SOURCE - 0) >= 200809L -# define __USE_XOPEN2K8 1 -# undef _ATFILE_SOURCE -# define _ATFILE_SOURCE 1 -#endif - -#ifdef _XOPEN_SOURCE -# define __USE_XOPEN 1 -# if (_XOPEN_SOURCE - 0) >= 500 -# define __USE_XOPEN_EXTENDED 1 -# define __USE_UNIX98 1 -# undef _LARGEFILE_SOURCE -# define _LARGEFILE_SOURCE 1 -# if (_XOPEN_SOURCE - 0) >= 600 -# if (_XOPEN_SOURCE - 0) >= 700 -# define __USE_XOPEN2K8 1 -# define __USE_XOPEN2K8XSI 1 -# endif -# define __USE_XOPEN2K 1 -# define __USE_XOPEN2KXSI 1 -# undef __USE_ISOC95 -# define __USE_ISOC95 1 -# undef __USE_ISOC99 -# define __USE_ISOC99 1 -# endif -# else -# ifdef _XOPEN_SOURCE_EXTENDED -# define __USE_XOPEN_EXTENDED 1 -# endif -# endif -#endif - -#ifdef _LARGEFILE_SOURCE -# define __USE_LARGEFILE 1 -#endif - -#ifdef _LARGEFILE64_SOURCE -# define __USE_LARGEFILE64 1 -#endif - -#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 -# define __USE_FILE_OFFSET64 1 -#endif - -#if defined _DEFAULT_SOURCE -# define __USE_MISC 1 -#endif - -#ifdef _ATFILE_SOURCE -# define __USE_ATFILE 1 -#endif - -#ifdef _GNU_SOURCE -# define __USE_GNU 1 -#endif - -#if defined _REENTRANT || defined _THREAD_SAFE -# define __USE_REENTRANT 1 -#endif - -#if defined _FORTIFY_SOURCE && _FORTIFY_SOURCE > 0 -# if !defined __OPTIMIZE__ || __OPTIMIZE__ <= 0 -# warning _FORTIFY_SOURCE requires compiling with optimization (-O) -# elif !__GNUC_PREREQ (4, 1) -# warning _FORTIFY_SOURCE requires GCC 4.1 or later -# elif _FORTIFY_SOURCE > 1 -# define __USE_FORTIFY_LEVEL 2 -# else -# define __USE_FORTIFY_LEVEL 1 -# endif -#endif -#ifndef __USE_FORTIFY_LEVEL -# define __USE_FORTIFY_LEVEL 0 -#endif - -/* Get definitions of __STDC_* predefined macros, if the compiler has - not preincluded this header automatically. */ -#include - -/* This macro indicates that the installed library is the GNU C Library. - For historic reasons the value now is 6 and this will stay from now - on. The use of this variable is deprecated. Use __GLIBC__ and - __GLIBC_MINOR__ now (see below) when you want to test for a specific - GNU C library version and use the values in to get - the sonames of the shared libraries. */ -#undef __GNU_LIBRARY__ -#define __GNU_LIBRARY__ 6 - -/* Major and minor version number of the GNU C library package. Use - these macros to test for features in specific releases. */ -#define __GLIBC__ 2 -#define __GLIBC_MINOR__ 20 - -#define __GLIBC_PREREQ(maj, min) \ - ((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min)) - -/* This is here only because every header file already includes this one. */ -#ifndef __ASSEMBLER__ -# ifndef _SYS_CDEFS_H -# include -# endif - -/* If we don't have __REDIRECT, prototypes will be missing if - __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */ -# if defined __USE_FILE_OFFSET64 && !defined __REDIRECT -# define __USE_LARGEFILE 1 -# define __USE_LARGEFILE64 1 -# endif - -#endif /* !ASSEMBLER */ - -/* Decide whether we can define 'extern inline' functions in headers. */ -#if __GNUC_PREREQ (2, 7) && defined __OPTIMIZE__ \ - && !defined __OPTIMIZE_SIZE__ && !defined __NO_INLINE__ \ - && defined __extern_inline -# define __USE_EXTERN_INLINES 1 -#endif - - -/* This is here only because every header file already includes this one. - Get the definitions of all the appropriate `__stub_FUNCTION' symbols. - contains `#define __stub_FUNCTION' when FUNCTION is a stub - that will always return failure (and set errno to ENOSYS). */ -#include - - -#endif /* features.h */ diff --git a/libktorrent/miniboost/gconv.h b/libktorrent/miniboost/gconv.h deleted file mode 100644 index 108dccbb..00000000 --- a/libktorrent/miniboost/gconv.h +++ /dev/null @@ -1,180 +0,0 @@ -/* Copyright (C) 1997-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* This header provides no interface for a user to the internals of - the gconv implementation in the libc. Therefore there is no use - for these definitions beside for writing additional gconv modules. */ - -#ifndef _GCONV_H -#define _GCONV_H 1 - -#include -#define __need_mbstate_t -#define __need_wint_t -#include -#define __need_size_t -#define __need_wchar_t -#include - -/* ISO 10646 value used to signal invalid value. */ -#define __UNKNOWN_10646_CHAR ((wchar_t) 0xfffd) - -/* Error codes for gconv functions. */ -enum -{ - __GCONV_OK = 0, - __GCONV_NOCONV, - __GCONV_NODB, - __GCONV_NOMEM, - - __GCONV_EMPTY_INPUT, - __GCONV_FULL_OUTPUT, - __GCONV_ILLEGAL_INPUT, - __GCONV_INCOMPLETE_INPUT, - - __GCONV_ILLEGAL_DESCRIPTOR, - __GCONV_INTERNAL_ERROR -}; - - -/* Flags the `__gconv_open' function can set. */ -enum -{ - __GCONV_IS_LAST = 0x0001, - __GCONV_IGNORE_ERRORS = 0x0002, - __GCONV_SWAP = 0x0004 -}; - - -/* Forward declarations. */ -struct __gconv_step; -struct __gconv_step_data; -struct __gconv_loaded_object; -struct __gconv_trans_data; - - -/* Type of a conversion function. */ -typedef int (*__gconv_fct) (struct __gconv_step *, struct __gconv_step_data *, - const unsigned char **, const unsigned char *, - unsigned char **, size_t *, int, int); - -/* Type of a specialized conversion function for a single byte to INTERNAL. */ -typedef wint_t (*__gconv_btowc_fct) (struct __gconv_step *, unsigned char); - -/* Constructor and destructor for local data for conversion step. */ -typedef int (*__gconv_init_fct) (struct __gconv_step *); -typedef void (*__gconv_end_fct) (struct __gconv_step *); - - -/* Type of a transliteration/transscription function. */ -typedef int (*__gconv_trans_fct) (struct __gconv_step *, - struct __gconv_step_data *, void *, - const unsigned char *, - const unsigned char **, - const unsigned char *, unsigned char **, - size_t *); - -/* Function to call to provide transliteration module with context. */ -typedef int (*__gconv_trans_context_fct) (void *, const unsigned char *, - const unsigned char *, - unsigned char *, unsigned char *); - -/* Function to query module about supported encoded character sets. */ -typedef int (*__gconv_trans_query_fct) (const char *, const char ***, - size_t *); - -/* Constructor and destructor for local data for transliteration. */ -typedef int (*__gconv_trans_init_fct) (void **, const char *); -typedef void (*__gconv_trans_end_fct) (void *); - -struct __gconv_trans_data -{ - /* Transliteration/Transscription function. */ - __gconv_trans_fct __trans_fct; - __gconv_trans_context_fct __trans_context_fct; - __gconv_trans_end_fct __trans_end_fct; - void *__data; - struct __gconv_trans_data *__next; -}; - - -/* Description of a conversion step. */ -struct __gconv_step -{ - struct __gconv_loaded_object *__shlib_handle; - const char *__modname; - - int __counter; - - char *__from_name; - char *__to_name; - - __gconv_fct __fct; - __gconv_btowc_fct __btowc_fct; - __gconv_init_fct __init_fct; - __gconv_end_fct __end_fct; - - /* Information about the number of bytes needed or produced in this - step. This helps optimizing the buffer sizes. */ - int __min_needed_from; - int __max_needed_from; - int __min_needed_to; - int __max_needed_to; - - /* Flag whether this is a stateful encoding or not. */ - int __stateful; - - void *__data; /* Pointer to step-local data. */ -}; - -/* Additional data for steps in use of conversion descriptor. This is - allocated by the `init' function. */ -struct __gconv_step_data -{ - unsigned char *__outbuf; /* Output buffer for this step. */ - unsigned char *__outbufend; /* Address of first byte after the output - buffer. */ - - /* Is this the last module in the chain. */ - int __flags; - - /* Counter for number of invocations of the module function for this - descriptor. */ - int __invocation_counter; - - /* Flag whether this is an internal use of the module (in the mb*towc* - and wc*tomb* functions) or regular with iconv(3). */ - int __internal_use; - - __mbstate_t *__statep; - __mbstate_t __state; /* This element must not be used directly by - any module; always use STATEP! */ - - /* Transliteration information. */ - struct __gconv_trans_data *__trans; -}; - - -/* Combine conversion step description with data. */ -typedef struct __gconv_info -{ - size_t __nsteps; - struct __gconv_step *__steps; - __extension__ struct __gconv_step_data __data __flexarr; -} *__gconv_t; - -#endif /* gconv.h */ diff --git a/libktorrent/miniboost/getopt.h b/libktorrent/miniboost/getopt.h deleted file mode 100644 index da1a01ff..00000000 --- a/libktorrent/miniboost/getopt.h +++ /dev/null @@ -1,191 +0,0 @@ -/* Declarations for getopt. - Copyright (C) 1989-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _GETOPT_H - -#ifndef __need_getopt -# define _GETOPT_H 1 -#endif - -/* If __GNU_LIBRARY__ is not already defined, either we are being used - standalone, or this is the first header included in the source file. - If we are being used with glibc, we need to include , but - that does not exist if we are standalone. So: if __GNU_LIBRARY__ is - not defined, include , which will pull in for us - if it's from glibc. (Why ctype.h? It's guaranteed to exist and it - doesn't flood the namespace with stuff the way some other headers do.) */ -#if !defined __GNU_LIBRARY__ -# include -#endif - -#ifndef __THROW -# ifndef __GNUC_PREREQ -# define __GNUC_PREREQ(maj, min) (0) -# endif -# if defined __cplusplus && __GNUC_PREREQ (2,8) -# define __THROW throw () -# else -# define __THROW -# endif -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* For communication from `getopt' to the caller. - When `getopt' finds an option that takes an argument, - the argument value is returned here. - Also, when `ordering' is RETURN_IN_ORDER, - each non-option ARGV-element is returned here. */ - -extern char *optarg; - -/* Index in ARGV of the next element to be scanned. - This is used for communication to and from the caller - and for communication between successive calls to `getopt'. - - On entry to `getopt', zero means this is the first call; initialize. - - When `getopt' returns -1, this is the index of the first of the - non-option elements that the caller should itself scan. - - Otherwise, `optind' communicates from one call to the next - how much of ARGV has been scanned so far. */ - -extern int optind; - -/* Callers store zero here to inhibit the error message `getopt' prints - for unrecognized options. */ - -extern int opterr; - -/* Set to an option character which was unrecognized. */ - -extern int optopt; - -#ifndef __need_getopt -/* Describe the long-named options requested by the application. - The LONG_OPTIONS argument to getopt_long or getopt_long_only is a vector - of `struct option' terminated by an element containing a name which is - zero. - - The field `has_arg' is: - no_argument (or 0) if the option does not take an argument, - required_argument (or 1) if the option requires an argument, - optional_argument (or 2) if the option takes an optional argument. - - If the field `flag' is not NULL, it points to a variable that is set - to the value given in the field `val' when the option is found, but - left unchanged if the option is not found. - - To have a long-named option do something other than set an `int' to - a compiled-in constant, such as set a value from `optarg', set the - option's `flag' field to zero and its `val' field to a nonzero - value (the equivalent single-letter option character, if there is - one). For long options that have a zero `flag' field, `getopt' - returns the contents of the `val' field. */ - -struct option -{ - const char *name; - /* has_arg can't be an enum because some compilers complain about - type mismatches in all the code that assumes it is an int. */ - int has_arg; - int *flag; - int val; -}; - -/* Names for the values of the `has_arg' field of `struct option'. */ - -# define no_argument 0 -# define required_argument 1 -# define optional_argument 2 -#endif /* need getopt */ - - -/* Get definitions and prototypes for functions to process the - arguments in ARGV (ARGC of them, minus the program name) for - options given in OPTS. - - Return the option character from OPTS just read. Return -1 when - there are no more options. For unrecognized options, or options - missing arguments, `optopt' is set to the option letter, and '?' is - returned. - - The OPTS string is a list of characters which are recognized option - letters, optionally followed by colons, specifying that that letter - takes an argument, to be placed in `optarg'. - - If a letter in OPTS is followed by two colons, its argument is - optional. This behavior is specific to the GNU `getopt'. - - The argument `--' causes premature termination of argument - scanning, explicitly telling `getopt' that there are no more - options. - - If OPTS begins with `--', then non-option arguments are treated as - arguments to the option '\0'. This behavior is specific to the GNU - `getopt'. */ - -#ifdef __GNU_LIBRARY__ -/* Many other libraries have conflicting prototypes for getopt, with - differences in the consts, in stdlib.h. To avoid compilation - errors, only prototype getopt for the GNU C library. */ -extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) - __THROW; - -# if defined __need_getopt && defined __USE_POSIX2 \ - && !defined __USE_POSIX_IMPLICITLY && !defined __USE_GNU -/* The GNU getopt has more functionality than the standard version. The - additional functionality can be disable at runtime. This redirection - helps to also do this at runtime. */ -# ifdef __REDIRECT - extern int __REDIRECT_NTH (getopt, (int ___argc, char *const *___argv, - const char *__shortopts), - __posix_getopt); -# else -extern int __posix_getopt (int ___argc, char *const *___argv, - const char *__shortopts) __THROW; -# define getopt __posix_getopt -# endif -# endif -#else /* not __GNU_LIBRARY__ */ -extern int getopt (); -#endif /* __GNU_LIBRARY__ */ - -#ifndef __need_getopt -extern int getopt_long (int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; -extern int getopt_long_only (int ___argc, char *const *___argv, - const char *__shortopts, - const struct option *__longopts, int *__longind) - __THROW; - -#endif - -#ifdef __cplusplus -} -#endif - -/* Make sure we later can get all the definitions and declarations. */ -#undef __need_getopt - -#endif /* getopt.h */ diff --git a/libktorrent/miniboost/gnu/stubs-64.h b/libktorrent/miniboost/gnu/stubs-64.h deleted file mode 100644 index eb2a0eee..00000000 --- a/libktorrent/miniboost/gnu/stubs-64.h +++ /dev/null @@ -1,23 +0,0 @@ -/* This file is automatically generated. - It defines a symbol `__stub_FUNCTION' for each function - in the C library which is a stub, meaning it will fail - every time called, usually setting errno to ENOSYS. */ - -#ifdef _LIBC - #error Applications may not define the macro _LIBC -#endif - -#define __stub_bdflush -#define __stub_chflags -#define __stub_fattach -#define __stub_fchflags -#define __stub_fdetach -#define __stub_getmsg -#define __stub_gtty -#define __stub_lchmod -#define __stub_putmsg -#define __stub_revoke -#define __stub_setlogin -#define __stub_sigreturn -#define __stub_sstk -#define __stub_stty diff --git a/libktorrent/miniboost/gnu/stubs.h b/libktorrent/miniboost/gnu/stubs.h deleted file mode 100644 index 70a1ba01..00000000 --- a/libktorrent/miniboost/gnu/stubs.h +++ /dev/null @@ -1,14 +0,0 @@ -/* This file is automatically generated. - This file selects the right generated file of `__stub_FUNCTION' macros - based on the architecture being compiled for. */ - - -#if !defined __x86_64__ -# include -#endif -#if defined __x86_64__ && defined __LP64__ -# include -#endif -#if defined __x86_64__ && defined __ILP32__ -# include -#endif diff --git a/libktorrent/miniboost/libio.h b/libktorrent/miniboost/libio.h deleted file mode 100644 index 6077f5c1..00000000 --- a/libktorrent/miniboost/libio.h +++ /dev/null @@ -1,529 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Written by Per Bothner . - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . - - As a special exception, if you link the code in this file with - files compiled with a GNU compiler to produce an executable, - that does not cause the resulting executable to be covered by - the GNU Lesser General Public License. This exception does not - however invalidate any other reasons why the executable file - might be covered by the GNU Lesser General Public License. - This exception applies to code released by its copyright holders - in files containing the exception. */ - -#ifndef _IO_STDIO_H -#define _IO_STDIO_H - -#include <_G_config.h> -/* ALL of these should be defined in _G_config.h */ -#define _IO_fpos_t _G_fpos_t -#define _IO_fpos64_t _G_fpos64_t -#define _IO_size_t size_t -#define _IO_ssize_t __ssize_t -#define _IO_off_t __off_t -#define _IO_off64_t __off64_t -#define _IO_pid_t __pid_t -#define _IO_uid_t __uid_t -#define _IO_iconv_t _G_iconv_t -#define _IO_HAVE_ST_BLKSIZE _G_HAVE_ST_BLKSIZE -#define _IO_BUFSIZ _G_BUFSIZ -#define _IO_va_list _G_va_list -#define _IO_wint_t wint_t - -/* This define avoids name pollution if we're using GNU stdarg.h */ -#define __need___va_list -#include -#ifdef __GNUC_VA_LIST -# undef _IO_va_list -# define _IO_va_list __gnuc_va_list -#endif /* __GNUC_VA_LIST */ - -#ifndef __P -# include -#endif /*!__P*/ - -#define _IO_UNIFIED_JUMPTABLES 1 - -#ifndef EOF -# define EOF (-1) -#endif -#ifndef NULL -# if defined __GNUG__ && \ - (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8)) -# define NULL (__null) -# else -# if !defined(__cplusplus) -# define NULL ((void*)0) -# else -# define NULL (0) -# endif -# endif -#endif - -#define _IOS_INPUT 1 -#define _IOS_OUTPUT 2 -#define _IOS_ATEND 4 -#define _IOS_APPEND 8 -#define _IOS_TRUNC 16 -#define _IOS_NOCREATE 32 -#define _IOS_NOREPLACE 64 -#define _IOS_BIN 128 - -/* Magic numbers and bits for the _flags field. - The magic numbers use the high-order bits of _flags; - the remaining bits are available for variable flags. - Note: The magic numbers must all be negative if stdio - emulation is desired. */ - -#define _IO_MAGIC 0xFBAD0000 /* Magic number */ -#define _OLD_STDIO_MAGIC 0xFABC0000 /* Emulate old stdio. */ -#define _IO_MAGIC_MASK 0xFFFF0000 -#define _IO_USER_BUF 1 /* User owns buffer; don't delete it on close. */ -#define _IO_UNBUFFERED 2 -#define _IO_NO_READS 4 /* Reading not allowed */ -#define _IO_NO_WRITES 8 /* Writing not allowd */ -#define _IO_EOF_SEEN 0x10 -#define _IO_ERR_SEEN 0x20 -#define _IO_DELETE_DONT_CLOSE 0x40 /* Don't call close(_fileno) on cleanup. */ -#define _IO_LINKED 0x80 /* Set if linked (using _chain) to streambuf::_list_all.*/ -#define _IO_IN_BACKUP 0x100 -#define _IO_LINE_BUF 0x200 -#define _IO_TIED_PUT_GET 0x400 /* Set if put and get pointer logicly tied. */ -#define _IO_CURRENTLY_PUTTING 0x800 -#define _IO_IS_APPENDING 0x1000 -#define _IO_IS_FILEBUF 0x2000 -#define _IO_BAD_SEEN 0x4000 -#define _IO_USER_LOCK 0x8000 - -#define _IO_FLAGS2_MMAP 1 -#define _IO_FLAGS2_NOTCANCEL 2 -#ifdef _LIBC -# define _IO_FLAGS2_FORTIFY 4 -#endif -#define _IO_FLAGS2_USER_WBUF 8 -#ifdef _LIBC -# define _IO_FLAGS2_SCANF_STD 16 -# define _IO_FLAGS2_NOCLOSE 32 -# define _IO_FLAGS2_CLOEXEC 64 -#endif - -/* These are "formatting flags" matching the iostream fmtflags enum values. */ -#define _IO_SKIPWS 01 -#define _IO_LEFT 02 -#define _IO_RIGHT 04 -#define _IO_INTERNAL 010 -#define _IO_DEC 020 -#define _IO_OCT 040 -#define _IO_HEX 0100 -#define _IO_SHOWBASE 0200 -#define _IO_SHOWPOINT 0400 -#define _IO_UPPERCASE 01000 -#define _IO_SHOWPOS 02000 -#define _IO_SCIENTIFIC 04000 -#define _IO_FIXED 010000 -#define _IO_UNITBUF 020000 -#define _IO_STDIO 040000 -#define _IO_DONT_CLOSE 0100000 -#define _IO_BOOLALPHA 0200000 - - -struct _IO_jump_t; struct _IO_FILE; - -/* Handle lock. */ -#ifdef _IO_MTSAFE_IO -# if defined __GLIBC__ && __GLIBC__ >= 2 -# include -# else -/*# include */ -# endif -#else -typedef void _IO_lock_t; -#endif - - -/* A streammarker remembers a position in a buffer. */ - -struct _IO_marker { - struct _IO_marker *_next; - struct _IO_FILE *_sbuf; - /* If _pos >= 0 - it points to _buf->Gbase()+_pos. FIXME comment */ - /* if _pos < 0, it points to _buf->eBptr()+_pos. FIXME comment */ - int _pos; -#if 0 - void set_streampos(streampos sp) { _spos = sp; } - void set_offset(int offset) { _pos = offset; _spos = (streampos)(-2); } - public: - streammarker(streambuf *sb); - ~streammarker(); - int saving() { return _spos == -2; } - int delta(streammarker&); - int delta(); -#endif -}; - -/* This is the structure from the libstdc++ codecvt class. */ -enum __codecvt_result -{ - __codecvt_ok, - __codecvt_partial, - __codecvt_error, - __codecvt_noconv -}; - -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -/* The order of the elements in the following struct must match the order - of the virtual functions in the libstdc++ codecvt class. */ -struct _IO_codecvt -{ - void (*__codecvt_destr) (struct _IO_codecvt *); - enum __codecvt_result (*__codecvt_do_out) (struct _IO_codecvt *, - __mbstate_t *, - const wchar_t *, - const wchar_t *, - const wchar_t **, char *, - char *, char **); - enum __codecvt_result (*__codecvt_do_unshift) (struct _IO_codecvt *, - __mbstate_t *, char *, - char *, char **); - enum __codecvt_result (*__codecvt_do_in) (struct _IO_codecvt *, - __mbstate_t *, - const char *, const char *, - const char **, wchar_t *, - wchar_t *, wchar_t **); - int (*__codecvt_do_encoding) (struct _IO_codecvt *); - int (*__codecvt_do_always_noconv) (struct _IO_codecvt *); - int (*__codecvt_do_length) (struct _IO_codecvt *, __mbstate_t *, - const char *, const char *, _IO_size_t); - int (*__codecvt_do_max_length) (struct _IO_codecvt *); - - _IO_iconv_t __cd_in; - _IO_iconv_t __cd_out; -}; - -/* Extra data for wide character streams. */ -struct _IO_wide_data -{ - wchar_t *_IO_read_ptr; /* Current read pointer */ - wchar_t *_IO_read_end; /* End of get area. */ - wchar_t *_IO_read_base; /* Start of putback+get area. */ - wchar_t *_IO_write_base; /* Start of put area. */ - wchar_t *_IO_write_ptr; /* Current put pointer. */ - wchar_t *_IO_write_end; /* End of put area. */ - wchar_t *_IO_buf_base; /* Start of reserve area. */ - wchar_t *_IO_buf_end; /* End of reserve area. */ - /* The following fields are used to support backing up and undo. */ - wchar_t *_IO_save_base; /* Pointer to start of non-current get area. */ - wchar_t *_IO_backup_base; /* Pointer to first valid character of - backup area */ - wchar_t *_IO_save_end; /* Pointer to end of non-current get area. */ - - __mbstate_t _IO_state; - __mbstate_t _IO_last_state; - struct _IO_codecvt _codecvt; - - wchar_t _shortbuf[1]; - - const struct _IO_jump_t *_wide_vtable; -}; -#endif - -struct _IO_FILE { - int _flags; /* High-order word is _IO_MAGIC; rest is flags. */ -#define _IO_file_flags _flags - - /* The following pointers correspond to the C++ streambuf protocol. */ - /* Note: Tk uses the _IO_read_ptr and _IO_read_end fields directly. */ - char* _IO_read_ptr; /* Current read pointer */ - char* _IO_read_end; /* End of get area. */ - char* _IO_read_base; /* Start of putback+get area. */ - char* _IO_write_base; /* Start of put area. */ - char* _IO_write_ptr; /* Current put pointer. */ - char* _IO_write_end; /* End of put area. */ - char* _IO_buf_base; /* Start of reserve area. */ - char* _IO_buf_end; /* End of reserve area. */ - /* The following fields are used to support backing up and undo. */ - char *_IO_save_base; /* Pointer to start of non-current get area. */ - char *_IO_backup_base; /* Pointer to first valid character of backup area */ - char *_IO_save_end; /* Pointer to end of non-current get area. */ - - struct _IO_marker *_markers; - - struct _IO_FILE *_chain; - - int _fileno; -#if 0 - int _blksize; -#else - int _flags2; -#endif - _IO_off_t _old_offset; /* This used to be _offset but it's too small. */ - -#define __HAVE_COLUMN /* temporary */ - /* 1+column number of pbase(); 0 is unknown. */ - unsigned short _cur_column; - signed char _vtable_offset; - char _shortbuf[1]; - - /* char* _save_gptr; char* _save_egptr; */ - - _IO_lock_t *_lock; -#ifdef _IO_USE_OLD_IO_FILE -}; - -struct _IO_FILE_complete -{ - struct _IO_FILE _file; -#endif -#if defined _G_IO_IO_FILE_VERSION && _G_IO_IO_FILE_VERSION == 0x20001 - _IO_off64_t _offset; -# if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T - /* Wide character stream stuff. */ - struct _IO_codecvt *_codecvt; - struct _IO_wide_data *_wide_data; - struct _IO_FILE *_freeres_list; - void *_freeres_buf; - size_t _freeres_size; -# else - void *__pad1; - void *__pad2; - void *__pad3; - void *__pad4; - size_t __pad5; -# endif - int _mode; - /* Make sure we don't get into trouble again. */ - char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; -#endif -}; - -#ifndef __cplusplus -typedef struct _IO_FILE _IO_FILE; -#endif - -struct _IO_FILE_plus; - -extern struct _IO_FILE_plus _IO_2_1_stdin_; -extern struct _IO_FILE_plus _IO_2_1_stdout_; -extern struct _IO_FILE_plus _IO_2_1_stderr_; -#ifndef _LIBC -#define _IO_stdin ((_IO_FILE*)(&_IO_2_1_stdin_)) -#define _IO_stdout ((_IO_FILE*)(&_IO_2_1_stdout_)) -#define _IO_stderr ((_IO_FILE*)(&_IO_2_1_stderr_)) -#else -extern _IO_FILE *_IO_stdin attribute_hidden; -extern _IO_FILE *_IO_stdout attribute_hidden; -extern _IO_FILE *_IO_stderr attribute_hidden; -#endif - - -/* Functions to do I/O and file management for a stream. */ - -/* Read NBYTES bytes from COOKIE into a buffer pointed to by BUF. - Return number of bytes read. */ -typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes); - -/* Write N bytes pointed to by BUF to COOKIE. Write all N bytes - unless there is an error. Return number of bytes written. If - there is an error, return 0 and do not write anything. If the file - has been opened for append (__mode.__append set), then set the file - pointer to the end of the file and then do the write; if not, just - write at the current file pointer. */ -typedef __ssize_t __io_write_fn (void *__cookie, const char *__buf, - size_t __n); - -/* Move COOKIE's file position to *POS bytes from the - beginning of the file (if W is SEEK_SET), - the current position (if W is SEEK_CUR), - or the end of the file (if W is SEEK_END). - Set *POS to the new file position. - Returns zero if successful, nonzero if not. */ -typedef int __io_seek_fn (void *__cookie, _IO_off64_t *__pos, int __w); - -/* Close COOKIE. */ -typedef int __io_close_fn (void *__cookie); - - -#ifdef _GNU_SOURCE -/* User-visible names for the above. */ -typedef __io_read_fn cookie_read_function_t; -typedef __io_write_fn cookie_write_function_t; -typedef __io_seek_fn cookie_seek_function_t; -typedef __io_close_fn cookie_close_function_t; - -/* The structure with the cookie function pointers. */ -typedef struct -{ - __io_read_fn *read; /* Read bytes. */ - __io_write_fn *write; /* Write bytes. */ - __io_seek_fn *seek; /* Seek/tell file position. */ - __io_close_fn *close; /* Close file. */ -} _IO_cookie_io_functions_t; -typedef _IO_cookie_io_functions_t cookie_io_functions_t; - -struct _IO_cookie_file; - -/* Initialize one of those. */ -extern void _IO_cookie_init (struct _IO_cookie_file *__cfile, int __read_write, - void *__cookie, _IO_cookie_io_functions_t __fns); -#endif - - -#ifdef __cplusplus -extern "C" { -#endif - -extern int __underflow (_IO_FILE *); -extern int __uflow (_IO_FILE *); -extern int __overflow (_IO_FILE *, int); -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -extern _IO_wint_t __wunderflow (_IO_FILE *); -extern _IO_wint_t __wuflow (_IO_FILE *); -extern _IO_wint_t __woverflow (_IO_FILE *, _IO_wint_t); -#endif - -#if __GNUC__ >= 3 -# define _IO_BE(expr, res) __builtin_expect ((expr), res) -#else -# define _IO_BE(expr, res) (expr) -#endif - -#define _IO_getc_unlocked(_fp) \ - (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) \ - ? __uflow (_fp) : *(unsigned char *) (_fp)->_IO_read_ptr++) -#define _IO_peekc_unlocked(_fp) \ - (_IO_BE ((_fp)->_IO_read_ptr >= (_fp)->_IO_read_end, 0) \ - && __underflow (_fp) == EOF ? EOF \ - : *(unsigned char *) (_fp)->_IO_read_ptr) -#define _IO_putc_unlocked(_ch, _fp) \ - (_IO_BE ((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end, 0) \ - ? __overflow (_fp, (unsigned char) (_ch)) \ - : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch))) - -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -# define _IO_getwc_unlocked(_fp) \ - (_IO_BE ((_fp)->_wide_data == NULL \ - || ((_fp)->_wide_data->_IO_read_ptr \ - >= (_fp)->_wide_data->_IO_read_end), 0) \ - ? __wuflow (_fp) : (_IO_wint_t) *(_fp)->_wide_data->_IO_read_ptr++) -# define _IO_putwc_unlocked(_wch, _fp) \ - (_IO_BE ((_fp)->_wide_data == NULL \ - || ((_fp)->_wide_data->_IO_write_ptr \ - >= (_fp)->_wide_data->_IO_write_end), 0) \ - ? __woverflow (_fp, _wch) \ - : (_IO_wint_t) (*(_fp)->_wide_data->_IO_write_ptr++ = (_wch))) -#endif - -#define _IO_feof_unlocked(__fp) (((__fp)->_flags & _IO_EOF_SEEN) != 0) -#define _IO_ferror_unlocked(__fp) (((__fp)->_flags & _IO_ERR_SEEN) != 0) - -extern int _IO_getc (_IO_FILE *__fp); -extern int _IO_putc (int __c, _IO_FILE *__fp); -extern int _IO_feof (_IO_FILE *__fp) __THROW; -extern int _IO_ferror (_IO_FILE *__fp) __THROW; - -extern int _IO_peekc_locked (_IO_FILE *__fp); - -/* This one is for Emacs. */ -#define _IO_PENDING_OUTPUT_COUNT(_fp) \ - ((_fp)->_IO_write_ptr - (_fp)->_IO_write_base) - -extern void _IO_flockfile (_IO_FILE *) __THROW; -extern void _IO_funlockfile (_IO_FILE *) __THROW; -extern int _IO_ftrylockfile (_IO_FILE *) __THROW; - -#ifdef _IO_MTSAFE_IO -# define _IO_peekc(_fp) _IO_peekc_locked (_fp) -# define _IO_flockfile(_fp) \ - if (((_fp)->_flags & _IO_USER_LOCK) == 0) _IO_flockfile (_fp) -# define _IO_funlockfile(_fp) \ - if (((_fp)->_flags & _IO_USER_LOCK) == 0) _IO_funlockfile (_fp) -#else -# define _IO_peekc(_fp) _IO_peekc_unlocked (_fp) -# define _IO_flockfile(_fp) /**/ -# define _IO_funlockfile(_fp) /**/ -# define _IO_ftrylockfile(_fp) /**/ -# define _IO_cleanup_region_start(_fct, _fp) /**/ -# define _IO_cleanup_region_end(_Doit) /**/ -#endif /* !_IO_MTSAFE_IO */ - -extern int _IO_vfscanf (_IO_FILE * __restrict, const char * __restrict, - _IO_va_list, int *__restrict); -extern int _IO_vfprintf (_IO_FILE *__restrict, const char *__restrict, - _IO_va_list); -extern _IO_ssize_t _IO_padn (_IO_FILE *, int, _IO_ssize_t); -extern _IO_size_t _IO_sgetn (_IO_FILE *, void *, _IO_size_t); - -extern _IO_off64_t _IO_seekoff (_IO_FILE *, _IO_off64_t, int, int); -extern _IO_off64_t _IO_seekpos (_IO_FILE *, _IO_off64_t, int); - -extern void _IO_free_backup_area (_IO_FILE *) __THROW; - -#if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T -extern _IO_wint_t _IO_getwc (_IO_FILE *__fp); -extern _IO_wint_t _IO_putwc (wchar_t __wc, _IO_FILE *__fp); -extern int _IO_fwide (_IO_FILE *__fp, int __mode) __THROW; -# if __GNUC__ >= 2 -/* While compiling glibc we have to handle compatibility with very old - versions. */ -# if defined _LIBC && defined SHARED -# include -# if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1) -# define _IO_fwide_maybe_incompatible \ - (__builtin_expect (&_IO_stdin_used == NULL, 0)) -extern const int _IO_stdin_used; -weak_extern (_IO_stdin_used); -# endif -# endif -# ifndef _IO_fwide_maybe_incompatible -# define _IO_fwide_maybe_incompatible (0) -# endif -/* A special optimized version of the function above. It optimizes the - case of initializing an unoriented byte stream. */ -# define _IO_fwide(__fp, __mode) \ - ({ int __result = (__mode); \ - if (__result < 0 && ! _IO_fwide_maybe_incompatible) \ - { \ - if ((__fp)->_mode == 0) \ - /* We know that all we have to do is to set the flag. */ \ - (__fp)->_mode = -1; \ - __result = (__fp)->_mode; \ - } \ - else if (__builtin_constant_p (__mode) && (__mode) == 0) \ - __result = _IO_fwide_maybe_incompatible ? -1 : (__fp)->_mode; \ - else \ - __result = _IO_fwide (__fp, __result); \ - __result; }) -# endif - -extern int _IO_vfwscanf (_IO_FILE * __restrict, const wchar_t * __restrict, - _IO_va_list, int *__restrict); -extern int _IO_vfwprintf (_IO_FILE *__restrict, const wchar_t *__restrict, - _IO_va_list); -extern _IO_ssize_t _IO_wpadn (_IO_FILE *, wint_t, _IO_ssize_t); -extern void _IO_free_wbackup_area (_IO_FILE *) __THROW; -#endif - -#ifdef __LDBL_COMPAT -# include -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* _IO_STDIO_H */ diff --git a/libktorrent/miniboost/limits.h b/libktorrent/miniboost/limits.h deleted file mode 100644 index 311386a2..00000000 --- a/libktorrent/miniboost/limits.h +++ /dev/null @@ -1,152 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types - */ - -#ifndef _LIBC_LIMITS_H_ -#define _LIBC_LIMITS_H_ 1 - -#include - - -/* Maximum length of any multibyte character in any locale. - We define this value here since the gcc header does not define - the correct value. */ -#define MB_LEN_MAX 16 - - -/* If we are not using GNU CC we have to define all the symbols ourself. - Otherwise use gcc's definitions (see below). */ -#if !defined __GNUC__ || __GNUC__ < 2 - -/* We only protect from multiple inclusion here, because all the other - #include's protect themselves, and in GCC 2 we may #include_next through - multiple copies of this file before we get to GCC's. */ -# ifndef _LIMITS_H -# define _LIMITS_H 1 - -#include - -/* We don't have #include_next. - Define ANSI for standard 32-bit words. */ - -/* These assume 8-bit `char's, 16-bit `short int's, - and 32-bit `int's and `long int's. */ - -/* Number of bits in a `char'. */ -# define CHAR_BIT 8 - -/* Minimum and maximum values a `signed char' can hold. */ -# define SCHAR_MIN (-128) -# define SCHAR_MAX 127 - -/* Maximum value an `unsigned char' can hold. (Minimum is 0.) */ -# define UCHAR_MAX 255 - -/* Minimum and maximum values a `char' can hold. */ -# ifdef __CHAR_UNSIGNED__ -# define CHAR_MIN 0 -# define CHAR_MAX UCHAR_MAX -# else -# define CHAR_MIN SCHAR_MIN -# define CHAR_MAX SCHAR_MAX -# endif - -/* Minimum and maximum values a `signed short int' can hold. */ -# define SHRT_MIN (-32768) -# define SHRT_MAX 32767 - -/* Maximum value an `unsigned short int' can hold. (Minimum is 0.) */ -# define USHRT_MAX 65535 - -/* Minimum and maximum values a `signed int' can hold. */ -# define INT_MIN (-INT_MAX - 1) -# define INT_MAX 2147483647 - -/* Maximum value an `unsigned int' can hold. (Minimum is 0.) */ -# define UINT_MAX 4294967295U - -/* Minimum and maximum values a `signed long int' can hold. */ -# if __WORDSIZE == 64 -# define LONG_MAX 9223372036854775807L -# else -# define LONG_MAX 2147483647L -# endif -# define LONG_MIN (-LONG_MAX - 1L) - -/* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */ -# if __WORDSIZE == 64 -# define ULONG_MAX 18446744073709551615UL -# else -# define ULONG_MAX 4294967295UL -# endif - -# ifdef __USE_ISOC99 - -/* Minimum and maximum values a `signed long long int' can hold. */ -# define LLONG_MAX 9223372036854775807LL -# define LLONG_MIN (-LLONG_MAX - 1LL) - -/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */ -# define ULLONG_MAX 18446744073709551615ULL - -# endif /* ISO C99 */ - -# endif /* limits.h */ -#endif /* GCC 2. */ - -#endif /* !_LIBC_LIMITS_H_ */ - - /* Get the compiler's limits.h, which defines almost all the ISO constants. - - We put this #include_next outside the double inclusion check because - it should be possible to include this file more than once and still get - the definitions from gcc's header. */ -#if defined __GNUC__ && !defined _GCC_LIMITS_H_ -/* `_GCC_LIMITS_H_' is what GCC's file defines. */ -# include_next -#endif - -/* The files in some gcc versions don't define LLONG_MIN, - LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for - ages are available. */ -#if defined __USE_ISOC99 && defined __GNUC__ -# ifndef LLONG_MIN -# define LLONG_MIN (-LLONG_MAX-1) -# endif -# ifndef LLONG_MAX -# define LLONG_MAX __LONG_LONG_MAX__ -# endif -# ifndef ULLONG_MAX -# define ULLONG_MAX (LLONG_MAX * 2ULL + 1) -# endif -#endif - -#ifdef __USE_POSIX -/* POSIX adds things to . */ -# include -#endif - -#ifdef __USE_POSIX2 -# include -#endif - -#ifdef __USE_XOPEN -# include -#endif diff --git a/libktorrent/miniboost/linux/errno.h b/libktorrent/miniboost/linux/errno.h deleted file mode 100644 index 70f2bd34..00000000 --- a/libktorrent/miniboost/linux/errno.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/libktorrent/miniboost/linux/limits.h b/libktorrent/miniboost/linux/limits.h deleted file mode 100644 index 2d0f9416..00000000 --- a/libktorrent/miniboost/linux/limits.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef _LINUX_LIMITS_H -#define _LINUX_LIMITS_H - -#define NR_OPEN 1024 - -#define NGROUPS_MAX 65536 /* supplemental group IDs are available */ -#define ARG_MAX 131072 /* # bytes of args + environ for exec() */ -#define LINK_MAX 127 /* # links a file may have */ -#define MAX_CANON 255 /* size of the canonical input queue */ -#define MAX_INPUT 255 /* size of the type-ahead buffer */ -#define NAME_MAX 255 /* # chars in a file name */ -#define PATH_MAX 4096 /* # chars in a path name including nul */ -#define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */ -#define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */ -#define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */ -#define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */ - -#define RTSIG_MAX 32 - -#endif diff --git a/libktorrent/miniboost/pthread.h b/libktorrent/miniboost/pthread.h deleted file mode 100644 index 682a1ae5..00000000 --- a/libktorrent/miniboost/pthread.h +++ /dev/null @@ -1,1163 +0,0 @@ -/* Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _PTHREAD_H -#define _PTHREAD_H 1 - -#include -#include -#include -#include - -#include -#include -#include - - -/* Detach state. */ -enum -{ - PTHREAD_CREATE_JOINABLE, -#define PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_JOINABLE - PTHREAD_CREATE_DETACHED -#define PTHREAD_CREATE_DETACHED PTHREAD_CREATE_DETACHED -}; - - -/* Mutex types. */ -enum -{ - PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_ADAPTIVE_NP -#if defined __USE_UNIX98 || defined __USE_XOPEN2K8 - , - PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, - PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, - PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, - PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL -#endif -#ifdef __USE_GNU - /* For compatibility. */ - , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP -#endif -}; - - -#ifdef __USE_XOPEN2K -/* Robust mutex or not flags. */ -enum -{ - PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, - PTHREAD_MUTEX_ROBUST, - PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST -}; -#endif - - -#if defined __USE_POSIX199506 || defined __USE_UNIX98 -/* Mutex protocols. */ -enum -{ - PTHREAD_PRIO_NONE, - PTHREAD_PRIO_INHERIT, - PTHREAD_PRIO_PROTECT -}; -#endif - - -#ifdef __PTHREAD_MUTEX_HAVE_PREV -# define PTHREAD_MUTEX_INITIALIZER \ - { { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } } -# ifdef __USE_GNU -# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } -# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } } -# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } -# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } } - -# endif -#else -# define PTHREAD_MUTEX_INITIALIZER \ - { { 0, 0, 0, 0, 0, { __PTHREAD_SPINS } } } -# ifdef __USE_GNU -# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, { __PTHREAD_SPINS } } } -# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, 0, { __PTHREAD_SPINS } } } -# define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \ - { { 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, 0, { __PTHREAD_SPINS } } } - -# endif -#endif - - -/* Read-write lock types. */ -#if defined __USE_UNIX98 || defined __USE_XOPEN2K -enum -{ - PTHREAD_RWLOCK_PREFER_READER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NP, - PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, - PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP -}; - -/* Define __PTHREAD_RWLOCK_INT_FLAGS_SHARED to 1 if pthread_rwlock_t - has the shared field. All 64-bit architectures have the shared field - in pthread_rwlock_t. */ -#ifndef __PTHREAD_RWLOCK_INT_FLAGS_SHARED -# if __WORDSIZE == 64 -# define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1 -# endif -#endif - -/* Read-write lock initializers. */ -# define PTHREAD_RWLOCK_INITIALIZER \ - { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } } -# ifdef __USE_GNU -# ifdef __PTHREAD_RWLOCK_INT_FLAGS_SHARED -# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \ - { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, \ - PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } } -# else -# if __BYTE_ORDER == __LITTLE_ENDIAN -# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \ - { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, \ - 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } } -# else -# define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \ - { { 0, 0, 0, 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,\ - 0 } } -# endif -# endif -# endif -#endif /* Unix98 or XOpen2K */ - - -/* Scheduler inheritance. */ -enum -{ - PTHREAD_INHERIT_SCHED, -#define PTHREAD_INHERIT_SCHED PTHREAD_INHERIT_SCHED - PTHREAD_EXPLICIT_SCHED -#define PTHREAD_EXPLICIT_SCHED PTHREAD_EXPLICIT_SCHED -}; - - -/* Scope handling. */ -enum -{ - PTHREAD_SCOPE_SYSTEM, -#define PTHREAD_SCOPE_SYSTEM PTHREAD_SCOPE_SYSTEM - PTHREAD_SCOPE_PROCESS -#define PTHREAD_SCOPE_PROCESS PTHREAD_SCOPE_PROCESS -}; - - -/* Process shared or private flag. */ -enum -{ - PTHREAD_PROCESS_PRIVATE, -#define PTHREAD_PROCESS_PRIVATE PTHREAD_PROCESS_PRIVATE - PTHREAD_PROCESS_SHARED -#define PTHREAD_PROCESS_SHARED PTHREAD_PROCESS_SHARED -}; - - - -/* Conditional variable handling. */ -#define PTHREAD_COND_INITIALIZER { { 0, 0, 0, 0, 0, (void *) 0, 0, 0 } } - - -/* Cleanup buffers */ -struct _pthread_cleanup_buffer -{ - void (*__routine) (void *); /* Function to call. */ - void *__arg; /* Its argument. */ - int __canceltype; /* Saved cancellation type. */ - struct _pthread_cleanup_buffer *__prev; /* Chaining of cleanup functions. */ -}; - -/* Cancellation */ -enum -{ - PTHREAD_CANCEL_ENABLE, -#define PTHREAD_CANCEL_ENABLE PTHREAD_CANCEL_ENABLE - PTHREAD_CANCEL_DISABLE -#define PTHREAD_CANCEL_DISABLE PTHREAD_CANCEL_DISABLE -}; -enum -{ - PTHREAD_CANCEL_DEFERRED, -#define PTHREAD_CANCEL_DEFERRED PTHREAD_CANCEL_DEFERRED - PTHREAD_CANCEL_ASYNCHRONOUS -#define PTHREAD_CANCEL_ASYNCHRONOUS PTHREAD_CANCEL_ASYNCHRONOUS -}; -#define PTHREAD_CANCELED ((void *) -1) - - -/* Single execution handling. */ -#define PTHREAD_ONCE_INIT 0 - - -#ifdef __USE_XOPEN2K -/* Value returned by 'pthread_barrier_wait' for one of the threads after - the required number of threads have called this function. - -1 is distinct from 0 and all errno constants */ -# define PTHREAD_BARRIER_SERIAL_THREAD -1 -#endif - - -__BEGIN_DECLS - -/* Create a new thread, starting with execution of START-ROUTINE - getting passed ARG. Creation attributed come from ATTR. The new - handle is stored in *NEWTHREAD. */ -extern int pthread_create (pthread_t *__restrict __newthread, - const pthread_attr_t *__restrict __attr, - void *(*__start_routine) (void *), - void *__restrict __arg) __THROWNL __nonnull ((1, 3)); - -/* Terminate calling thread. - - The registered cleanup handlers are called via exception handling - so we cannot mark this function with __THROW.*/ -extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); - -/* Make calling thread wait for termination of the thread TH. The - exit status of the thread is stored in *THREAD_RETURN, if THREAD_RETURN - is not NULL. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pthread_join (pthread_t __th, void **__thread_return); - -#ifdef __USE_GNU -/* Check whether thread TH has terminated. If yes return the status of - the thread in *THREAD_RETURN, if THREAD_RETURN is not NULL. */ -extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) __THROW; - -/* Make calling thread wait for termination of the thread TH, but only - until TIMEOUT. The exit status of the thread is stored in - *THREAD_RETURN, if THREAD_RETURN is not NULL. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, - const struct timespec *__abstime); -#endif - -/* Indicate that the thread TH is never to be joined with PTHREAD_JOIN. - The resources of TH will therefore be freed immediately when it - terminates, instead of waiting for another thread to perform PTHREAD_JOIN - on it. */ -extern int pthread_detach (pthread_t __th) __THROW; - - -/* Obtain the identifier of the current thread. */ -extern pthread_t pthread_self (void) __THROW __attribute__ ((__const__)); - -/* Compare two thread identifiers. */ -extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) - __THROW __attribute__ ((__const__)); - - -/* Thread attribute handling. */ - -/* Initialize thread attribute *ATTR with default attributes - (detachstate is PTHREAD_JOINABLE, scheduling policy is SCHED_OTHER, - no user-provided stack). */ -extern int pthread_attr_init (pthread_attr_t *__attr) __THROW __nonnull ((1)); - -/* Destroy thread attribute *ATTR. */ -extern int pthread_attr_destroy (pthread_attr_t *__attr) - __THROW __nonnull ((1)); - -/* Get detach state attribute. */ -extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, - int *__detachstate) - __THROW __nonnull ((1, 2)); - -/* Set detach state attribute. */ -extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, - int __detachstate) - __THROW __nonnull ((1)); - - -/* Get the size of the guard area created for stack overflow protection. */ -extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, - size_t *__guardsize) - __THROW __nonnull ((1, 2)); - -/* Set the size of the guard area created for stack overflow protection. */ -extern int pthread_attr_setguardsize (pthread_attr_t *__attr, - size_t __guardsize) - __THROW __nonnull ((1)); - - -/* Return in *PARAM the scheduling parameters of *ATTR. */ -extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, - struct sched_param *__restrict __param) - __THROW __nonnull ((1, 2)); - -/* Set scheduling parameters (priority, etc) in *ATTR according to PARAM. */ -extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, - const struct sched_param *__restrict - __param) __THROW __nonnull ((1, 2)); - -/* Return in *POLICY the scheduling policy of *ATTR. */ -extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict - __attr, int *__restrict __policy) - __THROW __nonnull ((1, 2)); - -/* Set scheduling policy in *ATTR according to POLICY. */ -extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) - __THROW __nonnull ((1)); - -/* Return in *INHERIT the scheduling inheritance mode of *ATTR. */ -extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict - __attr, int *__restrict __inherit) - __THROW __nonnull ((1, 2)); - -/* Set scheduling inheritance mode in *ATTR according to INHERIT. */ -extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, - int __inherit) - __THROW __nonnull ((1)); - - -/* Return in *SCOPE the scheduling contention scope of *ATTR. */ -extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, - int *__restrict __scope) - __THROW __nonnull ((1, 2)); - -/* Set scheduling contention scope in *ATTR according to SCOPE. */ -extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) - __THROW __nonnull ((1)); - -/* Return the previously set address for the stack. */ -extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict - __attr, void **__restrict __stackaddr) - __THROW __nonnull ((1, 2)) __attribute_deprecated__; - -/* Set the starting address of the stack of the thread to be created. - Depending on whether the stack grows up or down the value must either - be higher or lower than all the address in the memory block. The - minimal size of the block must be PTHREAD_STACK_MIN. */ -extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, - void *__stackaddr) - __THROW __nonnull ((1)) __attribute_deprecated__; - -/* Return the currently used minimal stack size. */ -extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict - __attr, size_t *__restrict __stacksize) - __THROW __nonnull ((1, 2)); - -/* Add information about the minimum stack size needed for the thread - to be started. This size must never be less than PTHREAD_STACK_MIN - and must also not exceed the system limits. */ -extern int pthread_attr_setstacksize (pthread_attr_t *__attr, - size_t __stacksize) - __THROW __nonnull ((1)); - -#ifdef __USE_XOPEN2K -/* Return the previously set address for the stack. */ -extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, - void **__restrict __stackaddr, - size_t *__restrict __stacksize) - __THROW __nonnull ((1, 2, 3)); - -/* The following two interfaces are intended to replace the last two. They - require setting the address as well as the size since only setting the - address will make the implementation on some architectures impossible. */ -extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, - size_t __stacksize) __THROW __nonnull ((1)); -#endif - -#ifdef __USE_GNU -/* Thread created with attribute ATTR will be limited to run only on - the processors represented in CPUSET. */ -extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, - size_t __cpusetsize, - const cpu_set_t *__cpuset) - __THROW __nonnull ((1, 3)); - -/* Get bit set in CPUSET representing the processors threads created with - ATTR can run on. */ -extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, - size_t __cpusetsize, - cpu_set_t *__cpuset) - __THROW __nonnull ((1, 3)); - -/* Get the default attributes used by pthread_create in this process. */ -extern int pthread_getattr_default_np (pthread_attr_t *__attr) - __THROW __nonnull ((1)); - -/* Set the default attributes to be used by pthread_create in this - process. */ -extern int pthread_setattr_default_np (const pthread_attr_t *__attr) - __THROW __nonnull ((1)); - -/* Initialize thread attribute *ATTR with attributes corresponding to the - already running thread TH. It shall be called on uninitialized ATTR - and destroyed with pthread_attr_destroy when no longer needed. */ -extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) - __THROW __nonnull ((2)); -#endif - - -/* Functions for scheduling control. */ - -/* Set the scheduling parameters for TARGET_THREAD according to POLICY - and *PARAM. */ -extern int pthread_setschedparam (pthread_t __target_thread, int __policy, - const struct sched_param *__param) - __THROW __nonnull ((3)); - -/* Return in *POLICY and *PARAM the scheduling parameters for TARGET_THREAD. */ -extern int pthread_getschedparam (pthread_t __target_thread, - int *__restrict __policy, - struct sched_param *__restrict __param) - __THROW __nonnull ((2, 3)); - -/* Set the scheduling priority for TARGET_THREAD. */ -extern int pthread_setschedprio (pthread_t __target_thread, int __prio) - __THROW; - - -#ifdef __USE_GNU -/* Get thread name visible in the kernel and its interfaces. */ -extern int pthread_getname_np (pthread_t __target_thread, char *__buf, - size_t __buflen) - __THROW __nonnull ((2)); - -/* Set thread name visible in the kernel and its interfaces. */ -extern int pthread_setname_np (pthread_t __target_thread, const char *__name) - __THROW __nonnull ((2)); -#endif - - -#ifdef __USE_UNIX98 -/* Determine level of concurrency. */ -extern int pthread_getconcurrency (void) __THROW; - -/* Set new concurrency level to LEVEL. */ -extern int pthread_setconcurrency (int __level) __THROW; -#endif - -#ifdef __USE_GNU -/* Yield the processor to another thread or process. - This function is similar to the POSIX `sched_yield' function but - might be differently implemented in the case of a m-on-n thread - implementation. */ -extern int pthread_yield (void) __THROW; - - -/* Limit specified thread TH to run only on the processors represented - in CPUSET. */ -extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, - const cpu_set_t *__cpuset) - __THROW __nonnull ((3)); - -/* Get bit set in CPUSET representing the processors TH can run on. */ -extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, - cpu_set_t *__cpuset) - __THROW __nonnull ((3)); -#endif - - -/* Functions for handling initialization. */ - -/* Guarantee that the initialization function INIT_ROUTINE will be called - only once, even if pthread_once is executed several times with the - same ONCE_CONTROL argument. ONCE_CONTROL must point to a static or - extern variable initialized to PTHREAD_ONCE_INIT. - - The initialization functions might throw exception which is why - this function is not marked with __THROW. */ -extern int pthread_once (pthread_once_t *__once_control, - void (*__init_routine) (void)) __nonnull ((1, 2)); - - -/* Functions for handling cancellation. - - Note that these functions are explicitly not marked to not throw an - exception in C++ code. If cancellation is implemented by unwinding - this is necessary to have the compiler generate the unwind information. */ - -/* Set cancelability state of current thread to STATE, returning old - state in *OLDSTATE if OLDSTATE is not NULL. */ -extern int pthread_setcancelstate (int __state, int *__oldstate); - -/* Set cancellation state of current thread to TYPE, returning the old - type in *OLDTYPE if OLDTYPE is not NULL. */ -extern int pthread_setcanceltype (int __type, int *__oldtype); - -/* Cancel THREAD immediately or at the next possibility. */ -extern int pthread_cancel (pthread_t __th); - -/* Test for pending cancellation for the current thread and terminate - the thread as per pthread_exit(PTHREAD_CANCELED) if it has been - cancelled. */ -extern void pthread_testcancel (void); - - -/* Cancellation handling with integration into exception handling. */ - -typedef struct -{ - struct - { - __jmp_buf __cancel_jmp_buf; - int __mask_was_saved; - } __cancel_jmp_buf[1]; - void *__pad[4]; -} __pthread_unwind_buf_t __attribute__ ((__aligned__)); - -/* No special attributes by default. */ -#ifndef __cleanup_fct_attribute -# define __cleanup_fct_attribute -#endif - - -/* Structure to hold the cleanup handler information. */ -struct __pthread_cleanup_frame -{ - void (*__cancel_routine) (void *); - void *__cancel_arg; - int __do_it; - int __cancel_type; -}; - -#if defined __GNUC__ && defined __EXCEPTIONS -# ifdef __cplusplus -/* Class to handle cancellation handler invocation. */ -class __pthread_cleanup_class -{ - void (*__cancel_routine) (void *); - void *__cancel_arg; - int __do_it; - int __cancel_type; - - public: - __pthread_cleanup_class (void (*__fct) (void *), void *__arg) - : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } - ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } - void __setdoit (int __newval) { __do_it = __newval; } - void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, - &__cancel_type); } - void __restore () const { pthread_setcanceltype (__cancel_type, 0); } -}; - -/* Install a cleanup handler: ROUTINE will be called with arguments ARG - when the thread is canceled or calls pthread_exit. ROUTINE will also - be called with arguments ARG when the matching pthread_cleanup_pop - is executed with non-zero EXECUTE argument. - - pthread_cleanup_push and pthread_cleanup_pop are macros and must always - be used in matching pairs at the same nesting level of braces. */ -# define pthread_cleanup_push(routine, arg) \ - do { \ - __pthread_cleanup_class __clframe (routine, arg) - -/* Remove a cleanup handler installed by the matching pthread_cleanup_push. - If EXECUTE is non-zero, the handler function is called. */ -# define pthread_cleanup_pop(execute) \ - __clframe.__setdoit (execute); \ - } while (0) - -# ifdef __USE_GNU -/* Install a cleanup handler as pthread_cleanup_push does, but also - saves the current cancellation type and sets it to deferred - cancellation. */ -# define pthread_cleanup_push_defer_np(routine, arg) \ - do { \ - __pthread_cleanup_class __clframe (routine, arg); \ - __clframe.__defer () - -/* Remove a cleanup handler as pthread_cleanup_pop does, but also - restores the cancellation type that was in effect when the matching - pthread_cleanup_push_defer was called. */ -# define pthread_cleanup_pop_restore_np(execute) \ - __clframe.__restore (); \ - __clframe.__setdoit (execute); \ - } while (0) -# endif -# else -/* Function called to call the cleanup handler. As an extern inline - function the compiler is free to decide inlining the change when - needed or fall back on the copy which must exist somewhere - else. */ -__extern_inline void -__pthread_cleanup_routine (struct __pthread_cleanup_frame *__frame) -{ - if (__frame->__do_it) - __frame->__cancel_routine (__frame->__cancel_arg); -} - -/* Install a cleanup handler: ROUTINE will be called with arguments ARG - when the thread is canceled or calls pthread_exit. ROUTINE will also - be called with arguments ARG when the matching pthread_cleanup_pop - is executed with non-zero EXECUTE argument. - - pthread_cleanup_push and pthread_cleanup_pop are macros and must always - be used in matching pairs at the same nesting level of braces. */ -# define pthread_cleanup_push(routine, arg) \ - do { \ - struct __pthread_cleanup_frame __clframe \ - __attribute__ ((__cleanup__ (__pthread_cleanup_routine))) \ - = { .__cancel_routine = (routine), .__cancel_arg = (arg), \ - .__do_it = 1 }; - -/* Remove a cleanup handler installed by the matching pthread_cleanup_push. - If EXECUTE is non-zero, the handler function is called. */ -# define pthread_cleanup_pop(execute) \ - __clframe.__do_it = (execute); \ - } while (0) - -# ifdef __USE_GNU -/* Install a cleanup handler as pthread_cleanup_push does, but also - saves the current cancellation type and sets it to deferred - cancellation. */ -# define pthread_cleanup_push_defer_np(routine, arg) \ - do { \ - struct __pthread_cleanup_frame __clframe \ - __attribute__ ((__cleanup__ (__pthread_cleanup_routine))) \ - = { .__cancel_routine = (routine), .__cancel_arg = (arg), \ - .__do_it = 1 }; \ - (void) pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, \ - &__clframe.__cancel_type) - -/* Remove a cleanup handler as pthread_cleanup_pop does, but also - restores the cancellation type that was in effect when the matching - pthread_cleanup_push_defer was called. */ -# define pthread_cleanup_pop_restore_np(execute) \ - (void) pthread_setcanceltype (__clframe.__cancel_type, NULL); \ - __clframe.__do_it = (execute); \ - } while (0) -# endif -# endif -#else -/* Install a cleanup handler: ROUTINE will be called with arguments ARG - when the thread is canceled or calls pthread_exit. ROUTINE will also - be called with arguments ARG when the matching pthread_cleanup_pop - is executed with non-zero EXECUTE argument. - - pthread_cleanup_push and pthread_cleanup_pop are macros and must always - be used in matching pairs at the same nesting level of braces. */ -# define pthread_cleanup_push(routine, arg) \ - do { \ - __pthread_unwind_buf_t __cancel_buf; \ - void (*__cancel_routine) (void *) = (routine); \ - void *__cancel_arg = (arg); \ - int __not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) (void *) \ - __cancel_buf.__cancel_jmp_buf, 0); \ - if (__glibc_unlikely (__not_first_call)) \ - { \ - __cancel_routine (__cancel_arg); \ - __pthread_unwind_next (&__cancel_buf); \ - /* NOTREACHED */ \ - } \ - \ - __pthread_register_cancel (&__cancel_buf); \ - do { -extern void __pthread_register_cancel (__pthread_unwind_buf_t *__buf) - __cleanup_fct_attribute; - -/* Remove a cleanup handler installed by the matching pthread_cleanup_push. - If EXECUTE is non-zero, the handler function is called. */ -# define pthread_cleanup_pop(execute) \ - do { } while (0);/* Empty to allow label before pthread_cleanup_pop. */\ - } while (0); \ - __pthread_unregister_cancel (&__cancel_buf); \ - if (execute) \ - __cancel_routine (__cancel_arg); \ - } while (0) -extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf) - __cleanup_fct_attribute; - -# ifdef __USE_GNU -/* Install a cleanup handler as pthread_cleanup_push does, but also - saves the current cancellation type and sets it to deferred - cancellation. */ -# define pthread_cleanup_push_defer_np(routine, arg) \ - do { \ - __pthread_unwind_buf_t __cancel_buf; \ - void (*__cancel_routine) (void *) = (routine); \ - void *__cancel_arg = (arg); \ - int __not_first_call = __sigsetjmp ((struct __jmp_buf_tag *) (void *) \ - __cancel_buf.__cancel_jmp_buf, 0); \ - if (__glibc_unlikely (__not_first_call)) \ - { \ - __cancel_routine (__cancel_arg); \ - __pthread_unwind_next (&__cancel_buf); \ - /* NOTREACHED */ \ - } \ - \ - __pthread_register_cancel_defer (&__cancel_buf); \ - do { -extern void __pthread_register_cancel_defer (__pthread_unwind_buf_t *__buf) - __cleanup_fct_attribute; - -/* Remove a cleanup handler as pthread_cleanup_pop does, but also - restores the cancellation type that was in effect when the matching - pthread_cleanup_push_defer was called. */ -# define pthread_cleanup_pop_restore_np(execute) \ - do { } while (0);/* Empty to allow label before pthread_cleanup_pop. */\ - } while (0); \ - __pthread_unregister_cancel_restore (&__cancel_buf); \ - if (execute) \ - __cancel_routine (__cancel_arg); \ - } while (0) -extern void __pthread_unregister_cancel_restore (__pthread_unwind_buf_t *__buf) - __cleanup_fct_attribute; -# endif - -/* Internal interface to initiate cleanup. */ -extern void __pthread_unwind_next (__pthread_unwind_buf_t *__buf) - __cleanup_fct_attribute __attribute__ ((__noreturn__)) -# ifndef SHARED - __attribute__ ((__weak__)) -# endif - ; -#endif - -/* Function used in the macros. */ -struct __jmp_buf_tag; -extern int __sigsetjmp (struct __jmp_buf_tag *__env, int __savemask) __THROWNL; - - -/* Mutex handling. */ - -/* Initialize a mutex. */ -extern int pthread_mutex_init (pthread_mutex_t *__mutex, - const pthread_mutexattr_t *__mutexattr) - __THROW __nonnull ((1)); - -/* Destroy a mutex. */ -extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) - __THROW __nonnull ((1)); - -/* Try locking a mutex. */ -extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) - __THROWNL __nonnull ((1)); - -/* Lock a mutex. */ -extern int pthread_mutex_lock (pthread_mutex_t *__mutex) - __THROWNL __nonnull ((1)); - -#ifdef __USE_XOPEN2K -/* Wait until lock becomes available, or specified time passes. */ -extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, - const struct timespec *__restrict - __abstime) __THROWNL __nonnull ((1, 2)); -#endif - -/* Unlock a mutex. */ -extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) - __THROWNL __nonnull ((1)); - - -/* Get the priority ceiling of MUTEX. */ -extern int pthread_mutex_getprioceiling (const pthread_mutex_t * - __restrict __mutex, - int *__restrict __prioceiling) - __THROW __nonnull ((1, 2)); - -/* Set the priority ceiling of MUTEX to PRIOCEILING, return old - priority ceiling value in *OLD_CEILING. */ -extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, - int __prioceiling, - int *__restrict __old_ceiling) - __THROW __nonnull ((1, 3)); - - -#ifdef __USE_XOPEN2K8 -/* Declare the state protected by MUTEX as consistent. */ -extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) - __THROW __nonnull ((1)); -# ifdef __USE_GNU -extern int pthread_mutex_consistent_np (pthread_mutex_t *__mutex) - __THROW __nonnull ((1)); -# endif -#endif - - -/* Functions for handling mutex attributes. */ - -/* Initialize mutex attribute object ATTR with default attributes - (kind is PTHREAD_MUTEX_TIMED_NP). */ -extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) - __THROW __nonnull ((1)); - -/* Destroy mutex attribute object ATTR. */ -extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) - __THROW __nonnull ((1)); - -/* Get the process-shared flag of the mutex attribute ATTR. */ -extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * - __restrict __attr, - int *__restrict __pshared) - __THROW __nonnull ((1, 2)); - -/* Set the process-shared flag of the mutex attribute ATTR. */ -extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, - int __pshared) - __THROW __nonnull ((1)); - -#if defined __USE_UNIX98 || defined __USE_XOPEN2K8 -/* Return in *KIND the mutex kind attribute in *ATTR. */ -extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict - __attr, int *__restrict __kind) - __THROW __nonnull ((1, 2)); - -/* Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_NORMAL, - PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, or - PTHREAD_MUTEX_DEFAULT). */ -extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) - __THROW __nonnull ((1)); -#endif - -/* Return in *PROTOCOL the mutex protocol attribute in *ATTR. */ -extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * - __restrict __attr, - int *__restrict __protocol) - __THROW __nonnull ((1, 2)); - -/* Set the mutex protocol attribute in *ATTR to PROTOCOL (either - PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT, or PTHREAD_PRIO_PROTECT). */ -extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, - int __protocol) - __THROW __nonnull ((1)); - -/* Return in *PRIOCEILING the mutex prioceiling attribute in *ATTR. */ -extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * - __restrict __attr, - int *__restrict __prioceiling) - __THROW __nonnull ((1, 2)); - -/* Set the mutex prioceiling attribute in *ATTR to PRIOCEILING. */ -extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, - int __prioceiling) - __THROW __nonnull ((1)); - -#ifdef __USE_XOPEN2K -/* Get the robustness flag of the mutex attribute ATTR. */ -extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, - int *__robustness) - __THROW __nonnull ((1, 2)); -# ifdef __USE_GNU -extern int pthread_mutexattr_getrobust_np (const pthread_mutexattr_t *__attr, - int *__robustness) - __THROW __nonnull ((1, 2)); -# endif - -/* Set the robustness flag of the mutex attribute ATTR. */ -extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, - int __robustness) - __THROW __nonnull ((1)); -# ifdef __USE_GNU -extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *__attr, - int __robustness) - __THROW __nonnull ((1)); -# endif -#endif - - -#if defined __USE_UNIX98 || defined __USE_XOPEN2K -/* Functions for handling read-write locks. */ - -/* Initialize read-write lock RWLOCK using attributes ATTR, or use - the default values if later is NULL. */ -extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, - const pthread_rwlockattr_t *__restrict - __attr) __THROW __nonnull ((1)); - -/* Destroy read-write lock RWLOCK. */ -extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) - __THROW __nonnull ((1)); - -/* Acquire read lock for RWLOCK. */ -extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) - __THROWNL __nonnull ((1)); - -/* Try to acquire read lock for RWLOCK. */ -extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) - __THROWNL __nonnull ((1)); - -# ifdef __USE_XOPEN2K -/* Try to acquire read lock for RWLOCK or return after specfied time. */ -extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, - const struct timespec *__restrict - __abstime) __THROWNL __nonnull ((1, 2)); -# endif - -/* Acquire write lock for RWLOCK. */ -extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) - __THROWNL __nonnull ((1)); - -/* Try to acquire write lock for RWLOCK. */ -extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) - __THROWNL __nonnull ((1)); - -# ifdef __USE_XOPEN2K -/* Try to acquire write lock for RWLOCK or return after specfied time. */ -extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, - const struct timespec *__restrict - __abstime) __THROWNL __nonnull ((1, 2)); -# endif - -/* Unlock RWLOCK. */ -extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) - __THROWNL __nonnull ((1)); - - -/* Functions for handling read-write lock attributes. */ - -/* Initialize attribute object ATTR with default values. */ -extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) - __THROW __nonnull ((1)); - -/* Destroy attribute object ATTR. */ -extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) - __THROW __nonnull ((1)); - -/* Return current setting of process-shared attribute of ATTR in PSHARED. */ -extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * - __restrict __attr, - int *__restrict __pshared) - __THROW __nonnull ((1, 2)); - -/* Set process-shared attribute of ATTR to PSHARED. */ -extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, - int __pshared) - __THROW __nonnull ((1)); - -/* Return current setting of reader/writer preference. */ -extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * - __restrict __attr, - int *__restrict __pref) - __THROW __nonnull ((1, 2)); - -/* Set reader/write preference. */ -extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, - int __pref) __THROW __nonnull ((1)); -#endif - - -/* Functions for handling conditional variables. */ - -/* Initialize condition variable COND using attributes ATTR, or use - the default values if later is NULL. */ -extern int pthread_cond_init (pthread_cond_t *__restrict __cond, - const pthread_condattr_t *__restrict __cond_attr) - __THROW __nonnull ((1)); - -/* Destroy condition variable COND. */ -extern int pthread_cond_destroy (pthread_cond_t *__cond) - __THROW __nonnull ((1)); - -/* Wake up one thread waiting for condition variable COND. */ -extern int pthread_cond_signal (pthread_cond_t *__cond) - __THROWNL __nonnull ((1)); - -/* Wake up all threads waiting for condition variables COND. */ -extern int pthread_cond_broadcast (pthread_cond_t *__cond) - __THROWNL __nonnull ((1)); - -/* Wait for condition variable COND to be signaled or broadcast. - MUTEX is assumed to be locked before. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, - pthread_mutex_t *__restrict __mutex) - __nonnull ((1, 2)); - -/* Wait for condition variable COND to be signaled or broadcast until - ABSTIME. MUTEX is assumed to be locked before. ABSTIME is an - absolute time specification; zero is the beginning of the epoch - (00:00:00 GMT, January 1, 1970). - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, - pthread_mutex_t *__restrict __mutex, - const struct timespec *__restrict __abstime) - __nonnull ((1, 2, 3)); - -/* Functions for handling condition variable attributes. */ - -/* Initialize condition variable attribute ATTR. */ -extern int pthread_condattr_init (pthread_condattr_t *__attr) - __THROW __nonnull ((1)); - -/* Destroy condition variable attribute ATTR. */ -extern int pthread_condattr_destroy (pthread_condattr_t *__attr) - __THROW __nonnull ((1)); - -/* Get the process-shared flag of the condition variable attribute ATTR. */ -extern int pthread_condattr_getpshared (const pthread_condattr_t * - __restrict __attr, - int *__restrict __pshared) - __THROW __nonnull ((1, 2)); - -/* Set the process-shared flag of the condition variable attribute ATTR. */ -extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, - int __pshared) __THROW __nonnull ((1)); - -#ifdef __USE_XOPEN2K -/* Get the clock selected for the condition variable attribute ATTR. */ -extern int pthread_condattr_getclock (const pthread_condattr_t * - __restrict __attr, - __clockid_t *__restrict __clock_id) - __THROW __nonnull ((1, 2)); - -/* Set the clock selected for the condition variable attribute ATTR. */ -extern int pthread_condattr_setclock (pthread_condattr_t *__attr, - __clockid_t __clock_id) - __THROW __nonnull ((1)); -#endif - - -#ifdef __USE_XOPEN2K -/* Functions to handle spinlocks. */ - -/* Initialize the spinlock LOCK. If PSHARED is nonzero the spinlock can - be shared between different processes. */ -extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) - __THROW __nonnull ((1)); - -/* Destroy the spinlock LOCK. */ -extern int pthread_spin_destroy (pthread_spinlock_t *__lock) - __THROW __nonnull ((1)); - -/* Wait until spinlock LOCK is retrieved. */ -extern int pthread_spin_lock (pthread_spinlock_t *__lock) - __THROWNL __nonnull ((1)); - -/* Try to lock spinlock LOCK. */ -extern int pthread_spin_trylock (pthread_spinlock_t *__lock) - __THROWNL __nonnull ((1)); - -/* Release spinlock LOCK. */ -extern int pthread_spin_unlock (pthread_spinlock_t *__lock) - __THROWNL __nonnull ((1)); - - -/* Functions to handle barriers. */ - -/* Initialize BARRIER with the attributes in ATTR. The barrier is - opened when COUNT waiters arrived. */ -extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, - const pthread_barrierattr_t *__restrict - __attr, unsigned int __count) - __THROW __nonnull ((1)); - -/* Destroy a previously dynamically initialized barrier BARRIER. */ -extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) - __THROW __nonnull ((1)); - -/* Wait on barrier BARRIER. */ -extern int pthread_barrier_wait (pthread_barrier_t *__barrier) - __THROWNL __nonnull ((1)); - - -/* Initialize barrier attribute ATTR. */ -extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) - __THROW __nonnull ((1)); - -/* Destroy previously dynamically initialized barrier attribute ATTR. */ -extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) - __THROW __nonnull ((1)); - -/* Get the process-shared flag of the barrier attribute ATTR. */ -extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * - __restrict __attr, - int *__restrict __pshared) - __THROW __nonnull ((1, 2)); - -/* Set the process-shared flag of the barrier attribute ATTR. */ -extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, - int __pshared) - __THROW __nonnull ((1)); -#endif - - -/* Functions for handling thread-specific data. */ - -/* Create a key value identifying a location in the thread-specific - data area. Each thread maintains a distinct thread-specific data - area. DESTR_FUNCTION, if non-NULL, is called with the value - associated to that key when the key is destroyed. - DESTR_FUNCTION is not called if the value associated is NULL when - the key is destroyed. */ -extern int pthread_key_create (pthread_key_t *__key, - void (*__destr_function) (void *)) - __THROW __nonnull ((1)); - -/* Destroy KEY. */ -extern int pthread_key_delete (pthread_key_t __key) __THROW; - -/* Return current value of the thread-specific data slot identified by KEY. */ -extern void *pthread_getspecific (pthread_key_t __key) __THROW; - -/* Store POINTER in the thread-specific data slot identified by KEY. */ -extern int pthread_setspecific (pthread_key_t __key, - const void *__pointer) __THROW ; - - -#ifdef __USE_XOPEN2K -/* Get ID of CPU-time clock for thread THREAD_ID. */ -extern int pthread_getcpuclockid (pthread_t __thread_id, - __clockid_t *__clock_id) - __THROW __nonnull ((2)); -#endif - - -/* Install handlers to be called when a new process is created with FORK. - The PREPARE handler is called in the parent process just before performing - FORK. The PARENT handler is called in the parent process just after FORK. - The CHILD handler is called in the child process. Each of the three - handlers can be NULL, meaning that no handler needs to be called at that - point. - PTHREAD_ATFORK can be called several times, in which case the PREPARE - handlers are called in LIFO order (last added with PTHREAD_ATFORK, - first called before FORK), and the PARENT and CHILD handlers are called - in FIFO (first added, first called). */ - -extern int pthread_atfork (void (*__prepare) (void), - void (*__parent) (void), - void (*__child) (void)) __THROW; - - -#ifdef __USE_EXTERN_INLINES -/* Optimizations. */ -__extern_inline int -__NTH (pthread_equal (pthread_t __thread1, pthread_t __thread2)) -{ - return __thread1 == __thread2; -} -#endif - -__END_DECLS - -#endif /* pthread.h */ diff --git a/libktorrent/miniboost/sched.h b/libktorrent/miniboost/sched.h deleted file mode 100644 index 779109a2..00000000 --- a/libktorrent/miniboost/sched.h +++ /dev/null @@ -1,128 +0,0 @@ -/* Definitions for POSIX 1003.1b-1993 (aka POSIX.4) scheduling interface. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SCHED_H -#define _SCHED_H 1 - -#include - -/* Get type definitions. */ -#include - -#define __need_size_t -#include - -#ifdef __USE_XOPEN2K -# define __need_time_t -# define __need_timespec -#endif -#include - -#ifndef __pid_t_defined -typedef __pid_t pid_t; -# define __pid_t_defined -#endif - - -/* Get system specific constant and data structure definitions. */ -#include -/* Define the real names for the elements of `struct sched_param'. */ -#define sched_priority __sched_priority - - -__BEGIN_DECLS - -/* Set scheduling parameters for a process. */ -extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) - __THROW; - -/* Retrieve scheduling parameters for a particular process. */ -extern int sched_getparam (__pid_t __pid, struct sched_param *__param) __THROW; - -/* Set scheduling algorithm and/or parameters for a process. */ -extern int sched_setscheduler (__pid_t __pid, int __policy, - const struct sched_param *__param) __THROW; - -/* Retrieve scheduling algorithm for a particular purpose. */ -extern int sched_getscheduler (__pid_t __pid) __THROW; - -/* Yield the processor. */ -extern int sched_yield (void) __THROW; - -/* Get maximum priority value for a scheduler. */ -extern int sched_get_priority_max (int __algorithm) __THROW; - -/* Get minimum priority value for a scheduler. */ -extern int sched_get_priority_min (int __algorithm) __THROW; - -/* Get the SCHED_RR interval for the named process. */ -extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; - - -#ifdef __USE_GNU -/* Access macros for `cpu_set'. */ -# define CPU_SETSIZE __CPU_SETSIZE -# define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp) -# define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp) -# define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \ - cpusetp) -# define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) -# define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp) - -# define CPU_SET_S(cpu, setsize, cpusetp) __CPU_SET_S (cpu, setsize, cpusetp) -# define CPU_CLR_S(cpu, setsize, cpusetp) __CPU_CLR_S (cpu, setsize, cpusetp) -# define CPU_ISSET_S(cpu, setsize, cpusetp) __CPU_ISSET_S (cpu, setsize, \ - cpusetp) -# define CPU_ZERO_S(setsize, cpusetp) __CPU_ZERO_S (setsize, cpusetp) -# define CPU_COUNT_S(setsize, cpusetp) __CPU_COUNT_S (setsize, cpusetp) - -# define CPU_EQUAL(cpusetp1, cpusetp2) \ - __CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2) -# define CPU_EQUAL_S(setsize, cpusetp1, cpusetp2) \ - __CPU_EQUAL_S (setsize, cpusetp1, cpusetp2) - -# define CPU_AND(destset, srcset1, srcset2) \ - __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &) -# define CPU_OR(destset, srcset1, srcset2) \ - __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |) -# define CPU_XOR(destset, srcset1, srcset2) \ - __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^) -# define CPU_AND_S(setsize, destset, srcset1, srcset2) \ - __CPU_OP_S (setsize, destset, srcset1, srcset2, &) -# define CPU_OR_S(setsize, destset, srcset1, srcset2) \ - __CPU_OP_S (setsize, destset, srcset1, srcset2, |) -# define CPU_XOR_S(setsize, destset, srcset1, srcset2) \ - __CPU_OP_S (setsize, destset, srcset1, srcset2, ^) - -# define CPU_ALLOC_SIZE(count) __CPU_ALLOC_SIZE (count) -# define CPU_ALLOC(count) __CPU_ALLOC (count) -# define CPU_FREE(cpuset) __CPU_FREE (cpuset) - - -/* Set the CPU affinity for a task */ -extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, - const cpu_set_t *__cpuset) __THROW; - -/* Get the CPU affinity for a task */ -extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, - cpu_set_t *__cpuset) __THROW; -#endif - -__END_DECLS - -#endif /* sched.h */ diff --git a/libktorrent/miniboost/signal.h b/libktorrent/miniboost/signal.h deleted file mode 100644 index fe9fd784..00000000 --- a/libktorrent/miniboost/signal.h +++ /dev/null @@ -1,403 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.14 Signal handling - */ - -#ifndef _SIGNAL_H - -#if !defined __need_sig_atomic_t && !defined __need_sigset_t -# define _SIGNAL_H -#endif - -#include - -__BEGIN_DECLS - -#include /* __sigset_t, __sig_atomic_t. */ - -/* An integral type that can be modified atomically, without the - possibility of a signal arriving in the middle of the operation. */ -#if defined __need_sig_atomic_t || defined _SIGNAL_H -# ifndef __sig_atomic_t_defined -# define __sig_atomic_t_defined -__BEGIN_NAMESPACE_STD -typedef __sig_atomic_t sig_atomic_t; -__END_NAMESPACE_STD -# endif -# undef __need_sig_atomic_t -#endif - -#if defined __need_sigset_t || (defined _SIGNAL_H && defined __USE_POSIX) -# ifndef __sigset_t_defined -# define __sigset_t_defined -typedef __sigset_t sigset_t; -# endif -# undef __need_sigset_t -#endif - -#ifdef _SIGNAL_H - -#include -#include - -#if defined __USE_XOPEN || defined __USE_XOPEN2K -# ifndef __pid_t_defined -typedef __pid_t pid_t; -# define __pid_t_defined -#endif -#ifdef __USE_XOPEN -# endif -# ifndef __uid_t_defined -typedef __uid_t uid_t; -# define __uid_t_defined -# endif -#endif /* Unix98 */ - -#ifdef __USE_POSIX199309 -/* We need `struct timespec' later on. */ -# define __need_timespec -# include -#endif - -#if defined __USE_POSIX199309 || defined __USE_XOPEN_EXTENDED -/* Get the `siginfo_t' type plus the needed symbols. */ -# include -#endif - - -/* Type of a signal handler. */ -typedef void (*__sighandler_t) (int); - -/* The X/Open definition of `signal' specifies the SVID semantic. Use - the additional function `sysv_signal' when X/Open compatibility is - requested. */ -extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) - __THROW; -#ifdef __USE_GNU -extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) - __THROW; -#endif - -/* Set the handler for the signal SIG to HANDLER, returning the old - handler, or SIG_ERR on error. - By default `signal' has the BSD semantic. */ -__BEGIN_NAMESPACE_STD -#ifdef __USE_MISC -extern __sighandler_t signal (int __sig, __sighandler_t __handler) - __THROW; -#else -/* Make sure the used `signal' implementation is the SVID version. */ -# ifdef __REDIRECT_NTH -extern __sighandler_t __REDIRECT_NTH (signal, - (int __sig, __sighandler_t __handler), - __sysv_signal); -# else -# define signal __sysv_signal -# endif -#endif -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN -/* The X/Open definition of `signal' conflicts with the BSD version. - So they defined another function `bsd_signal'. */ -extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler) - __THROW; -#endif - -/* Send signal SIG to process number PID. If PID is zero, - send SIG to all processes in the current process's process group. - If PID is < -1, send SIG to all processes in process group - PID. */ -#ifdef __USE_POSIX -extern int kill (__pid_t __pid, int __sig) __THROW; -#endif /* Use POSIX. */ - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Send SIG to all processes in process group PGRP. - If PGRP is zero, send SIG to all processes in - the current process's process group. */ -extern int killpg (__pid_t __pgrp, int __sig) __THROW; -#endif /* Use misc || X/Open Unix. */ - -__BEGIN_NAMESPACE_STD -/* Raise signal SIG, i.e., send SIG to yourself. */ -extern int raise (int __sig) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* SVID names for the same things. */ -extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) - __THROW; -extern int gsignal (int __sig) __THROW; -#endif /* Use misc. */ - -#ifdef __USE_XOPEN2K -/* Print a message describing the meaning of the given signal number. */ -extern void psignal (int __sig, const char *__s); -#endif /* Use POSIX 2008. */ - -#ifdef __USE_XOPEN2K -/* Print a message describing the meaning of the given signal information. */ -extern void psiginfo (const siginfo_t *__pinfo, const char *__s); -#endif /* POSIX 2008. */ - - - -/* The `sigpause' function in X/Open defines the argument as the - signal number. This requires redirecting to another function - because the default version in glibc uses an old BSD interface. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int __sigpause (int __sig_or_mask, int __is_sig); - -#ifdef __USE_XOPEN -# ifdef __GNUC__ -extern int sigpause (int __sig) __asm__ ("__xpg_sigpause"); -# else -/* Remove a signal from the signal mask and suspend the process. */ -# define sigpause(sig) __sigpause ((sig), 1) -# endif -#endif - - -#ifdef __USE_MISC -/* None of the following functions should be used anymore. They are here - only for compatibility. A single word (`int') is not guaranteed to be - enough to hold a complete signal mask and therefore these functions - simply do not work in many situations. Use `sigprocmask' instead. */ - -/* Compute mask for signal SIG. */ -# define sigmask(sig) __sigmask(sig) - -/* Block signals in MASK, returning the old mask. */ -extern int sigblock (int __mask) __THROW __attribute_deprecated__; - -/* Set the mask of blocked signals to MASK, returning the old mask. */ -extern int sigsetmask (int __mask) __THROW __attribute_deprecated__; - -/* Return currently selected signal mask. */ -extern int siggetmask (void) __THROW __attribute_deprecated__; -#endif /* Use misc. */ - - -#ifdef __USE_MISC -# define NSIG _NSIG -#endif - -#ifdef __USE_GNU -typedef __sighandler_t sighandler_t; -#endif - -/* 4.4 BSD uses the name `sig_t' for this. */ -#ifdef __USE_MISC -typedef __sighandler_t sig_t; -#endif - -#ifdef __USE_POSIX - -/* Clear all signals from SET. */ -extern int sigemptyset (sigset_t *__set) __THROW __nonnull ((1)); - -/* Set all signals in SET. */ -extern int sigfillset (sigset_t *__set) __THROW __nonnull ((1)); - -/* Add SIGNO to SET. */ -extern int sigaddset (sigset_t *__set, int __signo) __THROW __nonnull ((1)); - -/* Remove SIGNO from SET. */ -extern int sigdelset (sigset_t *__set, int __signo) __THROW __nonnull ((1)); - -/* Return 1 if SIGNO is in SET, 0 if not. */ -extern int sigismember (const sigset_t *__set, int __signo) - __THROW __nonnull ((1)); - -# ifdef __USE_GNU -/* Return non-empty value is SET is not empty. */ -extern int sigisemptyset (const sigset_t *__set) __THROW __nonnull ((1)); - -/* Build new signal set by combining the two inputs set using logical AND. */ -extern int sigandset (sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) __THROW __nonnull ((1, 2, 3)); - -/* Build new signal set by combining the two inputs set using logical OR. */ -extern int sigorset (sigset_t *__set, const sigset_t *__left, - const sigset_t *__right) __THROW __nonnull ((1, 2, 3)); -# endif /* GNU */ - -/* Get the system-specific definitions of `struct sigaction' - and the `SA_*' and `SIG_*'. constants. */ -# include - -/* Get and/or change the set of blocked signals. */ -extern int sigprocmask (int __how, const sigset_t *__restrict __set, - sigset_t *__restrict __oset) __THROW; - -/* Change the set of blocked signals to SET, - wait until a signal arrives, and restore the set of blocked signals. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int sigsuspend (const sigset_t *__set) __nonnull ((1)); - -/* Get and/or set the action for signal SIG. */ -extern int sigaction (int __sig, const struct sigaction *__restrict __act, - struct sigaction *__restrict __oact) __THROW; - -/* Put in SET all signals that are blocked and waiting to be delivered. */ -extern int sigpending (sigset_t *__set) __THROW __nonnull ((1)); - - -/* Select any of pending signals from SET or wait for any to arrive. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig) - __nonnull ((1, 2)); - -# ifdef __USE_POSIX199309 -/* Select any of pending signals from SET and place information in INFO. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int sigwaitinfo (const sigset_t *__restrict __set, - siginfo_t *__restrict __info) __nonnull ((1)); - -/* Select any of pending signals from SET and place information in INFO. - Wait the time specified by TIMEOUT if no signal is pending. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int sigtimedwait (const sigset_t *__restrict __set, - siginfo_t *__restrict __info, - const struct timespec *__restrict __timeout) - __nonnull ((1)); - -/* Send signal SIG to the process PID. Associate data in VAL with the - signal. */ -extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val) - __THROW; -# endif /* Use POSIX 199306. */ - -#endif /* Use POSIX. */ - -#ifdef __USE_MISC - -/* Names of the signals. This variable exists only for compatibility. - Use `strsignal' instead (see ). */ -extern const char *const _sys_siglist[_NSIG]; -extern const char *const sys_siglist[_NSIG]; - -/* Structure passed to `sigvec'. */ -struct sigvec - { - __sighandler_t sv_handler; /* Signal handler. */ - int sv_mask; /* Mask of signals to be blocked. */ - - int sv_flags; /* Flags (see below). */ -# define sv_onstack sv_flags /* 4.2 BSD compatibility. */ - }; - -/* Bits in `sv_flags'. */ -# define SV_ONSTACK (1 << 0)/* Take the signal on the signal stack. */ -# define SV_INTERRUPT (1 << 1)/* Do not restart system calls. */ -# define SV_RESETHAND (1 << 2)/* Reset handler to SIG_DFL on receipt. */ - - -/* If VEC is non-NULL, set the handler for SIG to the `sv_handler' member - of VEC. The signals in `sv_mask' will be blocked while the handler runs. - If the SV_RESETHAND bit is set in `sv_flags', the handler for SIG will be - reset to SIG_DFL before `sv_handler' is entered. If OVEC is non-NULL, - it is filled in with the old information for SIG. */ -extern int sigvec (int __sig, const struct sigvec *__vec, - struct sigvec *__ovec) __THROW; - - -/* Get machine-dependent `struct sigcontext' and signal subcodes. */ -# include - -/* Restore the state saved in SCP. */ -extern int sigreturn (struct sigcontext *__scp) __THROW; - -#endif /* Use misc. */ - - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -# define __need_size_t -# include - -/* If INTERRUPT is nonzero, make signal SIG interrupt system calls - (causing them to fail with EINTR); if INTERRUPT is zero, make system - calls be restarted after signal SIG. */ -extern int siginterrupt (int __sig, int __interrupt) __THROW; - -# include -# if defined __USE_XOPEN || defined __USE_XOPEN2K8 -/* This will define `ucontext_t' and `mcontext_t'. */ -# include -# endif - -/* Run signals handlers on the stack specified by SS (if not NULL). - If OSS is not NULL, it is filled in with the old signal stack status. - This interface is obsolete and on many platform not implemented. */ -extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) - __THROW __attribute_deprecated__; - -/* Alternate signal handler stack interface. - This interface should always be preferred over `sigstack'. */ -extern int sigaltstack (const struct sigaltstack *__restrict __ss, - struct sigaltstack *__restrict __oss) __THROW; - -#endif /* Use POSIX.1-2008 or X/Open Unix. */ - -#ifdef __USE_XOPEN_EXTENDED -/* Simplified interface for signal management. */ - -/* Add SIG to the calling process' signal mask. */ -extern int sighold (int __sig) __THROW; - -/* Remove SIG from the calling process' signal mask. */ -extern int sigrelse (int __sig) __THROW; - -/* Set the disposition of SIG to SIG_IGN. */ -extern int sigignore (int __sig) __THROW; - -/* Set the disposition of SIG. */ -extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW; -#endif - -#if defined __USE_POSIX199506 || defined __USE_UNIX98 -/* Some of the functions for handling signals in threaded programs must - be defined here. */ -# include -# include -#endif /* use Unix98 */ - -/* The following functions are used internally in the C library and in - other code which need deep insights. */ - -/* Return number of available real-time signal with highest priority. */ -extern int __libc_current_sigrtmin (void) __THROW; -/* Return number of available real-time signal with lowest priority. */ -extern int __libc_current_sigrtmax (void) __THROW; - -#endif /* signal.h */ - -__END_DECLS - -#endif /* not signal.h */ diff --git a/libktorrent/miniboost/stdc-predef.h b/libktorrent/miniboost/stdc-predef.h deleted file mode 100644 index 87e36665..00000000 --- a/libktorrent/miniboost/stdc-predef.h +++ /dev/null @@ -1,59 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _STDC_PREDEF_H -#define _STDC_PREDEF_H 1 - -/* This header is separate from features.h so that the compiler can - include it implicitly at the start of every compilation. It must - not itself include or any other header that includes - because the implicit include comes before any feature - test macros that may be defined in a source file before it first - explicitly includes a system header. GCC knows the name of this - header in order to preinclude it. */ - -/* glibc's intent is to support the IEC 559 math functionality, real - and complex. If the GCC (4.9 and later) predefined macros - specifying compiler intent are available, use them to determine - whether the overall intent is to support these features; otherwise, - presume an older compiler has intent to support these features and - define these macros by default. */ - -#ifdef __GCC_IEC_559 -# if __GCC_IEC_559 > 0 -# define __STDC_IEC_559__ 1 -# endif -#else -# define __STDC_IEC_559__ 1 -#endif - -#ifdef __GCC_IEC_559_COMPLEX -# if __GCC_IEC_559_COMPLEX > 0 -# define __STDC_IEC_559_COMPLEX__ 1 -# endif -#else -# define __STDC_IEC_559_COMPLEX__ 1 -#endif - -/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) / - Unicode 6.0. */ -#define __STDC_ISO_10646__ 201103L - -/* We do not support C11 . */ -#define __STDC_NO_THREADS__ 1 - -#endif diff --git a/libktorrent/miniboost/stdio.h b/libktorrent/miniboost/stdio.h deleted file mode 100644 index d8c0bdba..00000000 --- a/libktorrent/miniboost/stdio.h +++ /dev/null @@ -1,946 +0,0 @@ -/* Define ISO C stdio on top of C++ iostreams. - Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.19 Input/output - */ - -#ifndef _STDIO_H - -#if !defined __need_FILE && !defined __need___FILE -# define _STDIO_H 1 -# include - -__BEGIN_DECLS - -# define __need_size_t -# define __need_NULL -# include - -# include -# define __need_FILE -# define __need___FILE -#endif /* Don't need FILE. */ - - -#if !defined __FILE_defined && defined __need_FILE - -/* Define outside of namespace so the C++ is happy. */ -struct _IO_FILE; - -__BEGIN_NAMESPACE_STD -/* The opaque type of streams. This is the definition used elsewhere. */ -typedef struct _IO_FILE FILE; -__END_NAMESPACE_STD -#if defined __USE_LARGEFILE64 || defined __USE_POSIX \ - || defined __USE_ISOC99 || defined __USE_XOPEN \ - || defined __USE_POSIX2 -__USING_NAMESPACE_STD(FILE) -#endif - -# define __FILE_defined 1 -#endif /* FILE not defined. */ -#undef __need_FILE - - -#if !defined ____FILE_defined && defined __need___FILE - -/* The opaque type of streams. This is the definition used elsewhere. */ -typedef struct _IO_FILE __FILE; - -# define ____FILE_defined 1 -#endif /* __FILE not defined. */ -#undef __need___FILE - - -#ifdef _STDIO_H -#define _STDIO_USES_IOSTREAM - -#include - -#if defined __USE_XOPEN || defined __USE_XOPEN2K8 -# ifdef __GNUC__ -# ifndef _VA_LIST_DEFINED -typedef _G_va_list va_list; -# define _VA_LIST_DEFINED -# endif -# else -# include -# endif -#endif - -#ifdef __USE_XOPEN2K8 -# ifndef __off_t_defined -# ifndef __USE_FILE_OFFSET64 -typedef __off_t off_t; -# else -typedef __off64_t off_t; -# endif -# define __off_t_defined -# endif -# if defined __USE_LARGEFILE64 && !defined __off64_t_defined -typedef __off64_t off64_t; -# define __off64_t_defined -# endif - -# ifndef __ssize_t_defined -typedef __ssize_t ssize_t; -# define __ssize_t_defined -# endif -#endif - -/* The type of the second argument to `fgetpos' and `fsetpos'. */ -__BEGIN_NAMESPACE_STD -#ifndef __USE_FILE_OFFSET64 -typedef _G_fpos_t fpos_t; -#else -typedef _G_fpos64_t fpos_t; -#endif -__END_NAMESPACE_STD -#ifdef __USE_LARGEFILE64 -typedef _G_fpos64_t fpos64_t; -#endif - -/* The possibilities for the third argument to `setvbuf'. */ -#define _IOFBF 0 /* Fully buffered. */ -#define _IOLBF 1 /* Line buffered. */ -#define _IONBF 2 /* No buffering. */ - - -/* Default buffer size. */ -#ifndef BUFSIZ -# define BUFSIZ _IO_BUFSIZ -#endif - - -/* End of file character. - Some things throughout the library rely on this being -1. */ -#ifndef EOF -# define EOF (-1) -#endif - - -/* The possibilities for the third argument to `fseek'. - These values should not be changed. */ -#define SEEK_SET 0 /* Seek from beginning of file. */ -#define SEEK_CUR 1 /* Seek from current position. */ -#define SEEK_END 2 /* Seek from end of file. */ -#ifdef __USE_GNU -# define SEEK_DATA 3 /* Seek to next data. */ -# define SEEK_HOLE 4 /* Seek to next hole. */ -#endif - - -#if defined __USE_MISC || defined __USE_XOPEN -/* Default path prefix for `tempnam' and `tmpnam'. */ -# define P_tmpdir "/tmp" -#endif - - -/* Get the values: - L_tmpnam How long an array of chars must be to be passed to `tmpnam'. - TMP_MAX The minimum number of unique filenames generated by tmpnam - (and tempnam when it uses tmpnam's name space), - or tempnam (the two are separate). - L_ctermid How long an array to pass to `ctermid'. - L_cuserid How long an array to pass to `cuserid'. - FOPEN_MAX Minimum number of files that can be open at once. - FILENAME_MAX Maximum length of a filename. */ -#include - - -/* Standard streams. */ -extern struct _IO_FILE *stdin; /* Standard input stream. */ -extern struct _IO_FILE *stdout; /* Standard output stream. */ -extern struct _IO_FILE *stderr; /* Standard error output stream. */ -/* C89/C99 say they're macros. Make them happy. */ -#define stdin stdin -#define stdout stdout -#define stderr stderr - -__BEGIN_NAMESPACE_STD -/* Remove file FILENAME. */ -extern int remove (const char *__filename) __THROW; -/* Rename file OLD to NEW. */ -extern int rename (const char *__old, const char *__new) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_ATFILE -/* Rename file OLD relative to OLDFD to NEW relative to NEWFD. */ -extern int renameat (int __oldfd, const char *__old, int __newfd, - const char *__new) __THROW; -#endif - -__BEGIN_NAMESPACE_STD -/* Create a temporary file and open it read/write. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -#ifndef __USE_FILE_OFFSET64 -extern FILE *tmpfile (void) __wur; -#else -# ifdef __REDIRECT -extern FILE *__REDIRECT (tmpfile, (void), tmpfile64) __wur; -# else -# define tmpfile tmpfile64 -# endif -#endif - -#ifdef __USE_LARGEFILE64 -extern FILE *tmpfile64 (void) __wur; -#endif - -/* Generate a temporary filename. */ -extern char *tmpnam (char *__s) __THROW __wur; -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* This is the reentrant variant of `tmpnam'. The only difference is - that it does not allow S to be NULL. */ -extern char *tmpnam_r (char *__s) __THROW __wur; -#endif - - -#if defined __USE_MISC || defined __USE_XOPEN -/* Generate a unique temporary filename using up to five characters of PFX - if it is not NULL. The directory to put this file in is searched for - as follows: First the environment variable "TMPDIR" is checked. - If it contains the name of a writable directory, that directory is used. - If not and if DIR is not NULL, that value is checked. If that fails, - P_tmpdir is tried and finally "/tmp". The storage for the filename - is allocated by `malloc'. */ -extern char *tempnam (const char *__dir, const char *__pfx) - __THROW __attribute_malloc__ __wur; -#endif - - -__BEGIN_NAMESPACE_STD -/* Close STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fclose (FILE *__stream); -/* Flush STREAM, or all streams if STREAM is NULL. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fflush (FILE *__stream); -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* Faster versions when locking is not required. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fflush_unlocked (FILE *__stream); -#endif - -#ifdef __USE_GNU -/* Close all streams. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fcloseall (void); -#endif - - -__BEGIN_NAMESPACE_STD -#ifndef __USE_FILE_OFFSET64 -/* Open a file and create a new stream for it. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern FILE *fopen (const char *__restrict __filename, - const char *__restrict __modes) __wur; -/* Open a file, replacing an existing stream with it. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern FILE *freopen (const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) __wur; -#else -# ifdef __REDIRECT -extern FILE *__REDIRECT (fopen, (const char *__restrict __filename, - const char *__restrict __modes), fopen64) - __wur; -extern FILE *__REDIRECT (freopen, (const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream), freopen64) - __wur; -# else -# define fopen fopen64 -# define freopen freopen64 -# endif -#endif -__END_NAMESPACE_STD -#ifdef __USE_LARGEFILE64 -extern FILE *fopen64 (const char *__restrict __filename, - const char *__restrict __modes) __wur; -extern FILE *freopen64 (const char *__restrict __filename, - const char *__restrict __modes, - FILE *__restrict __stream) __wur; -#endif - -#ifdef __USE_POSIX -/* Create a new stream that refers to an existing system file descriptor. */ -extern FILE *fdopen (int __fd, const char *__modes) __THROW __wur; -#endif - -#ifdef __USE_GNU -/* Create a new stream that refers to the given magic cookie, - and uses the given functions for input and output. */ -extern FILE *fopencookie (void *__restrict __magic_cookie, - const char *__restrict __modes, - _IO_cookie_io_functions_t __io_funcs) __THROW __wur; -#endif - -#ifdef __USE_XOPEN2K8 -/* Create a new stream that refers to a memory buffer. */ -extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) - __THROW __wur; - -/* Open a stream that writes into a malloc'd buffer that is expanded as - necessary. *BUFLOC and *SIZELOC are updated with the buffer's location - and the number of characters written on fflush or fclose. */ -extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) __THROW __wur; -#endif - - -__BEGIN_NAMESPACE_STD -/* If BUF is NULL, make STREAM unbuffered. - Else make it use buffer BUF, of size BUFSIZ. */ -extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW; -/* Make STREAM use buffering mode MODE. - If BUF is not NULL, use N bytes of it for buffering; - else allocate an internal buffer N bytes long. */ -extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, - int __modes, size_t __n) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* If BUF is NULL, make STREAM unbuffered. - Else make it use SIZE bytes of BUF for buffering. */ -extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, - size_t __size) __THROW; - -/* Make STREAM line-buffered. */ -extern void setlinebuf (FILE *__stream) __THROW; -#endif - - -__BEGIN_NAMESPACE_STD -/* Write formatted output to STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fprintf (FILE *__restrict __stream, - const char *__restrict __format, ...); -/* Write formatted output to stdout. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int printf (const char *__restrict __format, ...); -/* Write formatted output to S. */ -extern int sprintf (char *__restrict __s, - const char *__restrict __format, ...) __THROWNL; - -/* Write formatted output to S from argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, - _G_va_list __arg); -/* Write formatted output to stdout from argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vprintf (const char *__restrict __format, _G_va_list __arg); -/* Write formatted output to S from argument list ARG. */ -extern int vsprintf (char *__restrict __s, const char *__restrict __format, - _G_va_list __arg) __THROWNL; -__END_NAMESPACE_STD - -#if defined __USE_ISOC99 || defined __USE_UNIX98 -__BEGIN_NAMESPACE_C99 -/* Maximum chars of output to write in MAXLEN. */ -extern int snprintf (char *__restrict __s, size_t __maxlen, - const char *__restrict __format, ...) - __THROWNL __attribute__ ((__format__ (__printf__, 3, 4))); - -extern int vsnprintf (char *__restrict __s, size_t __maxlen, - const char *__restrict __format, _G_va_list __arg) - __THROWNL __attribute__ ((__format__ (__printf__, 3, 0))); -__END_NAMESPACE_C99 -#endif - -#ifdef __USE_GNU -/* Write formatted output to a string dynamically allocated with `malloc'. - Store the address of the string in *PTR. */ -extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, - _G_va_list __arg) - __THROWNL __attribute__ ((__format__ (__printf__, 2, 0))) __wur; -extern int __asprintf (char **__restrict __ptr, - const char *__restrict __fmt, ...) - __THROWNL __attribute__ ((__format__ (__printf__, 2, 3))) __wur; -extern int asprintf (char **__restrict __ptr, - const char *__restrict __fmt, ...) - __THROWNL __attribute__ ((__format__ (__printf__, 2, 3))) __wur; -#endif - -#ifdef __USE_XOPEN2K8 -/* Write formatted output to a file descriptor. */ -extern int vdprintf (int __fd, const char *__restrict __fmt, - _G_va_list __arg) - __attribute__ ((__format__ (__printf__, 2, 0))); -extern int dprintf (int __fd, const char *__restrict __fmt, ...) - __attribute__ ((__format__ (__printf__, 2, 3))); -#endif - - -__BEGIN_NAMESPACE_STD -/* Read formatted input from STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fscanf (FILE *__restrict __stream, - const char *__restrict __format, ...) __wur; -/* Read formatted input from stdin. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int scanf (const char *__restrict __format, ...) __wur; -/* Read formatted input from S. */ -extern int sscanf (const char *__restrict __s, - const char *__restrict __format, ...) __THROW; - -#if defined __USE_ISOC99 && !defined __USE_GNU \ - && (!defined __LDBL_COMPAT || !defined __REDIRECT) \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -# ifdef __REDIRECT -/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[ - GNU extension which conflicts with valid %a followed by letter - s, S or [. */ -extern int __REDIRECT (fscanf, (FILE *__restrict __stream, - const char *__restrict __format, ...), - __isoc99_fscanf) __wur; -extern int __REDIRECT (scanf, (const char *__restrict __format, ...), - __isoc99_scanf) __wur; -extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, - const char *__restrict __format, ...), - __isoc99_sscanf); -# else -extern int __isoc99_fscanf (FILE *__restrict __stream, - const char *__restrict __format, ...) __wur; -extern int __isoc99_scanf (const char *__restrict __format, ...) __wur; -extern int __isoc99_sscanf (const char *__restrict __s, - const char *__restrict __format, ...) __THROW; -# define fscanf __isoc99_fscanf -# define scanf __isoc99_scanf -# define sscanf __isoc99_sscanf -# endif -#endif - -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Read formatted input from S into argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, - _G_va_list __arg) - __attribute__ ((__format__ (__scanf__, 2, 0))) __wur; - -/* Read formatted input from stdin into argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vscanf (const char *__restrict __format, _G_va_list __arg) - __attribute__ ((__format__ (__scanf__, 1, 0))) __wur; - -/* Read formatted input from S into argument list ARG. */ -extern int vsscanf (const char *__restrict __s, - const char *__restrict __format, _G_va_list __arg) - __THROW __attribute__ ((__format__ (__scanf__, 2, 0))); - -# if !defined __USE_GNU \ - && (!defined __LDBL_COMPAT || !defined __REDIRECT) \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -# ifdef __REDIRECT -/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[ - GNU extension which conflicts with valid %a followed by letter - s, S or [. */ -extern int __REDIRECT (vfscanf, - (FILE *__restrict __s, - const char *__restrict __format, _G_va_list __arg), - __isoc99_vfscanf) - __attribute__ ((__format__ (__scanf__, 2, 0))) __wur; -extern int __REDIRECT (vscanf, (const char *__restrict __format, - _G_va_list __arg), __isoc99_vscanf) - __attribute__ ((__format__ (__scanf__, 1, 0))) __wur; -extern int __REDIRECT_NTH (vsscanf, - (const char *__restrict __s, - const char *__restrict __format, - _G_va_list __arg), __isoc99_vsscanf) - __attribute__ ((__format__ (__scanf__, 2, 0))); -# else -extern int __isoc99_vfscanf (FILE *__restrict __s, - const char *__restrict __format, - _G_va_list __arg) __wur; -extern int __isoc99_vscanf (const char *__restrict __format, - _G_va_list __arg) __wur; -extern int __isoc99_vsscanf (const char *__restrict __s, - const char *__restrict __format, - _G_va_list __arg) __THROW; -# define vfscanf __isoc99_vfscanf -# define vscanf __isoc99_vscanf -# define vsscanf __isoc99_vsscanf -# endif -# endif - -__END_NAMESPACE_C99 -#endif /* Use ISO C9x. */ - - -__BEGIN_NAMESPACE_STD -/* Read a character from STREAM. - - These functions are possible cancellation points and therefore not - marked with __THROW. */ -extern int fgetc (FILE *__stream); -extern int getc (FILE *__stream); - -/* Read a character from stdin. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int getchar (void); -__END_NAMESPACE_STD - -/* The C standard explicitly says this is a macro, so we always do the - optimization for it. */ -#define getc(_fp) _IO_getc (_fp) - -#ifdef __USE_POSIX -/* These are defined in POSIX.1:1996. - - These functions are possible cancellation points and therefore not - marked with __THROW. */ -extern int getc_unlocked (FILE *__stream); -extern int getchar_unlocked (void); -#endif /* Use POSIX. */ - -#ifdef __USE_MISC -/* Faster version when locking is not necessary. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fgetc_unlocked (FILE *__stream); -#endif /* Use MISC. */ - - -__BEGIN_NAMESPACE_STD -/* Write a character to STREAM. - - These functions are possible cancellation points and therefore not - marked with __THROW. - - These functions is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fputc (int __c, FILE *__stream); -extern int putc (int __c, FILE *__stream); - -/* Write a character to stdout. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int putchar (int __c); -__END_NAMESPACE_STD - -/* The C standard explicitly says this can be a macro, - so we always do the optimization for it. */ -#define putc(_ch, _fp) _IO_putc (_ch, _fp) - -#ifdef __USE_MISC -/* Faster version when locking is not necessary. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fputc_unlocked (int __c, FILE *__stream); -#endif /* Use MISC. */ - -#ifdef __USE_POSIX -/* These are defined in POSIX.1:1996. - - These functions are possible cancellation points and therefore not - marked with __THROW. */ -extern int putc_unlocked (int __c, FILE *__stream); -extern int putchar_unlocked (int __c); -#endif /* Use POSIX. */ - - -#if defined __USE_MISC \ - || (defined __USE_XOPEN && !defined __USE_XOPEN2K) -/* Get a word (int) from STREAM. */ -extern int getw (FILE *__stream); - -/* Write a word (int) to STREAM. */ -extern int putw (int __w, FILE *__stream); -#endif - - -__BEGIN_NAMESPACE_STD -/* Get a newline-terminated string of finite length from STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) - __wur; - -#if !defined __USE_ISOC11 \ - || (defined __cplusplus && __cplusplus <= 201103L) -/* Get a newline-terminated string from stdin, removing the newline. - DO NOT USE THIS FUNCTION!! There is no limit on how much it will read. - - The function has been officially removed in ISO C11. This opportunity - is used to also remove it from the GNU feature list. It is now only - available when explicitly using an old ISO C, Unix, or POSIX standard. - GCC defines _GNU_SOURCE when building C++ code and the function is still - in C++11, so it is also available for C++. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern char *gets (char *__s) __wur __attribute_deprecated__; -#endif -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* This function does the same as `fgets' but does not lock the stream. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern char *fgets_unlocked (char *__restrict __s, int __n, - FILE *__restrict __stream) __wur; -#endif - - -#ifdef __USE_XOPEN2K8 -/* Read up to (and including) a DELIMITER from STREAM into *LINEPTR - (and null-terminate it). *LINEPTR is a pointer returned from malloc (or - NULL), pointing to *N characters of space. It is realloc'd as - necessary. Returns the number of characters read (not including the - null terminator), or -1 on error or EOF. - - These functions are not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation they are cancellation points and - therefore not marked with __THROW. */ -extern _IO_ssize_t __getdelim (char **__restrict __lineptr, - size_t *__restrict __n, int __delimiter, - FILE *__restrict __stream) __wur; -extern _IO_ssize_t getdelim (char **__restrict __lineptr, - size_t *__restrict __n, int __delimiter, - FILE *__restrict __stream) __wur; - -/* Like `getdelim', but reads up to a newline. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern _IO_ssize_t getline (char **__restrict __lineptr, - size_t *__restrict __n, - FILE *__restrict __stream) __wur; -#endif - - -__BEGIN_NAMESPACE_STD -/* Write a string to STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fputs (const char *__restrict __s, FILE *__restrict __stream); - -/* Write a string, followed by a newline, to stdout. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int puts (const char *__s); - - -/* Push a character back onto the input buffer of STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int ungetc (int __c, FILE *__stream); - - -/* Read chunks of generic data from STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern size_t fread (void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream) __wur; -/* Write chunks of generic data to STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern size_t fwrite (const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __s); -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* This function does the same as `fputs' but does not lock the stream. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fputs_unlocked (const char *__restrict __s, - FILE *__restrict __stream); -#endif - -#ifdef __USE_MISC -/* Faster versions when locking is not necessary. - - These functions are not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation they are cancellation points and - therefore not marked with __THROW. */ -extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream) __wur; -extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, - size_t __n, FILE *__restrict __stream); -#endif - - -__BEGIN_NAMESPACE_STD -/* Seek to a certain position on STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fseek (FILE *__stream, long int __off, int __whence); -/* Return the current position of STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern long int ftell (FILE *__stream) __wur; -/* Rewind to the beginning of STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern void rewind (FILE *__stream); -__END_NAMESPACE_STD - -/* The Single Unix Specification, Version 2, specifies an alternative, - more adequate interface for the two functions above which deal with - file offset. `long int' is not the right type. These definitions - are originally defined in the Large File Support API. */ - -#if defined __USE_LARGEFILE || defined __USE_XOPEN2K -# ifndef __USE_FILE_OFFSET64 -/* Seek to a certain position on STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fseeko (FILE *__stream, __off_t __off, int __whence); -/* Return the current position of STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern __off_t ftello (FILE *__stream) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (fseeko, - (FILE *__stream, __off64_t __off, int __whence), - fseeko64); -extern __off64_t __REDIRECT (ftello, (FILE *__stream), ftello64); -# else -# define fseeko fseeko64 -# define ftello ftello64 -# endif -# endif -#endif - -__BEGIN_NAMESPACE_STD -#ifndef __USE_FILE_OFFSET64 -/* Get STREAM's position. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); -/* Set STREAM's position. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fsetpos (FILE *__stream, const fpos_t *__pos); -#else -# ifdef __REDIRECT -extern int __REDIRECT (fgetpos, (FILE *__restrict __stream, - fpos_t *__restrict __pos), fgetpos64); -extern int __REDIRECT (fsetpos, - (FILE *__stream, const fpos_t *__pos), fsetpos64); -# else -# define fgetpos fgetpos64 -# define fsetpos fsetpos64 -# endif -#endif -__END_NAMESPACE_STD - -#ifdef __USE_LARGEFILE64 -extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); -extern __off64_t ftello64 (FILE *__stream) __wur; -extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); -extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); -#endif - -__BEGIN_NAMESPACE_STD -/* Clear the error and EOF indicators for STREAM. */ -extern void clearerr (FILE *__stream) __THROW; -/* Return the EOF indicator for STREAM. */ -extern int feof (FILE *__stream) __THROW __wur; -/* Return the error indicator for STREAM. */ -extern int ferror (FILE *__stream) __THROW __wur; -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* Faster versions when locking is not required. */ -extern void clearerr_unlocked (FILE *__stream) __THROW; -extern int feof_unlocked (FILE *__stream) __THROW __wur; -extern int ferror_unlocked (FILE *__stream) __THROW __wur; -#endif - - -__BEGIN_NAMESPACE_STD -/* Print a message describing the meaning of the value of errno. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern void perror (const char *__s); -__END_NAMESPACE_STD - -/* Provide the declarations for `sys_errlist' and `sys_nerr' if they - are available on this system. Even if available, these variables - should not be used directly. The `strerror' function provides - all the necessary functionality. */ -#include - - -#ifdef __USE_POSIX -/* Return the system file descriptor for STREAM. */ -extern int fileno (FILE *__stream) __THROW __wur; -#endif /* Use POSIX. */ - -#ifdef __USE_MISC -/* Faster version when locking is not required. */ -extern int fileno_unlocked (FILE *__stream) __THROW __wur; -#endif - - -#ifdef __USE_POSIX2 -/* Create a new stream connected to a pipe running the given command. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern FILE *popen (const char *__command, const char *__modes) __wur; - -/* Close a stream opened by popen and return the status of its child. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int pclose (FILE *__stream); -#endif - - -#ifdef __USE_POSIX -/* Return the name of the controlling terminal. */ -extern char *ctermid (char *__s) __THROW; -#endif /* Use POSIX. */ - - -#ifdef __USE_XOPEN -/* Return the name of the current user. */ -extern char *cuserid (char *__s); -#endif /* Use X/Open, but not issue 6. */ - - -#ifdef __USE_GNU -struct obstack; /* See . */ - -/* Write formatted output to an obstack. */ -extern int obstack_printf (struct obstack *__restrict __obstack, - const char *__restrict __format, ...) - __THROWNL __attribute__ ((__format__ (__printf__, 2, 3))); -extern int obstack_vprintf (struct obstack *__restrict __obstack, - const char *__restrict __format, - _G_va_list __args) - __THROWNL __attribute__ ((__format__ (__printf__, 2, 0))); -#endif /* Use GNU. */ - - -#ifdef __USE_POSIX -/* These are defined in POSIX.1:1996. */ - -/* Acquire ownership of STREAM. */ -extern void flockfile (FILE *__stream) __THROW; - -/* Try to acquire ownership of STREAM but do not block if it is not - possible. */ -extern int ftrylockfile (FILE *__stream) __THROW __wur; - -/* Relinquish the ownership granted for STREAM. */ -extern void funlockfile (FILE *__stream) __THROW; -#endif /* POSIX */ - -#if defined __USE_XOPEN && !defined __USE_XOPEN2K && !defined __USE_GNU -/* The X/Open standard requires some functions and variables to be - declared here which do not belong into this header. But we have to - follow. In GNU mode we don't do this nonsense. */ -# define __need_getopt -# include -#endif /* X/Open, but not issue 6 and not for GNU. */ - -/* If we are compiling with optimizing read this file. It contains - several optimizing inline functions and macros. */ -#ifdef __USE_EXTERN_INLINES -# include -#endif -#if __USE_FORTIFY_LEVEL > 0 && defined __extern_always_inline -# include -#endif -#ifdef __LDBL_COMPAT -# include -#endif - -__END_DECLS - -#endif /* included. */ - -#endif /* !_STDIO_H */ diff --git a/libktorrent/miniboost/stdlib.h b/libktorrent/miniboost/stdlib.h deleted file mode 100644 index 00329a22..00000000 --- a/libktorrent/miniboost/stdlib.h +++ /dev/null @@ -1,969 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.20 General utilities - */ - -#ifndef _STDLIB_H - -#include - -/* Get size_t, wchar_t and NULL from . */ -#define __need_size_t -#ifndef __need_malloc_and_calloc -# define __need_wchar_t -# define __need_NULL -#endif -#include - -__BEGIN_DECLS - -#ifndef __need_malloc_and_calloc -#define _STDLIB_H 1 - -#if (defined __USE_XOPEN || defined __USE_XOPEN2K8) && !defined _SYS_WAIT_H -/* XPG requires a few symbols from being defined. */ -# include -# include - -# ifdef __USE_MISC - -/* Lots of hair to allow traditional BSD use of `union wait' - as well as POSIX.1 use of `int' for the status word. */ - -# if defined __GNUC__ && !defined __cplusplus -# define __WAIT_INT(status) \ - (__extension__ (((union { __typeof(status) __in; int __i; }) \ - { .__in = (status) }).__i)) -# else -# define __WAIT_INT(status) (*(int *) &(status)) -# endif - -/* This is the type of the argument to `wait'. The funky union - causes redeclarations with either `int *' or `union wait *' to be - allowed without complaint. __WAIT_STATUS_DEFN is the type used in - the actual function definitions. */ - -# if !defined __GNUC__ || __GNUC__ < 2 || defined __cplusplus -# define __WAIT_STATUS void * -# define __WAIT_STATUS_DEFN void * -# else -/* This works in GCC 2.6.1 and later. */ -typedef union - { - union wait *__uptr; - int *__iptr; - } __WAIT_STATUS __attribute__ ((__transparent_union__)); -# define __WAIT_STATUS_DEFN int * -# endif - -# else /* Don't use misc. */ - -# define __WAIT_INT(status) (status) -# define __WAIT_STATUS int * -# define __WAIT_STATUS_DEFN int * - -# endif /* Use misc. */ - -/* Define the macros also would define this way. */ -# define WEXITSTATUS(status) __WEXITSTATUS (__WAIT_INT (status)) -# define WTERMSIG(status) __WTERMSIG (__WAIT_INT (status)) -# define WSTOPSIG(status) __WSTOPSIG (__WAIT_INT (status)) -# define WIFEXITED(status) __WIFEXITED (__WAIT_INT (status)) -# define WIFSIGNALED(status) __WIFSIGNALED (__WAIT_INT (status)) -# define WIFSTOPPED(status) __WIFSTOPPED (__WAIT_INT (status)) -# ifdef __WIFCONTINUED -# define WIFCONTINUED(status) __WIFCONTINUED (__WAIT_INT (status)) -# endif -#endif /* X/Open or XPG7 and not included. */ - -__BEGIN_NAMESPACE_STD -/* Returned by `div'. */ -typedef struct - { - int quot; /* Quotient. */ - int rem; /* Remainder. */ - } div_t; - -/* Returned by `ldiv'. */ -#ifndef __ldiv_t_defined -typedef struct - { - long int quot; /* Quotient. */ - long int rem; /* Remainder. */ - } ldiv_t; -# define __ldiv_t_defined 1 -#endif -__END_NAMESPACE_STD - -#if defined __USE_ISOC99 && !defined __lldiv_t_defined -__BEGIN_NAMESPACE_C99 -/* Returned by `lldiv'. */ -__extension__ typedef struct - { - long long int quot; /* Quotient. */ - long long int rem; /* Remainder. */ - } lldiv_t; -# define __lldiv_t_defined 1 -__END_NAMESPACE_C99 -#endif - - -/* The largest number rand will return (same as INT_MAX). */ -#define RAND_MAX 2147483647 - - -/* We define these the same for all machines. - Changes from this to the outside world should be done in `_exit'. */ -#define EXIT_FAILURE 1 /* Failing exit status. */ -#define EXIT_SUCCESS 0 /* Successful exit status. */ - - -/* Maximum length of a multibyte character in the current locale. */ -#define MB_CUR_MAX (__ctype_get_mb_cur_max ()) -extern size_t __ctype_get_mb_cur_max (void) __THROW __wur; - - -__BEGIN_NAMESPACE_STD -/* Convert a string to a floating-point number. */ -extern double atof (const char *__nptr) - __THROW __attribute_pure__ __nonnull ((1)) __wur; -/* Convert a string to an integer. */ -extern int atoi (const char *__nptr) - __THROW __attribute_pure__ __nonnull ((1)) __wur; -/* Convert a string to a long integer. */ -extern long int atol (const char *__nptr) - __THROW __attribute_pure__ __nonnull ((1)) __wur; -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Convert a string to a long long integer. */ -__extension__ extern long long int atoll (const char *__nptr) - __THROW __attribute_pure__ __nonnull ((1)) __wur; -__END_NAMESPACE_C99 -#endif - -__BEGIN_NAMESPACE_STD -/* Convert a string to a floating-point number. */ -extern double strtod (const char *__restrict __nptr, - char **__restrict __endptr) - __THROW __nonnull ((1)); -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Likewise for `float' and `long double' sizes of floating-point numbers. */ -extern float strtof (const char *__restrict __nptr, - char **__restrict __endptr) __THROW __nonnull ((1)); - -extern long double strtold (const char *__restrict __nptr, - char **__restrict __endptr) - __THROW __nonnull ((1)); -__END_NAMESPACE_C99 -#endif - -__BEGIN_NAMESPACE_STD -/* Convert a string to a long integer. */ -extern long int strtol (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -/* Convert a string to an unsigned long integer. */ -extern unsigned long int strtoul (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* Convert a string to a quadword integer. */ -__extension__ -extern long long int strtoq (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -/* Convert a string to an unsigned quadword integer. */ -__extension__ -extern unsigned long long int strtouq (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -#endif /* Use misc. */ - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Convert a string to a quadword integer. */ -__extension__ -extern long long int strtoll (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -/* Convert a string to an unsigned quadword integer. */ -__extension__ -extern unsigned long long int strtoull (const char *__restrict __nptr, - char **__restrict __endptr, int __base) - __THROW __nonnull ((1)); -__END_NAMESPACE_C99 -#endif /* ISO C99 or use MISC. */ - - -#ifdef __USE_GNU -/* The concept of one static locale per category is not very well - thought out. Many applications will need to process its data using - information from several different locales. Another problem is - the implementation of the internationalization handling in the - ISO C++ standard library. To support this another set of - the functions using locale data exist which take an additional - argument. - - Attention: even though several *_l interfaces are part of POSIX:2008, - these are not. */ - -/* Structure for reentrant locale using functions. This is an - (almost) opaque type for the user level programs. */ -# include - -/* Special versions of the functions above which take the locale to - use as an additional parameter. */ -extern long int strtol_l (const char *__restrict __nptr, - char **__restrict __endptr, int __base, - __locale_t __loc) __THROW __nonnull ((1, 4)); - -extern unsigned long int strtoul_l (const char *__restrict __nptr, - char **__restrict __endptr, - int __base, __locale_t __loc) - __THROW __nonnull ((1, 4)); - -__extension__ -extern long long int strtoll_l (const char *__restrict __nptr, - char **__restrict __endptr, int __base, - __locale_t __loc) - __THROW __nonnull ((1, 4)); - -__extension__ -extern unsigned long long int strtoull_l (const char *__restrict __nptr, - char **__restrict __endptr, - int __base, __locale_t __loc) - __THROW __nonnull ((1, 4)); - -extern double strtod_l (const char *__restrict __nptr, - char **__restrict __endptr, __locale_t __loc) - __THROW __nonnull ((1, 3)); - -extern float strtof_l (const char *__restrict __nptr, - char **__restrict __endptr, __locale_t __loc) - __THROW __nonnull ((1, 3)); - -extern long double strtold_l (const char *__restrict __nptr, - char **__restrict __endptr, - __locale_t __loc) - __THROW __nonnull ((1, 3)); -#endif /* GNU */ - - -#ifdef __USE_EXTERN_INLINES -__BEGIN_NAMESPACE_STD -__extern_inline int -__NTH (atoi (const char *__nptr)) -{ - return (int) strtol (__nptr, (char **) NULL, 10); -} -__extern_inline long int -__NTH (atol (const char *__nptr)) -{ - return strtol (__nptr, (char **) NULL, 10); -} -__END_NAMESPACE_STD - -# ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -__extension__ __extern_inline long long int -__NTH (atoll (const char *__nptr)) -{ - return strtoll (__nptr, (char **) NULL, 10); -} -__END_NAMESPACE_C99 -# endif -#endif /* Optimizing and Inlining. */ - - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Convert N to base 64 using the digits "./0-9A-Za-z", least-significant - digit first. Returns a pointer to static storage overwritten by the - next call. */ -extern char *l64a (long int __n) __THROW __wur; - -/* Read a number from a string S in base 64 as above. */ -extern long int a64l (const char *__s) - __THROW __attribute_pure__ __nonnull ((1)) __wur; - -#endif /* Use misc || extended X/Open. */ - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -# include /* we need int32_t... */ - -/* These are the functions that actually do things. The `random', `srandom', - `initstate' and `setstate' functions are those from BSD Unices. - The `rand' and `srand' functions are required by the ANSI standard. - We provide both interfaces to the same random number generator. */ -/* Return a random long integer between 0 and RAND_MAX inclusive. */ -extern long int random (void) __THROW; - -/* Seed the random number generator with the given number. */ -extern void srandom (unsigned int __seed) __THROW; - -/* Initialize the random number generator to use state buffer STATEBUF, - of length STATELEN, and seed it with SEED. Optimal lengths are 8, 16, - 32, 64, 128 and 256, the bigger the better; values less than 8 will - cause an error and values greater than 256 will be rounded down. */ -extern char *initstate (unsigned int __seed, char *__statebuf, - size_t __statelen) __THROW __nonnull ((2)); - -/* Switch the random number generator to state buffer STATEBUF, - which should have been previously initialized by `initstate'. */ -extern char *setstate (char *__statebuf) __THROW __nonnull ((1)); - - -# ifdef __USE_MISC -/* Reentrant versions of the `random' family of functions. - These functions all use the following data structure to contain - state, rather than global state variables. */ - -struct random_data - { - int32_t *fptr; /* Front pointer. */ - int32_t *rptr; /* Rear pointer. */ - int32_t *state; /* Array of state values. */ - int rand_type; /* Type of random number generator. */ - int rand_deg; /* Degree of random number generator. */ - int rand_sep; /* Distance between front and rear. */ - int32_t *end_ptr; /* Pointer behind state table. */ - }; - -extern int random_r (struct random_data *__restrict __buf, - int32_t *__restrict __result) __THROW __nonnull ((1, 2)); - -extern int srandom_r (unsigned int __seed, struct random_data *__buf) - __THROW __nonnull ((2)); - -extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, - size_t __statelen, - struct random_data *__restrict __buf) - __THROW __nonnull ((2, 4)); - -extern int setstate_r (char *__restrict __statebuf, - struct random_data *__restrict __buf) - __THROW __nonnull ((1, 2)); -# endif /* Use misc. */ -#endif /* Use extended X/Open || misc. */ - - -__BEGIN_NAMESPACE_STD -/* Return a random integer between 0 and RAND_MAX inclusive. */ -extern int rand (void) __THROW; -/* Seed the random number generator with the given number. */ -extern void srand (unsigned int __seed) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_POSIX -/* Reentrant interface according to POSIX.1. */ -extern int rand_r (unsigned int *__seed) __THROW; -#endif - - -#if defined __USE_MISC || defined __USE_XOPEN -/* System V style 48-bit random number generator functions. */ - -/* Return non-negative, double-precision floating-point value in [0.0,1.0). */ -extern double drand48 (void) __THROW; -extern double erand48 (unsigned short int __xsubi[3]) __THROW __nonnull ((1)); - -/* Return non-negative, long integer in [0,2^31). */ -extern long int lrand48 (void) __THROW; -extern long int nrand48 (unsigned short int __xsubi[3]) - __THROW __nonnull ((1)); - -/* Return signed, long integers in [-2^31,2^31). */ -extern long int mrand48 (void) __THROW; -extern long int jrand48 (unsigned short int __xsubi[3]) - __THROW __nonnull ((1)); - -/* Seed random number generator. */ -extern void srand48 (long int __seedval) __THROW; -extern unsigned short int *seed48 (unsigned short int __seed16v[3]) - __THROW __nonnull ((1)); -extern void lcong48 (unsigned short int __param[7]) __THROW __nonnull ((1)); - -# ifdef __USE_MISC -/* Data structure for communication with thread safe versions. This - type is to be regarded as opaque. It's only exported because users - have to allocate objects of this type. */ -struct drand48_data - { - unsigned short int __x[3]; /* Current state. */ - unsigned short int __old_x[3]; /* Old state. */ - unsigned short int __c; /* Additive const. in congruential formula. */ - unsigned short int __init; /* Flag for initializing. */ - __extension__ unsigned long long int __a; /* Factor in congruential - formula. */ - }; - -/* Return non-negative, double-precision floating-point value in [0.0,1.0). */ -extern int drand48_r (struct drand48_data *__restrict __buffer, - double *__restrict __result) __THROW __nonnull ((1, 2)); -extern int erand48_r (unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - double *__restrict __result) __THROW __nonnull ((1, 2)); - -/* Return non-negative, long integer in [0,2^31). */ -extern int lrand48_r (struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __THROW __nonnull ((1, 2)); -extern int nrand48_r (unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __THROW __nonnull ((1, 2)); - -/* Return signed, long integers in [-2^31,2^31). */ -extern int mrand48_r (struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __THROW __nonnull ((1, 2)); -extern int jrand48_r (unsigned short int __xsubi[3], - struct drand48_data *__restrict __buffer, - long int *__restrict __result) - __THROW __nonnull ((1, 2)); - -/* Seed random number generator. */ -extern int srand48_r (long int __seedval, struct drand48_data *__buffer) - __THROW __nonnull ((2)); - -extern int seed48_r (unsigned short int __seed16v[3], - struct drand48_data *__buffer) __THROW __nonnull ((1, 2)); - -extern int lcong48_r (unsigned short int __param[7], - struct drand48_data *__buffer) - __THROW __nonnull ((1, 2)); -# endif /* Use misc. */ -#endif /* Use misc or X/Open. */ - -#endif /* don't just need malloc and calloc */ - -#ifndef __malloc_and_calloc_defined -# define __malloc_and_calloc_defined -__BEGIN_NAMESPACE_STD -/* Allocate SIZE bytes of memory. */ -extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; -/* Allocate NMEMB elements of SIZE bytes each, all initialized to 0. */ -extern void *calloc (size_t __nmemb, size_t __size) - __THROW __attribute_malloc__ __wur; -__END_NAMESPACE_STD -#endif - -#ifndef __need_malloc_and_calloc -__BEGIN_NAMESPACE_STD -/* Re-allocate the previously allocated block - in PTR, making the new block SIZE bytes long. */ -/* __attribute_malloc__ is not used, because if realloc returns - the same pointer that was passed to it, aliasing needs to be allowed - between objects pointed by the old and new pointers. */ -extern void *realloc (void *__ptr, size_t __size) - __THROW __attribute_warn_unused_result__; -/* Free a block allocated by `malloc', `realloc' or `calloc'. */ -extern void free (void *__ptr) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* Free a block. An alias for `free'. (Sun Unices). */ -extern void cfree (void *__ptr) __THROW; -#endif /* Use misc. */ - -#ifdef __USE_MISC -# include -#endif /* Use misc. */ - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) \ - || defined __USE_MISC -/* Allocate SIZE bytes on a page boundary. The storage cannot be freed. */ -extern void *valloc (size_t __size) __THROW __attribute_malloc__ __wur; -#endif - -#ifdef __USE_XOPEN2K -/* Allocate memory of SIZE bytes with an alignment of ALIGNMENT. */ -extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) - __THROW __nonnull ((1)) __wur; -#endif - -#ifdef __USE_ISOC11 -/* ISO C variant of aligned allocation. */ -extern void *aligned_alloc (size_t __alignment, size_t __size) - __THROW __attribute_malloc__ __attribute_alloc_size__ ((2)) __wur; -#endif - -__BEGIN_NAMESPACE_STD -/* Abort execution and generate a core-dump. */ -extern void abort (void) __THROW __attribute__ ((__noreturn__)); - - -/* Register a function to be called when `exit' is called. */ -extern int atexit (void (*__func) (void)) __THROW __nonnull ((1)); - -#if defined __USE_ISOC11 || defined __USE_ISOCXX11 -/* Register a function to be called when `quick_exit' is called. */ -# ifdef __cplusplus -extern "C++" int at_quick_exit (void (*__func) (void)) - __THROW __asm ("at_quick_exit") __nonnull ((1)); -# else -extern int at_quick_exit (void (*__func) (void)) __THROW __nonnull ((1)); -# endif -#endif -__END_NAMESPACE_STD - -#ifdef __USE_MISC -/* Register a function to be called with the status - given to `exit' and the given argument. */ -extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) - __THROW __nonnull ((1)); -#endif - -__BEGIN_NAMESPACE_STD -/* Call all functions registered with `atexit' and `on_exit', - in the reverse of the order in which they were registered, - perform stdio cleanup, and terminate program execution with STATUS. */ -extern void exit (int __status) __THROW __attribute__ ((__noreturn__)); - -#if defined __USE_ISOC11 || defined __USE_ISOCXX11 -/* Call all functions registered with `at_quick_exit' in the reverse - of the order in which they were registered and terminate program - execution with STATUS. */ -extern void quick_exit (int __status) __THROW __attribute__ ((__noreturn__)); -#endif -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Terminate the program with STATUS without calling any of the - functions registered with `atexit' or `on_exit'. */ -extern void _Exit (int __status) __THROW __attribute__ ((__noreturn__)); -__END_NAMESPACE_C99 -#endif - - -__BEGIN_NAMESPACE_STD -/* Return the value of envariable NAME, or NULL if it doesn't exist. */ -extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur; -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* This function is similar to the above but returns NULL if the - programs is running with SUID or SGID enabled. */ -extern char *secure_getenv (const char *__name) - __THROW __nonnull ((1)) __wur; -#endif - -#if defined __USE_MISC || defined __USE_XOPEN -/* The SVID says this is in , but this seems a better place. */ -/* Put STRING, which is of the form "NAME=VALUE", in the environment. - If there is no `=', remove NAME from the environment. */ -extern int putenv (char *__string) __THROW __nonnull ((1)); -#endif - -#ifdef __USE_XOPEN2K -/* Set NAME to VALUE in the environment. - If REPLACE is nonzero, overwrite an existing value. */ -extern int setenv (const char *__name, const char *__value, int __replace) - __THROW __nonnull ((2)); - -/* Remove the variable NAME from the environment. */ -extern int unsetenv (const char *__name) __THROW __nonnull ((1)); -#endif - -#ifdef __USE_MISC -/* The `clearenv' was planned to be added to POSIX.1 but probably - never made it. Nevertheless the POSIX.9 standard (POSIX bindings - for Fortran 77) requires this function. */ -extern int clearenv (void) __THROW; -#endif - - -#if defined __USE_MISC \ - || (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) -/* Generate a unique temporary file name from TEMPLATE. - The last six characters of TEMPLATE must be "XXXXXX"; - they are replaced with a string that makes the file name unique. - Always returns TEMPLATE, it's either a temporary file name or a null - string if it cannot get a unique file name. */ -extern char *mktemp (char *__template) __THROW __nonnull ((1)); -#endif - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Generate a unique temporary file name from TEMPLATE. - The last six characters of TEMPLATE must be "XXXXXX"; - they are replaced with a string that makes the filename unique. - Returns a file descriptor open on the file for reading and writing, - or -1 if it cannot create a uniquely-named file. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -# ifndef __USE_FILE_OFFSET64 -extern int mkstemp (char *__template) __nonnull ((1)) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (mkstemp, (char *__template), mkstemp64) - __nonnull ((1)) __wur; -# else -# define mkstemp mkstemp64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int mkstemp64 (char *__template) __nonnull ((1)) __wur; -# endif -#endif - -#ifdef __USE_MISC -/* Similar to mkstemp, but the template can have a suffix after the - XXXXXX. The length of the suffix is specified in the second - parameter. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -# ifndef __USE_FILE_OFFSET64 -extern int mkstemps (char *__template, int __suffixlen) __nonnull ((1)) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (mkstemps, (char *__template, int __suffixlen), - mkstemps64) __nonnull ((1)) __wur; -# else -# define mkstemps mkstemps64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int mkstemps64 (char *__template, int __suffixlen) - __nonnull ((1)) __wur; -# endif -#endif - -#ifdef __USE_XOPEN2K8 -/* Create a unique temporary directory from TEMPLATE. - The last six characters of TEMPLATE must be "XXXXXX"; - they are replaced with a string that makes the directory name unique. - Returns TEMPLATE, or a null pointer if it cannot get a unique name. - The directory is created mode 700. */ -extern char *mkdtemp (char *__template) __THROW __nonnull ((1)) __wur; -#endif - -#ifdef __USE_GNU -/* Generate a unique temporary file name from TEMPLATE similar to - mkstemp. But allow the caller to pass additional flags which are - used in the open call to create the file.. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -# ifndef __USE_FILE_OFFSET64 -extern int mkostemp (char *__template, int __flags) __nonnull ((1)) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (mkostemp, (char *__template, int __flags), mkostemp64) - __nonnull ((1)) __wur; -# else -# define mkostemp mkostemp64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int mkostemp64 (char *__template, int __flags) __nonnull ((1)) __wur; -# endif - -/* Similar to mkostemp, but the template can have a suffix after the - XXXXXX. The length of the suffix is specified in the second - parameter. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -# ifndef __USE_FILE_OFFSET64 -extern int mkostemps (char *__template, int __suffixlen, int __flags) - __nonnull ((1)) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (mkostemps, (char *__template, int __suffixlen, - int __flags), mkostemps64) - __nonnull ((1)) __wur; -# else -# define mkostemps mkostemps64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int mkostemps64 (char *__template, int __suffixlen, int __flags) - __nonnull ((1)) __wur; -# endif -#endif - - -__BEGIN_NAMESPACE_STD -/* Execute the given line as a shell command. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int system (const char *__command) __wur; -__END_NAMESPACE_STD - - -#ifdef __USE_GNU -/* Return a malloc'd string containing the canonical absolute name of the - existing named file. */ -extern char *canonicalize_file_name (const char *__name) - __THROW __nonnull ((1)) __wur; -#endif - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Return the canonical absolute name of file NAME. If RESOLVED is - null, the result is malloc'd; otherwise, if the canonical name is - PATH_MAX chars or more, returns null with `errno' set to - ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars, - returns the name in RESOLVED. */ -extern char *realpath (const char *__restrict __name, - char *__restrict __resolved) __THROW __wur; -#endif - - -/* Shorthand for type of comparison functions. */ -#ifndef __COMPAR_FN_T -# define __COMPAR_FN_T -typedef int (*__compar_fn_t) (const void *, const void *); - -# ifdef __USE_GNU -typedef __compar_fn_t comparison_fn_t; -# endif -#endif -#ifdef __USE_GNU -typedef int (*__compar_d_fn_t) (const void *, const void *, void *); -#endif - -__BEGIN_NAMESPACE_STD -/* Do a binary search for KEY in BASE, which consists of NMEMB elements - of SIZE bytes each, using COMPAR to perform the comparisons. */ -extern void *bsearch (const void *__key, const void *__base, - size_t __nmemb, size_t __size, __compar_fn_t __compar) - __nonnull ((1, 2, 5)) __wur; - -#ifdef __USE_EXTERN_INLINES -# include -#endif - -/* Sort NMEMB elements of BASE, of SIZE bytes each, - using COMPAR to perform the comparisons. */ -extern void qsort (void *__base, size_t __nmemb, size_t __size, - __compar_fn_t __compar) __nonnull ((1, 4)); -#ifdef __USE_GNU -extern void qsort_r (void *__base, size_t __nmemb, size_t __size, - __compar_d_fn_t __compar, void *__arg) - __nonnull ((1, 4)); -#endif - - -/* Return the absolute value of X. */ -extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; -extern long int labs (long int __x) __THROW __attribute__ ((__const__)) __wur; -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__extension__ extern long long int llabs (long long int __x) - __THROW __attribute__ ((__const__)) __wur; -#endif - - -__BEGIN_NAMESPACE_STD -/* Return the `div_t', `ldiv_t' or `lldiv_t' representation - of the value of NUMER over DENOM. */ -/* GCC may have built-ins for these someday. */ -extern div_t div (int __numer, int __denom) - __THROW __attribute__ ((__const__)) __wur; -extern ldiv_t ldiv (long int __numer, long int __denom) - __THROW __attribute__ ((__const__)) __wur; -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -__extension__ extern lldiv_t lldiv (long long int __numer, - long long int __denom) - __THROW __attribute__ ((__const__)) __wur; -__END_NAMESPACE_C99 -#endif - - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \ - || defined __USE_MISC -/* Convert floating point numbers to strings. The returned values are - valid only until another call to the same function. */ - -/* Convert VALUE to a string with NDIGIT digits and return a pointer to - this. Set *DECPT with the position of the decimal character and *SIGN - with the sign of the number. */ -extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur; - -/* Convert VALUE to a string rounded to NDIGIT decimal digits. Set *DECPT - with the position of the decimal character and *SIGN with the sign of - the number. */ -extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign) __THROW __nonnull ((3, 4)) __wur; - -/* If possible convert VALUE to a string with NDIGIT significant digits. - Otherwise use exponential representation. The resulting string will - be written to BUF. */ -extern char *gcvt (double __value, int __ndigit, char *__buf) - __THROW __nonnull ((3)) __wur; -#endif - -#ifdef __USE_MISC -/* Long double versions of above functions. */ -extern char *qecvt (long double __value, int __ndigit, - int *__restrict __decpt, int *__restrict __sign) - __THROW __nonnull ((3, 4)) __wur; -extern char *qfcvt (long double __value, int __ndigit, - int *__restrict __decpt, int *__restrict __sign) - __THROW __nonnull ((3, 4)) __wur; -extern char *qgcvt (long double __value, int __ndigit, char *__buf) - __THROW __nonnull ((3)) __wur; - - -/* Reentrant version of the functions above which provide their own - buffers. */ -extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, - size_t __len) __THROW __nonnull ((3, 4, 5)); -extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, - int *__restrict __sign, char *__restrict __buf, - size_t __len) __THROW __nonnull ((3, 4, 5)); - -extern int qecvt_r (long double __value, int __ndigit, - int *__restrict __decpt, int *__restrict __sign, - char *__restrict __buf, size_t __len) - __THROW __nonnull ((3, 4, 5)); -extern int qfcvt_r (long double __value, int __ndigit, - int *__restrict __decpt, int *__restrict __sign, - char *__restrict __buf, size_t __len) - __THROW __nonnull ((3, 4, 5)); -#endif /* misc */ - - -__BEGIN_NAMESPACE_STD -/* Return the length of the multibyte character - in S, which is no longer than N. */ -extern int mblen (const char *__s, size_t __n) __THROW; -/* Return the length of the given multibyte character, - putting its `wchar_t' representation in *PWC. */ -extern int mbtowc (wchar_t *__restrict __pwc, - const char *__restrict __s, size_t __n) __THROW; -/* Put the multibyte character represented - by WCHAR in S, returning its length. */ -extern int wctomb (char *__s, wchar_t __wchar) __THROW; - - -/* Convert a multibyte string to a wide char string. */ -extern size_t mbstowcs (wchar_t *__restrict __pwcs, - const char *__restrict __s, size_t __n) __THROW; -/* Convert a wide char string to multibyte string. */ -extern size_t wcstombs (char *__restrict __s, - const wchar_t *__restrict __pwcs, size_t __n) - __THROW; -__END_NAMESPACE_STD - - -#ifdef __USE_MISC -/* Determine whether the string value of RESPONSE matches the affirmation - or negative response expression as specified by the LC_MESSAGES category - in the program's current locale. Returns 1 if affirmative, 0 if - negative, and -1 if not matching. */ -extern int rpmatch (const char *__response) __THROW __nonnull ((1)) __wur; -#endif - - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Parse comma separated suboption from *OPTIONP and match against - strings in TOKENS. If found return index and set *VALUEP to - optional value introduced by an equal sign. If the suboption is - not part of TOKENS return in *VALUEP beginning of unknown - suboption. On exit *OPTIONP is set to the beginning of the next - token or at the terminating NUL character. */ -extern int getsubopt (char **__restrict __optionp, - char *const *__restrict __tokens, - char **__restrict __valuep) - __THROW __nonnull ((1, 2, 3)) __wur; -#endif - - -#ifdef __USE_XOPEN -/* Setup DES tables according KEY. */ -extern void setkey (const char *__key) __THROW __nonnull ((1)); -#endif - - -/* X/Open pseudo terminal handling. */ - -#ifdef __USE_XOPEN2KXSI -/* Return a master pseudo-terminal handle. */ -extern int posix_openpt (int __oflag) __wur; -#endif - -#ifdef __USE_XOPEN -/* The next four functions all take a master pseudo-tty fd and - perform an operation on the associated slave: */ - -/* Chown the slave to the calling user. */ -extern int grantpt (int __fd) __THROW; - -/* Release an internal lock so the slave can be opened. - Call after grantpt(). */ -extern int unlockpt (int __fd) __THROW; - -/* Return the pathname of the pseudo terminal slave associated with - the master FD is open on, or NULL on errors. - The returned storage is good until the next call to this function. */ -extern char *ptsname (int __fd) __THROW __wur; -#endif - -#ifdef __USE_GNU -/* Store at most BUFLEN characters of the pathname of the slave pseudo - terminal associated with the master FD is open on in BUF. - Return 0 on success, otherwise an error number. */ -extern int ptsname_r (int __fd, char *__buf, size_t __buflen) - __THROW __nonnull ((2)); - -/* Open a master pseudo terminal and return its file descriptor. */ -extern int getpt (void); -#endif - -#ifdef __USE_MISC -/* Put the 1 minute, 5 minute and 15 minute load averages into the first - NELEM elements of LOADAVG. Return the number written (never more than - three, but may be less than NELEM), or -1 if an error occurred. */ -extern int getloadavg (double __loadavg[], int __nelem) - __THROW __nonnull ((1)); -#endif - -#include - -/* Define some macros helping to catch buffer overflows. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -# include -#endif -#ifdef __LDBL_COMPAT -# include -#endif - -#endif /* don't just need malloc and calloc */ -#undef __need_malloc_and_calloc - -__END_DECLS - -#endif /* stdlib.h */ diff --git a/libktorrent/miniboost/string.h b/libktorrent/miniboost/string.h deleted file mode 100644 index c79debcc..00000000 --- a/libktorrent/miniboost/string.h +++ /dev/null @@ -1,645 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.21 String handling - */ - -#ifndef _STRING_H -#define _STRING_H 1 - -#include - -__BEGIN_DECLS - -/* Get size_t and NULL from . */ -#define __need_size_t -#define __need_NULL -#include - -/* Provide correct C++ prototypes, and indicate this to the caller. This - requires a compatible C++ standard library. As a heuristic, we provide - these when the compiler indicates full conformance with C++98 or later, - and for older GCC versions that are known to provide a compatible - libstdc++. */ -#if defined __cplusplus && (__cplusplus >= 199711L || __GNUC_PREREQ (4, 4)) -# define __CORRECT_ISO_CPP_STRING_H_PROTO -#endif - - -__BEGIN_NAMESPACE_STD -/* Copy N bytes of SRC to DEST. */ -extern void *memcpy (void *__restrict __dest, const void *__restrict __src, - size_t __n) __THROW __nonnull ((1, 2)); -/* Copy N bytes of SRC to DEST, guaranteeing - correct behavior for overlapping strings. */ -extern void *memmove (void *__dest, const void *__src, size_t __n) - __THROW __nonnull ((1, 2)); -__END_NAMESPACE_STD - -/* Copy no more than N bytes of SRC to DEST, stopping when C is found. - Return the position in DEST one byte past where C was copied, - or NULL if C was not found in the first N bytes of SRC. */ -#if defined __USE_MISC || defined __USE_XOPEN -extern void *memccpy (void *__restrict __dest, const void *__restrict __src, - int __c, size_t __n) - __THROW __nonnull ((1, 2)); -#endif /* Misc || X/Open. */ - - -__BEGIN_NAMESPACE_STD -/* Set N bytes of S to C. */ -extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1)); - -/* Compare N bytes of S1 and S2. */ -extern int memcmp (const void *__s1, const void *__s2, size_t __n) - __THROW __attribute_pure__ __nonnull ((1, 2)); - -/* Search N bytes of S for C. */ -#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern void *memchr (void *__s, int __c, size_t __n) - __THROW __asm ("memchr") __attribute_pure__ __nonnull ((1)); -extern const void *memchr (const void *__s, int __c, size_t __n) - __THROW __asm ("memchr") __attribute_pure__ __nonnull ((1)); - -# ifdef __OPTIMIZE__ -__extern_always_inline void * -memchr (void *__s, int __c, size_t __n) __THROW -{ - return __builtin_memchr (__s, __c, __n); -} - -__extern_always_inline const void * -memchr (const void *__s, int __c, size_t __n) __THROW -{ - return __builtin_memchr (__s, __c, __n); -} -# endif -} -#else -extern void *memchr (const void *__s, int __c, size_t __n) - __THROW __attribute_pure__ __nonnull ((1)); -#endif -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* Search in S for C. This is similar to `memchr' but there is no - length limit. */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" void *rawmemchr (void *__s, int __c) - __THROW __asm ("rawmemchr") __attribute_pure__ __nonnull ((1)); -extern "C++" const void *rawmemchr (const void *__s, int __c) - __THROW __asm ("rawmemchr") __attribute_pure__ __nonnull ((1)); -# else -extern void *rawmemchr (const void *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -# endif - -/* Search N bytes of S for the final occurrence of C. */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" void *memrchr (void *__s, int __c, size_t __n) - __THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1)); -extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) - __THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1)); -# else -extern void *memrchr (const void *__s, int __c, size_t __n) - __THROW __attribute_pure__ __nonnull ((1)); -# endif -#endif - - -__BEGIN_NAMESPACE_STD -/* Copy SRC to DEST. */ -extern char *strcpy (char *__restrict __dest, const char *__restrict __src) - __THROW __nonnull ((1, 2)); -/* Copy no more than N characters of SRC to DEST. */ -extern char *strncpy (char *__restrict __dest, - const char *__restrict __src, size_t __n) - __THROW __nonnull ((1, 2)); - -/* Append SRC onto DEST. */ -extern char *strcat (char *__restrict __dest, const char *__restrict __src) - __THROW __nonnull ((1, 2)); -/* Append no more than N characters from SRC onto DEST. */ -extern char *strncat (char *__restrict __dest, const char *__restrict __src, - size_t __n) __THROW __nonnull ((1, 2)); - -/* Compare S1 and S2. */ -extern int strcmp (const char *__s1, const char *__s2) - __THROW __attribute_pure__ __nonnull ((1, 2)); -/* Compare N characters of S1 and S2. */ -extern int strncmp (const char *__s1, const char *__s2, size_t __n) - __THROW __attribute_pure__ __nonnull ((1, 2)); - -/* Compare the collated forms of S1 and S2. */ -extern int strcoll (const char *__s1, const char *__s2) - __THROW __attribute_pure__ __nonnull ((1, 2)); -/* Put a transformation of SRC into no more than N bytes of DEST. */ -extern size_t strxfrm (char *__restrict __dest, - const char *__restrict __src, size_t __n) - __THROW __nonnull ((2)); -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN2K8 -/* The following functions are equivalent to the both above but they - take the locale they use for the collation as an extra argument. - This is not standardsized but something like will come. */ -# include - -/* Compare the collated forms of S1 and S2 using rules from L. */ -extern int strcoll_l (const char *__s1, const char *__s2, __locale_t __l) - __THROW __attribute_pure__ __nonnull ((1, 2, 3)); -/* Put a transformation of SRC into no more than N bytes of DEST. */ -extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, - __locale_t __l) __THROW __nonnull ((2, 4)); -#endif - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Duplicate S, returning an identical malloc'd string. */ -extern char *strdup (const char *__s) - __THROW __attribute_malloc__ __nonnull ((1)); -#endif - -/* Return a malloc'd copy of at most N bytes of STRING. The - resultant string is terminated even if no null terminator - appears before STRING[N]. */ -#if defined __USE_XOPEN2K8 -extern char *strndup (const char *__string, size_t __n) - __THROW __attribute_malloc__ __nonnull ((1)); -#endif - -#if defined __USE_GNU && defined __GNUC__ -/* Duplicate S, returning an identical alloca'd string. */ -# define strdupa(s) \ - (__extension__ \ - ({ \ - const char *__old = (s); \ - size_t __len = strlen (__old) + 1; \ - char *__new = (char *) __builtin_alloca (__len); \ - (char *) memcpy (__new, __old, __len); \ - })) - -/* Return an alloca'd copy of at most N bytes of string. */ -# define strndupa(s, n) \ - (__extension__ \ - ({ \ - const char *__old = (s); \ - size_t __len = strnlen (__old, (n)); \ - char *__new = (char *) __builtin_alloca (__len + 1); \ - __new[__len] = '\0'; \ - (char *) memcpy (__new, __old, __len); \ - })) -#endif - -__BEGIN_NAMESPACE_STD -/* Find the first occurrence of C in S. */ -#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *strchr (char *__s, int __c) - __THROW __asm ("strchr") __attribute_pure__ __nonnull ((1)); -extern const char *strchr (const char *__s, int __c) - __THROW __asm ("strchr") __attribute_pure__ __nonnull ((1)); - -# ifdef __OPTIMIZE__ -__extern_always_inline char * -strchr (char *__s, int __c) __THROW -{ - return __builtin_strchr (__s, __c); -} - -__extern_always_inline const char * -strchr (const char *__s, int __c) __THROW -{ - return __builtin_strchr (__s, __c); -} -# endif -} -#else -extern char *strchr (const char *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -#endif -/* Find the last occurrence of C in S. */ -#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *strrchr (char *__s, int __c) - __THROW __asm ("strrchr") __attribute_pure__ __nonnull ((1)); -extern const char *strrchr (const char *__s, int __c) - __THROW __asm ("strrchr") __attribute_pure__ __nonnull ((1)); - -# ifdef __OPTIMIZE__ -__extern_always_inline char * -strrchr (char *__s, int __c) __THROW -{ - return __builtin_strrchr (__s, __c); -} - -__extern_always_inline const char * -strrchr (const char *__s, int __c) __THROW -{ - return __builtin_strrchr (__s, __c); -} -# endif -} -#else -extern char *strrchr (const char *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -#endif -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* This function is similar to `strchr'. But it returns a pointer to - the closing NUL byte in case C is not found in S. */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" char *strchrnul (char *__s, int __c) - __THROW __asm ("strchrnul") __attribute_pure__ __nonnull ((1)); -extern "C++" const char *strchrnul (const char *__s, int __c) - __THROW __asm ("strchrnul") __attribute_pure__ __nonnull ((1)); -# else -extern char *strchrnul (const char *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -# endif -#endif - -__BEGIN_NAMESPACE_STD -/* Return the length of the initial segment of S which - consists entirely of characters not in REJECT. */ -extern size_t strcspn (const char *__s, const char *__reject) - __THROW __attribute_pure__ __nonnull ((1, 2)); -/* Return the length of the initial segment of S which - consists entirely of characters in ACCEPT. */ -extern size_t strspn (const char *__s, const char *__accept) - __THROW __attribute_pure__ __nonnull ((1, 2)); -/* Find the first occurrence in S of any character in ACCEPT. */ -#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *strpbrk (char *__s, const char *__accept) - __THROW __asm ("strpbrk") __attribute_pure__ __nonnull ((1, 2)); -extern const char *strpbrk (const char *__s, const char *__accept) - __THROW __asm ("strpbrk") __attribute_pure__ __nonnull ((1, 2)); - -# ifdef __OPTIMIZE__ -__extern_always_inline char * -strpbrk (char *__s, const char *__accept) __THROW -{ - return __builtin_strpbrk (__s, __accept); -} - -__extern_always_inline const char * -strpbrk (const char *__s, const char *__accept) __THROW -{ - return __builtin_strpbrk (__s, __accept); -} -# endif -} -#else -extern char *strpbrk (const char *__s, const char *__accept) - __THROW __attribute_pure__ __nonnull ((1, 2)); -#endif -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -#ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *strstr (char *__haystack, const char *__needle) - __THROW __asm ("strstr") __attribute_pure__ __nonnull ((1, 2)); -extern const char *strstr (const char *__haystack, const char *__needle) - __THROW __asm ("strstr") __attribute_pure__ __nonnull ((1, 2)); - -# ifdef __OPTIMIZE__ -__extern_always_inline char * -strstr (char *__haystack, const char *__needle) __THROW -{ - return __builtin_strstr (__haystack, __needle); -} - -__extern_always_inline const char * -strstr (const char *__haystack, const char *__needle) __THROW -{ - return __builtin_strstr (__haystack, __needle); -} -# endif -} -#else -extern char *strstr (const char *__haystack, const char *__needle) - __THROW __attribute_pure__ __nonnull ((1, 2)); -#endif - - -/* Divide S into tokens separated by characters in DELIM. */ -extern char *strtok (char *__restrict __s, const char *__restrict __delim) - __THROW __nonnull ((2)); -__END_NAMESPACE_STD - -/* Divide S into tokens separated by characters in DELIM. Information - passed between calls are stored in SAVE_PTR. */ -extern char *__strtok_r (char *__restrict __s, - const char *__restrict __delim, - char **__restrict __save_ptr) - __THROW __nonnull ((2, 3)); -#ifdef __USE_POSIX -extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, - char **__restrict __save_ptr) - __THROW __nonnull ((2, 3)); -#endif - -#ifdef __USE_GNU -/* Similar to `strstr' but this function ignores the case of both strings. */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" char *strcasestr (char *__haystack, const char *__needle) - __THROW __asm ("strcasestr") __attribute_pure__ __nonnull ((1, 2)); -extern "C++" const char *strcasestr (const char *__haystack, - const char *__needle) - __THROW __asm ("strcasestr") __attribute_pure__ __nonnull ((1, 2)); -# else -extern char *strcasestr (const char *__haystack, const char *__needle) - __THROW __attribute_pure__ __nonnull ((1, 2)); -# endif -#endif - -#ifdef __USE_GNU -/* Find the first occurrence of NEEDLE in HAYSTACK. - NEEDLE is NEEDLELEN bytes long; - HAYSTACK is HAYSTACKLEN bytes long. */ -extern void *memmem (const void *__haystack, size_t __haystacklen, - const void *__needle, size_t __needlelen) - __THROW __attribute_pure__ __nonnull ((1, 3)); - -/* Copy N bytes of SRC to DEST, return pointer to bytes after the - last written byte. */ -extern void *__mempcpy (void *__restrict __dest, - const void *__restrict __src, size_t __n) - __THROW __nonnull ((1, 2)); -extern void *mempcpy (void *__restrict __dest, - const void *__restrict __src, size_t __n) - __THROW __nonnull ((1, 2)); -#endif - - -__BEGIN_NAMESPACE_STD -/* Return the length of S. */ -extern size_t strlen (const char *__s) - __THROW __attribute_pure__ __nonnull ((1)); -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN2K8 -/* Find the length of STRING, but scan at most MAXLEN characters. - If no '\0' terminator is found in that many characters, return MAXLEN. */ -extern size_t strnlen (const char *__string, size_t __maxlen) - __THROW __attribute_pure__ __nonnull ((1)); -#endif - - -__BEGIN_NAMESPACE_STD -/* Return a string describing the meaning of the `errno' code in ERRNUM. */ -extern char *strerror (int __errnum) __THROW; -__END_NAMESPACE_STD -#ifdef __USE_XOPEN2K -/* Reentrant version of `strerror'. - There are 2 flavors of `strerror_r', GNU which returns the string - and may or may not use the supplied temporary buffer and POSIX one - which fills the string into the buffer. - To use the POSIX version, -D_XOPEN_SOURCE=600 or -D_POSIX_C_SOURCE=200112L - without -D_GNU_SOURCE is needed, otherwise the GNU version is - preferred. */ -# if defined __USE_XOPEN2K && !defined __USE_GNU -/* Fill BUF with a string describing the meaning of the `errno' code in - ERRNUM. */ -# ifdef __REDIRECT_NTH -extern int __REDIRECT_NTH (strerror_r, - (int __errnum, char *__buf, size_t __buflen), - __xpg_strerror_r) __nonnull ((2)); -# else -extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen) - __THROW __nonnull ((2)); -# define strerror_r __xpg_strerror_r -# endif -# else -/* If a temporary buffer is required, at most BUFLEN bytes of BUF will be - used. */ -extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) - __THROW __nonnull ((2)) __wur; -# endif -#endif - -#ifdef __USE_XOPEN2K8 -/* Translate error number to string according to the locale L. */ -extern char *strerror_l (int __errnum, __locale_t __l) __THROW; -#endif - - -/* We define this function always since `bzero' is sometimes needed when - the namespace rules does not allow this. */ -extern void __bzero (void *__s, size_t __n) __THROW __nonnull ((1)); - -#ifdef __USE_MISC -/* Copy N bytes of SRC to DEST (like memmove, but args reversed). */ -extern void bcopy (const void *__src, void *__dest, size_t __n) - __THROW __nonnull ((1, 2)); - -/* Set N bytes of S to 0. */ -extern void bzero (void *__s, size_t __n) __THROW __nonnull ((1)); - -/* Compare N bytes of S1 and S2 (same as memcmp). */ -extern int bcmp (const void *__s1, const void *__s2, size_t __n) - __THROW __attribute_pure__ __nonnull ((1, 2)); - -/* Find the first occurrence of C in S (same as strchr). */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *index (char *__s, int __c) - __THROW __asm ("index") __attribute_pure__ __nonnull ((1)); -extern const char *index (const char *__s, int __c) - __THROW __asm ("index") __attribute_pure__ __nonnull ((1)); - -# if defined __OPTIMIZE__ && !defined __CORRECT_ISO_CPP_STRINGS_H_PROTO -__extern_always_inline char * -index (char *__s, int __c) __THROW -{ - return __builtin_index (__s, __c); -} - -__extern_always_inline const char * -index (const char *__s, int __c) __THROW -{ - return __builtin_index (__s, __c); -} -# endif -} -# else -extern char *index (const char *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -# endif - -/* Find the last occurrence of C in S (same as strrchr). */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" -{ -extern char *rindex (char *__s, int __c) - __THROW __asm ("rindex") __attribute_pure__ __nonnull ((1)); -extern const char *rindex (const char *__s, int __c) - __THROW __asm ("rindex") __attribute_pure__ __nonnull ((1)); - -# if defined __OPTIMIZE__ && !defined __CORRECT_ISO_CPP_STRINGS_H_PROTO -__extern_always_inline char * -rindex (char *__s, int __c) __THROW -{ - return __builtin_rindex (__s, __c); -} - -__extern_always_inline const char * -rindex (const char *__s, int __c) __THROW -{ - return __builtin_rindex (__s, __c); -} -#endif -} -# else -extern char *rindex (const char *__s, int __c) - __THROW __attribute_pure__ __nonnull ((1)); -# endif - -/* Return the position of the first bit set in I, or 0 if none are set. - The least-significant bit is position 1, the most-significant 32. */ -extern int ffs (int __i) __THROW __attribute__ ((__const__)); - -/* The following two functions are non-standard but necessary for non-32 bit - platforms. */ -# ifdef __USE_GNU -extern int ffsl (long int __l) __THROW __attribute__ ((__const__)); -__extension__ extern int ffsll (long long int __ll) - __THROW __attribute__ ((__const__)); -# endif - -/* Compare S1 and S2, ignoring case. */ -extern int strcasecmp (const char *__s1, const char *__s2) - __THROW __attribute_pure__ __nonnull ((1, 2)); - -/* Compare no more than N chars of S1 and S2, ignoring case. */ -extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) - __THROW __attribute_pure__ __nonnull ((1, 2)); -#endif /* Use misc. */ - -#ifdef __USE_GNU -/* Again versions of a few functions which use the given locale instead - of the global one. */ -extern int strcasecmp_l (const char *__s1, const char *__s2, - __locale_t __loc) - __THROW __attribute_pure__ __nonnull ((1, 2, 3)); - -extern int strncasecmp_l (const char *__s1, const char *__s2, - size_t __n, __locale_t __loc) - __THROW __attribute_pure__ __nonnull ((1, 2, 4)); -#endif - -#ifdef __USE_MISC -/* Return the next DELIM-delimited token from *STRINGP, - terminating it with a '\0', and update *STRINGP to point past it. */ -extern char *strsep (char **__restrict __stringp, - const char *__restrict __delim) - __THROW __nonnull ((1, 2)); -#endif - -#ifdef __USE_XOPEN2K8 -/* Return a string describing the meaning of the signal number in SIG. */ -extern char *strsignal (int __sig) __THROW; - -/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */ -extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) - __THROW __nonnull ((1, 2)); -extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) - __THROW __nonnull ((1, 2)); - -/* Copy no more than N characters of SRC to DEST, returning the address of - the last character written into DEST. */ -extern char *__stpncpy (char *__restrict __dest, - const char *__restrict __src, size_t __n) - __THROW __nonnull ((1, 2)); -extern char *stpncpy (char *__restrict __dest, - const char *__restrict __src, size_t __n) - __THROW __nonnull ((1, 2)); -#endif - -#ifdef __USE_GNU -/* Compare S1 and S2 as strings holding name & indices/version numbers. */ -extern int strverscmp (const char *__s1, const char *__s2) - __THROW __attribute_pure__ __nonnull ((1, 2)); - -/* Sautee STRING briskly. */ -extern char *strfry (char *__string) __THROW __nonnull ((1)); - -/* Frobnicate N bytes of S. */ -extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1)); - -# ifndef basename -/* Return the file name within directory of FILENAME. We don't - declare the function if the `basename' macro is available (defined - in ) which makes the XPG version of this function - available. */ -# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO -extern "C++" char *basename (char *__filename) - __THROW __asm ("basename") __nonnull ((1)); -extern "C++" const char *basename (const char *__filename) - __THROW __asm ("basename") __nonnull ((1)); -# else -extern char *basename (const char *__filename) __THROW __nonnull ((1)); -# endif -# endif -#endif - - -#if defined __GNUC__ && __GNUC__ >= 2 -# if defined __OPTIMIZE__ && !defined __OPTIMIZE_SIZE__ \ - && !defined __NO_INLINE__ && !defined __cplusplus -/* When using GNU CC we provide some optimized versions of selected - functions from this header. There are two kinds of optimizations: - - - machine-dependent optimizations, most probably using inline - assembler code; these might be quite expensive since the code - size can increase significantly. - These optimizations are not used unless the symbol - __USE_STRING_INLINES - is defined before including this header. - - - machine-independent optimizations which do not increase the - code size significantly and which optimize mainly situations - where one or more arguments are compile-time constants. - These optimizations are used always when the compiler is - taught to optimize. - - One can inhibit all optimizations by defining __NO_STRING_INLINES. */ - -/* Get the machine-dependent optimizations (if any). */ -# include - -/* These are generic optimizations which do not add too much inline code. */ -# include -# endif - -# if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -/* Functions with security checks. */ -# include -# endif -#endif - -__END_DECLS - -#endif /* string.h */ diff --git a/libktorrent/miniboost/sys/cdefs.h b/libktorrent/miniboost/sys/cdefs.h deleted file mode 100644 index 04db9563..00000000 --- a/libktorrent/miniboost/sys/cdefs.h +++ /dev/null @@ -1,429 +0,0 @@ -/* Copyright (C) 1992-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_CDEFS_H -#define _SYS_CDEFS_H 1 - -/* We are almost always included from features.h. */ -#ifndef _FEATURES_H -# include -#endif - -/* The GNU libc does not support any K&R compilers or the traditional mode - of ISO C compilers anymore. Check for some of the combinations not - anymore supported. */ -#if defined __GNUC__ && !defined __STDC__ -# error "You need a ISO C conforming compiler to use the glibc headers" -#endif - -/* Some user header file might have defined this before. */ -#undef __P -#undef __PMT - -#ifdef __GNUC__ - -/* All functions, except those with callbacks or those that - synchronize memory, are leaf functions. */ -# if __GNUC_PREREQ (4, 6) && !defined _LIBC -# define __LEAF , __leaf__ -# define __LEAF_ATTR __attribute__ ((__leaf__)) -# else -# define __LEAF -# define __LEAF_ATTR -# endif - -/* GCC can always grok prototypes. For C++ programs we add throw() - to help it optimize the function calls. But this works only with - gcc 2.8.x and egcs. For gcc 3.2 and up we even mark C functions - as non-throwing using a function attribute since programs can use - the -fexceptions options for C code as well. */ -# if !defined __cplusplus && __GNUC_PREREQ (3, 3) -# define __THROW __attribute__ ((__nothrow__ __LEAF)) -# define __THROWNL __attribute__ ((__nothrow__)) -# define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct -# else -# if defined __cplusplus && __GNUC_PREREQ (2,8) -# define __THROW throw () -# define __THROWNL throw () -# define __NTH(fct) __LEAF_ATTR fct throw () -# else -# define __THROW -# define __THROWNL -# define __NTH(fct) fct -# endif -# endif - -#else /* Not GCC. */ - -# define __inline /* No inline functions. */ - -# define __THROW -# define __THROWNL -# define __NTH(fct) fct - -#endif /* GCC. */ - -/* These two macros are not used in glibc anymore. They are kept here - only because some other projects expect the macros to be defined. */ -#define __P(args) args -#define __PMT(args) args - -/* For these things, GCC behaves the ANSI way normally, - and the non-ANSI way under -traditional. */ - -#define __CONCAT(x,y) x ## y -#define __STRING(x) #x - -/* This is not a typedef so `const __ptr_t' does the right thing. */ -#define __ptr_t void * -#define __long_double_t long double - - -/* C++ needs to know that types and declarations are C, not C++. */ -#ifdef __cplusplus -# define __BEGIN_DECLS extern "C" { -# define __END_DECLS } -#else -# define __BEGIN_DECLS -# define __END_DECLS -#endif - - -/* The standard library needs the functions from the ISO C90 standard - in the std namespace. At the same time we want to be safe for - future changes and we include the ISO C99 code in the non-standard - namespace __c99. The C++ wrapper header take case of adding the - definitions to the global namespace. */ -#if defined __cplusplus && defined _GLIBCPP_USE_NAMESPACES -# define __BEGIN_NAMESPACE_STD namespace std { -# define __END_NAMESPACE_STD } -# define __USING_NAMESPACE_STD(name) using std::name; -# define __BEGIN_NAMESPACE_C99 namespace __c99 { -# define __END_NAMESPACE_C99 } -# define __USING_NAMESPACE_C99(name) using __c99::name; -#else -/* For compatibility we do not add the declarations into any - namespace. They will end up in the global namespace which is what - old code expects. */ -# define __BEGIN_NAMESPACE_STD -# define __END_NAMESPACE_STD -# define __USING_NAMESPACE_STD(name) -# define __BEGIN_NAMESPACE_C99 -# define __END_NAMESPACE_C99 -# define __USING_NAMESPACE_C99(name) -#endif - - -/* Fortify support. */ -#define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1) -#define __bos0(ptr) __builtin_object_size (ptr, 0) -#define __fortify_function __extern_always_inline __attribute_artificial__ - -#if __GNUC_PREREQ (4,3) -# define __warndecl(name, msg) \ - extern void name (void) __attribute__((__warning__ (msg))) -# define __warnattr(msg) __attribute__((__warning__ (msg))) -# define __errordecl(name, msg) \ - extern void name (void) __attribute__((__error__ (msg))) -#else -# define __warndecl(name, msg) extern void name (void) -# define __warnattr(msg) -# define __errordecl(name, msg) extern void name (void) -#endif - -/* Support for flexible arrays. */ -#if __GNUC_PREREQ (2,97) -/* GCC 2.97 supports C99 flexible array members. */ -# define __flexarr [] -#else -# ifdef __GNUC__ -# define __flexarr [0] -# else -# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L -# define __flexarr [] -# else -/* Some other non-C99 compiler. Approximate with [1]. */ -# define __flexarr [1] -# endif -# endif -#endif - - -/* __asm__ ("xyz") is used throughout the headers to rename functions - at the assembly language level. This is wrapped by the __REDIRECT - macro, in order to support compilers that can do this some other - way. When compilers don't support asm-names at all, we have to do - preprocessor tricks instead (which don't have exactly the right - semantics, but it's the best we can do). - - Example: - int __REDIRECT(setpgrp, (__pid_t pid, __pid_t pgrp), setpgid); */ - -#if defined __GNUC__ && __GNUC__ >= 2 - -# define __REDIRECT(name, proto, alias) name proto __asm__ (__ASMNAME (#alias)) -# ifdef __cplusplus -# define __REDIRECT_NTH(name, proto, alias) \ - name proto __THROW __asm__ (__ASMNAME (#alias)) -# define __REDIRECT_NTHNL(name, proto, alias) \ - name proto __THROWNL __asm__ (__ASMNAME (#alias)) -# else -# define __REDIRECT_NTH(name, proto, alias) \ - name proto __asm__ (__ASMNAME (#alias)) __THROW -# define __REDIRECT_NTHNL(name, proto, alias) \ - name proto __asm__ (__ASMNAME (#alias)) __THROWNL -# endif -# define __ASMNAME(cname) __ASMNAME2 (__USER_LABEL_PREFIX__, cname) -# define __ASMNAME2(prefix, cname) __STRING (prefix) cname - -/* -#elif __SOME_OTHER_COMPILER__ - -# define __REDIRECT(name, proto, alias) name proto; \ - _Pragma("let " #name " = " #alias) -*/ -#endif - -/* GCC has various useful declarations that can be made with the - `__attribute__' syntax. All of the ways we use this do fine if - they are omitted for compilers that don't understand it. */ -#if !defined __GNUC__ || __GNUC__ < 2 -# define __attribute__(xyz) /* Ignore */ -#endif - -/* At some point during the gcc 2.96 development the `malloc' attribute - for functions was introduced. We don't want to use it unconditionally - (although this would be possible) since it generates warnings. */ -#if __GNUC_PREREQ (2,96) -# define __attribute_malloc__ __attribute__ ((__malloc__)) -#else -# define __attribute_malloc__ /* Ignore */ -#endif - -/* Tell the compiler which arguments to an allocation function - indicate the size of the allocation. */ -#if __GNUC_PREREQ (4, 3) -# define __attribute_alloc_size__(params) \ - __attribute__ ((__alloc_size__ params)) -#else -# define __attribute_alloc_size__(params) /* Ignore. */ -#endif - -/* At some point during the gcc 2.96 development the `pure' attribute - for functions was introduced. We don't want to use it unconditionally - (although this would be possible) since it generates warnings. */ -#if __GNUC_PREREQ (2,96) -# define __attribute_pure__ __attribute__ ((__pure__)) -#else -# define __attribute_pure__ /* Ignore */ -#endif - -/* This declaration tells the compiler that the value is constant. */ -#if __GNUC_PREREQ (2,5) -# define __attribute_const__ __attribute__ ((__const__)) -#else -# define __attribute_const__ /* Ignore */ -#endif - -/* At some point during the gcc 3.1 development the `used' attribute - for functions was introduced. We don't want to use it unconditionally - (although this would be possible) since it generates warnings. */ -#if __GNUC_PREREQ (3,1) -# define __attribute_used__ __attribute__ ((__used__)) -# define __attribute_noinline__ __attribute__ ((__noinline__)) -#else -# define __attribute_used__ __attribute__ ((__unused__)) -# define __attribute_noinline__ /* Ignore */ -#endif - -/* gcc allows marking deprecated functions. */ -#if __GNUC_PREREQ (3,2) -# define __attribute_deprecated__ __attribute__ ((__deprecated__)) -#else -# define __attribute_deprecated__ /* Ignore */ -#endif - -/* At some point during the gcc 2.8 development the `format_arg' attribute - for functions was introduced. We don't want to use it unconditionally - (although this would be possible) since it generates warnings. - If several `format_arg' attributes are given for the same function, in - gcc-3.0 and older, all but the last one are ignored. In newer gccs, - all designated arguments are considered. */ -#if __GNUC_PREREQ (2,8) -# define __attribute_format_arg__(x) __attribute__ ((__format_arg__ (x))) -#else -# define __attribute_format_arg__(x) /* Ignore */ -#endif - -/* At some point during the gcc 2.97 development the `strfmon' format - attribute for functions was introduced. We don't want to use it - unconditionally (although this would be possible) since it - generates warnings. */ -#if __GNUC_PREREQ (2,97) -# define __attribute_format_strfmon__(a,b) \ - __attribute__ ((__format__ (__strfmon__, a, b))) -#else -# define __attribute_format_strfmon__(a,b) /* Ignore */ -#endif - -/* The nonull function attribute allows to mark pointer parameters which - must not be NULL. */ -#if __GNUC_PREREQ (3,3) -# define __nonnull(params) __attribute__ ((__nonnull__ params)) -#else -# define __nonnull(params) -#endif - -/* If fortification mode, we warn about unused results of certain - function calls which can lead to problems. */ -#if __GNUC_PREREQ (3,4) -# define __attribute_warn_unused_result__ \ - __attribute__ ((__warn_unused_result__)) -# if __USE_FORTIFY_LEVEL > 0 -# define __wur __attribute_warn_unused_result__ -# endif -#else -# define __attribute_warn_unused_result__ /* empty */ -#endif -#ifndef __wur -# define __wur /* Ignore */ -#endif - -/* Forces a function to be always inlined. */ -#if __GNUC_PREREQ (3,2) -# define __always_inline __inline __attribute__ ((__always_inline__)) -#else -# define __always_inline __inline -#endif - -/* Associate error messages with the source location of the call site rather - than with the source location inside the function. */ -#if __GNUC_PREREQ (4,3) -# define __attribute_artificial__ __attribute__ ((__artificial__)) -#else -# define __attribute_artificial__ /* Ignore */ -#endif - -#ifdef __GNUC__ -/* One of these will be defined if the __gnu_inline__ attribute is - available. In C++, __GNUC_GNU_INLINE__ will be defined even though - __inline does not use the GNU inlining rules. If neither macro is - defined, this version of GCC only supports GNU inline semantics. */ -# if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ -# define __extern_inline extern __inline __attribute__ ((__gnu_inline__)) -# define __extern_always_inline \ - extern __always_inline __attribute__ ((__gnu_inline__)) -# else -# define __extern_inline extern __inline -# define __extern_always_inline extern __always_inline -# endif -#else /* Not GCC. */ -# define __extern_inline /* Ignore */ -# define __extern_always_inline /* Ignore */ -#endif - -/* GCC 4.3 and above allow passing all anonymous arguments of an - __extern_always_inline function to some other vararg function. */ -#if __GNUC_PREREQ (4,3) -# define __va_arg_pack() __builtin_va_arg_pack () -# define __va_arg_pack_len() __builtin_va_arg_pack_len () -#endif - -/* It is possible to compile containing GCC extensions even if GCC is - run in pedantic mode if the uses are carefully marked using the - `__extension__' keyword. But this is not generally available before - version 2.8. */ -#if !__GNUC_PREREQ (2,8) -# define __extension__ /* Ignore */ -#endif - -/* __restrict is known in EGCS 1.2 and above. */ -#if !__GNUC_PREREQ (2,92) -# define __restrict /* Ignore */ -#endif - -/* ISO C99 also allows to declare arrays as non-overlapping. The syntax is - array_name[restrict] - GCC 3.1 supports this. */ -#if __GNUC_PREREQ (3,1) && !defined __GNUG__ -# define __restrict_arr __restrict -#else -# ifdef __GNUC__ -# define __restrict_arr /* Not supported in old GCC. */ -# else -# if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L -# define __restrict_arr restrict -# else -/* Some other non-C99 compiler. */ -# define __restrict_arr /* Not supported. */ -# endif -# endif -#endif - -#if __GNUC__ >= 3 -# define __glibc_unlikely(cond) __builtin_expect ((cond), 0) -# define __glibc_likely(cond) __builtin_expect ((cond), 1) -#else -# define __glibc_unlikely(cond) (cond) -# define __glibc_likely(cond) (cond) -#endif - -#if (!defined _Noreturn \ - && (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 201112 \ - && !__GNUC_PREREQ (4,7)) -# if __GNUC_PREREQ (2,8) -# define _Noreturn __attribute__ ((__noreturn__)) -# else -# define _Noreturn -# endif -#endif - -#include - -#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH -# define __LDBL_COMPAT 1 -# ifdef __REDIRECT -# define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias) -# define __LDBL_REDIR(name, proto) \ - __LDBL_REDIR1 (name, proto, __nldbl_##name) -# define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias) -# define __LDBL_REDIR_NTH(name, proto) \ - __LDBL_REDIR1_NTH (name, proto, __nldbl_##name) -# define __LDBL_REDIR1_DECL(name, alias) \ - extern __typeof (name) name __asm (__ASMNAME (#alias)); -# define __LDBL_REDIR_DECL(name) \ - extern __typeof (name) name __asm (__ASMNAME ("__nldbl_" #name)); -# define __REDIRECT_LDBL(name, proto, alias) \ - __LDBL_REDIR1 (name, proto, __nldbl_##alias) -# define __REDIRECT_NTH_LDBL(name, proto, alias) \ - __LDBL_REDIR1_NTH (name, proto, __nldbl_##alias) -# endif -#endif -#if !defined __LDBL_COMPAT || !defined __REDIRECT -# define __LDBL_REDIR1(name, proto, alias) name proto -# define __LDBL_REDIR(name, proto) name proto -# define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW -# define __LDBL_REDIR_NTH(name, proto) name proto __THROW -# define __LDBL_REDIR_DECL(name) -# ifdef __REDIRECT -# define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias) -# define __REDIRECT_NTH_LDBL(name, proto, alias) \ - __REDIRECT_NTH (name, proto, alias) -# endif -#endif - -#endif /* sys/cdefs.h */ diff --git a/libktorrent/miniboost/sys/select.h b/libktorrent/miniboost/sys/select.h deleted file mode 100644 index 941588d9..00000000 --- a/libktorrent/miniboost/sys/select.h +++ /dev/null @@ -1,133 +0,0 @@ -/* `fd_set' type and related macros, and `select'/`pselect' declarations. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* POSIX 1003.1g: 6.2 Select from File Descriptor Sets */ - -#ifndef _SYS_SELECT_H -#define _SYS_SELECT_H 1 - -#include - -/* Get definition of needed basic types. */ -#include - -/* Get __FD_* definitions. */ -#include - -/* Get __sigset_t. */ -#include - -#ifndef __sigset_t_defined -# define __sigset_t_defined -typedef __sigset_t sigset_t; -#endif - -/* Get definition of timer specification structures. */ -#define __need_time_t -#define __need_timespec -#include -#define __need_timeval -#include - -#ifndef __suseconds_t_defined -typedef __suseconds_t suseconds_t; -# define __suseconds_t_defined -#endif - - -/* The fd_set member is required to be an array of longs. */ -typedef long int __fd_mask; - -/* Some versions of define this macros. */ -#undef __NFDBITS -/* It's easier to assume 8-bit bytes than to get CHAR_BIT. */ -#define __NFDBITS (8 * (int) sizeof (__fd_mask)) -#define __FD_ELT(d) ((d) / __NFDBITS) -#define __FD_MASK(d) ((__fd_mask) (1UL << ((d) % __NFDBITS))) - -/* fd_set for select and pselect. */ -typedef struct - { - /* XPG4.2 requires this member name. Otherwise avoid the name - from the global namespace. */ -#ifdef __USE_XOPEN - __fd_mask fds_bits[__FD_SETSIZE / __NFDBITS]; -# define __FDS_BITS(set) ((set)->fds_bits) -#else - __fd_mask __fds_bits[__FD_SETSIZE / __NFDBITS]; -# define __FDS_BITS(set) ((set)->__fds_bits) -#endif - } fd_set; - -/* Maximum number of file descriptors in `fd_set'. */ -#define FD_SETSIZE __FD_SETSIZE - -#ifdef __USE_MISC -/* Sometimes the fd_set member is assumed to have this type. */ -typedef __fd_mask fd_mask; - -/* Number of bits per word of `fd_set' (some code assumes this is 32). */ -# define NFDBITS __NFDBITS -#endif - - -/* Access macros for `fd_set'. */ -#define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) -#define FD_CLR(fd, fdsetp) __FD_CLR (fd, fdsetp) -#define FD_ISSET(fd, fdsetp) __FD_ISSET (fd, fdsetp) -#define FD_ZERO(fdsetp) __FD_ZERO (fdsetp) - - -__BEGIN_DECLS - -/* Check the first NFDS descriptors each in READFDS (if not NULL) for read - readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS - (if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out - after waiting the interval specified therein. Returns the number of ready - descriptors, or -1 for errors. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int select (int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - struct timeval *__restrict __timeout); - -#ifdef __USE_XOPEN2K -/* Same as above only that the TIMEOUT value is given with higher - resolution and a sigmask which is been set temporarily. This version - should be used. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pselect (int __nfds, fd_set *__restrict __readfds, - fd_set *__restrict __writefds, - fd_set *__restrict __exceptfds, - const struct timespec *__restrict __timeout, - const __sigset_t *__restrict __sigmask); -#endif - - -/* Define some inlines helping to catch common problems. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __GNUC__ -# include -#endif - -__END_DECLS - -#endif /* sys/select.h */ diff --git a/libktorrent/miniboost/sys/signal.h b/libktorrent/miniboost/sys/signal.h deleted file mode 100644 index 2e602dad..00000000 --- a/libktorrent/miniboost/sys/signal.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/libktorrent/miniboost/sys/sysmacros.h b/libktorrent/miniboost/sys/sysmacros.h deleted file mode 100644 index b3c202f3..00000000 --- a/libktorrent/miniboost/sys/sysmacros.h +++ /dev/null @@ -1,65 +0,0 @@ -/* Definitions of macros to access `dev_t' values. - Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_SYSMACROS_H -#define _SYS_SYSMACROS_H 1 - -#include - -__BEGIN_DECLS - -__extension__ -extern unsigned int gnu_dev_major (unsigned long long int __dev) - __THROW __attribute_const__; -__extension__ -extern unsigned int gnu_dev_minor (unsigned long long int __dev) - __THROW __attribute_const__; -__extension__ -extern unsigned long long int gnu_dev_makedev (unsigned int __major, - unsigned int __minor) - __THROW __attribute_const__; - -#ifdef __USE_EXTERN_INLINES -__extension__ __extern_inline __attribute_const__ unsigned int -__NTH (gnu_dev_major (unsigned long long int __dev)) -{ - return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff); -} - -__extension__ __extern_inline __attribute_const__ unsigned int -__NTH (gnu_dev_minor (unsigned long long int __dev)) -{ - return (__dev & 0xff) | ((unsigned int) (__dev >> 12) & ~0xff); -} - -__extension__ __extern_inline __attribute_const__ unsigned long long int -__NTH (gnu_dev_makedev (unsigned int __major, unsigned int __minor)) -{ - return ((__minor & 0xff) | ((__major & 0xfff) << 8) - | (((unsigned long long int) (__minor & ~0xff)) << 12) - | (((unsigned long long int) (__major & ~0xfff)) << 32)); -} -#endif -__END_DECLS - -/* Access the functions with their traditional names. */ -#define major(dev) gnu_dev_major (dev) -#define minor(dev) gnu_dev_minor (dev) -#define makedev(maj, min) gnu_dev_makedev (maj, min) - -#endif /* sys/sysmacros.h */ diff --git a/libktorrent/miniboost/sys/time.h b/libktorrent/miniboost/sys/time.h deleted file mode 100644 index a3f219e9..00000000 --- a/libktorrent/miniboost/sys/time.h +++ /dev/null @@ -1,191 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_TIME_H -#define _SYS_TIME_H 1 - -#include - -#include -#define __need_time_t -#include -#define __need_timeval -#include - -#include - -#ifndef __suseconds_t_defined -typedef __suseconds_t suseconds_t; -# define __suseconds_t_defined -#endif - - -__BEGIN_DECLS - -#ifdef __USE_GNU -/* Macros for converting between `struct timeval' and `struct timespec'. */ -# define TIMEVAL_TO_TIMESPEC(tv, ts) { \ - (ts)->tv_sec = (tv)->tv_sec; \ - (ts)->tv_nsec = (tv)->tv_usec * 1000; \ -} -# define TIMESPEC_TO_TIMEVAL(tv, ts) { \ - (tv)->tv_sec = (ts)->tv_sec; \ - (tv)->tv_usec = (ts)->tv_nsec / 1000; \ -} -#endif - - -#ifdef __USE_MISC -/* Structure crudely representing a timezone. - This is obsolete and should never be used. */ -struct timezone - { - int tz_minuteswest; /* Minutes west of GMT. */ - int tz_dsttime; /* Nonzero if DST is ever in effect. */ - }; - -typedef struct timezone *__restrict __timezone_ptr_t; -#else -typedef void *__restrict __timezone_ptr_t; -#endif - -/* Get the current time of day and timezone information, - putting it into *TV and *TZ. If TZ is NULL, *TZ is not filled. - Returns 0 on success, -1 on errors. - NOTE: This form of timezone information is obsolete. - Use the functions and variables declared in instead. */ -extern int gettimeofday (struct timeval *__restrict __tv, - __timezone_ptr_t __tz) __THROW __nonnull ((1)); - -#ifdef __USE_MISC -/* Set the current time of day and timezone information. - This call is restricted to the super-user. */ -extern int settimeofday (const struct timeval *__tv, - const struct timezone *__tz) - __THROW; - -/* Adjust the current time of day by the amount in DELTA. - If OLDDELTA is not NULL, it is filled in with the amount - of time adjustment remaining to be done from the last `adjtime' call. - This call is restricted to the super-user. */ -extern int adjtime (const struct timeval *__delta, - struct timeval *__olddelta) __THROW; -#endif - - -/* Values for the first argument to `getitimer' and `setitimer'. */ -enum __itimer_which - { - /* Timers run in real time. */ - ITIMER_REAL = 0, -#define ITIMER_REAL ITIMER_REAL - /* Timers run only when the process is executing. */ - ITIMER_VIRTUAL = 1, -#define ITIMER_VIRTUAL ITIMER_VIRTUAL - /* Timers run when the process is executing and when - the system is executing on behalf of the process. */ - ITIMER_PROF = 2 -#define ITIMER_PROF ITIMER_PROF - }; - -/* Type of the second argument to `getitimer' and - the second and third arguments `setitimer'. */ -struct itimerval - { - /* Value to put into `it_value' when the timer expires. */ - struct timeval it_interval; - /* Time to the next timer expiration. */ - struct timeval it_value; - }; - -#if defined __USE_GNU && !defined __cplusplus -/* Use the nicer parameter type only in GNU mode and not for C++ since the - strict C++ rules prevent the automatic promotion. */ -typedef enum __itimer_which __itimer_which_t; -#else -typedef int __itimer_which_t; -#endif - -/* Set *VALUE to the current setting of timer WHICH. - Return 0 on success, -1 on errors. */ -extern int getitimer (__itimer_which_t __which, - struct itimerval *__value) __THROW; - -/* Set the timer WHICH to *NEW. If OLD is not NULL, - set *OLD to the old value of timer WHICH. - Returns 0 on success, -1 on errors. */ -extern int setitimer (__itimer_which_t __which, - const struct itimerval *__restrict __new, - struct itimerval *__restrict __old) __THROW; - -/* Change the access time of FILE to TVP[0] and the modification time of - FILE to TVP[1]. If TVP is a null pointer, use the current time instead. - Returns 0 on success, -1 on errors. */ -extern int utimes (const char *__file, const struct timeval __tvp[2]) - __THROW __nonnull ((1)); - -#ifdef __USE_MISC -/* Same as `utimes', but does not follow symbolic links. */ -extern int lutimes (const char *__file, const struct timeval __tvp[2]) - __THROW __nonnull ((1)); - -/* Same as `utimes', but takes an open file descriptor instead of a name. */ -extern int futimes (int __fd, const struct timeval __tvp[2]) __THROW; -#endif - -#ifdef __USE_GNU -/* Change the access time of FILE relative to FD to TVP[0] and the - modification time of FILE to TVP[1]. If TVP is a null pointer, use - the current time instead. Returns 0 on success, -1 on errors. */ -extern int futimesat (int __fd, const char *__file, - const struct timeval __tvp[2]) __THROW; -#endif - - -#ifdef __USE_MISC -/* Convenience macros for operations on timevals. - NOTE: `timercmp' does not work for >= or <=. */ -# define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) -# define timerclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) -# define timercmp(a, b, CMP) \ - (((a)->tv_sec == (b)->tv_sec) ? \ - ((a)->tv_usec CMP (b)->tv_usec) : \ - ((a)->tv_sec CMP (b)->tv_sec)) -# define timeradd(a, b, result) \ - do { \ - (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ - (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \ - if ((result)->tv_usec >= 1000000) \ - { \ - ++(result)->tv_sec; \ - (result)->tv_usec -= 1000000; \ - } \ - } while (0) -# define timersub(a, b, result) \ - do { \ - (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ - (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ - if ((result)->tv_usec < 0) { \ - --(result)->tv_sec; \ - (result)->tv_usec += 1000000; \ - } \ - } while (0) -#endif /* Misc. */ - -__END_DECLS - -#endif /* sys/time.h */ diff --git a/libktorrent/miniboost/sys/types.h b/libktorrent/miniboost/sys/types.h deleted file mode 100644 index 04ebe344..00000000 --- a/libktorrent/miniboost/sys/types.h +++ /dev/null @@ -1,275 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * POSIX Standard: 2.6 Primitive System Data Types - */ - -#ifndef _SYS_TYPES_H -#define _SYS_TYPES_H 1 - -#include - -__BEGIN_DECLS - -#include - -#ifdef __USE_MISC -# ifndef __u_char_defined -typedef __u_char u_char; -typedef __u_short u_short; -typedef __u_int u_int; -typedef __u_long u_long; -typedef __quad_t quad_t; -typedef __u_quad_t u_quad_t; -typedef __fsid_t fsid_t; -# define __u_char_defined -# endif -#endif - -typedef __loff_t loff_t; - -#ifndef __ino_t_defined -# ifndef __USE_FILE_OFFSET64 -typedef __ino_t ino_t; -# else -typedef __ino64_t ino_t; -# endif -# define __ino_t_defined -#endif -#if defined __USE_LARGEFILE64 && !defined __ino64_t_defined -typedef __ino64_t ino64_t; -# define __ino64_t_defined -#endif - -#ifndef __dev_t_defined -typedef __dev_t dev_t; -# define __dev_t_defined -#endif - -#ifndef __gid_t_defined -typedef __gid_t gid_t; -# define __gid_t_defined -#endif - -#ifndef __mode_t_defined -typedef __mode_t mode_t; -# define __mode_t_defined -#endif - -#ifndef __nlink_t_defined -typedef __nlink_t nlink_t; -# define __nlink_t_defined -#endif - -#ifndef __uid_t_defined -typedef __uid_t uid_t; -# define __uid_t_defined -#endif - -#ifndef __off_t_defined -# ifndef __USE_FILE_OFFSET64 -typedef __off_t off_t; -# else -typedef __off64_t off_t; -# endif -# define __off_t_defined -#endif -#if defined __USE_LARGEFILE64 && !defined __off64_t_defined -typedef __off64_t off64_t; -# define __off64_t_defined -#endif - -#ifndef __pid_t_defined -typedef __pid_t pid_t; -# define __pid_t_defined -#endif - -#if (defined __USE_XOPEN || defined __USE_XOPEN2K8) \ - && !defined __id_t_defined -typedef __id_t id_t; -# define __id_t_defined -#endif - -#ifndef __ssize_t_defined -typedef __ssize_t ssize_t; -# define __ssize_t_defined -#endif - -#ifdef __USE_MISC -# ifndef __daddr_t_defined -typedef __daddr_t daddr_t; -typedef __caddr_t caddr_t; -# define __daddr_t_defined -# endif -#endif - -#if (defined __USE_MISC || defined __USE_XOPEN) && !defined __key_t_defined -typedef __key_t key_t; -# define __key_t_defined -#endif - -#if defined __USE_XOPEN || defined __USE_XOPEN2K8 -# define __need_clock_t -#endif -#define __need_time_t -#define __need_timer_t -#define __need_clockid_t -#include - -#ifdef __USE_XOPEN -# ifndef __useconds_t_defined -typedef __useconds_t useconds_t; -# define __useconds_t_defined -# endif -# ifndef __suseconds_t_defined -typedef __suseconds_t suseconds_t; -# define __suseconds_t_defined -# endif -#endif - -#define __need_size_t -#include - -#ifdef __USE_MISC -/* Old compatibility names for C types. */ -typedef unsigned long int ulong; -typedef unsigned short int ushort; -typedef unsigned int uint; -#endif - -/* These size-specific names are used by some of the inet code. */ - -#if !__GNUC_PREREQ (2, 7) - -/* These types are defined by the ISO C99 header . */ -# ifndef __int8_t_defined -# define __int8_t_defined -typedef char int8_t; -typedef short int int16_t; -typedef int int32_t; -# if __WORDSIZE == 64 -typedef long int int64_t; -# else -__extension__ typedef long long int int64_t; -# endif -# endif - -/* But these were defined by ISO C without the first `_'. */ -typedef unsigned char u_int8_t; -typedef unsigned short int u_int16_t; -typedef unsigned int u_int32_t; -# if __WORDSIZE == 64 -typedef unsigned long int u_int64_t; -# else -__extension__ typedef unsigned long long int u_int64_t; -# endif - -typedef int register_t; - -#else - -/* For GCC 2.7 and later, we can use specific type-size attributes. */ -# define __intN_t(N, MODE) \ - typedef int int##N##_t __attribute__ ((__mode__ (MODE))) -# define __u_intN_t(N, MODE) \ - typedef unsigned int u_int##N##_t __attribute__ ((__mode__ (MODE))) - -# ifndef __int8_t_defined -# define __int8_t_defined -__intN_t (8, __QI__); -__intN_t (16, __HI__); -__intN_t (32, __SI__); -__intN_t (64, __DI__); -# endif - -__u_intN_t (8, __QI__); -__u_intN_t (16, __HI__); -__u_intN_t (32, __SI__); -__u_intN_t (64, __DI__); - -typedef int register_t __attribute__ ((__mode__ (__word__))); - - -/* Some code from BIND tests this macro to see if the types above are - defined. */ -#endif -#define __BIT_TYPES_DEFINED__ 1 - - -#ifdef __USE_MISC -/* In BSD is expected to define BYTE_ORDER. */ -# include - -/* It also defines `fd_set' and the FD_* macros for `select'. */ -# include - -/* BSD defines these symbols, so we follow. */ -# include -#endif /* Use misc. */ - - -#if (defined __USE_UNIX98 || defined __USE_XOPEN2K8) \ - && !defined __blksize_t_defined -typedef __blksize_t blksize_t; -# define __blksize_t_defined -#endif - -/* Types from the Large File Support interface. */ -#ifndef __USE_FILE_OFFSET64 -# ifndef __blkcnt_t_defined -typedef __blkcnt_t blkcnt_t; /* Type to count number of disk blocks. */ -# define __blkcnt_t_defined -# endif -# ifndef __fsblkcnt_t_defined -typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks. */ -# define __fsblkcnt_t_defined -# endif -# ifndef __fsfilcnt_t_defined -typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes. */ -# define __fsfilcnt_t_defined -# endif -#else -# ifndef __blkcnt_t_defined -typedef __blkcnt64_t blkcnt_t; /* Type to count number of disk blocks. */ -# define __blkcnt_t_defined -# endif -# ifndef __fsblkcnt_t_defined -typedef __fsblkcnt64_t fsblkcnt_t; /* Type to count file system blocks. */ -# define __fsblkcnt_t_defined -# endif -# ifndef __fsfilcnt_t_defined -typedef __fsfilcnt64_t fsfilcnt_t; /* Type to count file system inodes. */ -# define __fsfilcnt_t_defined -# endif -#endif - -#ifdef __USE_LARGEFILE64 -typedef __blkcnt64_t blkcnt64_t; /* Type to count number of disk blocks. */ -typedef __fsblkcnt64_t fsblkcnt64_t; /* Type to count file system blocks. */ -typedef __fsfilcnt64_t fsfilcnt64_t; /* Type to count file system inodes. */ -#endif - - -/* Now add the thread types. */ -#if defined __USE_POSIX199506 || defined __USE_UNIX98 -# include -#endif - -__END_DECLS - -#endif /* sys/types.h */ diff --git a/libktorrent/miniboost/sys/ucontext.h b/libktorrent/miniboost/sys/ucontext.h deleted file mode 100644 index 8665cf81..00000000 --- a/libktorrent/miniboost/sys/ucontext.h +++ /dev/null @@ -1,246 +0,0 @@ -/* Copyright (C) 2001-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _SYS_UCONTEXT_H -#define _SYS_UCONTEXT_H 1 - -#include -#include - -/* We need the signal context definitions even if they are not used - included in . */ -#include - -#ifdef __x86_64__ - -/* Type for general register. */ -__extension__ typedef long long int greg_t; - -/* Number of general registers. */ -#define NGREG 23 - -/* Container for all general registers. */ -typedef greg_t gregset_t[NGREG]; - -#ifdef __USE_GNU -/* Number of each register in the `gregset_t' array. */ -enum -{ - REG_R8 = 0, -# define REG_R8 REG_R8 - REG_R9, -# define REG_R9 REG_R9 - REG_R10, -# define REG_R10 REG_R10 - REG_R11, -# define REG_R11 REG_R11 - REG_R12, -# define REG_R12 REG_R12 - REG_R13, -# define REG_R13 REG_R13 - REG_R14, -# define REG_R14 REG_R14 - REG_R15, -# define REG_R15 REG_R15 - REG_RDI, -# define REG_RDI REG_RDI - REG_RSI, -# define REG_RSI REG_RSI - REG_RBP, -# define REG_RBP REG_RBP - REG_RBX, -# define REG_RBX REG_RBX - REG_RDX, -# define REG_RDX REG_RDX - REG_RAX, -# define REG_RAX REG_RAX - REG_RCX, -# define REG_RCX REG_RCX - REG_RSP, -# define REG_RSP REG_RSP - REG_RIP, -# define REG_RIP REG_RIP - REG_EFL, -# define REG_EFL REG_EFL - REG_CSGSFS, /* Actually short cs, gs, fs, __pad0. */ -# define REG_CSGSFS REG_CSGSFS - REG_ERR, -# define REG_ERR REG_ERR - REG_TRAPNO, -# define REG_TRAPNO REG_TRAPNO - REG_OLDMASK, -# define REG_OLDMASK REG_OLDMASK - REG_CR2 -# define REG_CR2 REG_CR2 -}; -#endif - -struct _libc_fpxreg -{ - unsigned short int significand[4]; - unsigned short int exponent; - unsigned short int padding[3]; -}; - -struct _libc_xmmreg -{ - __uint32_t element[4]; -}; - -struct _libc_fpstate -{ - /* 64-bit FXSAVE format. */ - __uint16_t cwd; - __uint16_t swd; - __uint16_t ftw; - __uint16_t fop; - __uint64_t rip; - __uint64_t rdp; - __uint32_t mxcsr; - __uint32_t mxcr_mask; - struct _libc_fpxreg _st[8]; - struct _libc_xmmreg _xmm[16]; - __uint32_t padding[24]; -}; - -/* Structure to describe FPU registers. */ -typedef struct _libc_fpstate *fpregset_t; - -/* Context to describe whole processor state. */ -typedef struct - { - gregset_t gregs; - /* Note that fpregs is a pointer. */ - fpregset_t fpregs; - __extension__ unsigned long long __reserved1 [8]; -} mcontext_t; - -/* Userlevel context. */ -typedef struct ucontext - { - unsigned long int uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - __sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - } ucontext_t; - -#else /* !__x86_64__ */ - -/* Type for general register. */ -typedef int greg_t; - -/* Number of general registers. */ -#define NGREG 19 - -/* Container for all general registers. */ -typedef greg_t gregset_t[NGREG]; - -#ifdef __USE_GNU -/* Number of each register is the `gregset_t' array. */ -enum -{ - REG_GS = 0, -# define REG_GS REG_GS - REG_FS, -# define REG_FS REG_FS - REG_ES, -# define REG_ES REG_ES - REG_DS, -# define REG_DS REG_DS - REG_EDI, -# define REG_EDI REG_EDI - REG_ESI, -# define REG_ESI REG_ESI - REG_EBP, -# define REG_EBP REG_EBP - REG_ESP, -# define REG_ESP REG_ESP - REG_EBX, -# define REG_EBX REG_EBX - REG_EDX, -# define REG_EDX REG_EDX - REG_ECX, -# define REG_ECX REG_ECX - REG_EAX, -# define REG_EAX REG_EAX - REG_TRAPNO, -# define REG_TRAPNO REG_TRAPNO - REG_ERR, -# define REG_ERR REG_ERR - REG_EIP, -# define REG_EIP REG_EIP - REG_CS, -# define REG_CS REG_CS - REG_EFL, -# define REG_EFL REG_EFL - REG_UESP, -# define REG_UESP REG_UESP - REG_SS -# define REG_SS REG_SS -}; -#endif - -/* Definitions taken from the kernel headers. */ -struct _libc_fpreg -{ - unsigned short int significand[4]; - unsigned short int exponent; -}; - -struct _libc_fpstate -{ - unsigned long int cw; - unsigned long int sw; - unsigned long int tag; - unsigned long int ipoff; - unsigned long int cssel; - unsigned long int dataoff; - unsigned long int datasel; - struct _libc_fpreg _st[8]; - unsigned long int status; -}; - -/* Structure to describe FPU registers. */ -typedef struct _libc_fpstate *fpregset_t; - -/* Context to describe whole processor state. */ -typedef struct - { - gregset_t gregs; - /* Due to Linux's history we have to use a pointer here. The SysV/i386 - ABI requires a struct with the values. */ - fpregset_t fpregs; - unsigned long int oldmask; - unsigned long int cr2; - } mcontext_t; - -/* Userlevel context. */ -typedef struct ucontext - { - unsigned long int uc_flags; - struct ucontext *uc_link; - stack_t uc_stack; - mcontext_t uc_mcontext; - __sigset_t uc_sigmask; - struct _libc_fpstate __fpregs_mem; - } ucontext_t; - -#endif /* !__x86_64__ */ - -#endif /* sys/ucontext.h */ diff --git a/libktorrent/miniboost/time.h b/libktorrent/miniboost/time.h deleted file mode 100644 index b76ce06c..00000000 --- a/libktorrent/miniboost/time.h +++ /dev/null @@ -1,434 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.23 Date and time - */ - -#ifndef _TIME_H - -#if (! defined __need_time_t && !defined __need_clock_t && \ - ! defined __need_timespec) -# define _TIME_H 1 -# include - -__BEGIN_DECLS - -#endif - -#ifdef _TIME_H -/* Get size_t and NULL from . */ -# define __need_size_t -# define __need_NULL -# include - -/* This defines CLOCKS_PER_SEC, which is the number of processor clock - ticks per second. */ -# include - -/* This is the obsolete POSIX.1-1988 name for the same constant. */ -# if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K -# ifndef CLK_TCK -# define CLK_TCK CLOCKS_PER_SEC -# endif -# endif - -#endif /* included. */ - -#if !defined __clock_t_defined && (defined _TIME_H || defined __need_clock_t) -# define __clock_t_defined 1 - -# include - -__BEGIN_NAMESPACE_STD -/* Returned by `clock'. */ -typedef __clock_t clock_t; -__END_NAMESPACE_STD -#if defined __USE_XOPEN || defined __USE_POSIX -__USING_NAMESPACE_STD(clock_t) -#endif - -#endif /* clock_t not defined and or need clock_t. */ -#undef __need_clock_t - -#if !defined __time_t_defined && (defined _TIME_H || defined __need_time_t) -# define __time_t_defined 1 - -# include - -__BEGIN_NAMESPACE_STD -/* Returned by `time'. */ -typedef __time_t time_t; -__END_NAMESPACE_STD -#ifdef __USE_POSIX -__USING_NAMESPACE_STD(time_t) -#endif - -#endif /* time_t not defined and or need time_t. */ -#undef __need_time_t - -#if !defined __clockid_t_defined && \ - ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_clockid_t) -# define __clockid_t_defined 1 - -# include - -/* Clock ID used in clock and timer functions. */ -typedef __clockid_t clockid_t; - -#endif /* clockid_t not defined and or need clockid_t. */ -#undef __clockid_time_t - -#if !defined __timer_t_defined && \ - ((defined _TIME_H && defined __USE_POSIX199309) || defined __need_timer_t) -# define __timer_t_defined 1 - -# include - -/* Timer ID returned by `timer_create'. */ -typedef __timer_t timer_t; - -#endif /* timer_t not defined and or need timer_t. */ -#undef __need_timer_t - - -#if (!defined __timespec_defined \ - && ((defined _TIME_H \ - && (defined __USE_POSIX199309 \ - || defined __USE_ISOC11)) \ - || defined __need_timespec)) -# define __timespec_defined 1 - -# include /* This defines __time_t for us. */ - -/* POSIX.1b structure for a time value. This is like a `struct timeval' but - has nanoseconds instead of microseconds. */ -struct timespec - { - __time_t tv_sec; /* Seconds. */ - __syscall_slong_t tv_nsec; /* Nanoseconds. */ - }; - -#endif /* timespec not defined and or need timespec. */ -#undef __need_timespec - - -#ifdef _TIME_H -__BEGIN_NAMESPACE_STD -/* Used by other time functions. */ -struct tm -{ - int tm_sec; /* Seconds. [0-60] (1 leap second) */ - int tm_min; /* Minutes. [0-59] */ - int tm_hour; /* Hours. [0-23] */ - int tm_mday; /* Day. [1-31] */ - int tm_mon; /* Month. [0-11] */ - int tm_year; /* Year - 1900. */ - int tm_wday; /* Day of week. [0-6] */ - int tm_yday; /* Days in year.[0-365] */ - int tm_isdst; /* DST. [-1/0/1]*/ - -# ifdef __USE_MISC - long int tm_gmtoff; /* Seconds east of UTC. */ - const char *tm_zone; /* Timezone abbreviation. */ -# else - long int __tm_gmtoff; /* Seconds east of UTC. */ - const char *__tm_zone; /* Timezone abbreviation. */ -# endif -}; -__END_NAMESPACE_STD -#if defined __USE_XOPEN || defined __USE_POSIX -__USING_NAMESPACE_STD(tm) -#endif - - -# ifdef __USE_POSIX199309 -/* POSIX.1b structure for timer start values and intervals. */ -struct itimerspec - { - struct timespec it_interval; - struct timespec it_value; - }; - -/* We can use a simple forward declaration. */ -struct sigevent; - -# endif /* POSIX.1b */ - -# ifdef __USE_XOPEN2K -# ifndef __pid_t_defined -typedef __pid_t pid_t; -# define __pid_t_defined -# endif -# endif - - -# ifdef __USE_ISOC11 -/* Time base values for timespec_get. */ -# define TIME_UTC 1 -# endif - - -__BEGIN_NAMESPACE_STD -/* Time used by the program so far (user time + system time). - The result / CLOCKS_PER_SECOND is program time in seconds. */ -extern clock_t clock (void) __THROW; - -/* Return the current time and put it in *TIMER if TIMER is not NULL. */ -extern time_t time (time_t *__timer) __THROW; - -/* Return the difference between TIME1 and TIME0. */ -extern double difftime (time_t __time1, time_t __time0) - __THROW __attribute__ ((__const__)); - -/* Return the `time_t' representation of TP and normalize TP. */ -extern time_t mktime (struct tm *__tp) __THROW; - - -/* Format TP into S according to FORMAT. - Write no more than MAXSIZE characters and return the number - of characters written, or 0 if it would exceed MAXSIZE. */ -extern size_t strftime (char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp) __THROW; -__END_NAMESPACE_STD - -# ifdef __USE_XOPEN -/* Parse S according to FORMAT and store binary time information in TP. - The return value is a pointer to the first unparsed character in S. */ -extern char *strptime (const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp) - __THROW; -# endif - -# ifdef __USE_XOPEN2K8 -/* Similar to the two functions above but take the information from - the provided locale and not the global locale. */ -# include - -extern size_t strftime_l (char *__restrict __s, size_t __maxsize, - const char *__restrict __format, - const struct tm *__restrict __tp, - __locale_t __loc) __THROW; -# endif - -# ifdef __USE_GNU -extern char *strptime_l (const char *__restrict __s, - const char *__restrict __fmt, struct tm *__tp, - __locale_t __loc) __THROW; -# endif - - -__BEGIN_NAMESPACE_STD -/* Return the `struct tm' representation of *TIMER - in Universal Coordinated Time (aka Greenwich Mean Time). */ -extern struct tm *gmtime (const time_t *__timer) __THROW; - -/* Return the `struct tm' representation - of *TIMER in the local timezone. */ -extern struct tm *localtime (const time_t *__timer) __THROW; -__END_NAMESPACE_STD - -# ifdef __USE_POSIX -/* Return the `struct tm' representation of *TIMER in UTC, - using *TP to store the result. */ -extern struct tm *gmtime_r (const time_t *__restrict __timer, - struct tm *__restrict __tp) __THROW; - -/* Return the `struct tm' representation of *TIMER in local time, - using *TP to store the result. */ -extern struct tm *localtime_r (const time_t *__restrict __timer, - struct tm *__restrict __tp) __THROW; -# endif /* POSIX */ - -__BEGIN_NAMESPACE_STD -/* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n" - that is the representation of TP in this format. */ -extern char *asctime (const struct tm *__tp) __THROW; - -/* Equivalent to `asctime (localtime (timer))'. */ -extern char *ctime (const time_t *__timer) __THROW; -__END_NAMESPACE_STD - -# ifdef __USE_POSIX -/* Reentrant versions of the above functions. */ - -/* Return in BUF a string of the form "Day Mon dd hh:mm:ss yyyy\n" - that is the representation of TP in this format. */ -extern char *asctime_r (const struct tm *__restrict __tp, - char *__restrict __buf) __THROW; - -/* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'. */ -extern char *ctime_r (const time_t *__restrict __timer, - char *__restrict __buf) __THROW; -# endif /* POSIX */ - - -/* Defined in localtime.c. */ -extern char *__tzname[2]; /* Current timezone names. */ -extern int __daylight; /* If daylight-saving time is ever in use. */ -extern long int __timezone; /* Seconds west of UTC. */ - - -# ifdef __USE_POSIX -/* Same as above. */ -extern char *tzname[2]; - -/* Set time conversion information from the TZ environment variable. - If TZ is not defined, a locale-dependent default is used. */ -extern void tzset (void) __THROW; -# endif - -# if defined __USE_MISC || defined __USE_XOPEN -extern int daylight; -extern long int timezone; -# endif - -# ifdef __USE_MISC -/* Set the system time to *WHEN. - This call is restricted to the superuser. */ -extern int stime (const time_t *__when) __THROW; -# endif - - -/* Nonzero if YEAR is a leap year (every 4 years, - except every 100th isn't, and every 400th is). */ -# define __isleap(year) \ - ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) - - -# ifdef __USE_MISC -/* Miscellaneous functions many Unices inherited from the public domain - localtime package. These are included only for compatibility. */ - -/* Like `mktime', but for TP represents Universal Time, not local time. */ -extern time_t timegm (struct tm *__tp) __THROW; - -/* Another name for `mktime'. */ -extern time_t timelocal (struct tm *__tp) __THROW; - -/* Return the number of days in YEAR. */ -extern int dysize (int __year) __THROW __attribute__ ((__const__)); -# endif - - -# ifdef __USE_POSIX199309 -/* Pause execution for a number of nanoseconds. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int nanosleep (const struct timespec *__requested_time, - struct timespec *__remaining); - - -/* Get resolution of clock CLOCK_ID. */ -extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; - -/* Get current value of clock CLOCK_ID and store it in TP. */ -extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW; - -/* Set clock CLOCK_ID to value TP. */ -extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) - __THROW; - -# ifdef __USE_XOPEN2K -/* High-resolution sleep with the specified clock. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int clock_nanosleep (clockid_t __clock_id, int __flags, - const struct timespec *__req, - struct timespec *__rem); - -/* Return clock ID for CPU-time clock. */ -extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) __THROW; -# endif - - -/* Create new per-process timer using CLOCK_ID. */ -extern int timer_create (clockid_t __clock_id, - struct sigevent *__restrict __evp, - timer_t *__restrict __timerid) __THROW; - -/* Delete timer TIMERID. */ -extern int timer_delete (timer_t __timerid) __THROW; - -/* Set timer TIMERID to VALUE, returning old value in OVALUE. */ -extern int timer_settime (timer_t __timerid, int __flags, - const struct itimerspec *__restrict __value, - struct itimerspec *__restrict __ovalue) __THROW; - -/* Get current value of timer TIMERID and store it in VALUE. */ -extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) - __THROW; - -/* Get expiration overrun for timer TIMERID. */ -extern int timer_getoverrun (timer_t __timerid) __THROW; -# endif - - -# ifdef __USE_ISOC11 -/* Set TS to calendar time based in time base BASE. */ -extern int timespec_get (struct timespec *__ts, int __base) - __THROW __nonnull ((1)); -# endif - - -# ifdef __USE_XOPEN_EXTENDED -/* Set to one of the following values to indicate an error. - 1 the DATEMSK environment variable is null or undefined, - 2 the template file cannot be opened for reading, - 3 failed to get file status information, - 4 the template file is not a regular file, - 5 an error is encountered while reading the template file, - 6 memory allication failed (not enough memory available), - 7 there is no line in the template that matches the input, - 8 invalid input specification Example: February 31 or a time is - specified that can not be represented in a time_t (representing - the time in seconds since 00:00:00 UTC, January 1, 1970) */ -extern int getdate_err; - -/* Parse the given string as a date specification and return a value - representing the value. The templates from the file identified by - the environment variable DATEMSK are used. In case of an error - `getdate_err' is set. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern struct tm *getdate (const char *__string); -# endif - -# ifdef __USE_GNU -/* Since `getdate' is not reentrant because of the use of `getdate_err' - and the static buffer to return the result in, we provide a thread-safe - variant. The functionality is the same. The result is returned in - the buffer pointed to by RESBUFP and in case of an error the return - value is != 0 with the same values as given above for `getdate_err'. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int getdate_r (const char *__restrict __string, - struct tm *__restrict __resbufp); -# endif - -__END_DECLS - -#endif /* included. */ - -#endif /* not already included. */ diff --git a/libktorrent/miniboost/unistd.h b/libktorrent/miniboost/unistd.h deleted file mode 100644 index ac81d92c..00000000 --- a/libktorrent/miniboost/unistd.h +++ /dev/null @@ -1,1153 +0,0 @@ -/* Copyright (C) 1991-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * POSIX Standard: 2.10 Symbolic Constants - */ - -#ifndef _UNISTD_H -#define _UNISTD_H 1 - -#include - -__BEGIN_DECLS - -/* These may be used to determine what facilities are present at compile time. - Their values can be obtained at run time from `sysconf'. */ - -#ifdef __USE_XOPEN2K8 -/* POSIX Standard approved as ISO/IEC 9945-1 as of September 2008. */ -# define _POSIX_VERSION 200809L -#elif defined __USE_XOPEN2K -/* POSIX Standard approved as ISO/IEC 9945-1 as of December 2001. */ -# define _POSIX_VERSION 200112L -#elif defined __USE_POSIX199506 -/* POSIX Standard approved as ISO/IEC 9945-1 as of June 1995. */ -# define _POSIX_VERSION 199506L -#elif defined __USE_POSIX199309 -/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1993. */ -# define _POSIX_VERSION 199309L -#else -/* POSIX Standard approved as ISO/IEC 9945-1 as of September 1990. */ -# define _POSIX_VERSION 199009L -#endif - -/* These are not #ifdef __USE_POSIX2 because they are - in the theoretically application-owned namespace. */ - -#ifdef __USE_XOPEN2K8 -# define __POSIX2_THIS_VERSION 200809L -/* The utilities on GNU systems also correspond to this version. */ -#elif defined __USE_XOPEN2K -/* The utilities on GNU systems also correspond to this version. */ -# define __POSIX2_THIS_VERSION 200112L -#elif defined __USE_POSIX199506 -/* The utilities on GNU systems also correspond to this version. */ -# define __POSIX2_THIS_VERSION 199506L -#else -/* The utilities on GNU systems also correspond to this version. */ -# define __POSIX2_THIS_VERSION 199209L -#endif - -/* The utilities on GNU systems also correspond to this version. */ -#define _POSIX2_VERSION __POSIX2_THIS_VERSION - -/* If defined, the implementation supports the - C Language Bindings Option. */ -#define _POSIX2_C_BIND __POSIX2_THIS_VERSION - -/* If defined, the implementation supports the - C Language Development Utilities Option. */ -#define _POSIX2_C_DEV __POSIX2_THIS_VERSION - -/* If defined, the implementation supports the - Software Development Utilities Option. */ -#define _POSIX2_SW_DEV __POSIX2_THIS_VERSION - -/* If defined, the implementation supports the - creation of locales with the localedef utility. */ -#define _POSIX2_LOCALEDEF __POSIX2_THIS_VERSION - -/* X/Open version number to which the library conforms. It is selectable. */ -#ifdef __USE_XOPEN2K8 -# define _XOPEN_VERSION 700 -#elif defined __USE_XOPEN2K -# define _XOPEN_VERSION 600 -#elif defined __USE_UNIX98 -# define _XOPEN_VERSION 500 -#else -# define _XOPEN_VERSION 4 -#endif - -/* Commands and utilities from XPG4 are available. */ -#define _XOPEN_XCU_VERSION 4 - -/* We are compatible with the old published standards as well. */ -#define _XOPEN_XPG2 1 -#define _XOPEN_XPG3 1 -#define _XOPEN_XPG4 1 - -/* The X/Open Unix extensions are available. */ -#define _XOPEN_UNIX 1 - -/* Encryption is present. */ -#define _XOPEN_CRYPT 1 - -/* The enhanced internationalization capabilities according to XPG4.2 - are present. */ -#define _XOPEN_ENH_I18N 1 - -/* The legacy interfaces are also available. */ -#define _XOPEN_LEGACY 1 - - -/* Get values of POSIX options: - - If these symbols are defined, the corresponding features are - always available. If not, they may be available sometimes. - The current values can be obtained with `sysconf'. - - _POSIX_JOB_CONTROL Job control is supported. - _POSIX_SAVED_IDS Processes have a saved set-user-ID - and a saved set-group-ID. - _POSIX_REALTIME_SIGNALS Real-time, queued signals are supported. - _POSIX_PRIORITY_SCHEDULING Priority scheduling is supported. - _POSIX_TIMERS POSIX.4 clocks and timers are supported. - _POSIX_ASYNCHRONOUS_IO Asynchronous I/O is supported. - _POSIX_PRIORITIZED_IO Prioritized asynchronous I/O is supported. - _POSIX_SYNCHRONIZED_IO Synchronizing file data is supported. - _POSIX_FSYNC The fsync function is present. - _POSIX_MAPPED_FILES Mapping of files to memory is supported. - _POSIX_MEMLOCK Locking of all memory is supported. - _POSIX_MEMLOCK_RANGE Locking of ranges of memory is supported. - _POSIX_MEMORY_PROTECTION Setting of memory protections is supported. - _POSIX_MESSAGE_PASSING POSIX.4 message queues are supported. - _POSIX_SEMAPHORES POSIX.4 counting semaphores are supported. - _POSIX_SHARED_MEMORY_OBJECTS POSIX.4 shared memory objects are supported. - _POSIX_THREADS POSIX.1c pthreads are supported. - _POSIX_THREAD_ATTR_STACKADDR Thread stack address attribute option supported. - _POSIX_THREAD_ATTR_STACKSIZE Thread stack size attribute option supported. - _POSIX_THREAD_SAFE_FUNCTIONS Thread-safe functions are supported. - _POSIX_THREAD_PRIORITY_SCHEDULING - POSIX.1c thread execution scheduling supported. - _POSIX_THREAD_PRIO_INHERIT Thread priority inheritance option supported. - _POSIX_THREAD_PRIO_PROTECT Thread priority protection option supported. - _POSIX_THREAD_PROCESS_SHARED Process-shared synchronization supported. - _POSIX_PII Protocol-independent interfaces are supported. - _POSIX_PII_XTI XTI protocol-indep. interfaces are supported. - _POSIX_PII_SOCKET Socket protocol-indep. interfaces are supported. - _POSIX_PII_INTERNET Internet family of protocols supported. - _POSIX_PII_INTERNET_STREAM Connection-mode Internet protocol supported. - _POSIX_PII_INTERNET_DGRAM Connectionless Internet protocol supported. - _POSIX_PII_OSI ISO/OSI family of protocols supported. - _POSIX_PII_OSI_COTS Connection-mode ISO/OSI service supported. - _POSIX_PII_OSI_CLTS Connectionless ISO/OSI service supported. - _POSIX_POLL Implementation supports `poll' function. - _POSIX_SELECT Implementation supports `select' and `pselect'. - - _XOPEN_REALTIME X/Open realtime support is available. - _XOPEN_REALTIME_THREADS X/Open realtime thread support is available. - _XOPEN_SHM Shared memory interface according to XPG4.2. - - _XBS5_ILP32_OFF32 Implementation provides environment with 32-bit - int, long, pointer, and off_t types. - _XBS5_ILP32_OFFBIG Implementation provides environment with 32-bit - int, long, and pointer and off_t with at least - 64 bits. - _XBS5_LP64_OFF64 Implementation provides environment with 32-bit - int, and 64-bit long, pointer, and off_t types. - _XBS5_LPBIG_OFFBIG Implementation provides environment with at - least 32 bits int and long, pointer, and off_t - with at least 64 bits. - - If any of these symbols is defined as -1, the corresponding option is not - true for any file. If any is defined as other than -1, the corresponding - option is true for all files. If a symbol is not defined at all, the value - for a specific file can be obtained from `pathconf' and `fpathconf'. - - _POSIX_CHOWN_RESTRICTED Only the super user can use `chown' to change - the owner of a file. `chown' can only be used - to change the group ID of a file to a group of - which the calling process is a member. - _POSIX_NO_TRUNC Pathname components longer than - NAME_MAX generate an error. - _POSIX_VDISABLE If defined, if the value of an element of the - `c_cc' member of `struct termios' is - _POSIX_VDISABLE, no character will have the - effect associated with that element. - _POSIX_SYNC_IO Synchronous I/O may be performed. - _POSIX_ASYNC_IO Asynchronous I/O may be performed. - _POSIX_PRIO_IO Prioritized Asynchronous I/O may be performed. - - Support for the Large File Support interface is not generally available. - If it is available the following constants are defined to one. - _LFS64_LARGEFILE Low-level I/O supports large files. - _LFS64_STDIO Standard I/O supports large files. - */ - -#include - -/* Get the environment definitions from Unix98. */ -#if defined __USE_UNIX98 || defined __USE_XOPEN2K -# include -#endif - -/* Standard file descriptors. */ -#define STDIN_FILENO 0 /* Standard input. */ -#define STDOUT_FILENO 1 /* Standard output. */ -#define STDERR_FILENO 2 /* Standard error output. */ - - -/* All functions that are not declared anywhere else. */ - -#include - -#ifndef __ssize_t_defined -typedef __ssize_t ssize_t; -# define __ssize_t_defined -#endif - -#define __need_size_t -#define __need_NULL -#include - -#if defined __USE_XOPEN || defined __USE_XOPEN2K -/* The Single Unix specification says that some more types are - available here. */ -# ifndef __gid_t_defined -typedef __gid_t gid_t; -# define __gid_t_defined -# endif - -# ifndef __uid_t_defined -typedef __uid_t uid_t; -# define __uid_t_defined -# endif - -# ifndef __off_t_defined -# ifndef __USE_FILE_OFFSET64 -typedef __off_t off_t; -# else -typedef __off64_t off_t; -# endif -# define __off_t_defined -# endif -# if defined __USE_LARGEFILE64 && !defined __off64_t_defined -typedef __off64_t off64_t; -# define __off64_t_defined -# endif - -# ifndef __useconds_t_defined -typedef __useconds_t useconds_t; -# define __useconds_t_defined -# endif - -# ifndef __pid_t_defined -typedef __pid_t pid_t; -# define __pid_t_defined -# endif -#endif /* X/Open */ - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K -# ifndef __intptr_t_defined -typedef __intptr_t intptr_t; -# define __intptr_t_defined -# endif -#endif - -#if defined __USE_MISC || defined __USE_XOPEN -# ifndef __socklen_t_defined -typedef __socklen_t socklen_t; -# define __socklen_t_defined -# endif -#endif - -/* Values for the second argument to access. - These may be OR'd together. */ -#define R_OK 4 /* Test for read permission. */ -#define W_OK 2 /* Test for write permission. */ -#define X_OK 1 /* Test for execute permission. */ -#define F_OK 0 /* Test for existence. */ - -/* Test for access to NAME using the real UID and real GID. */ -extern int access (const char *__name, int __type) __THROW __nonnull ((1)); - -#ifdef __USE_GNU -/* Test for access to NAME using the effective UID and GID - (as normal file operations use). */ -extern int euidaccess (const char *__name, int __type) - __THROW __nonnull ((1)); - -/* An alias for `euidaccess', used by some other systems. */ -extern int eaccess (const char *__name, int __type) - __THROW __nonnull ((1)); -#endif - -#ifdef __USE_ATFILE -/* Test for access to FILE relative to the directory FD is open on. - If AT_EACCESS is set in FLAG, then use effective IDs like `eaccess', - otherwise use real IDs like `access'. */ -extern int faccessat (int __fd, const char *__file, int __type, int __flag) - __THROW __nonnull ((2)) __wur; -#endif /* Use GNU. */ - - -/* Values for the WHENCE argument to lseek. */ -#ifndef _STDIO_H /* has the same definitions. */ -# define SEEK_SET 0 /* Seek from beginning of file. */ -# define SEEK_CUR 1 /* Seek from current position. */ -# define SEEK_END 2 /* Seek from end of file. */ -# ifdef __USE_GNU -# define SEEK_DATA 3 /* Seek to next data. */ -# define SEEK_HOLE 4 /* Seek to next hole. */ -# endif -#endif - -#if defined __USE_MISC && !defined L_SET -/* Old BSD names for the same constants; just for compatibility. */ -# define L_SET SEEK_SET -# define L_INCR SEEK_CUR -# define L_XTND SEEK_END -#endif - - -/* Move FD's file position to OFFSET bytes from the - beginning of the file (if WHENCE is SEEK_SET), - the current position (if WHENCE is SEEK_CUR), - or the end of the file (if WHENCE is SEEK_END). - Return the new file position. */ -#ifndef __USE_FILE_OFFSET64 -extern __off_t lseek (int __fd, __off_t __offset, int __whence) __THROW; -#else -# ifdef __REDIRECT_NTH -extern __off64_t __REDIRECT_NTH (lseek, - (int __fd, __off64_t __offset, int __whence), - lseek64); -# else -# define lseek lseek64 -# endif -#endif -#ifdef __USE_LARGEFILE64 -extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) - __THROW; -#endif - -/* Close the file descriptor FD. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int close (int __fd); - -/* Read NBYTES into BUF from FD. Return the - number read, -1 for errors or 0 for EOF. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur; - -/* Write N bytes of BUF to FD. Return the number written, or -1. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur; - -#if defined __USE_UNIX98 || defined __USE_XOPEN2K8 -# ifndef __USE_FILE_OFFSET64 -/* Read NBYTES into BUF from FD at the given position OFFSET without - changing the file pointer. Return the number read, -1 for errors - or 0 for EOF. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, - __off_t __offset) __wur; - -/* Write N bytes of BUF to FD at the given position OFFSET without - changing the file pointer. Return the number written, or -1. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, - __off_t __offset) __wur; -# else -# ifdef __REDIRECT -extern ssize_t __REDIRECT (pread, (int __fd, void *__buf, size_t __nbytes, - __off64_t __offset), - pread64) __wur; -extern ssize_t __REDIRECT (pwrite, (int __fd, const void *__buf, - size_t __nbytes, __off64_t __offset), - pwrite64) __wur; -# else -# define pread pread64 -# define pwrite pwrite64 -# endif -# endif - -# ifdef __USE_LARGEFILE64 -/* Read NBYTES into BUF from FD at the given position OFFSET without - changing the file pointer. Return the number read, -1 for errors - or 0 for EOF. */ -extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, - __off64_t __offset) __wur; -/* Write N bytes of BUF to FD at the given position OFFSET without - changing the file pointer. Return the number written, or -1. */ -extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, - __off64_t __offset) __wur; -# endif -#endif - -/* Create a one-way communication channel (pipe). - If successful, two file descriptors are stored in PIPEDES; - bytes written on PIPEDES[1] can be read from PIPEDES[0]. - Returns 0 if successful, -1 if not. */ -extern int pipe (int __pipedes[2]) __THROW __wur; - -#ifdef __USE_GNU -/* Same as pipe but apply flags passed in FLAGS to the new file - descriptors. */ -extern int pipe2 (int __pipedes[2], int __flags) __THROW __wur; -#endif - -/* Schedule an alarm. In SECONDS seconds, the process will get a SIGALRM. - If SECONDS is zero, any currently scheduled alarm will be cancelled. - The function returns the number of seconds remaining until the last - alarm scheduled would have signaled, or zero if there wasn't one. - There is no return value to indicate an error, but you can set `errno' - to 0 and check its value after calling `alarm', and this might tell you. - The signal may come late due to processor scheduling. */ -extern unsigned int alarm (unsigned int __seconds) __THROW; - -/* Make the process sleep for SECONDS seconds, or until a signal arrives - and is not ignored. The function returns the number of seconds less - than SECONDS which it actually slept (thus zero if it slept the full time). - If a signal handler does a `longjmp' or modifies the handling of the - SIGALRM signal while inside `sleep' call, the handling of the SIGALRM - signal afterwards is undefined. There is no return value to indicate - error, but if `sleep' returns SECONDS, it probably didn't work. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern unsigned int sleep (unsigned int __seconds); - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \ - || defined __USE_MISC -/* Set an alarm to go off (generating a SIGALRM signal) in VALUE - microseconds. If INTERVAL is nonzero, when the alarm goes off, the - timer is reset to go off every INTERVAL microseconds thereafter. - Returns the number of microseconds remaining before the alarm. */ -extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) - __THROW; - -/* Sleep USECONDS microseconds, or until a signal arrives that is not blocked - or ignored. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int usleep (__useconds_t __useconds); -#endif - - -/* Suspend the process until a signal arrives. - This always returns -1 and sets `errno' to EINTR. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int pause (void); - - -/* Change the owner and group of FILE. */ -extern int chown (const char *__file, __uid_t __owner, __gid_t __group) - __THROW __nonnull ((1)) __wur; - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Change the owner and group of the file that FD is open on. */ -extern int fchown (int __fd, __uid_t __owner, __gid_t __group) __THROW __wur; - - -/* Change owner and group of FILE, if it is a symbolic - link the ownership of the symbolic link is changed. */ -extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) - __THROW __nonnull ((1)) __wur; - -#endif /* Use X/Open Unix. */ - -#ifdef __USE_ATFILE -/* Change the owner and group of FILE relative to the directory FD is open - on. */ -extern int fchownat (int __fd, const char *__file, __uid_t __owner, - __gid_t __group, int __flag) - __THROW __nonnull ((2)) __wur; -#endif /* Use GNU. */ - -/* Change the process's working directory to PATH. */ -extern int chdir (const char *__path) __THROW __nonnull ((1)) __wur; - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Change the process's working directory to the one FD is open on. */ -extern int fchdir (int __fd) __THROW __wur; -#endif - -/* Get the pathname of the current working directory, - and put it in SIZE bytes of BUF. Returns NULL if the - directory couldn't be determined or SIZE was too small. - If successful, returns BUF. In GNU, if BUF is NULL, - an array is allocated with `malloc'; the array is SIZE - bytes long, unless SIZE == 0, in which case it is as - big as necessary. */ -extern char *getcwd (char *__buf, size_t __size) __THROW __wur; - -#ifdef __USE_GNU -/* Return a malloc'd string containing the current directory name. - If the environment variable `PWD' is set, and its value is correct, - that value is used. */ -extern char *get_current_dir_name (void) __THROW; -#endif - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \ - || defined __USE_MISC -/* Put the absolute pathname of the current working directory in BUF. - If successful, return BUF. If not, put an error message in - BUF and return NULL. BUF should be at least PATH_MAX bytes long. */ -extern char *getwd (char *__buf) - __THROW __nonnull ((1)) __attribute_deprecated__ __wur; -#endif - - -/* Duplicate FD, returning a new file descriptor on the same file. */ -extern int dup (int __fd) __THROW __wur; - -/* Duplicate FD to FD2, closing FD2 and making it open on the same file. */ -extern int dup2 (int __fd, int __fd2) __THROW; - -#ifdef __USE_GNU -/* Duplicate FD to FD2, closing FD2 and making it open on the same - file while setting flags according to FLAGS. */ -extern int dup3 (int __fd, int __fd2, int __flags) __THROW; -#endif - -/* NULL-terminated array of "NAME=VALUE" environment variables. */ -extern char **__environ; -#ifdef __USE_GNU -extern char **environ; -#endif - - -/* Replace the current process, executing PATH with arguments ARGV and - environment ENVP. ARGV and ENVP are terminated by NULL pointers. */ -extern int execve (const char *__path, char *const __argv[], - char *const __envp[]) __THROW __nonnull ((1, 2)); - -#ifdef __USE_XOPEN2K8 -/* Execute the file FD refers to, overlaying the running program image. - ARGV and ENVP are passed to the new program, as for `execve'. */ -extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) - __THROW __nonnull ((2)); -#endif - - -/* Execute PATH with arguments ARGV and environment from `environ'. */ -extern int execv (const char *__path, char *const __argv[]) - __THROW __nonnull ((1, 2)); - -/* Execute PATH with all arguments after PATH until a NULL pointer, - and the argument after that for environment. */ -extern int execle (const char *__path, const char *__arg, ...) - __THROW __nonnull ((1, 2)); - -/* Execute PATH with all arguments after PATH until - a NULL pointer and environment from `environ'. */ -extern int execl (const char *__path, const char *__arg, ...) - __THROW __nonnull ((1, 2)); - -/* Execute FILE, searching in the `PATH' environment variable if it contains - no slashes, with arguments ARGV and environment from `environ'. */ -extern int execvp (const char *__file, char *const __argv[]) - __THROW __nonnull ((1, 2)); - -/* Execute FILE, searching in the `PATH' environment variable if - it contains no slashes, with all arguments after FILE until a - NULL pointer and environment from `environ'. */ -extern int execlp (const char *__file, const char *__arg, ...) - __THROW __nonnull ((1, 2)); - -#ifdef __USE_GNU -/* Execute FILE, searching in the `PATH' environment variable if it contains - no slashes, with arguments ARGV and environment from `environ'. */ -extern int execvpe (const char *__file, char *const __argv[], - char *const __envp[]) - __THROW __nonnull ((1, 2)); -#endif - - -#if defined __USE_MISC || defined __USE_XOPEN -/* Add INC to priority of the current process. */ -extern int nice (int __inc) __THROW __wur; -#endif - - -/* Terminate program execution with the low-order 8 bits of STATUS. */ -extern void _exit (int __status) __attribute__ ((__noreturn__)); - - -/* Get the `_PC_*' symbols for the NAME argument to `pathconf' and `fpathconf'; - the `_SC_*' symbols for the NAME argument to `sysconf'; - and the `_CS_*' symbols for the NAME argument to `confstr'. */ -#include - -/* Get file-specific configuration information about PATH. */ -extern long int pathconf (const char *__path, int __name) - __THROW __nonnull ((1)); - -/* Get file-specific configuration about descriptor FD. */ -extern long int fpathconf (int __fd, int __name) __THROW; - -/* Get the value of the system variable NAME. */ -extern long int sysconf (int __name) __THROW; - -#ifdef __USE_POSIX2 -/* Get the value of the string-valued system variable NAME. */ -extern size_t confstr (int __name, char *__buf, size_t __len) __THROW; -#endif - - -/* Get the process ID of the calling process. */ -extern __pid_t getpid (void) __THROW; - -/* Get the process ID of the calling process's parent. */ -extern __pid_t getppid (void) __THROW; - -/* Get the process group ID of the calling process. */ -extern __pid_t getpgrp (void) __THROW; - -/* Get the process group ID of process PID. */ -extern __pid_t __getpgid (__pid_t __pid) __THROW; -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -extern __pid_t getpgid (__pid_t __pid) __THROW; -#endif - - -/* Set the process group ID of the process matching PID to PGID. - If PID is zero, the current process's process group ID is set. - If PGID is zero, the process ID of the process is used. */ -extern int setpgid (__pid_t __pid, __pid_t __pgid) __THROW; - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Both System V and BSD have `setpgrp' functions, but with different - calling conventions. The BSD function is the same as POSIX.1 `setpgid' - (above). The System V function takes no arguments and puts the calling - process in its on group like `setpgid (0, 0)'. - - New programs should always use `setpgid' instead. - - GNU provides the POSIX.1 function. */ - -/* Set the process group ID of the calling process to its own PID. - This is exactly the same as `setpgid (0, 0)'. */ -extern int setpgrp (void) __THROW; - -#endif /* Use misc or X/Open. */ - -/* Create a new session with the calling process as its leader. - The process group IDs of the session and the calling process - are set to the process ID of the calling process, which is returned. */ -extern __pid_t setsid (void) __THROW; - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 -/* Return the session ID of the given process. */ -extern __pid_t getsid (__pid_t __pid) __THROW; -#endif - -/* Get the real user ID of the calling process. */ -extern __uid_t getuid (void) __THROW; - -/* Get the effective user ID of the calling process. */ -extern __uid_t geteuid (void) __THROW; - -/* Get the real group ID of the calling process. */ -extern __gid_t getgid (void) __THROW; - -/* Get the effective group ID of the calling process. */ -extern __gid_t getegid (void) __THROW; - -/* If SIZE is zero, return the number of supplementary groups - the calling process is in. Otherwise, fill in the group IDs - of its supplementary groups in LIST and return the number written. */ -extern int getgroups (int __size, __gid_t __list[]) __THROW __wur; - -#ifdef __USE_GNU -/* Return nonzero iff the calling process is in group GID. */ -extern int group_member (__gid_t __gid) __THROW; -#endif - -/* Set the user ID of the calling process to UID. - If the calling process is the super-user, set the real - and effective user IDs, and the saved set-user-ID to UID; - if not, the effective user ID is set to UID. */ -extern int setuid (__uid_t __uid) __THROW __wur; - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Set the real user ID of the calling process to RUID, - and the effective user ID of the calling process to EUID. */ -extern int setreuid (__uid_t __ruid, __uid_t __euid) __THROW __wur; -#endif - -#ifdef __USE_XOPEN2K -/* Set the effective user ID of the calling process to UID. */ -extern int seteuid (__uid_t __uid) __THROW __wur; -#endif /* Use POSIX.1-2001. */ - -/* Set the group ID of the calling process to GID. - If the calling process is the super-user, set the real - and effective group IDs, and the saved set-group-ID to GID; - if not, the effective group ID is set to GID. */ -extern int setgid (__gid_t __gid) __THROW __wur; - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED -/* Set the real group ID of the calling process to RGID, - and the effective group ID of the calling process to EGID. */ -extern int setregid (__gid_t __rgid, __gid_t __egid) __THROW __wur; -#endif - -#ifdef __USE_XOPEN2K -/* Set the effective group ID of the calling process to GID. */ -extern int setegid (__gid_t __gid) __THROW __wur; -#endif /* Use POSIX.1-2001. */ - -#ifdef __USE_GNU -/* Fetch the real user ID, effective user ID, and saved-set user ID, - of the calling process. */ -extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) - __THROW; - -/* Fetch the real group ID, effective group ID, and saved-set group ID, - of the calling process. */ -extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) - __THROW; - -/* Set the real user ID, effective user ID, and saved-set user ID, - of the calling process to RUID, EUID, and SUID, respectively. */ -extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) - __THROW __wur; - -/* Set the real group ID, effective group ID, and saved-set group ID, - of the calling process to RGID, EGID, and SGID, respectively. */ -extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) - __THROW __wur; -#endif - - -/* Clone the calling process, creating an exact copy. - Return -1 for errors, 0 to the new process, - and the process ID of the new process to the old process. */ -extern __pid_t fork (void) __THROWNL; - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K8) \ - || defined __USE_MISC -/* Clone the calling process, but without copying the whole address space. - The calling process is suspended until the new process exits or is - replaced by a call to `execve'. Return -1 for errors, 0 to the new process, - and the process ID of the new process to the old process. */ -extern __pid_t vfork (void) __THROW; -#endif /* Use misc or XPG < 7. */ - - -/* Return the pathname of the terminal FD is open on, or NULL on errors. - The returned storage is good only until the next call to this function. */ -extern char *ttyname (int __fd) __THROW; - -/* Store at most BUFLEN characters of the pathname of the terminal FD is - open on in BUF. Return 0 on success, otherwise an error number. */ -extern int ttyname_r (int __fd, char *__buf, size_t __buflen) - __THROW __nonnull ((2)) __wur; - -/* Return 1 if FD is a valid descriptor associated - with a terminal, zero if not. */ -extern int isatty (int __fd) __THROW; - -#if defined __USE_MISC \ - || (defined __USE_XOPEN_EXTENDED && !defined __USE_UNIX98) -/* Return the index into the active-logins file (utmp) for - the controlling terminal. */ -extern int ttyslot (void) __THROW; -#endif - - -/* Make a link to FROM named TO. */ -extern int link (const char *__from, const char *__to) - __THROW __nonnull ((1, 2)) __wur; - -#ifdef __USE_ATFILE -/* Like link but relative paths in TO and FROM are interpreted relative - to FROMFD and TOFD respectively. */ -extern int linkat (int __fromfd, const char *__from, int __tofd, - const char *__to, int __flags) - __THROW __nonnull ((2, 4)) __wur; -#endif - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K -/* Make a symbolic link to FROM named TO. */ -extern int symlink (const char *__from, const char *__to) - __THROW __nonnull ((1, 2)) __wur; - -/* Read the contents of the symbolic link PATH into no more than - LEN bytes of BUF. The contents are not null-terminated. - Returns the number of characters read, or -1 for errors. */ -extern ssize_t readlink (const char *__restrict __path, - char *__restrict __buf, size_t __len) - __THROW __nonnull ((1, 2)) __wur; -#endif /* Use POSIX.1-2001. */ - -#ifdef __USE_ATFILE -/* Like symlink but a relative path in TO is interpreted relative to TOFD. */ -extern int symlinkat (const char *__from, int __tofd, - const char *__to) __THROW __nonnull ((1, 3)) __wur; - -/* Like readlink but a relative PATH is interpreted relative to FD. */ -extern ssize_t readlinkat (int __fd, const char *__restrict __path, - char *__restrict __buf, size_t __len) - __THROW __nonnull ((2, 3)) __wur; -#endif - -/* Remove the link NAME. */ -extern int unlink (const char *__name) __THROW __nonnull ((1)); - -#ifdef __USE_ATFILE -/* Remove the link NAME relative to FD. */ -extern int unlinkat (int __fd, const char *__name, int __flag) - __THROW __nonnull ((2)); -#endif - -/* Remove the directory PATH. */ -extern int rmdir (const char *__path) __THROW __nonnull ((1)); - - -/* Return the foreground process group ID of FD. */ -extern __pid_t tcgetpgrp (int __fd) __THROW; - -/* Set the foreground process group ID of FD set PGRP_ID. */ -extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __THROW; - - -/* Return the login name of the user. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern char *getlogin (void); -#if defined __USE_REENTRANT || defined __USE_POSIX199506 -/* Return at most NAME_LEN characters of the login name of the user in NAME. - If it cannot be determined or some other error occurred, return the error - code. Otherwise return 0. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int getlogin_r (char *__name, size_t __name_len) __nonnull ((1)); -#endif - -#ifdef __USE_MISC -/* Set the login name returned by `getlogin'. */ -extern int setlogin (const char *__name) __THROW __nonnull ((1)); -#endif - - -#ifdef __USE_POSIX2 -/* Get definitions and prototypes for functions to process the - arguments in ARGV (ARGC of them, minus the program name) for - options given in OPTS. */ -# define __need_getopt -# include -#endif - - -#if defined __USE_UNIX98 || defined __USE_XOPEN2K -/* Put the name of the current host in no more than LEN bytes of NAME. - The result is null-terminated if LEN is large enough for the full - name and the terminator. */ -extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1)); -#endif - - -#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_UNIX98) -/* Set the name of the current host to NAME, which is LEN bytes long. - This call is restricted to the super-user. */ -extern int sethostname (const char *__name, size_t __len) - __THROW __nonnull ((1)) __wur; - -/* Set the current machine's Internet number to ID. - This call is restricted to the super-user. */ -extern int sethostid (long int __id) __THROW __wur; - - -/* Get and set the NIS (aka YP) domain name, if any. - Called just like `gethostname' and `sethostname'. - The NIS domain name is usually the empty string when not using NIS. */ -extern int getdomainname (char *__name, size_t __len) - __THROW __nonnull ((1)) __wur; -extern int setdomainname (const char *__name, size_t __len) - __THROW __nonnull ((1)) __wur; - - -/* Revoke access permissions to all processes currently communicating - with the control terminal, and then send a SIGHUP signal to the process - group of the control terminal. */ -extern int vhangup (void) __THROW; - -/* Revoke the access of all descriptors currently open on FILE. */ -extern int revoke (const char *__file) __THROW __nonnull ((1)) __wur; - - -/* Enable statistical profiling, writing samples of the PC into at most - SIZE bytes of SAMPLE_BUFFER; every processor clock tick while profiling - is enabled, the system examines the user PC and increments - SAMPLE_BUFFER[((PC - OFFSET) / 2) * SCALE / 65536]. If SCALE is zero, - disable profiling. Returns zero on success, -1 on error. */ -extern int profil (unsigned short int *__sample_buffer, size_t __size, - size_t __offset, unsigned int __scale) - __THROW __nonnull ((1)); - - -/* Turn accounting on if NAME is an existing file. The system will then write - a record for each process as it terminates, to this file. If NAME is NULL, - turn accounting off. This call is restricted to the super-user. */ -extern int acct (const char *__name) __THROW; - - -/* Successive calls return the shells listed in `/etc/shells'. */ -extern char *getusershell (void) __THROW; -extern void endusershell (void) __THROW; /* Discard cached info. */ -extern void setusershell (void) __THROW; /* Rewind and re-read the file. */ - - -/* Put the program in the background, and dissociate from the controlling - terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero, - redirects stdin, stdout, and stderr to /dev/null. */ -extern int daemon (int __nochdir, int __noclose) __THROW __wur; -#endif /* Use misc || X/Open. */ - - -#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_XOPEN2K) -/* Make PATH be the root directory (the starting point for absolute paths). - This call is restricted to the super-user. */ -extern int chroot (const char *__path) __THROW __nonnull ((1)) __wur; - -/* Prompt with PROMPT and read a string from the terminal without echoing. - Uses /dev/tty if possible; otherwise stderr and stdin. */ -extern char *getpass (const char *__prompt) __nonnull ((1)); -#endif /* Use misc || X/Open. */ - - -/* Make all changes done to FD actually appear on disk. - - This function is a cancellation point and therefore not marked with - __THROW. */ -extern int fsync (int __fd); - - -#ifdef __USE_GNU -/* Make all changes done to all files on the file system associated - with FD actually appear on disk. */ -extern int syncfs (int __fd) __THROW; -#endif - - -#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED - -/* Return identifier for the current host. */ -extern long int gethostid (void); - -/* Make all changes done to all files actually appear on disk. */ -extern void sync (void) __THROW; - - -# if defined __USE_MISC || !defined __USE_XOPEN2K -/* Return the number of bytes in a page. This is the system's page size, - which is not necessarily the same as the hardware page size. */ -extern int getpagesize (void) __THROW __attribute__ ((__const__)); - - -/* Return the maximum number of file descriptors - the current process could possibly have. */ -extern int getdtablesize (void) __THROW; -# endif - -#endif /* Use misc || X/Open Unix. */ - - -#if defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 - -/* Truncate FILE to LENGTH bytes. */ -# ifndef __USE_FILE_OFFSET64 -extern int truncate (const char *__file, __off_t __length) - __THROW __nonnull ((1)) __wur; -# else -# ifdef __REDIRECT_NTH -extern int __REDIRECT_NTH (truncate, - (const char *__file, __off64_t __length), - truncate64) __nonnull ((1)) __wur; -# else -# define truncate truncate64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int truncate64 (const char *__file, __off64_t __length) - __THROW __nonnull ((1)) __wur; -# endif - -#endif /* Use X/Open Unix || POSIX 2008. */ - -#if defined __USE_POSIX199309 \ - || defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K - -/* Truncate the file FD is open on to LENGTH bytes. */ -# ifndef __USE_FILE_OFFSET64 -extern int ftruncate (int __fd, __off_t __length) __THROW __wur; -# else -# ifdef __REDIRECT_NTH -extern int __REDIRECT_NTH (ftruncate, (int __fd, __off64_t __length), - ftruncate64) __wur; -# else -# define ftruncate ftruncate64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int ftruncate64 (int __fd, __off64_t __length) __THROW __wur; -# endif - -#endif /* Use POSIX.1b || X/Open Unix || XPG6. */ - - -#if (defined __USE_XOPEN_EXTENDED && !defined __USE_XOPEN2K) \ - || defined __USE_MISC - -/* Set the end of accessible data space (aka "the break") to ADDR. - Returns zero on success and -1 for errors (with errno set). */ -extern int brk (void *__addr) __THROW __wur; - -/* Increase or decrease the end of accessible data space by DELTA bytes. - If successful, returns the address the previous end of data space - (i.e. the beginning of the new space, if DELTA > 0); - returns (void *) -1 for errors (with errno set). */ -extern void *sbrk (intptr_t __delta) __THROW; -#endif - - -#ifdef __USE_MISC -/* Invoke `system call' number SYSNO, passing it the remaining arguments. - This is completely system-dependent, and not often useful. - - In Unix, `syscall' sets `errno' for all errors and most calls return -1 - for errors; in many systems you cannot pass arguments or get return - values for all system calls (`pipe', `fork', and `getppid' typically - among them). - - In Mach, all system calls take normal arguments and always return an - error code (zero for success). */ -extern long int syscall (long int __sysno, ...) __THROW; - -#endif /* Use misc. */ - - -#if (defined __USE_MISC || defined __USE_XOPEN_EXTENDED) && !defined F_LOCK -/* NOTE: These declarations also appear in ; be sure to keep both - files consistent. Some systems have them there and some here, and some - software depends on the macros being defined without including both. */ - -/* `lockf' is a simpler interface to the locking facilities of `fcntl'. - LEN is always relative to the current file position. - The CMD argument is one of the following. - - This function is a cancellation point and therefore not marked with - __THROW. */ - -# define F_ULOCK 0 /* Unlock a previously locked region. */ -# define F_LOCK 1 /* Lock a region for exclusive use. */ -# define F_TLOCK 2 /* Test and lock a region for exclusive use. */ -# define F_TEST 3 /* Test a region for other processes locks. */ - -# ifndef __USE_FILE_OFFSET64 -extern int lockf (int __fd, int __cmd, __off_t __len) __wur; -# else -# ifdef __REDIRECT -extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), - lockf64) __wur; -# else -# define lockf lockf64 -# endif -# endif -# ifdef __USE_LARGEFILE64 -extern int lockf64 (int __fd, int __cmd, __off64_t __len) __wur; -# endif -#endif /* Use misc and F_LOCK not already defined. */ - - -#ifdef __USE_GNU - -/* Evaluate EXPRESSION, and repeat as long as it returns -1 with `errno' - set to EINTR. */ - -# define TEMP_FAILURE_RETRY(expression) \ - (__extension__ \ - ({ long int __result; \ - do __result = (long int) (expression); \ - while (__result == -1L && errno == EINTR); \ - __result; })) -#endif - -#if defined __USE_POSIX199309 || defined __USE_UNIX98 -/* Synchronize at least the data part of a file with the underlying - media. */ -extern int fdatasync (int __fildes); -#endif /* Use POSIX199309 */ - - -/* XPG4.2 specifies that prototypes for the encryption functions must - be defined here. */ -#ifdef __USE_XOPEN -/* Encrypt at most 8 characters from KEY using salt to perturb DES. */ -extern char *crypt (const char *__key, const char *__salt) - __THROW __nonnull ((1, 2)); - -/* Encrypt data in BLOCK in place if EDFLAG is zero; otherwise decrypt - block in place. */ -extern void encrypt (char *__glibc_block, int __edflag) - __THROW __nonnull ((1)); - - -/* Swab pairs bytes in the first N bytes of the area pointed to by - FROM and copy the result to TO. The value of TO must not be in the - range [FROM - N + 1, FROM - 1]. If N is odd the first byte in FROM - is without partner. */ -extern void swab (const void *__restrict __from, void *__restrict __to, - ssize_t __n) __THROW __nonnull ((1, 2)); -#endif - - -/* The Single Unix specification demands this prototype to be here. - It is also found in . */ -#if defined __USE_XOPEN && !defined __USE_XOPEN2K -/* Return the name of the controlling terminal. */ -extern char *ctermid (char *__s) __THROW; -#endif - - -/* Define some macros helping to catch buffer overflows. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -# include -#endif - -__END_DECLS - -#endif /* unistd.h */ diff --git a/libktorrent/miniboost/wchar.h b/libktorrent/miniboost/wchar.h deleted file mode 100644 index 29340fda..00000000 --- a/libktorrent/miniboost/wchar.h +++ /dev/null @@ -1,900 +0,0 @@ -/* Copyright (C) 1995-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.24 - * Extended multibyte and wide character utilities - */ - -#ifndef _WCHAR_H - -#if !defined __need_mbstate_t && !defined __need_wint_t -# define _WCHAR_H 1 -# include -#endif - -#ifdef _WCHAR_H -/* Get FILE definition. */ -# define __need___FILE -# if defined __USE_UNIX98 || defined __USE_XOPEN2K -# define __need_FILE -# endif -# include -/* Get va_list definition. */ -# define __need___va_list -# include - -# include - -/* Get size_t, wchar_t, wint_t and NULL from . */ -# define __need_size_t -# define __need_wchar_t -# define __need_NULL -#endif -#if defined _WCHAR_H || defined __need_wint_t || !defined __WINT_TYPE__ -# undef __need_wint_t -# define __need_wint_t -# include - -/* We try to get wint_t from , but not all GCC versions define it - there. So define it ourselves if it remains undefined. */ -# ifndef _WINT_T -/* Integral type unchanged by default argument promotions that can - hold any value corresponding to members of the extended character - set, as well as at least one value that does not correspond to any - member of the extended character set. */ -# define _WINT_T -typedef unsigned int wint_t; -# else -/* Work around problems with the file which doesn't put - wint_t in the std namespace. */ -# if defined __cplusplus && defined _GLIBCPP_USE_NAMESPACES \ - && defined __WINT_TYPE__ -__BEGIN_NAMESPACE_STD -typedef __WINT_TYPE__ wint_t; -__END_NAMESPACE_STD -# endif -# endif - -/* Tell the caller that we provide correct C++ prototypes. */ -# if defined __cplusplus && __GNUC_PREREQ (4, 4) -# define __CORRECT_ISO_CPP_WCHAR_H_PROTO -# endif -#endif - -#if (defined _WCHAR_H || defined __need_mbstate_t) && !defined ____mbstate_t_defined -# define ____mbstate_t_defined 1 -/* Conversion state information. */ -typedef struct -{ - int __count; - union - { -# ifdef __WINT_TYPE__ - __WINT_TYPE__ __wch; -# else - wint_t __wch; -# endif - char __wchb[4]; - } __value; /* Value so far. */ -} __mbstate_t; -#endif -#undef __need_mbstate_t - - -/* The rest of the file is only used if used if __need_mbstate_t is not - defined. */ -#ifdef _WCHAR_H - -# ifndef __mbstate_t_defined -__BEGIN_NAMESPACE_C99 -/* Public type. */ -typedef __mbstate_t mbstate_t; -__END_NAMESPACE_C99 -# define __mbstate_t_defined 1 -# endif - -#ifdef __USE_GNU -__USING_NAMESPACE_C99(mbstate_t) -#endif - -#ifndef WCHAR_MIN -/* These constants might also be defined in . */ -# define WCHAR_MIN __WCHAR_MIN -# define WCHAR_MAX __WCHAR_MAX -#endif - -#ifndef WEOF -# define WEOF (0xffffffffu) -#endif - -/* For XPG4 compliance we have to define the stuff from here - as well. */ -#if defined __USE_XOPEN && !defined __USE_UNIX98 -# include -#endif - - -__BEGIN_DECLS - -__BEGIN_NAMESPACE_STD -/* This incomplete type is defined in but needed here because - of `wcsftime'. */ -struct tm; -__END_NAMESPACE_STD -/* XXX We have to clean this up at some point. Since tm is in the std - namespace but wcsftime is in __c99 the type wouldn't be found - without inserting it in the global namespace. */ -__USING_NAMESPACE_STD(tm) - - -__BEGIN_NAMESPACE_STD -/* Copy SRC to DEST. */ -extern wchar_t *wcscpy (wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __THROW; -/* Copy no more than N wide-characters of SRC to DEST. */ -extern wchar_t *wcsncpy (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __THROW; - -/* Append SRC onto DEST. */ -extern wchar_t *wcscat (wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __THROW; -/* Append no more than N wide-characters of SRC onto DEST. */ -extern wchar_t *wcsncat (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __THROW; - -/* Compare S1 and S2. */ -extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) - __THROW __attribute_pure__; -/* Compare N wide-characters of S1 and S2. */ -extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __THROW __attribute_pure__; -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN2K8 -/* Compare S1 and S2, ignoring case. */ -extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) __THROW; - -/* Compare no more than N chars of S1 and S2, ignoring case. */ -extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, - size_t __n) __THROW; - -/* Similar to the two functions above but take the information from - the provided locale and not the global locale. */ -# include - -extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, - __locale_t __loc) __THROW; - -extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, - size_t __n, __locale_t __loc) __THROW; -#endif - -__BEGIN_NAMESPACE_STD -/* Compare S1 and S2, both interpreted as appropriate to the - LC_COLLATE category of the current locale. */ -extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) __THROW; -/* Transform S2 into array pointed to by S1 such that if wcscmp is - applied to two transformed strings the result is the as applying - `wcscoll' to the original strings. */ -extern size_t wcsxfrm (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN2K8 -/* Similar to the two functions above but take the information from - the provided locale and not the global locale. */ - -/* Compare S1 and S2, both interpreted as appropriate to the - LC_COLLATE category of the given locale. */ -extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, - __locale_t __loc) __THROW; - -/* Transform S2 into array pointed to by S1 such that if wcscmp is - applied to two transformed strings the result is the as applying - `wcscoll' to the original strings. */ -extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, - size_t __n, __locale_t __loc) __THROW; - -/* Duplicate S, returning an identical malloc'd string. */ -extern wchar_t *wcsdup (const wchar_t *__s) __THROW __attribute_malloc__; -#endif - -__BEGIN_NAMESPACE_STD -/* Find the first occurrence of WC in WCS. */ -#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) - __THROW __asm ("wcschr") __attribute_pure__; -extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) - __THROW __asm ("wcschr") __attribute_pure__; -#else -extern wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) - __THROW __attribute_pure__; -#endif -/* Find the last occurrence of WC in WCS. */ -#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) - __THROW __asm ("wcsrchr") __attribute_pure__; -extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) - __THROW __asm ("wcsrchr") __attribute_pure__; -#else -extern wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) - __THROW __attribute_pure__; -#endif -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* This function is similar to `wcschr'. But it returns a pointer to - the closing NUL wide character in case C is not found in S. */ -extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) - __THROW __attribute_pure__; -#endif - -__BEGIN_NAMESPACE_STD -/* Return the length of the initial segmet of WCS which - consists entirely of wide characters not in REJECT. */ -extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) - __THROW __attribute_pure__; -/* Return the length of the initial segmet of WCS which - consists entirely of wide characters in ACCEPT. */ -extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) - __THROW __attribute_pure__; -/* Find the first occurrence in WCS of any character in ACCEPT. */ -#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) - __THROW __asm ("wcspbrk") __attribute_pure__; -extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, - const wchar_t *__accept) - __THROW __asm ("wcspbrk") __attribute_pure__; -#else -extern wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept) - __THROW __attribute_pure__; -#endif -/* Find the first occurrence of NEEDLE in HAYSTACK. */ -#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) - __THROW __asm ("wcsstr") __attribute_pure__; -extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, - const wchar_t *__needle) - __THROW __asm ("wcsstr") __attribute_pure__; -#else -extern wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle) - __THROW __attribute_pure__; -#endif - -/* Divide WCS into tokens separated by characters in DELIM. */ -extern wchar_t *wcstok (wchar_t *__restrict __s, - const wchar_t *__restrict __delim, - wchar_t **__restrict __ptr) __THROW; - -/* Return the number of wide characters in S. */ -extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__; -__END_NAMESPACE_STD - -#ifdef __USE_XOPEN -/* Another name for `wcsstr' from XPG4. */ -# ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) - __THROW __asm ("wcswcs") __attribute_pure__; -extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, - const wchar_t *__needle) - __THROW __asm ("wcswcs") __attribute_pure__; -# else -extern wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle) - __THROW __attribute_pure__; -# endif -#endif - -#ifdef __USE_XOPEN2K8 -/* Return the number of wide characters in S, but at most MAXLEN. */ -extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) - __THROW __attribute_pure__; -#endif - - -__BEGIN_NAMESPACE_STD -/* Search N wide characters of S for C. */ -#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO -extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) - __THROW __asm ("wmemchr") __attribute_pure__; -extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, - size_t __n) - __THROW __asm ("wmemchr") __attribute_pure__; -#else -extern wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n) - __THROW __attribute_pure__; -#endif - -/* Compare N wide characters of S1 and S2. */ -extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) - __THROW __attribute_pure__; - -/* Copy N wide characters of SRC to DEST. */ -extern wchar_t *wmemcpy (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) __THROW; - -/* Copy N wide characters of SRC to DEST, guaranteeing - correct behavior for overlapping strings. */ -extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) - __THROW; - -/* Set N wide characters of S to C. */ -extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_GNU -/* Copy N wide characters of SRC to DEST and return pointer to following - wide character. */ -extern wchar_t *wmempcpy (wchar_t *__restrict __s1, - const wchar_t *__restrict __s2, size_t __n) - __THROW; -#endif - - -__BEGIN_NAMESPACE_STD -/* Determine whether C constitutes a valid (one-byte) multibyte - character. */ -extern wint_t btowc (int __c) __THROW; - -/* Determine whether C corresponds to a member of the extended - character set whose multibyte representation is a single byte. */ -extern int wctob (wint_t __c) __THROW; - -/* Determine whether PS points to an object representing the initial - state. */ -extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__; - -/* Write wide character representation of multibyte character pointed - to by S to PWC. */ -extern size_t mbrtowc (wchar_t *__restrict __pwc, - const char *__restrict __s, size_t __n, - mbstate_t *__restrict __p) __THROW; - -/* Write multibyte representation of wide character WC to S. */ -extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, - mbstate_t *__restrict __ps) __THROW; - -/* Return number of bytes in multibyte character pointed to by S. */ -extern size_t __mbrlen (const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) __THROW; -extern size_t mbrlen (const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_EXTERN_INLINES -/* Define inline function as optimization. */ - -/* We can use the BTOWC and WCTOB optimizations since we know that all - locales must use ASCII encoding for the values in the ASCII range - and because the wchar_t encoding is always ISO 10646. */ -extern wint_t __btowc_alias (int __c) __asm ("btowc"); -__extern_inline wint_t -__NTH (btowc (int __c)) -{ return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f' - ? (wint_t) __c : __btowc_alias (__c)); } - -extern int __wctob_alias (wint_t __c) __asm ("wctob"); -__extern_inline int -__NTH (wctob (wint_t __wc)) -{ return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f' - ? (int) __wc : __wctob_alias (__wc)); } - -__extern_inline size_t -__NTH (mbrlen (const char *__restrict __s, size_t __n, - mbstate_t *__restrict __ps)) -{ return (__ps != NULL - ? mbrtowc (NULL, __s, __n, __ps) : __mbrlen (__s, __n, NULL)); } -#endif - -__BEGIN_NAMESPACE_STD -/* Write wide character representation of multibyte character string - SRC to DST. */ -extern size_t mbsrtowcs (wchar_t *__restrict __dst, - const char **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __THROW; - -/* Write multibyte character representation of wide character string - SRC to DST. */ -extern size_t wcsrtombs (char *__restrict __dst, - const wchar_t **__restrict __src, size_t __len, - mbstate_t *__restrict __ps) __THROW; -__END_NAMESPACE_STD - - -#ifdef __USE_XOPEN2K8 -/* Write wide character representation of at most NMC bytes of the - multibyte character string SRC to DST. */ -extern size_t mbsnrtowcs (wchar_t *__restrict __dst, - const char **__restrict __src, size_t __nmc, - size_t __len, mbstate_t *__restrict __ps) __THROW; - -/* Write multibyte character representation of at most NWC characters - from the wide character string SRC to DST. */ -extern size_t wcsnrtombs (char *__restrict __dst, - const wchar_t **__restrict __src, - size_t __nwc, size_t __len, - mbstate_t *__restrict __ps) __THROW; -#endif /* use POSIX 2008 */ - - -/* The following functions are extensions found in X/Open CAE. */ -#ifdef __USE_XOPEN -/* Determine number of column positions required for C. */ -extern int wcwidth (wchar_t __c) __THROW; - -/* Determine number of column positions required for first N wide - characters (or fewer if S ends before this) in S. */ -extern int wcswidth (const wchar_t *__s, size_t __n) __THROW; -#endif /* Use X/Open. */ - - -__BEGIN_NAMESPACE_STD -/* Convert initial portion of the wide string NPTR to `double' - representation. */ -extern double wcstod (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Likewise for `float' and `long double' sizes of floating-point numbers. */ -extern float wcstof (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) __THROW; -extern long double wcstold (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr) __THROW; -__END_NAMESPACE_C99 -#endif /* C99 */ - - -__BEGIN_NAMESPACE_STD -/* Convert initial portion of wide string NPTR to `long int' - representation. */ -extern long int wcstol (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) __THROW; - -/* Convert initial portion of wide string NPTR to `unsigned long int' - representation. */ -extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __THROW; -__END_NAMESPACE_STD - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Convert initial portion of wide string NPTR to `long long int' - representation. */ -__extension__ -extern long long int wcstoll (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __THROW; - -/* Convert initial portion of wide string NPTR to `unsigned long long int' - representation. */ -__extension__ -extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) __THROW; -__END_NAMESPACE_C99 -#endif /* ISO C99. */ - -#ifdef __USE_GNU -/* Convert initial portion of wide string NPTR to `long long int' - representation. */ -__extension__ -extern long long int wcstoq (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base) - __THROW; - -/* Convert initial portion of wide string NPTR to `unsigned long long int' - representation. */ -__extension__ -extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base) __THROW; -#endif /* Use GNU. */ - -#ifdef __USE_GNU -/* The concept of one static locale per category is not very well - thought out. Many applications will need to process its data using - information from several different locales. Another application is - the implementation of the internationalization handling in the - upcoming ISO C++ standard library. To support this another set of - the functions using locale data exist which have an additional - argument. - - Attention: all these functions are *not* standardized in any form. - This is a proof-of-concept implementation. */ - -/* Structure for reentrant locale using functions. This is an - (almost) opaque type for the user level programs. */ -# include - -/* Special versions of the functions above which take the locale to - use as an additional parameter. */ -extern long int wcstol_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, int __base, - __locale_t __loc) __THROW; - -extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, __locale_t __loc) __THROW; - -__extension__ -extern long long int wcstoll_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, __locale_t __loc) __THROW; - -__extension__ -extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - int __base, __locale_t __loc) - __THROW; - -extern double wcstod_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, __locale_t __loc) - __THROW; - -extern float wcstof_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, __locale_t __loc) - __THROW; - -extern long double wcstold_l (const wchar_t *__restrict __nptr, - wchar_t **__restrict __endptr, - __locale_t __loc) __THROW; -#endif /* use GNU */ - - -#ifdef __USE_XOPEN2K8 -/* Copy SRC to DEST, returning the address of the terminating L'\0' in - DEST. */ -extern wchar_t *wcpcpy (wchar_t *__restrict __dest, - const wchar_t *__restrict __src) __THROW; - -/* Copy no more than N characters of SRC to DEST, returning the address of - the last character written into DEST. */ -extern wchar_t *wcpncpy (wchar_t *__restrict __dest, - const wchar_t *__restrict __src, size_t __n) - __THROW; - - -/* Wide character I/O functions. */ - -/* Like OPEN_MEMSTREAM, but the stream is wide oriented and produces - a wide character string. */ -extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW; -#endif - -#if defined __USE_ISOC95 || defined __USE_UNIX98 -__BEGIN_NAMESPACE_STD - -/* Select orientation for stream. */ -extern int fwide (__FILE *__fp, int __mode) __THROW; - - -/* Write formatted output to STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fwprintf (__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...) - /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */; -/* Write formatted output to stdout. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int wprintf (const wchar_t *__restrict __format, ...) - /* __attribute__ ((__format__ (__wprintf__, 1, 2))) */; -/* Write formatted output of at most N characters to S. */ -extern int swprintf (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, ...) - __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 4))) */; - -/* Write formatted output to S from argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vfwprintf (__FILE *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) - /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */; -/* Write formatted output to stdout from argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vwprintf (const wchar_t *__restrict __format, - __gnuc_va_list __arg) - /* __attribute__ ((__format__ (__wprintf__, 1, 0))) */; -/* Write formatted output of at most N character to S from argument - list ARG. */ -extern int vswprintf (wchar_t *__restrict __s, size_t __n, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */; - - -/* Read formatted input from STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fwscanf (__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...) - /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */; -/* Read formatted input from stdin. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int wscanf (const wchar_t *__restrict __format, ...) - /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */; -/* Read formatted input from S. */ -extern int swscanf (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */; - -# if defined __USE_ISOC99 && !defined __USE_GNU \ - && (!defined __LDBL_COMPAT || !defined __REDIRECT) \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -# ifdef __REDIRECT -/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[ - GNU extension which conflicts with valid %a followed by letter - s, S or [. */ -extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...), - __isoc99_fwscanf) - /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */; -extern int __REDIRECT (wscanf, (const wchar_t *__restrict __format, ...), - __isoc99_wscanf) - /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */; -extern int __REDIRECT_NTH (swscanf, (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - ...), __isoc99_swscanf) - /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */; -# else -extern int __isoc99_fwscanf (__FILE *__restrict __stream, - const wchar_t *__restrict __format, ...); -extern int __isoc99_wscanf (const wchar_t *__restrict __format, ...); -extern int __isoc99_swscanf (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, ...) - __THROW; -# define fwscanf __isoc99_fwscanf -# define wscanf __isoc99_wscanf -# define swscanf __isoc99_swscanf -# endif -# endif - -__END_NAMESPACE_STD -#endif /* Use ISO C95, C99 and Unix98. */ - -#ifdef __USE_ISOC99 -__BEGIN_NAMESPACE_C99 -/* Read formatted input from S into argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vfwscanf (__FILE *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) - /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */; -/* Read formatted input from stdin into argument list ARG. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int vwscanf (const wchar_t *__restrict __format, - __gnuc_va_list __arg) - /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */; -/* Read formatted input from S into argument list ARG. */ -extern int vswscanf (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) - __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */; - -# if !defined __USE_GNU \ - && (!defined __LDBL_COMPAT || !defined __REDIRECT) \ - && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K) -# ifdef __REDIRECT -extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg), __isoc99_vfwscanf) - /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */; -extern int __REDIRECT (vwscanf, (const wchar_t *__restrict __format, - __gnuc_va_list __arg), __isoc99_vwscanf) - /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */; -extern int __REDIRECT_NTH (vswscanf, (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg), __isoc99_vswscanf) - /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */; -# else -extern int __isoc99_vfwscanf (__FILE *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg); -extern int __isoc99_vwscanf (const wchar_t *__restrict __format, - __gnuc_va_list __arg); -extern int __isoc99_vswscanf (const wchar_t *__restrict __s, - const wchar_t *__restrict __format, - __gnuc_va_list __arg) __THROW; -# define vfwscanf __isoc99_vfwscanf -# define vwscanf __isoc99_vwscanf -# define vswscanf __isoc99_vswscanf -# endif -# endif - -__END_NAMESPACE_C99 -#endif /* Use ISO C99. */ - - -__BEGIN_NAMESPACE_STD -/* Read a character from STREAM. - - These functions are possible cancellation points and therefore not - marked with __THROW. */ -extern wint_t fgetwc (__FILE *__stream); -extern wint_t getwc (__FILE *__stream); - -/* Read a character from stdin. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern wint_t getwchar (void); - - -/* Write a character to STREAM. - - These functions are possible cancellation points and therefore not - marked with __THROW. */ -extern wint_t fputwc (wchar_t __wc, __FILE *__stream); -extern wint_t putwc (wchar_t __wc, __FILE *__stream); - -/* Write a character to stdout. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern wint_t putwchar (wchar_t __wc); - - -/* Get a newline-terminated wide character string of finite length - from STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -/* Write a string to STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern int fputws (const wchar_t *__restrict __ws, - __FILE *__restrict __stream); - - -/* Push a character back onto the input buffer of STREAM. - - This function is a possible cancellation point and therefore not - marked with __THROW. */ -extern wint_t ungetwc (wint_t __wc, __FILE *__stream); -__END_NAMESPACE_STD - - -#ifdef __USE_GNU -/* These are defined to be equivalent to the `char' functions defined - in POSIX.1:1996. - - These functions are not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation they are cancellation points and - therefore not marked with __THROW. */ -extern wint_t getwc_unlocked (__FILE *__stream); -extern wint_t getwchar_unlocked (void); - -/* This is the wide character version of a GNU extension. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern wint_t fgetwc_unlocked (__FILE *__stream); - -/* Faster version when locking is not necessary. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); - -/* These are defined to be equivalent to the `char' functions defined - in POSIX.1:1996. - - These functions are not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation they are cancellation points and - therefore not marked with __THROW. */ -extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); -extern wint_t putwchar_unlocked (wchar_t __wc); - - -/* This function does the same as `fgetws' but does not lock the stream. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, - __FILE *__restrict __stream); - -/* This function does the same as `fputws' but does not lock the stream. - - This function is not part of POSIX and therefore no official - cancellation point. But due to similarity with an POSIX interface - or due to the implementation it is a cancellation point and - therefore not marked with __THROW. */ -extern int fputws_unlocked (const wchar_t *__restrict __ws, - __FILE *__restrict __stream); -#endif - - -__BEGIN_NAMESPACE_C99 -/* Format TP into S according to FORMAT. - Write no more than MAXSIZE wide characters and return the number - of wide characters written, or 0 if it would exceed MAXSIZE. */ -extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp) __THROW; -__END_NAMESPACE_C99 - -# ifdef __USE_GNU -# include - -/* Similar to `wcsftime' but takes the information from - the provided locale and not the global locale. */ -extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, - const wchar_t *__restrict __format, - const struct tm *__restrict __tp, - __locale_t __loc) __THROW; -# endif - -/* The X/Open standard demands that most of the functions defined in - the header must also appear here. This is probably - because some X/Open members wrote their implementation before the - ISO C standard was published and introduced the better solution. - We have to provide these definitions for compliance reasons but we - do this nonsense only if really necessary. */ -#if defined __USE_UNIX98 && !defined __USE_GNU -# define __need_iswxxx -# include -#endif - -/* Define some macros helping to catch buffer overflows. */ -#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function -# include -#endif - -#ifdef __LDBL_COMPAT -# include -#endif - -__END_DECLS - -#endif /* _WCHAR_H defined */ - -#endif /* wchar.h */ - -/* Undefine all __need_* constants in case we are included to get those - constants but the whole file was already read. */ -#undef __need_mbstate_t -#undef __need_wint_t diff --git a/libktorrent/miniboost/wctype.h b/libktorrent/miniboost/wctype.h deleted file mode 100644 index a307f057..00000000 --- a/libktorrent/miniboost/wctype.h +++ /dev/null @@ -1,318 +0,0 @@ -/* Copyright (C) 1996-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -/* - * ISO C99 Standard: 7.25 - * Wide character classification and mapping utilities - */ - -#ifndef _WCTYPE_H - -#include -#include - -#ifndef __need_iswxxx -# define _WCTYPE_H 1 - -/* Get wint_t from . */ -# define __need_wint_t -# include - -/* Constant expression of type `wint_t' whose value does not correspond - to any member of the extended character set. */ -# ifndef WEOF -# define WEOF (0xffffffffu) -# endif -#endif -#undef __need_iswxxx - - -/* The following part is also used in the header when compiled - in the Unix98 compatibility mode. */ -#ifndef __iswxxx_defined -# define __iswxxx_defined 1 - -__BEGIN_NAMESPACE_C99 -/* Scalar type that can hold values which represent locale-specific - character classifications. */ -typedef unsigned long int wctype_t; -__END_NAMESPACE_C99 - -# ifndef _ISwbit -/* The characteristics are stored always in network byte order (big - endian). We define the bit value interpretations here dependent on the - machine's byte order. */ - -# include -# if __BYTE_ORDER == __BIG_ENDIAN -# define _ISwbit(bit) (1 << (bit)) -# else /* __BYTE_ORDER == __LITTLE_ENDIAN */ -# define _ISwbit(bit) \ - ((bit) < 8 ? (int) ((1UL << (bit)) << 24) \ - : ((bit) < 16 ? (int) ((1UL << (bit)) << 8) \ - : ((bit) < 24 ? (int) ((1UL << (bit)) >> 8) \ - : (int) ((1UL << (bit)) >> 24)))) -# endif - -enum -{ - __ISwupper = 0, /* UPPERCASE. */ - __ISwlower = 1, /* lowercase. */ - __ISwalpha = 2, /* Alphabetic. */ - __ISwdigit = 3, /* Numeric. */ - __ISwxdigit = 4, /* Hexadecimal numeric. */ - __ISwspace = 5, /* Whitespace. */ - __ISwprint = 6, /* Printing. */ - __ISwgraph = 7, /* Graphical. */ - __ISwblank = 8, /* Blank (usually SPC and TAB). */ - __ISwcntrl = 9, /* Control character. */ - __ISwpunct = 10, /* Punctuation. */ - __ISwalnum = 11, /* Alphanumeric. */ - - _ISwupper = _ISwbit (__ISwupper), /* UPPERCASE. */ - _ISwlower = _ISwbit (__ISwlower), /* lowercase. */ - _ISwalpha = _ISwbit (__ISwalpha), /* Alphabetic. */ - _ISwdigit = _ISwbit (__ISwdigit), /* Numeric. */ - _ISwxdigit = _ISwbit (__ISwxdigit), /* Hexadecimal numeric. */ - _ISwspace = _ISwbit (__ISwspace), /* Whitespace. */ - _ISwprint = _ISwbit (__ISwprint), /* Printing. */ - _ISwgraph = _ISwbit (__ISwgraph), /* Graphical. */ - _ISwblank = _ISwbit (__ISwblank), /* Blank (usually SPC and TAB). */ - _ISwcntrl = _ISwbit (__ISwcntrl), /* Control character. */ - _ISwpunct = _ISwbit (__ISwpunct), /* Punctuation. */ - _ISwalnum = _ISwbit (__ISwalnum) /* Alphanumeric. */ -}; -# endif /* Not _ISwbit */ - - -__BEGIN_DECLS - -__BEGIN_NAMESPACE_C99 -/* - * Wide-character classification functions: 7.15.2.1. - */ - -/* Test for any wide character for which `iswalpha' or `iswdigit' is - true. */ -extern int iswalnum (wint_t __wc) __THROW; - -/* Test for any wide character for which `iswupper' or 'iswlower' is - true, or any wide character that is one of a locale-specific set of - wide-characters for which none of `iswcntrl', `iswdigit', - `iswpunct', or `iswspace' is true. */ -extern int iswalpha (wint_t __wc) __THROW; - -/* Test for any control wide character. */ -extern int iswcntrl (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to a decimal-digit - character. */ -extern int iswdigit (wint_t __wc) __THROW; - -/* Test for any wide character for which `iswprint' is true and - `iswspace' is false. */ -extern int iswgraph (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to a lowercase letter - or is one of a locale-specific set of wide characters for which - none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */ -extern int iswlower (wint_t __wc) __THROW; - -/* Test for any printing wide character. */ -extern int iswprint (wint_t __wc) __THROW; - -/* Test for any printing wide character that is one of a - locale-specific et of wide characters for which neither `iswspace' - nor `iswalnum' is true. */ -extern int iswpunct (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to a locale-specific - set of wide characters for which none of `iswalnum', `iswgraph', or - `iswpunct' is true. */ -extern int iswspace (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to an uppercase letter - or is one of a locale-specific set of wide character for which none - of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */ -extern int iswupper (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to a hexadecimal-digit - character equivalent to that performed be the functions described - in the previous subclause. */ -extern int iswxdigit (wint_t __wc) __THROW; - -/* Test for any wide character that corresponds to a standard blank - wide character or a locale-specific set of wide characters for - which `iswalnum' is false. */ -# ifdef __USE_ISOC99 -extern int iswblank (wint_t __wc) __THROW; -# endif - -/* - * Extensible wide-character classification functions: 7.15.2.2. - */ - -/* Construct value that describes a class of wide characters identified - by the string argument PROPERTY. */ -extern wctype_t wctype (const char *__property) __THROW; - -/* Determine whether the wide-character WC has the property described by - DESC. */ -extern int iswctype (wint_t __wc, wctype_t __desc) __THROW; -__END_NAMESPACE_C99 - - -/* - * Wide-character case-mapping functions: 7.15.3.1. - */ - -__BEGIN_NAMESPACE_C99 -/* Scalar type that can hold values which represent locale-specific - character mappings. */ -typedef const __int32_t *wctrans_t; -__END_NAMESPACE_C99 -#ifdef __USE_GNU -__USING_NAMESPACE_C99(wctrans_t) -#endif - -__BEGIN_NAMESPACE_C99 -/* Converts an uppercase letter to the corresponding lowercase letter. */ -extern wint_t towlower (wint_t __wc) __THROW; - -/* Converts an lowercase letter to the corresponding uppercase letter. */ -extern wint_t towupper (wint_t __wc) __THROW; -__END_NAMESPACE_C99 - -__END_DECLS - -#endif /* need iswxxx. */ - - -/* The remaining definitions and declarations must not appear in the - header. */ -#ifdef _WCTYPE_H - -/* - * Extensible wide-character mapping functions: 7.15.3.2. - */ - -__BEGIN_DECLS - -__BEGIN_NAMESPACE_C99 -/* Construct value that describes a mapping between wide characters - identified by the string argument PROPERTY. */ -extern wctrans_t wctrans (const char *__property) __THROW; - -/* Map the wide character WC using the mapping described by DESC. */ -extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW; -__END_NAMESPACE_C99 - -# ifdef __USE_XOPEN2K8 -/* Declare the interface to extended locale model. */ -# include - -/* Test for any wide character for which `iswalpha' or `iswdigit' is - true. */ -extern int iswalnum_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character for which `iswupper' or 'iswlower' is - true, or any wide character that is one of a locale-specific set of - wide-characters for which none of `iswcntrl', `iswdigit', - `iswpunct', or `iswspace' is true. */ -extern int iswalpha_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any control wide character. */ -extern int iswcntrl_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to a decimal-digit - character. */ -extern int iswdigit_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character for which `iswprint' is true and - `iswspace' is false. */ -extern int iswgraph_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to a lowercase letter - or is one of a locale-specific set of wide characters for which - none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */ -extern int iswlower_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any printing wide character. */ -extern int iswprint_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any printing wide character that is one of a - locale-specific et of wide characters for which neither `iswspace' - nor `iswalnum' is true. */ -extern int iswpunct_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to a locale-specific - set of wide characters for which none of `iswalnum', `iswgraph', or - `iswpunct' is true. */ -extern int iswspace_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to an uppercase letter - or is one of a locale-specific set of wide character for which none - of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */ -extern int iswupper_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to a hexadecimal-digit - character equivalent to that performed be the functions described - in the previous subclause. */ -extern int iswxdigit_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Test for any wide character that corresponds to a standard blank - wide character or a locale-specific set of wide characters for - which `iswalnum' is false. */ -extern int iswblank_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Construct value that describes a class of wide characters identified - by the string argument PROPERTY. */ -extern wctype_t wctype_l (const char *__property, __locale_t __locale) - __THROW; - -/* Determine whether the wide-character WC has the property described by - DESC. */ -extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale) - __THROW; - - -/* - * Wide-character case-mapping functions. - */ - -/* Converts an uppercase letter to the corresponding lowercase letter. */ -extern wint_t towlower_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Converts an lowercase letter to the corresponding uppercase letter. */ -extern wint_t towupper_l (wint_t __wc, __locale_t __locale) __THROW; - -/* Construct value that describes a mapping between wide characters - identified by the string argument PROPERTY. */ -extern wctrans_t wctrans_l (const char *__property, __locale_t __locale) - __THROW; - -/* Map the wide character WC using the mapping described by DESC. */ -extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, - __locale_t __locale) __THROW; - -# endif /* Use POSIX 2008. */ - -__END_DECLS - -#endif /* __WCTYPE_H defined. */ - -#endif /* wctype.h */ diff --git a/libktorrent/miniboost/xlocale.h b/libktorrent/miniboost/xlocale.h deleted file mode 100644 index f58208fe..00000000 --- a/libktorrent/miniboost/xlocale.h +++ /dev/null @@ -1,44 +0,0 @@ -/* Definition of locale datatype. - Copyright (C) 1997-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 1997. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _XLOCALE_H -#define _XLOCALE_H 1 - -/* Structure for reentrant locale using functions. This is an - (almost) opaque type for the user level programs. The file and - this data structure is not standardized. Don't rely on it. It can - go away without warning. */ -typedef struct __locale_struct -{ - /* Note: LC_ALL is not a valid index into this array. */ - struct __locale_data *__locales[13]; /* 13 = __LC_LAST. */ - - /* To increase the speed of this solution we add some special members. */ - const unsigned short int *__ctype_b; - const int *__ctype_tolower; - const int *__ctype_toupper; - - /* Note: LC_ALL is not a valid index into this array. */ - const char *__names[13]; -} *__locale_t; - -/* POSIX 2008 makes locale_t official. */ -typedef __locale_t locale_t; - -#endif /* xlocale.h */ diff --git a/kget/miniboost/_G_config.h b/miniboost/_G_config.h similarity index 100% rename from kget/miniboost/_G_config.h rename to miniboost/_G_config.h diff --git a/kget/miniboost/alloca.h b/miniboost/alloca.h similarity index 100% rename from kget/miniboost/alloca.h rename to miniboost/alloca.h diff --git a/kget/miniboost/asm-generic/errno-base.h b/miniboost/asm-generic/errno-base.h similarity index 100% rename from kget/miniboost/asm-generic/errno-base.h rename to miniboost/asm-generic/errno-base.h diff --git a/kget/miniboost/asm-generic/errno.h b/miniboost/asm-generic/errno.h similarity index 100% rename from kget/miniboost/asm-generic/errno.h rename to miniboost/asm-generic/errno.h diff --git a/libktorrent/miniboost/asm-generic/param.h b/miniboost/asm-generic/param.h similarity index 100% rename from libktorrent/miniboost/asm-generic/param.h rename to miniboost/asm-generic/param.h diff --git a/kget/miniboost/asm/errno.h b/miniboost/asm/errno.h similarity index 100% rename from kget/miniboost/asm/errno.h rename to miniboost/asm/errno.h diff --git a/libktorrent/miniboost/asm/param.h b/miniboost/asm/param.h similarity index 100% rename from libktorrent/miniboost/asm/param.h rename to miniboost/asm/param.h diff --git a/libktorrent/miniboost/assert.h b/miniboost/assert.h similarity index 100% rename from libktorrent/miniboost/assert.h rename to miniboost/assert.h diff --git a/kget/miniboost/bits/byteswap-16.h b/miniboost/bits/byteswap-16.h similarity index 100% rename from kget/miniboost/bits/byteswap-16.h rename to miniboost/bits/byteswap-16.h diff --git a/kget/miniboost/bits/byteswap.h b/miniboost/bits/byteswap.h similarity index 100% rename from kget/miniboost/bits/byteswap.h rename to miniboost/bits/byteswap.h diff --git a/kget/miniboost/bits/confname.h b/miniboost/bits/confname.h similarity index 100% rename from kget/miniboost/bits/confname.h rename to miniboost/bits/confname.h diff --git a/kget/miniboost/bits/endian.h b/miniboost/bits/endian.h similarity index 100% rename from kget/miniboost/bits/endian.h rename to miniboost/bits/endian.h diff --git a/kget/miniboost/bits/environments.h b/miniboost/bits/environments.h similarity index 100% rename from kget/miniboost/bits/environments.h rename to miniboost/bits/environments.h diff --git a/kget/miniboost/bits/errno.h b/miniboost/bits/errno.h similarity index 100% rename from kget/miniboost/bits/errno.h rename to miniboost/bits/errno.h diff --git a/kget/miniboost/bits/libc-lock.h b/miniboost/bits/libc-lock.h similarity index 100% rename from kget/miniboost/bits/libc-lock.h rename to miniboost/bits/libc-lock.h diff --git a/kget/miniboost/bits/libio-ldbl.h b/miniboost/bits/libio-ldbl.h similarity index 100% rename from kget/miniboost/bits/libio-ldbl.h rename to miniboost/bits/libio-ldbl.h diff --git a/kget/miniboost/bits/local_lim.h b/miniboost/bits/local_lim.h similarity index 100% rename from kget/miniboost/bits/local_lim.h rename to miniboost/bits/local_lim.h diff --git a/libktorrent/miniboost/bits/param.h b/miniboost/bits/param.h similarity index 100% rename from libktorrent/miniboost/bits/param.h rename to miniboost/bits/param.h diff --git a/kget/miniboost/bits/posix1_lim.h b/miniboost/bits/posix1_lim.h similarity index 100% rename from kget/miniboost/bits/posix1_lim.h rename to miniboost/bits/posix1_lim.h diff --git a/kget/miniboost/bits/posix2_lim.h b/miniboost/bits/posix2_lim.h similarity index 100% rename from kget/miniboost/bits/posix2_lim.h rename to miniboost/bits/posix2_lim.h diff --git a/kget/miniboost/bits/posix_opt.h b/miniboost/bits/posix_opt.h similarity index 100% rename from kget/miniboost/bits/posix_opt.h rename to miniboost/bits/posix_opt.h diff --git a/kget/miniboost/bits/pthreadtypes.h b/miniboost/bits/pthreadtypes.h similarity index 100% rename from kget/miniboost/bits/pthreadtypes.h rename to miniboost/bits/pthreadtypes.h diff --git a/kget/miniboost/bits/sched.h b/miniboost/bits/sched.h similarity index 100% rename from kget/miniboost/bits/sched.h rename to miniboost/bits/sched.h diff --git a/kget/miniboost/bits/select.h b/miniboost/bits/select.h similarity index 100% rename from kget/miniboost/bits/select.h rename to miniboost/bits/select.h diff --git a/kget/miniboost/bits/select2.h b/miniboost/bits/select2.h similarity index 100% rename from kget/miniboost/bits/select2.h rename to miniboost/bits/select2.h diff --git a/kget/miniboost/bits/setjmp.h b/miniboost/bits/setjmp.h similarity index 100% rename from kget/miniboost/bits/setjmp.h rename to miniboost/bits/setjmp.h diff --git a/kget/miniboost/bits/sigaction.h b/miniboost/bits/sigaction.h similarity index 100% rename from kget/miniboost/bits/sigaction.h rename to miniboost/bits/sigaction.h diff --git a/kget/miniboost/bits/sigcontext.h b/miniboost/bits/sigcontext.h similarity index 100% rename from kget/miniboost/bits/sigcontext.h rename to miniboost/bits/sigcontext.h diff --git a/kget/miniboost/bits/siginfo.h b/miniboost/bits/siginfo.h similarity index 100% rename from kget/miniboost/bits/siginfo.h rename to miniboost/bits/siginfo.h diff --git a/kget/miniboost/bits/signum.h b/miniboost/bits/signum.h similarity index 100% rename from kget/miniboost/bits/signum.h rename to miniboost/bits/signum.h diff --git a/kget/miniboost/bits/sigset.h b/miniboost/bits/sigset.h similarity index 100% rename from kget/miniboost/bits/sigset.h rename to miniboost/bits/sigset.h diff --git a/kget/miniboost/bits/sigstack.h b/miniboost/bits/sigstack.h similarity index 100% rename from kget/miniboost/bits/sigstack.h rename to miniboost/bits/sigstack.h diff --git a/kget/miniboost/bits/sigthread.h b/miniboost/bits/sigthread.h similarity index 100% rename from kget/miniboost/bits/sigthread.h rename to miniboost/bits/sigthread.h diff --git a/kget/miniboost/bits/stdio-ldbl.h b/miniboost/bits/stdio-ldbl.h similarity index 100% rename from kget/miniboost/bits/stdio-ldbl.h rename to miniboost/bits/stdio-ldbl.h diff --git a/kget/miniboost/bits/stdio-lock.h b/miniboost/bits/stdio-lock.h similarity index 100% rename from kget/miniboost/bits/stdio-lock.h rename to miniboost/bits/stdio-lock.h diff --git a/kget/miniboost/bits/stdio.h b/miniboost/bits/stdio.h similarity index 100% rename from kget/miniboost/bits/stdio.h rename to miniboost/bits/stdio.h diff --git a/kget/miniboost/bits/stdio2.h b/miniboost/bits/stdio2.h similarity index 100% rename from kget/miniboost/bits/stdio2.h rename to miniboost/bits/stdio2.h diff --git a/kget/miniboost/bits/stdio_lim.h b/miniboost/bits/stdio_lim.h similarity index 100% rename from kget/miniboost/bits/stdio_lim.h rename to miniboost/bits/stdio_lim.h diff --git a/kget/miniboost/bits/stdlib-bsearch.h b/miniboost/bits/stdlib-bsearch.h similarity index 100% rename from kget/miniboost/bits/stdlib-bsearch.h rename to miniboost/bits/stdlib-bsearch.h diff --git a/kget/miniboost/bits/stdlib-float.h b/miniboost/bits/stdlib-float.h similarity index 100% rename from kget/miniboost/bits/stdlib-float.h rename to miniboost/bits/stdlib-float.h diff --git a/kget/miniboost/bits/stdlib-ldbl.h b/miniboost/bits/stdlib-ldbl.h similarity index 100% rename from kget/miniboost/bits/stdlib-ldbl.h rename to miniboost/bits/stdlib-ldbl.h diff --git a/kget/miniboost/bits/stdlib.h b/miniboost/bits/stdlib.h similarity index 100% rename from kget/miniboost/bits/stdlib.h rename to miniboost/bits/stdlib.h diff --git a/kget/miniboost/bits/string.h b/miniboost/bits/string.h similarity index 100% rename from kget/miniboost/bits/string.h rename to miniboost/bits/string.h diff --git a/kget/miniboost/bits/string2.h b/miniboost/bits/string2.h similarity index 100% rename from kget/miniboost/bits/string2.h rename to miniboost/bits/string2.h diff --git a/kget/miniboost/bits/string3.h b/miniboost/bits/string3.h similarity index 100% rename from kget/miniboost/bits/string3.h rename to miniboost/bits/string3.h diff --git a/kget/miniboost/bits/sys_errlist.h b/miniboost/bits/sys_errlist.h similarity index 100% rename from kget/miniboost/bits/sys_errlist.h rename to miniboost/bits/sys_errlist.h diff --git a/kget/miniboost/bits/time.h b/miniboost/bits/time.h similarity index 100% rename from kget/miniboost/bits/time.h rename to miniboost/bits/time.h diff --git a/kget/miniboost/bits/timex.h b/miniboost/bits/timex.h similarity index 100% rename from kget/miniboost/bits/timex.h rename to miniboost/bits/timex.h diff --git a/kget/miniboost/bits/types.h b/miniboost/bits/types.h similarity index 100% rename from kget/miniboost/bits/types.h rename to miniboost/bits/types.h diff --git a/kget/miniboost/bits/typesizes.h b/miniboost/bits/typesizes.h similarity index 100% rename from kget/miniboost/bits/typesizes.h rename to miniboost/bits/typesizes.h diff --git a/kget/miniboost/bits/unistd.h b/miniboost/bits/unistd.h similarity index 100% rename from kget/miniboost/bits/unistd.h rename to miniboost/bits/unistd.h diff --git a/kget/miniboost/bits/waitflags.h b/miniboost/bits/waitflags.h similarity index 100% rename from kget/miniboost/bits/waitflags.h rename to miniboost/bits/waitflags.h diff --git a/kget/miniboost/bits/waitstatus.h b/miniboost/bits/waitstatus.h similarity index 100% rename from kget/miniboost/bits/waitstatus.h rename to miniboost/bits/waitstatus.h diff --git a/kget/miniboost/bits/wchar-ldbl.h b/miniboost/bits/wchar-ldbl.h similarity index 100% rename from kget/miniboost/bits/wchar-ldbl.h rename to miniboost/bits/wchar-ldbl.h diff --git a/kget/miniboost/bits/wchar.h b/miniboost/bits/wchar.h similarity index 100% rename from kget/miniboost/bits/wchar.h rename to miniboost/bits/wchar.h diff --git a/kget/miniboost/bits/wchar2.h b/miniboost/bits/wchar2.h similarity index 100% rename from kget/miniboost/bits/wchar2.h rename to miniboost/bits/wchar2.h diff --git a/kget/miniboost/bits/wordsize.h b/miniboost/bits/wordsize.h similarity index 100% rename from kget/miniboost/bits/wordsize.h rename to miniboost/bits/wordsize.h diff --git a/kget/miniboost/bits/xopen_lim.h b/miniboost/bits/xopen_lim.h similarity index 100% rename from kget/miniboost/bits/xopen_lim.h rename to miniboost/bits/xopen_lim.h diff --git a/libktorrent/miniboost/boost/assert.hpp b/miniboost/boost/assert.hpp similarity index 100% rename from libktorrent/miniboost/boost/assert.hpp rename to miniboost/boost/assert.hpp diff --git a/kget/miniboost/boost/bind/apply.hpp b/miniboost/boost/bind/apply.hpp similarity index 100% rename from kget/miniboost/boost/bind/apply.hpp rename to miniboost/boost/bind/apply.hpp diff --git a/kget/miniboost/boost/bind/arg.hpp b/miniboost/boost/bind/arg.hpp similarity index 100% rename from kget/miniboost/boost/bind/arg.hpp rename to miniboost/boost/bind/arg.hpp diff --git a/kget/miniboost/boost/bind/bind.hpp b/miniboost/boost/bind/bind.hpp similarity index 100% rename from kget/miniboost/boost/bind/bind.hpp rename to miniboost/boost/bind/bind.hpp diff --git a/kget/miniboost/boost/bind/bind_cc.hpp b/miniboost/boost/bind/bind_cc.hpp similarity index 100% rename from kget/miniboost/boost/bind/bind_cc.hpp rename to miniboost/boost/bind/bind_cc.hpp diff --git a/kget/miniboost/boost/bind/bind_mf2_cc.hpp b/miniboost/boost/bind/bind_mf2_cc.hpp similarity index 100% rename from kget/miniboost/boost/bind/bind_mf2_cc.hpp rename to miniboost/boost/bind/bind_mf2_cc.hpp diff --git a/kget/miniboost/boost/bind/bind_mf_cc.hpp b/miniboost/boost/bind/bind_mf_cc.hpp similarity index 100% rename from kget/miniboost/boost/bind/bind_mf_cc.hpp rename to miniboost/boost/bind/bind_mf_cc.hpp diff --git a/kget/miniboost/boost/bind/bind_template.hpp b/miniboost/boost/bind/bind_template.hpp similarity index 100% rename from kget/miniboost/boost/bind/bind_template.hpp rename to miniboost/boost/bind/bind_template.hpp diff --git a/kget/miniboost/boost/bind/make_adaptable.hpp b/miniboost/boost/bind/make_adaptable.hpp similarity index 100% rename from kget/miniboost/boost/bind/make_adaptable.hpp rename to miniboost/boost/bind/make_adaptable.hpp diff --git a/kget/miniboost/boost/bind/mem_fn.hpp b/miniboost/boost/bind/mem_fn.hpp similarity index 100% rename from kget/miniboost/boost/bind/mem_fn.hpp rename to miniboost/boost/bind/mem_fn.hpp diff --git a/kget/miniboost/boost/bind/mem_fn_cc.hpp b/miniboost/boost/bind/mem_fn_cc.hpp similarity index 100% rename from kget/miniboost/boost/bind/mem_fn_cc.hpp rename to miniboost/boost/bind/mem_fn_cc.hpp diff --git a/kget/miniboost/boost/bind/mem_fn_template.hpp b/miniboost/boost/bind/mem_fn_template.hpp similarity index 100% rename from kget/miniboost/boost/bind/mem_fn_template.hpp rename to miniboost/boost/bind/mem_fn_template.hpp diff --git a/kget/miniboost/boost/bind/mem_fn_vw.hpp b/miniboost/boost/bind/mem_fn_vw.hpp similarity index 100% rename from kget/miniboost/boost/bind/mem_fn_vw.hpp rename to miniboost/boost/bind/mem_fn_vw.hpp diff --git a/kget/miniboost/boost/bind/placeholders.hpp b/miniboost/boost/bind/placeholders.hpp similarity index 100% rename from kget/miniboost/boost/bind/placeholders.hpp rename to miniboost/boost/bind/placeholders.hpp diff --git a/kget/miniboost/boost/bind/protect.hpp b/miniboost/boost/bind/protect.hpp similarity index 100% rename from kget/miniboost/boost/bind/protect.hpp rename to miniboost/boost/bind/protect.hpp diff --git a/kget/miniboost/boost/bind/storage.hpp b/miniboost/boost/bind/storage.hpp similarity index 100% rename from kget/miniboost/boost/bind/storage.hpp rename to miniboost/boost/bind/storage.hpp diff --git a/libktorrent/miniboost/boost/call_traits.hpp b/miniboost/boost/call_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/call_traits.hpp rename to miniboost/boost/call_traits.hpp diff --git a/libktorrent/miniboost/boost/checked_delete.hpp b/miniboost/boost/checked_delete.hpp similarity index 100% rename from libktorrent/miniboost/boost/checked_delete.hpp rename to miniboost/boost/checked_delete.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer.hpp b/miniboost/boost/circular_buffer.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer.hpp rename to miniboost/boost/circular_buffer.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer/base.hpp b/miniboost/boost/circular_buffer/base.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer/base.hpp rename to miniboost/boost/circular_buffer/base.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer/debug.hpp b/miniboost/boost/circular_buffer/debug.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer/debug.hpp rename to miniboost/boost/circular_buffer/debug.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer/details.hpp b/miniboost/boost/circular_buffer/details.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer/details.hpp rename to miniboost/boost/circular_buffer/details.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer/space_optimized.hpp b/miniboost/boost/circular_buffer/space_optimized.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer/space_optimized.hpp rename to miniboost/boost/circular_buffer/space_optimized.hpp diff --git a/libktorrent/miniboost/boost/circular_buffer_fwd.hpp b/miniboost/boost/circular_buffer_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/circular_buffer_fwd.hpp rename to miniboost/boost/circular_buffer_fwd.hpp diff --git a/libktorrent/miniboost/boost/concept/assert.hpp b/miniboost/boost/concept/assert.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/assert.hpp rename to miniboost/boost/concept/assert.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/backward_compatibility.hpp b/miniboost/boost/concept/detail/backward_compatibility.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/backward_compatibility.hpp rename to miniboost/boost/concept/detail/backward_compatibility.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/borland.hpp b/miniboost/boost/concept/detail/borland.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/borland.hpp rename to miniboost/boost/concept/detail/borland.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/concept_def.hpp b/miniboost/boost/concept/detail/concept_def.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/concept_def.hpp rename to miniboost/boost/concept/detail/concept_def.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/concept_undef.hpp b/miniboost/boost/concept/detail/concept_undef.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/concept_undef.hpp rename to miniboost/boost/concept/detail/concept_undef.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/general.hpp b/miniboost/boost/concept/detail/general.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/general.hpp rename to miniboost/boost/concept/detail/general.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/has_constraints.hpp b/miniboost/boost/concept/detail/has_constraints.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/has_constraints.hpp rename to miniboost/boost/concept/detail/has_constraints.hpp diff --git a/libktorrent/miniboost/boost/concept/detail/msvc.hpp b/miniboost/boost/concept/detail/msvc.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/detail/msvc.hpp rename to miniboost/boost/concept/detail/msvc.hpp diff --git a/libktorrent/miniboost/boost/concept/usage.hpp b/miniboost/boost/concept/usage.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept/usage.hpp rename to miniboost/boost/concept/usage.hpp diff --git a/libktorrent/miniboost/boost/concept_check.hpp b/miniboost/boost/concept_check.hpp similarity index 100% rename from libktorrent/miniboost/boost/concept_check.hpp rename to miniboost/boost/concept_check.hpp diff --git a/kget/miniboost/boost/config.hpp b/miniboost/boost/config.hpp similarity index 100% rename from kget/miniboost/boost/config.hpp rename to miniboost/boost/config.hpp diff --git a/kget/miniboost/boost/config/abi/borland_prefix.hpp b/miniboost/boost/config/abi/borland_prefix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi/borland_prefix.hpp rename to miniboost/boost/config/abi/borland_prefix.hpp diff --git a/kget/miniboost/boost/config/abi/borland_suffix.hpp b/miniboost/boost/config/abi/borland_suffix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi/borland_suffix.hpp rename to miniboost/boost/config/abi/borland_suffix.hpp diff --git a/kget/miniboost/boost/config/abi/msvc_prefix.hpp b/miniboost/boost/config/abi/msvc_prefix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi/msvc_prefix.hpp rename to miniboost/boost/config/abi/msvc_prefix.hpp diff --git a/kget/miniboost/boost/config/abi/msvc_suffix.hpp b/miniboost/boost/config/abi/msvc_suffix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi/msvc_suffix.hpp rename to miniboost/boost/config/abi/msvc_suffix.hpp diff --git a/kget/miniboost/boost/config/abi_prefix.hpp b/miniboost/boost/config/abi_prefix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi_prefix.hpp rename to miniboost/boost/config/abi_prefix.hpp diff --git a/kget/miniboost/boost/config/abi_suffix.hpp b/miniboost/boost/config/abi_suffix.hpp similarity index 100% rename from kget/miniboost/boost/config/abi_suffix.hpp rename to miniboost/boost/config/abi_suffix.hpp diff --git a/kget/miniboost/boost/config/auto_link.hpp b/miniboost/boost/config/auto_link.hpp similarity index 100% rename from kget/miniboost/boost/config/auto_link.hpp rename to miniboost/boost/config/auto_link.hpp diff --git a/kget/miniboost/boost/config/compiler/borland.hpp b/miniboost/boost/config/compiler/borland.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/borland.hpp rename to miniboost/boost/config/compiler/borland.hpp diff --git a/kget/miniboost/boost/config/compiler/clang.hpp b/miniboost/boost/config/compiler/clang.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/clang.hpp rename to miniboost/boost/config/compiler/clang.hpp diff --git a/kget/miniboost/boost/config/compiler/codegear.hpp b/miniboost/boost/config/compiler/codegear.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/codegear.hpp rename to miniboost/boost/config/compiler/codegear.hpp diff --git a/kget/miniboost/boost/config/compiler/comeau.hpp b/miniboost/boost/config/compiler/comeau.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/comeau.hpp rename to miniboost/boost/config/compiler/comeau.hpp diff --git a/kget/miniboost/boost/config/compiler/common_edg.hpp b/miniboost/boost/config/compiler/common_edg.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/common_edg.hpp rename to miniboost/boost/config/compiler/common_edg.hpp diff --git a/kget/miniboost/boost/config/compiler/compaq_cxx.hpp b/miniboost/boost/config/compiler/compaq_cxx.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/compaq_cxx.hpp rename to miniboost/boost/config/compiler/compaq_cxx.hpp diff --git a/kget/miniboost/boost/config/compiler/cray.hpp b/miniboost/boost/config/compiler/cray.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/cray.hpp rename to miniboost/boost/config/compiler/cray.hpp diff --git a/kget/miniboost/boost/config/compiler/digitalmars.hpp b/miniboost/boost/config/compiler/digitalmars.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/digitalmars.hpp rename to miniboost/boost/config/compiler/digitalmars.hpp diff --git a/kget/miniboost/boost/config/compiler/gcc.hpp b/miniboost/boost/config/compiler/gcc.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/gcc.hpp rename to miniboost/boost/config/compiler/gcc.hpp diff --git a/kget/miniboost/boost/config/compiler/gcc_xml.hpp b/miniboost/boost/config/compiler/gcc_xml.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/gcc_xml.hpp rename to miniboost/boost/config/compiler/gcc_xml.hpp diff --git a/kget/miniboost/boost/config/compiler/greenhills.hpp b/miniboost/boost/config/compiler/greenhills.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/greenhills.hpp rename to miniboost/boost/config/compiler/greenhills.hpp diff --git a/kget/miniboost/boost/config/compiler/hp_acc.hpp b/miniboost/boost/config/compiler/hp_acc.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/hp_acc.hpp rename to miniboost/boost/config/compiler/hp_acc.hpp diff --git a/kget/miniboost/boost/config/compiler/intel.hpp b/miniboost/boost/config/compiler/intel.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/intel.hpp rename to miniboost/boost/config/compiler/intel.hpp diff --git a/kget/miniboost/boost/config/compiler/kai.hpp b/miniboost/boost/config/compiler/kai.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/kai.hpp rename to miniboost/boost/config/compiler/kai.hpp diff --git a/kget/miniboost/boost/config/compiler/metrowerks.hpp b/miniboost/boost/config/compiler/metrowerks.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/metrowerks.hpp rename to miniboost/boost/config/compiler/metrowerks.hpp diff --git a/kget/miniboost/boost/config/compiler/mpw.hpp b/miniboost/boost/config/compiler/mpw.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/mpw.hpp rename to miniboost/boost/config/compiler/mpw.hpp diff --git a/kget/miniboost/boost/config/compiler/nvcc.hpp b/miniboost/boost/config/compiler/nvcc.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/nvcc.hpp rename to miniboost/boost/config/compiler/nvcc.hpp diff --git a/kget/miniboost/boost/config/compiler/pathscale.hpp b/miniboost/boost/config/compiler/pathscale.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/pathscale.hpp rename to miniboost/boost/config/compiler/pathscale.hpp diff --git a/kget/miniboost/boost/config/compiler/pgi.hpp b/miniboost/boost/config/compiler/pgi.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/pgi.hpp rename to miniboost/boost/config/compiler/pgi.hpp diff --git a/kget/miniboost/boost/config/compiler/sgi_mipspro.hpp b/miniboost/boost/config/compiler/sgi_mipspro.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/sgi_mipspro.hpp rename to miniboost/boost/config/compiler/sgi_mipspro.hpp diff --git a/kget/miniboost/boost/config/compiler/sunpro_cc.hpp b/miniboost/boost/config/compiler/sunpro_cc.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/sunpro_cc.hpp rename to miniboost/boost/config/compiler/sunpro_cc.hpp diff --git a/kget/miniboost/boost/config/compiler/vacpp.hpp b/miniboost/boost/config/compiler/vacpp.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/vacpp.hpp rename to miniboost/boost/config/compiler/vacpp.hpp diff --git a/kget/miniboost/boost/config/compiler/visualc.hpp b/miniboost/boost/config/compiler/visualc.hpp similarity index 100% rename from kget/miniboost/boost/config/compiler/visualc.hpp rename to miniboost/boost/config/compiler/visualc.hpp diff --git a/kget/miniboost/boost/config/no_tr1/cmath.hpp b/miniboost/boost/config/no_tr1/cmath.hpp similarity index 100% rename from kget/miniboost/boost/config/no_tr1/cmath.hpp rename to miniboost/boost/config/no_tr1/cmath.hpp diff --git a/kget/miniboost/boost/config/no_tr1/complex.hpp b/miniboost/boost/config/no_tr1/complex.hpp similarity index 100% rename from kget/miniboost/boost/config/no_tr1/complex.hpp rename to miniboost/boost/config/no_tr1/complex.hpp diff --git a/kget/miniboost/boost/config/no_tr1/functional.hpp b/miniboost/boost/config/no_tr1/functional.hpp similarity index 100% rename from kget/miniboost/boost/config/no_tr1/functional.hpp rename to miniboost/boost/config/no_tr1/functional.hpp diff --git a/kget/miniboost/boost/config/no_tr1/memory.hpp b/miniboost/boost/config/no_tr1/memory.hpp similarity index 100% rename from kget/miniboost/boost/config/no_tr1/memory.hpp rename to miniboost/boost/config/no_tr1/memory.hpp diff --git a/kget/miniboost/boost/config/no_tr1/utility.hpp b/miniboost/boost/config/no_tr1/utility.hpp similarity index 100% rename from kget/miniboost/boost/config/no_tr1/utility.hpp rename to miniboost/boost/config/no_tr1/utility.hpp diff --git a/kget/miniboost/boost/config/platform/aix.hpp b/miniboost/boost/config/platform/aix.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/aix.hpp rename to miniboost/boost/config/platform/aix.hpp diff --git a/kget/miniboost/boost/config/platform/amigaos.hpp b/miniboost/boost/config/platform/amigaos.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/amigaos.hpp rename to miniboost/boost/config/platform/amigaos.hpp diff --git a/kget/miniboost/boost/config/platform/beos.hpp b/miniboost/boost/config/platform/beos.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/beos.hpp rename to miniboost/boost/config/platform/beos.hpp diff --git a/kget/miniboost/boost/config/platform/bsd.hpp b/miniboost/boost/config/platform/bsd.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/bsd.hpp rename to miniboost/boost/config/platform/bsd.hpp diff --git a/kget/miniboost/boost/config/platform/cray.hpp b/miniboost/boost/config/platform/cray.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/cray.hpp rename to miniboost/boost/config/platform/cray.hpp diff --git a/kget/miniboost/boost/config/platform/cygwin.hpp b/miniboost/boost/config/platform/cygwin.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/cygwin.hpp rename to miniboost/boost/config/platform/cygwin.hpp diff --git a/kget/miniboost/boost/config/platform/hpux.hpp b/miniboost/boost/config/platform/hpux.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/hpux.hpp rename to miniboost/boost/config/platform/hpux.hpp diff --git a/kget/miniboost/boost/config/platform/irix.hpp b/miniboost/boost/config/platform/irix.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/irix.hpp rename to miniboost/boost/config/platform/irix.hpp diff --git a/kget/miniboost/boost/config/platform/linux.hpp b/miniboost/boost/config/platform/linux.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/linux.hpp rename to miniboost/boost/config/platform/linux.hpp diff --git a/kget/miniboost/boost/config/platform/macos.hpp b/miniboost/boost/config/platform/macos.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/macos.hpp rename to miniboost/boost/config/platform/macos.hpp diff --git a/kget/miniboost/boost/config/platform/qnxnto.hpp b/miniboost/boost/config/platform/qnxnto.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/qnxnto.hpp rename to miniboost/boost/config/platform/qnxnto.hpp diff --git a/kget/miniboost/boost/config/platform/solaris.hpp b/miniboost/boost/config/platform/solaris.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/solaris.hpp rename to miniboost/boost/config/platform/solaris.hpp diff --git a/kget/miniboost/boost/config/platform/symbian.hpp b/miniboost/boost/config/platform/symbian.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/symbian.hpp rename to miniboost/boost/config/platform/symbian.hpp diff --git a/kget/miniboost/boost/config/platform/vms.hpp b/miniboost/boost/config/platform/vms.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/vms.hpp rename to miniboost/boost/config/platform/vms.hpp diff --git a/kget/miniboost/boost/config/platform/vxworks.hpp b/miniboost/boost/config/platform/vxworks.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/vxworks.hpp rename to miniboost/boost/config/platform/vxworks.hpp diff --git a/kget/miniboost/boost/config/platform/win32.hpp b/miniboost/boost/config/platform/win32.hpp similarity index 100% rename from kget/miniboost/boost/config/platform/win32.hpp rename to miniboost/boost/config/platform/win32.hpp diff --git a/kget/miniboost/boost/config/posix_features.hpp b/miniboost/boost/config/posix_features.hpp similarity index 100% rename from kget/miniboost/boost/config/posix_features.hpp rename to miniboost/boost/config/posix_features.hpp diff --git a/kget/miniboost/boost/config/requires_threads.hpp b/miniboost/boost/config/requires_threads.hpp similarity index 100% rename from kget/miniboost/boost/config/requires_threads.hpp rename to miniboost/boost/config/requires_threads.hpp diff --git a/kget/miniboost/boost/config/select_compiler_config.hpp b/miniboost/boost/config/select_compiler_config.hpp similarity index 100% rename from kget/miniboost/boost/config/select_compiler_config.hpp rename to miniboost/boost/config/select_compiler_config.hpp diff --git a/kget/miniboost/boost/config/select_platform_config.hpp b/miniboost/boost/config/select_platform_config.hpp similarity index 100% rename from kget/miniboost/boost/config/select_platform_config.hpp rename to miniboost/boost/config/select_platform_config.hpp diff --git a/kget/miniboost/boost/config/select_stdlib_config.hpp b/miniboost/boost/config/select_stdlib_config.hpp similarity index 100% rename from kget/miniboost/boost/config/select_stdlib_config.hpp rename to miniboost/boost/config/select_stdlib_config.hpp diff --git a/kget/miniboost/boost/config/stdlib/dinkumware.hpp b/miniboost/boost/config/stdlib/dinkumware.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/dinkumware.hpp rename to miniboost/boost/config/stdlib/dinkumware.hpp diff --git a/kget/miniboost/boost/config/stdlib/libcomo.hpp b/miniboost/boost/config/stdlib/libcomo.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/libcomo.hpp rename to miniboost/boost/config/stdlib/libcomo.hpp diff --git a/kget/miniboost/boost/config/stdlib/libcpp.hpp b/miniboost/boost/config/stdlib/libcpp.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/libcpp.hpp rename to miniboost/boost/config/stdlib/libcpp.hpp diff --git a/kget/miniboost/boost/config/stdlib/libstdcpp3.hpp b/miniboost/boost/config/stdlib/libstdcpp3.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/libstdcpp3.hpp rename to miniboost/boost/config/stdlib/libstdcpp3.hpp diff --git a/kget/miniboost/boost/config/stdlib/modena.hpp b/miniboost/boost/config/stdlib/modena.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/modena.hpp rename to miniboost/boost/config/stdlib/modena.hpp diff --git a/kget/miniboost/boost/config/stdlib/msl.hpp b/miniboost/boost/config/stdlib/msl.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/msl.hpp rename to miniboost/boost/config/stdlib/msl.hpp diff --git a/kget/miniboost/boost/config/stdlib/roguewave.hpp b/miniboost/boost/config/stdlib/roguewave.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/roguewave.hpp rename to miniboost/boost/config/stdlib/roguewave.hpp diff --git a/kget/miniboost/boost/config/stdlib/sgi.hpp b/miniboost/boost/config/stdlib/sgi.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/sgi.hpp rename to miniboost/boost/config/stdlib/sgi.hpp diff --git a/kget/miniboost/boost/config/stdlib/stlport.hpp b/miniboost/boost/config/stdlib/stlport.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/stlport.hpp rename to miniboost/boost/config/stdlib/stlport.hpp diff --git a/kget/miniboost/boost/config/stdlib/vacpp.hpp b/miniboost/boost/config/stdlib/vacpp.hpp similarity index 100% rename from kget/miniboost/boost/config/stdlib/vacpp.hpp rename to miniboost/boost/config/stdlib/vacpp.hpp diff --git a/kget/miniboost/boost/config/suffix.hpp b/miniboost/boost/config/suffix.hpp similarity index 100% rename from kget/miniboost/boost/config/suffix.hpp rename to miniboost/boost/config/suffix.hpp diff --git a/kget/miniboost/boost/config/user.hpp b/miniboost/boost/config/user.hpp similarity index 100% rename from kget/miniboost/boost/config/user.hpp rename to miniboost/boost/config/user.hpp diff --git a/kget/miniboost/boost/config/warning_disable.hpp b/miniboost/boost/config/warning_disable.hpp similarity index 100% rename from kget/miniboost/boost/config/warning_disable.hpp rename to miniboost/boost/config/warning_disable.hpp diff --git a/libktorrent/miniboost/boost/container/allocator_traits.hpp b/miniboost/boost/container/allocator_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/allocator_traits.hpp rename to miniboost/boost/container/allocator_traits.hpp diff --git a/libktorrent/miniboost/boost/container/container_fwd.hpp b/miniboost/boost/container/container_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/container_fwd.hpp rename to miniboost/boost/container/container_fwd.hpp diff --git a/libktorrent/miniboost/boost/container/detail/config_begin.hpp b/miniboost/boost/container/detail/config_begin.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/config_begin.hpp rename to miniboost/boost/container/detail/config_begin.hpp diff --git a/libktorrent/miniboost/boost/container/detail/config_end.hpp b/miniboost/boost/container/detail/config_end.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/config_end.hpp rename to miniboost/boost/container/detail/config_end.hpp diff --git a/libktorrent/miniboost/boost/container/detail/memory_util.hpp b/miniboost/boost/container/detail/memory_util.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/memory_util.hpp rename to miniboost/boost/container/detail/memory_util.hpp diff --git a/libktorrent/miniboost/boost/container/detail/mpl.hpp b/miniboost/boost/container/detail/mpl.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/mpl.hpp rename to miniboost/boost/container/detail/mpl.hpp diff --git a/libktorrent/miniboost/boost/container/detail/preprocessor.hpp b/miniboost/boost/container/detail/preprocessor.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/preprocessor.hpp rename to miniboost/boost/container/detail/preprocessor.hpp diff --git a/libktorrent/miniboost/boost/container/detail/workaround.hpp b/miniboost/boost/container/detail/workaround.hpp similarity index 100% rename from libktorrent/miniboost/boost/container/detail/workaround.hpp rename to miniboost/boost/container/detail/workaround.hpp diff --git a/kget/miniboost/boost/core/addressof.hpp b/miniboost/boost/core/addressof.hpp similarity index 100% rename from kget/miniboost/boost/core/addressof.hpp rename to miniboost/boost/core/addressof.hpp diff --git a/libktorrent/miniboost/boost/core/checked_delete.hpp b/miniboost/boost/core/checked_delete.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/checked_delete.hpp rename to miniboost/boost/core/checked_delete.hpp diff --git a/libktorrent/miniboost/boost/core/demangle.hpp b/miniboost/boost/core/demangle.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/demangle.hpp rename to miniboost/boost/core/demangle.hpp diff --git a/libktorrent/miniboost/boost/core/enable_if.hpp b/miniboost/boost/core/enable_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/enable_if.hpp rename to miniboost/boost/core/enable_if.hpp diff --git a/libktorrent/miniboost/boost/core/no_exceptions_support.hpp b/miniboost/boost/core/no_exceptions_support.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/no_exceptions_support.hpp rename to miniboost/boost/core/no_exceptions_support.hpp diff --git a/libktorrent/miniboost/boost/core/noncopyable.hpp b/miniboost/boost/core/noncopyable.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/noncopyable.hpp rename to miniboost/boost/core/noncopyable.hpp diff --git a/kget/miniboost/boost/core/ref.hpp b/miniboost/boost/core/ref.hpp similarity index 100% rename from kget/miniboost/boost/core/ref.hpp rename to miniboost/boost/core/ref.hpp diff --git a/libktorrent/miniboost/boost/core/typeinfo.hpp b/miniboost/boost/core/typeinfo.hpp similarity index 100% rename from libktorrent/miniboost/boost/core/typeinfo.hpp rename to miniboost/boost/core/typeinfo.hpp diff --git a/libktorrent/miniboost/boost/current_function.hpp b/miniboost/boost/current_function.hpp similarity index 100% rename from libktorrent/miniboost/boost/current_function.hpp rename to miniboost/boost/current_function.hpp diff --git a/libktorrent/miniboost/boost/detail/call_traits.hpp b/miniboost/boost/detail/call_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/detail/call_traits.hpp rename to miniboost/boost/detail/call_traits.hpp diff --git a/libktorrent/miniboost/boost/detail/indirect_traits.hpp b/miniboost/boost/detail/indirect_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/detail/indirect_traits.hpp rename to miniboost/boost/detail/indirect_traits.hpp diff --git a/libktorrent/miniboost/boost/detail/iterator.hpp b/miniboost/boost/detail/iterator.hpp similarity index 100% rename from libktorrent/miniboost/boost/detail/iterator.hpp rename to miniboost/boost/detail/iterator.hpp diff --git a/libktorrent/miniboost/boost/detail/no_exceptions_support.hpp b/miniboost/boost/detail/no_exceptions_support.hpp similarity index 100% rename from libktorrent/miniboost/boost/detail/no_exceptions_support.hpp rename to miniboost/boost/detail/no_exceptions_support.hpp diff --git a/libktorrent/miniboost/boost/detail/sp_typeinfo.hpp b/miniboost/boost/detail/sp_typeinfo.hpp similarity index 100% rename from libktorrent/miniboost/boost/detail/sp_typeinfo.hpp rename to miniboost/boost/detail/sp_typeinfo.hpp diff --git a/kget/miniboost/boost/detail/workaround.hpp b/miniboost/boost/detail/workaround.hpp similarity index 100% rename from kget/miniboost/boost/detail/workaround.hpp rename to miniboost/boost/detail/workaround.hpp diff --git a/libktorrent/miniboost/boost/exception/exception.hpp b/miniboost/boost/exception/exception.hpp similarity index 100% rename from libktorrent/miniboost/boost/exception/exception.hpp rename to miniboost/boost/exception/exception.hpp diff --git a/kget/miniboost/boost/get_pointer.hpp b/miniboost/boost/get_pointer.hpp similarity index 100% rename from kget/miniboost/boost/get_pointer.hpp rename to miniboost/boost/get_pointer.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/config_begin.hpp b/miniboost/boost/intrusive/detail/config_begin.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/config_begin.hpp rename to miniboost/boost/intrusive/detail/config_begin.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/config_end.hpp b/miniboost/boost/intrusive/detail/config_end.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/config_end.hpp rename to miniboost/boost/intrusive/detail/config_end.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/has_member_function_callable_with.hpp b/miniboost/boost/intrusive/detail/has_member_function_callable_with.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/has_member_function_callable_with.hpp rename to miniboost/boost/intrusive/detail/has_member_function_callable_with.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/memory_util.hpp b/miniboost/boost/intrusive/detail/memory_util.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/memory_util.hpp rename to miniboost/boost/intrusive/detail/memory_util.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/mpl.hpp b/miniboost/boost/intrusive/detail/mpl.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/mpl.hpp rename to miniboost/boost/intrusive/detail/mpl.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/preprocessor.hpp b/miniboost/boost/intrusive/detail/preprocessor.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/preprocessor.hpp rename to miniboost/boost/intrusive/detail/preprocessor.hpp diff --git a/libktorrent/miniboost/boost/intrusive/detail/workaround.hpp b/miniboost/boost/intrusive/detail/workaround.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/detail/workaround.hpp rename to miniboost/boost/intrusive/detail/workaround.hpp diff --git a/libktorrent/miniboost/boost/intrusive/intrusive_fwd.hpp b/miniboost/boost/intrusive/intrusive_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/intrusive_fwd.hpp rename to miniboost/boost/intrusive/intrusive_fwd.hpp diff --git a/libktorrent/miniboost/boost/intrusive/link_mode.hpp b/miniboost/boost/intrusive/link_mode.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/link_mode.hpp rename to miniboost/boost/intrusive/link_mode.hpp diff --git a/libktorrent/miniboost/boost/intrusive/pointer_traits.hpp b/miniboost/boost/intrusive/pointer_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/intrusive/pointer_traits.hpp rename to miniboost/boost/intrusive/pointer_traits.hpp diff --git a/kget/miniboost/boost/is_placeholder.hpp b/miniboost/boost/is_placeholder.hpp similarity index 100% rename from kget/miniboost/boost/is_placeholder.hpp rename to miniboost/boost/is_placeholder.hpp diff --git a/libktorrent/miniboost/boost/iterator.hpp b/miniboost/boost/iterator.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator.hpp rename to miniboost/boost/iterator.hpp diff --git a/libktorrent/miniboost/boost/iterator/detail/config_def.hpp b/miniboost/boost/iterator/detail/config_def.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/detail/config_def.hpp rename to miniboost/boost/iterator/detail/config_def.hpp diff --git a/libktorrent/miniboost/boost/iterator/detail/config_undef.hpp b/miniboost/boost/iterator/detail/config_undef.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/detail/config_undef.hpp rename to miniboost/boost/iterator/detail/config_undef.hpp diff --git a/libktorrent/miniboost/boost/iterator/detail/enable_if.hpp b/miniboost/boost/iterator/detail/enable_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/detail/enable_if.hpp rename to miniboost/boost/iterator/detail/enable_if.hpp diff --git a/libktorrent/miniboost/boost/iterator/detail/facade_iterator_category.hpp b/miniboost/boost/iterator/detail/facade_iterator_category.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/detail/facade_iterator_category.hpp rename to miniboost/boost/iterator/detail/facade_iterator_category.hpp diff --git a/libktorrent/miniboost/boost/iterator/interoperable.hpp b/miniboost/boost/iterator/interoperable.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/interoperable.hpp rename to miniboost/boost/iterator/interoperable.hpp diff --git a/libktorrent/miniboost/boost/iterator/iterator_adaptor.hpp b/miniboost/boost/iterator/iterator_adaptor.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/iterator_adaptor.hpp rename to miniboost/boost/iterator/iterator_adaptor.hpp diff --git a/libktorrent/miniboost/boost/iterator/iterator_categories.hpp b/miniboost/boost/iterator/iterator_categories.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/iterator_categories.hpp rename to miniboost/boost/iterator/iterator_categories.hpp diff --git a/libktorrent/miniboost/boost/iterator/iterator_facade.hpp b/miniboost/boost/iterator/iterator_facade.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/iterator_facade.hpp rename to miniboost/boost/iterator/iterator_facade.hpp diff --git a/libktorrent/miniboost/boost/iterator/iterator_traits.hpp b/miniboost/boost/iterator/iterator_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/iterator_traits.hpp rename to miniboost/boost/iterator/iterator_traits.hpp diff --git a/libktorrent/miniboost/boost/iterator/reverse_iterator.hpp b/miniboost/boost/iterator/reverse_iterator.hpp similarity index 100% rename from libktorrent/miniboost/boost/iterator/reverse_iterator.hpp rename to miniboost/boost/iterator/reverse_iterator.hpp diff --git a/libktorrent/miniboost/boost/limits.hpp b/miniboost/boost/limits.hpp similarity index 100% rename from libktorrent/miniboost/boost/limits.hpp rename to miniboost/boost/limits.hpp diff --git a/kget/miniboost/boost/mem_fn.hpp b/miniboost/boost/mem_fn.hpp similarity index 100% rename from kget/miniboost/boost/mem_fn.hpp rename to miniboost/boost/mem_fn.hpp diff --git a/libktorrent/miniboost/boost/move/algorithm.hpp b/miniboost/boost/move/algorithm.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/algorithm.hpp rename to miniboost/boost/move/algorithm.hpp diff --git a/libktorrent/miniboost/boost/move/core.hpp b/miniboost/boost/move/core.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/core.hpp rename to miniboost/boost/move/core.hpp diff --git a/libktorrent/miniboost/boost/move/detail/config_begin.hpp b/miniboost/boost/move/detail/config_begin.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/detail/config_begin.hpp rename to miniboost/boost/move/detail/config_begin.hpp diff --git a/libktorrent/miniboost/boost/move/detail/config_end.hpp b/miniboost/boost/move/detail/config_end.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/detail/config_end.hpp rename to miniboost/boost/move/detail/config_end.hpp diff --git a/libktorrent/miniboost/boost/move/detail/meta_utils.hpp b/miniboost/boost/move/detail/meta_utils.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/detail/meta_utils.hpp rename to miniboost/boost/move/detail/meta_utils.hpp diff --git a/libktorrent/miniboost/boost/move/iterator.hpp b/miniboost/boost/move/iterator.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/iterator.hpp rename to miniboost/boost/move/iterator.hpp diff --git a/libktorrent/miniboost/boost/move/move.hpp b/miniboost/boost/move/move.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/move.hpp rename to miniboost/boost/move/move.hpp diff --git a/libktorrent/miniboost/boost/move/traits.hpp b/miniboost/boost/move/traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/traits.hpp rename to miniboost/boost/move/traits.hpp diff --git a/libktorrent/miniboost/boost/move/utility.hpp b/miniboost/boost/move/utility.hpp similarity index 100% rename from libktorrent/miniboost/boost/move/utility.hpp rename to miniboost/boost/move/utility.hpp diff --git a/libktorrent/miniboost/boost/mpl/always.hpp b/miniboost/boost/mpl/always.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/always.hpp rename to miniboost/boost/mpl/always.hpp diff --git a/libktorrent/miniboost/boost/mpl/and.hpp b/miniboost/boost/mpl/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/and.hpp rename to miniboost/boost/mpl/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/apply.hpp b/miniboost/boost/mpl/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/apply.hpp rename to miniboost/boost/mpl/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/apply_fwd.hpp b/miniboost/boost/mpl/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/apply_fwd.hpp rename to miniboost/boost/mpl/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/apply_wrap.hpp b/miniboost/boost/mpl/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/apply_wrap.hpp rename to miniboost/boost/mpl/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/arg.hpp b/miniboost/boost/mpl/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/arg.hpp rename to miniboost/boost/mpl/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/arg_fwd.hpp b/miniboost/boost/mpl/arg_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/arg_fwd.hpp rename to miniboost/boost/mpl/arg_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/assert.hpp b/miniboost/boost/mpl/assert.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/assert.hpp rename to miniboost/boost/mpl/assert.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/adl_barrier.hpp b/miniboost/boost/mpl/aux_/adl_barrier.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/adl_barrier.hpp rename to miniboost/boost/mpl/aux_/adl_barrier.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/arg_typedef.hpp b/miniboost/boost/mpl/aux_/arg_typedef.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/arg_typedef.hpp rename to miniboost/boost/mpl/aux_/arg_typedef.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/arity.hpp b/miniboost/boost/mpl/aux_/arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/arity.hpp rename to miniboost/boost/mpl/aux_/arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/arity_spec.hpp b/miniboost/boost/mpl/aux_/arity_spec.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/arity_spec.hpp rename to miniboost/boost/mpl/aux_/arity_spec.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/common_name_wknd.hpp b/miniboost/boost/mpl/aux_/common_name_wknd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/common_name_wknd.hpp rename to miniboost/boost/mpl/aux_/common_name_wknd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/adl.hpp b/miniboost/boost/mpl/aux_/config/adl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/adl.hpp rename to miniboost/boost/mpl/aux_/config/adl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/arrays.hpp b/miniboost/boost/mpl/aux_/config/arrays.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/arrays.hpp rename to miniboost/boost/mpl/aux_/config/arrays.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/bcc.hpp b/miniboost/boost/mpl/aux_/config/bcc.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/bcc.hpp rename to miniboost/boost/mpl/aux_/config/bcc.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/bind.hpp b/miniboost/boost/mpl/aux_/config/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/bind.hpp rename to miniboost/boost/mpl/aux_/config/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/compiler.hpp b/miniboost/boost/mpl/aux_/config/compiler.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/compiler.hpp rename to miniboost/boost/mpl/aux_/config/compiler.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/ctps.hpp b/miniboost/boost/mpl/aux_/config/ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/ctps.hpp rename to miniboost/boost/mpl/aux_/config/ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp b/miniboost/boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp rename to miniboost/boost/mpl/aux_/config/dmc_ambiguous_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/dtp.hpp b/miniboost/boost/mpl/aux_/config/dtp.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/dtp.hpp rename to miniboost/boost/mpl/aux_/config/dtp.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/eti.hpp b/miniboost/boost/mpl/aux_/config/eti.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/eti.hpp rename to miniboost/boost/mpl/aux_/config/eti.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/gcc.hpp b/miniboost/boost/mpl/aux_/config/gcc.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/gcc.hpp rename to miniboost/boost/mpl/aux_/config/gcc.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/gpu.hpp b/miniboost/boost/mpl/aux_/config/gpu.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/gpu.hpp rename to miniboost/boost/mpl/aux_/config/gpu.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/has_apply.hpp b/miniboost/boost/mpl/aux_/config/has_apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/has_apply.hpp rename to miniboost/boost/mpl/aux_/config/has_apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/has_xxx.hpp b/miniboost/boost/mpl/aux_/config/has_xxx.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/has_xxx.hpp rename to miniboost/boost/mpl/aux_/config/has_xxx.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/integral.hpp b/miniboost/boost/mpl/aux_/config/integral.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/integral.hpp rename to miniboost/boost/mpl/aux_/config/integral.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/intel.hpp b/miniboost/boost/mpl/aux_/config/intel.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/intel.hpp rename to miniboost/boost/mpl/aux_/config/intel.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/lambda.hpp b/miniboost/boost/mpl/aux_/config/lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/lambda.hpp rename to miniboost/boost/mpl/aux_/config/lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/msvc.hpp b/miniboost/boost/mpl/aux_/config/msvc.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/msvc.hpp rename to miniboost/boost/mpl/aux_/config/msvc.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/msvc_typename.hpp b/miniboost/boost/mpl/aux_/config/msvc_typename.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/msvc_typename.hpp rename to miniboost/boost/mpl/aux_/config/msvc_typename.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/nttp.hpp b/miniboost/boost/mpl/aux_/config/nttp.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/nttp.hpp rename to miniboost/boost/mpl/aux_/config/nttp.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/overload_resolution.hpp b/miniboost/boost/mpl/aux_/config/overload_resolution.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/overload_resolution.hpp rename to miniboost/boost/mpl/aux_/config/overload_resolution.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/pp_counter.hpp b/miniboost/boost/mpl/aux_/config/pp_counter.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/pp_counter.hpp rename to miniboost/boost/mpl/aux_/config/pp_counter.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/preprocessor.hpp b/miniboost/boost/mpl/aux_/config/preprocessor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/preprocessor.hpp rename to miniboost/boost/mpl/aux_/config/preprocessor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/static_constant.hpp b/miniboost/boost/mpl/aux_/config/static_constant.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/static_constant.hpp rename to miniboost/boost/mpl/aux_/config/static_constant.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/ttp.hpp b/miniboost/boost/mpl/aux_/config/ttp.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/ttp.hpp rename to miniboost/boost/mpl/aux_/config/ttp.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/use_preprocessed.hpp b/miniboost/boost/mpl/aux_/config/use_preprocessed.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/use_preprocessed.hpp rename to miniboost/boost/mpl/aux_/config/use_preprocessed.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/config/workaround.hpp b/miniboost/boost/mpl/aux_/config/workaround.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/config/workaround.hpp rename to miniboost/boost/mpl/aux_/config/workaround.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/count_args.hpp b/miniboost/boost/mpl/aux_/count_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/count_args.hpp rename to miniboost/boost/mpl/aux_/count_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/full_lambda.hpp b/miniboost/boost/mpl/aux_/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/full_lambda.hpp rename to miniboost/boost/mpl/aux_/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/has_apply.hpp b/miniboost/boost/mpl/aux_/has_apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/has_apply.hpp rename to miniboost/boost/mpl/aux_/has_apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/has_rebind.hpp b/miniboost/boost/mpl/aux_/has_rebind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/has_rebind.hpp rename to miniboost/boost/mpl/aux_/has_rebind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/has_type.hpp b/miniboost/boost/mpl/aux_/has_type.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/has_type.hpp rename to miniboost/boost/mpl/aux_/has_type.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/include_preprocessed.hpp b/miniboost/boost/mpl/aux_/include_preprocessed.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/include_preprocessed.hpp rename to miniboost/boost/mpl/aux_/include_preprocessed.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/integral_wrapper.hpp b/miniboost/boost/mpl/aux_/integral_wrapper.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/integral_wrapper.hpp rename to miniboost/boost/mpl/aux_/integral_wrapper.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/lambda_arity_param.hpp b/miniboost/boost/mpl/aux_/lambda_arity_param.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/lambda_arity_param.hpp rename to miniboost/boost/mpl/aux_/lambda_arity_param.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/lambda_support.hpp b/miniboost/boost/mpl/aux_/lambda_support.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/lambda_support.hpp rename to miniboost/boost/mpl/aux_/lambda_support.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/logical_op.hpp b/miniboost/boost/mpl/aux_/logical_op.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/logical_op.hpp rename to miniboost/boost/mpl/aux_/logical_op.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/msvc_dtw.hpp b/miniboost/boost/mpl/aux_/msvc_dtw.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/msvc_dtw.hpp rename to miniboost/boost/mpl/aux_/msvc_dtw.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/msvc_is_class.hpp b/miniboost/boost/mpl/aux_/msvc_is_class.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/msvc_is_class.hpp rename to miniboost/boost/mpl/aux_/msvc_is_class.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/msvc_never_true.hpp b/miniboost/boost/mpl/aux_/msvc_never_true.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/msvc_never_true.hpp rename to miniboost/boost/mpl/aux_/msvc_never_true.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/na.hpp b/miniboost/boost/mpl/aux_/na.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/na.hpp rename to miniboost/boost/mpl/aux_/na.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/na_assert.hpp b/miniboost/boost/mpl/aux_/na_assert.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/na_assert.hpp rename to miniboost/boost/mpl/aux_/na_assert.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/na_fwd.hpp b/miniboost/boost/mpl/aux_/na_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/na_fwd.hpp rename to miniboost/boost/mpl/aux_/na_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/na_spec.hpp b/miniboost/boost/mpl/aux_/na_spec.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/na_spec.hpp rename to miniboost/boost/mpl/aux_/na_spec.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/nested_type_wknd.hpp b/miniboost/boost/mpl/aux_/nested_type_wknd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/nested_type_wknd.hpp rename to miniboost/boost/mpl/aux_/nested_type_wknd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/nttp_decl.hpp b/miniboost/boost/mpl/aux_/nttp_decl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/nttp_decl.hpp rename to miniboost/boost/mpl/aux_/nttp_decl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc551/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc551/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/bcc_pre590/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/dmc/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/dmc/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/dmc/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/gcc/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc60/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc60/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/msvc70/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/msvc70/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/mwcw/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/mwcw/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ctps/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/no_ttp/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/advance_backward.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/advance_backward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/advance_backward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/advance_backward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/advance_forward.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/advance_forward.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/advance_forward.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/advance_forward.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/and.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/and.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/and.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/apply.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/apply.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/apply_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/apply_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply_wrap.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/apply_wrap.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/apply_wrap.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/apply_wrap.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/arg.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/arg.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/arg.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/arg.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/basic_bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/basic_bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/basic_bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/basic_bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bind.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bind.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bind_fwd.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bind_fwd.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitand.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitand.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/bitand.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitor.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/bitor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/bitor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitxor.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/bitxor.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/bitxor.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/bitxor.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/deque.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/deque.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/deque.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/deque.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/divides.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/divides.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/divides.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/divides.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/full_lambda.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/full_lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/full_lambda.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/full_lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/greater.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/greater.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/greater.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/greater.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/greater_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/greater_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/greater_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/greater_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/inherit.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/inherit.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/inherit.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/inherit.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_if_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_if_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_if_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_if_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/lambda_no_ctps.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/lambda_no_ctps.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/lambda_no_ctps.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/lambda_no_ctps.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/less.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/less.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/less.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/less.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/less_equal.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/less_equal.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/less_equal.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/less_equal.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/list.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/list.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/list.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/list.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/list_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/list_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/list_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/list_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/map.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/map.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/map.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/map.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/minus.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/minus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/minus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/minus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/modulus.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/modulus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/modulus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/modulus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/not_equal_to.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/not_equal_to.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/not_equal_to.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/not_equal_to.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/or.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/or.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/placeholders.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/placeholders.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/plus.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/plus.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/plus.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/plus.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/quote.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/quote.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/reverse_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_iter_fold_impl.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_iter_fold_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/reverse_iter_fold_impl.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/reverse_iter_fold_impl.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/set.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/set.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/set.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/set.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/set_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/set_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/set_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/set_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/shift_left.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/shift_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/shift_left.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/shift_left.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/shift_right.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/shift_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/shift_right.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/shift_right.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/template_arity.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/template_arity.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/times.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/times.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/times.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/times.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/unpack_args.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/unpack_args.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/unpack_args.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/unpack_args.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/vector.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/vector.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/vector.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/vector.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/vector_c.hpp b/miniboost/boost/mpl/aux_/preprocessed/plain/vector_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessed/plain/vector_c.hpp rename to miniboost/boost/mpl/aux_/preprocessed/plain/vector_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/add.hpp b/miniboost/boost/mpl/aux_/preprocessor/add.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/add.hpp rename to miniboost/boost/mpl/aux_/preprocessor/add.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/def_params_tail.hpp b/miniboost/boost/mpl/aux_/preprocessor/def_params_tail.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/def_params_tail.hpp rename to miniboost/boost/mpl/aux_/preprocessor/def_params_tail.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/default_params.hpp b/miniboost/boost/mpl/aux_/preprocessor/default_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/default_params.hpp rename to miniboost/boost/mpl/aux_/preprocessor/default_params.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/enum.hpp b/miniboost/boost/mpl/aux_/preprocessor/enum.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/enum.hpp rename to miniboost/boost/mpl/aux_/preprocessor/enum.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/ext_params.hpp b/miniboost/boost/mpl/aux_/preprocessor/ext_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/ext_params.hpp rename to miniboost/boost/mpl/aux_/preprocessor/ext_params.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/filter_params.hpp b/miniboost/boost/mpl/aux_/preprocessor/filter_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/filter_params.hpp rename to miniboost/boost/mpl/aux_/preprocessor/filter_params.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/params.hpp b/miniboost/boost/mpl/aux_/preprocessor/params.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/params.hpp rename to miniboost/boost/mpl/aux_/preprocessor/params.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/partial_spec_params.hpp b/miniboost/boost/mpl/aux_/preprocessor/partial_spec_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/partial_spec_params.hpp rename to miniboost/boost/mpl/aux_/preprocessor/partial_spec_params.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/range.hpp b/miniboost/boost/mpl/aux_/preprocessor/range.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/range.hpp rename to miniboost/boost/mpl/aux_/preprocessor/range.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/repeat.hpp b/miniboost/boost/mpl/aux_/preprocessor/repeat.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/repeat.hpp rename to miniboost/boost/mpl/aux_/preprocessor/repeat.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/sub.hpp b/miniboost/boost/mpl/aux_/preprocessor/sub.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/sub.hpp rename to miniboost/boost/mpl/aux_/preprocessor/sub.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/preprocessor/tuple.hpp b/miniboost/boost/mpl/aux_/preprocessor/tuple.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/preprocessor/tuple.hpp rename to miniboost/boost/mpl/aux_/preprocessor/tuple.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/static_cast.hpp b/miniboost/boost/mpl/aux_/static_cast.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/static_cast.hpp rename to miniboost/boost/mpl/aux_/static_cast.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/template_arity.hpp b/miniboost/boost/mpl/aux_/template_arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/template_arity.hpp rename to miniboost/boost/mpl/aux_/template_arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/template_arity_fwd.hpp b/miniboost/boost/mpl/aux_/template_arity_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/template_arity_fwd.hpp rename to miniboost/boost/mpl/aux_/template_arity_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/type_wrapper.hpp b/miniboost/boost/mpl/aux_/type_wrapper.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/type_wrapper.hpp rename to miniboost/boost/mpl/aux_/type_wrapper.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/value_wknd.hpp b/miniboost/boost/mpl/aux_/value_wknd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/value_wknd.hpp rename to miniboost/boost/mpl/aux_/value_wknd.hpp diff --git a/libktorrent/miniboost/boost/mpl/aux_/yes_no.hpp b/miniboost/boost/mpl/aux_/yes_no.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/aux_/yes_no.hpp rename to miniboost/boost/mpl/aux_/yes_no.hpp diff --git a/libktorrent/miniboost/boost/mpl/bind.hpp b/miniboost/boost/mpl/bind.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/bind.hpp rename to miniboost/boost/mpl/bind.hpp diff --git a/libktorrent/miniboost/boost/mpl/bind_fwd.hpp b/miniboost/boost/mpl/bind_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/bind_fwd.hpp rename to miniboost/boost/mpl/bind_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/bool.hpp b/miniboost/boost/mpl/bool.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/bool.hpp rename to miniboost/boost/mpl/bool.hpp diff --git a/libktorrent/miniboost/boost/mpl/bool_fwd.hpp b/miniboost/boost/mpl/bool_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/bool_fwd.hpp rename to miniboost/boost/mpl/bool_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/eval_if.hpp b/miniboost/boost/mpl/eval_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/eval_if.hpp rename to miniboost/boost/mpl/eval_if.hpp diff --git a/libktorrent/miniboost/boost/mpl/has_xxx.hpp b/miniboost/boost/mpl/has_xxx.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/has_xxx.hpp rename to miniboost/boost/mpl/has_xxx.hpp diff --git a/libktorrent/miniboost/boost/mpl/identity.hpp b/miniboost/boost/mpl/identity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/identity.hpp rename to miniboost/boost/mpl/identity.hpp diff --git a/libktorrent/miniboost/boost/mpl/if.hpp b/miniboost/boost/mpl/if.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/if.hpp rename to miniboost/boost/mpl/if.hpp diff --git a/libktorrent/miniboost/boost/mpl/int.hpp b/miniboost/boost/mpl/int.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/int.hpp rename to miniboost/boost/mpl/int.hpp diff --git a/libktorrent/miniboost/boost/mpl/int_fwd.hpp b/miniboost/boost/mpl/int_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/int_fwd.hpp rename to miniboost/boost/mpl/int_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/integral_c.hpp b/miniboost/boost/mpl/integral_c.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/integral_c.hpp rename to miniboost/boost/mpl/integral_c.hpp diff --git a/libktorrent/miniboost/boost/mpl/integral_c_fwd.hpp b/miniboost/boost/mpl/integral_c_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/integral_c_fwd.hpp rename to miniboost/boost/mpl/integral_c_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/integral_c_tag.hpp b/miniboost/boost/mpl/integral_c_tag.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/integral_c_tag.hpp rename to miniboost/boost/mpl/integral_c_tag.hpp diff --git a/libktorrent/miniboost/boost/mpl/is_placeholder.hpp b/miniboost/boost/mpl/is_placeholder.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/is_placeholder.hpp rename to miniboost/boost/mpl/is_placeholder.hpp diff --git a/libktorrent/miniboost/boost/mpl/lambda.hpp b/miniboost/boost/mpl/lambda.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/lambda.hpp rename to miniboost/boost/mpl/lambda.hpp diff --git a/libktorrent/miniboost/boost/mpl/lambda_fwd.hpp b/miniboost/boost/mpl/lambda_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/lambda_fwd.hpp rename to miniboost/boost/mpl/lambda_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/limits/arity.hpp b/miniboost/boost/mpl/limits/arity.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/limits/arity.hpp rename to miniboost/boost/mpl/limits/arity.hpp diff --git a/libktorrent/miniboost/boost/mpl/next.hpp b/miniboost/boost/mpl/next.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/next.hpp rename to miniboost/boost/mpl/next.hpp diff --git a/libktorrent/miniboost/boost/mpl/next_prior.hpp b/miniboost/boost/mpl/next_prior.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/next_prior.hpp rename to miniboost/boost/mpl/next_prior.hpp diff --git a/libktorrent/miniboost/boost/mpl/not.hpp b/miniboost/boost/mpl/not.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/not.hpp rename to miniboost/boost/mpl/not.hpp diff --git a/libktorrent/miniboost/boost/mpl/or.hpp b/miniboost/boost/mpl/or.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/or.hpp rename to miniboost/boost/mpl/or.hpp diff --git a/libktorrent/miniboost/boost/mpl/placeholders.hpp b/miniboost/boost/mpl/placeholders.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/placeholders.hpp rename to miniboost/boost/mpl/placeholders.hpp diff --git a/libktorrent/miniboost/boost/mpl/protect.hpp b/miniboost/boost/mpl/protect.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/protect.hpp rename to miniboost/boost/mpl/protect.hpp diff --git a/libktorrent/miniboost/boost/mpl/quote.hpp b/miniboost/boost/mpl/quote.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/quote.hpp rename to miniboost/boost/mpl/quote.hpp diff --git a/libktorrent/miniboost/boost/mpl/size_t.hpp b/miniboost/boost/mpl/size_t.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/size_t.hpp rename to miniboost/boost/mpl/size_t.hpp diff --git a/libktorrent/miniboost/boost/mpl/size_t_fwd.hpp b/miniboost/boost/mpl/size_t_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/size_t_fwd.hpp rename to miniboost/boost/mpl/size_t_fwd.hpp diff --git a/libktorrent/miniboost/boost/mpl/void.hpp b/miniboost/boost/mpl/void.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/void.hpp rename to miniboost/boost/mpl/void.hpp diff --git a/libktorrent/miniboost/boost/mpl/void_fwd.hpp b/miniboost/boost/mpl/void_fwd.hpp similarity index 100% rename from libktorrent/miniboost/boost/mpl/void_fwd.hpp rename to miniboost/boost/mpl/void_fwd.hpp diff --git a/libktorrent/miniboost/boost/next_prior.hpp b/miniboost/boost/next_prior.hpp similarity index 100% rename from libktorrent/miniboost/boost/next_prior.hpp rename to miniboost/boost/next_prior.hpp diff --git a/libktorrent/miniboost/boost/noncopyable.hpp b/miniboost/boost/noncopyable.hpp similarity index 100% rename from libktorrent/miniboost/boost/noncopyable.hpp rename to miniboost/boost/noncopyable.hpp diff --git a/libktorrent/miniboost/boost/predef.h b/miniboost/boost/predef.h similarity index 100% rename from libktorrent/miniboost/boost/predef.h rename to miniboost/boost/predef.h diff --git a/libktorrent/miniboost/boost/predef/architecture.h b/miniboost/boost/predef/architecture.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture.h rename to miniboost/boost/predef/architecture.h diff --git a/libktorrent/miniboost/boost/predef/architecture/alpha.h b/miniboost/boost/predef/architecture/alpha.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/alpha.h rename to miniboost/boost/predef/architecture/alpha.h diff --git a/libktorrent/miniboost/boost/predef/architecture/arm.h b/miniboost/boost/predef/architecture/arm.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/arm.h rename to miniboost/boost/predef/architecture/arm.h diff --git a/libktorrent/miniboost/boost/predef/architecture/blackfin.h b/miniboost/boost/predef/architecture/blackfin.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/blackfin.h rename to miniboost/boost/predef/architecture/blackfin.h diff --git a/libktorrent/miniboost/boost/predef/architecture/convex.h b/miniboost/boost/predef/architecture/convex.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/convex.h rename to miniboost/boost/predef/architecture/convex.h diff --git a/libktorrent/miniboost/boost/predef/architecture/ia64.h b/miniboost/boost/predef/architecture/ia64.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/ia64.h rename to miniboost/boost/predef/architecture/ia64.h diff --git a/libktorrent/miniboost/boost/predef/architecture/m68k.h b/miniboost/boost/predef/architecture/m68k.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/m68k.h rename to miniboost/boost/predef/architecture/m68k.h diff --git a/libktorrent/miniboost/boost/predef/architecture/mips.h b/miniboost/boost/predef/architecture/mips.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/mips.h rename to miniboost/boost/predef/architecture/mips.h diff --git a/libktorrent/miniboost/boost/predef/architecture/parisc.h b/miniboost/boost/predef/architecture/parisc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/parisc.h rename to miniboost/boost/predef/architecture/parisc.h diff --git a/libktorrent/miniboost/boost/predef/architecture/ppc.h b/miniboost/boost/predef/architecture/ppc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/ppc.h rename to miniboost/boost/predef/architecture/ppc.h diff --git a/libktorrent/miniboost/boost/predef/architecture/pyramid.h b/miniboost/boost/predef/architecture/pyramid.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/pyramid.h rename to miniboost/boost/predef/architecture/pyramid.h diff --git a/libktorrent/miniboost/boost/predef/architecture/rs6k.h b/miniboost/boost/predef/architecture/rs6k.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/rs6k.h rename to miniboost/boost/predef/architecture/rs6k.h diff --git a/libktorrent/miniboost/boost/predef/architecture/sparc.h b/miniboost/boost/predef/architecture/sparc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/sparc.h rename to miniboost/boost/predef/architecture/sparc.h diff --git a/libktorrent/miniboost/boost/predef/architecture/superh.h b/miniboost/boost/predef/architecture/superh.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/superh.h rename to miniboost/boost/predef/architecture/superh.h diff --git a/libktorrent/miniboost/boost/predef/architecture/sys370.h b/miniboost/boost/predef/architecture/sys370.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/sys370.h rename to miniboost/boost/predef/architecture/sys370.h diff --git a/libktorrent/miniboost/boost/predef/architecture/sys390.h b/miniboost/boost/predef/architecture/sys390.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/sys390.h rename to miniboost/boost/predef/architecture/sys390.h diff --git a/libktorrent/miniboost/boost/predef/architecture/x86.h b/miniboost/boost/predef/architecture/x86.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/x86.h rename to miniboost/boost/predef/architecture/x86.h diff --git a/libktorrent/miniboost/boost/predef/architecture/x86/32.h b/miniboost/boost/predef/architecture/x86/32.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/x86/32.h rename to miniboost/boost/predef/architecture/x86/32.h diff --git a/libktorrent/miniboost/boost/predef/architecture/x86/64.h b/miniboost/boost/predef/architecture/x86/64.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/x86/64.h rename to miniboost/boost/predef/architecture/x86/64.h diff --git a/libktorrent/miniboost/boost/predef/architecture/z.h b/miniboost/boost/predef/architecture/z.h similarity index 100% rename from libktorrent/miniboost/boost/predef/architecture/z.h rename to miniboost/boost/predef/architecture/z.h diff --git a/libktorrent/miniboost/boost/predef/compiler.h b/miniboost/boost/predef/compiler.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler.h rename to miniboost/boost/predef/compiler.h diff --git a/libktorrent/miniboost/boost/predef/compiler/borland.h b/miniboost/boost/predef/compiler/borland.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/borland.h rename to miniboost/boost/predef/compiler/borland.h diff --git a/libktorrent/miniboost/boost/predef/compiler/clang.h b/miniboost/boost/predef/compiler/clang.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/clang.h rename to miniboost/boost/predef/compiler/clang.h diff --git a/libktorrent/miniboost/boost/predef/compiler/comeau.h b/miniboost/boost/predef/compiler/comeau.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/comeau.h rename to miniboost/boost/predef/compiler/comeau.h diff --git a/libktorrent/miniboost/boost/predef/compiler/compaq.h b/miniboost/boost/predef/compiler/compaq.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/compaq.h rename to miniboost/boost/predef/compiler/compaq.h diff --git a/libktorrent/miniboost/boost/predef/compiler/diab.h b/miniboost/boost/predef/compiler/diab.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/diab.h rename to miniboost/boost/predef/compiler/diab.h diff --git a/libktorrent/miniboost/boost/predef/compiler/digitalmars.h b/miniboost/boost/predef/compiler/digitalmars.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/digitalmars.h rename to miniboost/boost/predef/compiler/digitalmars.h diff --git a/libktorrent/miniboost/boost/predef/compiler/dignus.h b/miniboost/boost/predef/compiler/dignus.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/dignus.h rename to miniboost/boost/predef/compiler/dignus.h diff --git a/libktorrent/miniboost/boost/predef/compiler/edg.h b/miniboost/boost/predef/compiler/edg.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/edg.h rename to miniboost/boost/predef/compiler/edg.h diff --git a/libktorrent/miniboost/boost/predef/compiler/ekopath.h b/miniboost/boost/predef/compiler/ekopath.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/ekopath.h rename to miniboost/boost/predef/compiler/ekopath.h diff --git a/libktorrent/miniboost/boost/predef/compiler/gcc.h b/miniboost/boost/predef/compiler/gcc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/gcc.h rename to miniboost/boost/predef/compiler/gcc.h diff --git a/libktorrent/miniboost/boost/predef/compiler/gcc_xml.h b/miniboost/boost/predef/compiler/gcc_xml.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/gcc_xml.h rename to miniboost/boost/predef/compiler/gcc_xml.h diff --git a/libktorrent/miniboost/boost/predef/compiler/greenhills.h b/miniboost/boost/predef/compiler/greenhills.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/greenhills.h rename to miniboost/boost/predef/compiler/greenhills.h diff --git a/libktorrent/miniboost/boost/predef/compiler/hp_acc.h b/miniboost/boost/predef/compiler/hp_acc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/hp_acc.h rename to miniboost/boost/predef/compiler/hp_acc.h diff --git a/libktorrent/miniboost/boost/predef/compiler/iar.h b/miniboost/boost/predef/compiler/iar.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/iar.h rename to miniboost/boost/predef/compiler/iar.h diff --git a/libktorrent/miniboost/boost/predef/compiler/ibm.h b/miniboost/boost/predef/compiler/ibm.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/ibm.h rename to miniboost/boost/predef/compiler/ibm.h diff --git a/libktorrent/miniboost/boost/predef/compiler/intel.h b/miniboost/boost/predef/compiler/intel.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/intel.h rename to miniboost/boost/predef/compiler/intel.h diff --git a/libktorrent/miniboost/boost/predef/compiler/kai.h b/miniboost/boost/predef/compiler/kai.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/kai.h rename to miniboost/boost/predef/compiler/kai.h diff --git a/libktorrent/miniboost/boost/predef/compiler/llvm.h b/miniboost/boost/predef/compiler/llvm.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/llvm.h rename to miniboost/boost/predef/compiler/llvm.h diff --git a/libktorrent/miniboost/boost/predef/compiler/metaware.h b/miniboost/boost/predef/compiler/metaware.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/metaware.h rename to miniboost/boost/predef/compiler/metaware.h diff --git a/libktorrent/miniboost/boost/predef/compiler/metrowerks.h b/miniboost/boost/predef/compiler/metrowerks.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/metrowerks.h rename to miniboost/boost/predef/compiler/metrowerks.h diff --git a/libktorrent/miniboost/boost/predef/compiler/microtec.h b/miniboost/boost/predef/compiler/microtec.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/microtec.h rename to miniboost/boost/predef/compiler/microtec.h diff --git a/libktorrent/miniboost/boost/predef/compiler/mpw.h b/miniboost/boost/predef/compiler/mpw.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/mpw.h rename to miniboost/boost/predef/compiler/mpw.h diff --git a/libktorrent/miniboost/boost/predef/compiler/palm.h b/miniboost/boost/predef/compiler/palm.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/palm.h rename to miniboost/boost/predef/compiler/palm.h diff --git a/libktorrent/miniboost/boost/predef/compiler/pgi.h b/miniboost/boost/predef/compiler/pgi.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/pgi.h rename to miniboost/boost/predef/compiler/pgi.h diff --git a/libktorrent/miniboost/boost/predef/compiler/sgi_mipspro.h b/miniboost/boost/predef/compiler/sgi_mipspro.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/sgi_mipspro.h rename to miniboost/boost/predef/compiler/sgi_mipspro.h diff --git a/libktorrent/miniboost/boost/predef/compiler/sunpro.h b/miniboost/boost/predef/compiler/sunpro.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/sunpro.h rename to miniboost/boost/predef/compiler/sunpro.h diff --git a/libktorrent/miniboost/boost/predef/compiler/tendra.h b/miniboost/boost/predef/compiler/tendra.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/tendra.h rename to miniboost/boost/predef/compiler/tendra.h diff --git a/libktorrent/miniboost/boost/predef/compiler/visualc.h b/miniboost/boost/predef/compiler/visualc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/visualc.h rename to miniboost/boost/predef/compiler/visualc.h diff --git a/libktorrent/miniboost/boost/predef/compiler/watcom.h b/miniboost/boost/predef/compiler/watcom.h similarity index 100% rename from libktorrent/miniboost/boost/predef/compiler/watcom.h rename to miniboost/boost/predef/compiler/watcom.h diff --git a/libktorrent/miniboost/boost/predef/detail/_cassert.h b/miniboost/boost/predef/detail/_cassert.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/_cassert.h rename to miniboost/boost/predef/detail/_cassert.h diff --git a/libktorrent/miniboost/boost/predef/detail/_exception.h b/miniboost/boost/predef/detail/_exception.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/_exception.h rename to miniboost/boost/predef/detail/_exception.h diff --git a/libktorrent/miniboost/boost/predef/detail/comp_detected.h b/miniboost/boost/predef/detail/comp_detected.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/comp_detected.h rename to miniboost/boost/predef/detail/comp_detected.h diff --git a/libktorrent/miniboost/boost/predef/detail/os_detected.h b/miniboost/boost/predef/detail/os_detected.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/os_detected.h rename to miniboost/boost/predef/detail/os_detected.h diff --git a/libktorrent/miniboost/boost/predef/detail/platform_detected.h b/miniboost/boost/predef/detail/platform_detected.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/platform_detected.h rename to miniboost/boost/predef/detail/platform_detected.h diff --git a/libktorrent/miniboost/boost/predef/detail/test.h b/miniboost/boost/predef/detail/test.h similarity index 100% rename from libktorrent/miniboost/boost/predef/detail/test.h rename to miniboost/boost/predef/detail/test.h diff --git a/libktorrent/miniboost/boost/predef/language.h b/miniboost/boost/predef/language.h similarity index 100% rename from libktorrent/miniboost/boost/predef/language.h rename to miniboost/boost/predef/language.h diff --git a/libktorrent/miniboost/boost/predef/language/objc.h b/miniboost/boost/predef/language/objc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/language/objc.h rename to miniboost/boost/predef/language/objc.h diff --git a/libktorrent/miniboost/boost/predef/language/stdc.h b/miniboost/boost/predef/language/stdc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/language/stdc.h rename to miniboost/boost/predef/language/stdc.h diff --git a/libktorrent/miniboost/boost/predef/language/stdcpp.h b/miniboost/boost/predef/language/stdcpp.h similarity index 100% rename from libktorrent/miniboost/boost/predef/language/stdcpp.h rename to miniboost/boost/predef/language/stdcpp.h diff --git a/libktorrent/miniboost/boost/predef/library.h b/miniboost/boost/predef/library.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library.h rename to miniboost/boost/predef/library.h diff --git a/libktorrent/miniboost/boost/predef/library/c.h b/miniboost/boost/predef/library/c.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c.h rename to miniboost/boost/predef/library/c.h diff --git a/libktorrent/miniboost/boost/predef/library/c/_prefix.h b/miniboost/boost/predef/library/c/_prefix.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c/_prefix.h rename to miniboost/boost/predef/library/c/_prefix.h diff --git a/libktorrent/miniboost/boost/predef/library/c/gnu.h b/miniboost/boost/predef/library/c/gnu.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c/gnu.h rename to miniboost/boost/predef/library/c/gnu.h diff --git a/libktorrent/miniboost/boost/predef/library/c/uc.h b/miniboost/boost/predef/library/c/uc.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c/uc.h rename to miniboost/boost/predef/library/c/uc.h diff --git a/libktorrent/miniboost/boost/predef/library/c/vms.h b/miniboost/boost/predef/library/c/vms.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c/vms.h rename to miniboost/boost/predef/library/c/vms.h diff --git a/libktorrent/miniboost/boost/predef/library/c/zos.h b/miniboost/boost/predef/library/c/zos.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/c/zos.h rename to miniboost/boost/predef/library/c/zos.h diff --git a/libktorrent/miniboost/boost/predef/library/std.h b/miniboost/boost/predef/library/std.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std.h rename to miniboost/boost/predef/library/std.h diff --git a/libktorrent/miniboost/boost/predef/library/std/_prefix.h b/miniboost/boost/predef/library/std/_prefix.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/_prefix.h rename to miniboost/boost/predef/library/std/_prefix.h diff --git a/libktorrent/miniboost/boost/predef/library/std/cxx.h b/miniboost/boost/predef/library/std/cxx.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/cxx.h rename to miniboost/boost/predef/library/std/cxx.h diff --git a/libktorrent/miniboost/boost/predef/library/std/dinkumware.h b/miniboost/boost/predef/library/std/dinkumware.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/dinkumware.h rename to miniboost/boost/predef/library/std/dinkumware.h diff --git a/libktorrent/miniboost/boost/predef/library/std/libcomo.h b/miniboost/boost/predef/library/std/libcomo.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/libcomo.h rename to miniboost/boost/predef/library/std/libcomo.h diff --git a/libktorrent/miniboost/boost/predef/library/std/modena.h b/miniboost/boost/predef/library/std/modena.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/modena.h rename to miniboost/boost/predef/library/std/modena.h diff --git a/libktorrent/miniboost/boost/predef/library/std/msl.h b/miniboost/boost/predef/library/std/msl.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/msl.h rename to miniboost/boost/predef/library/std/msl.h diff --git a/libktorrent/miniboost/boost/predef/library/std/roguewave.h b/miniboost/boost/predef/library/std/roguewave.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/roguewave.h rename to miniboost/boost/predef/library/std/roguewave.h diff --git a/libktorrent/miniboost/boost/predef/library/std/sgi.h b/miniboost/boost/predef/library/std/sgi.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/sgi.h rename to miniboost/boost/predef/library/std/sgi.h diff --git a/libktorrent/miniboost/boost/predef/library/std/stdcpp3.h b/miniboost/boost/predef/library/std/stdcpp3.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/stdcpp3.h rename to miniboost/boost/predef/library/std/stdcpp3.h diff --git a/libktorrent/miniboost/boost/predef/library/std/stlport.h b/miniboost/boost/predef/library/std/stlport.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/stlport.h rename to miniboost/boost/predef/library/std/stlport.h diff --git a/libktorrent/miniboost/boost/predef/library/std/vacpp.h b/miniboost/boost/predef/library/std/vacpp.h similarity index 100% rename from libktorrent/miniboost/boost/predef/library/std/vacpp.h rename to miniboost/boost/predef/library/std/vacpp.h diff --git a/libktorrent/miniboost/boost/predef/make.h b/miniboost/boost/predef/make.h similarity index 100% rename from libktorrent/miniboost/boost/predef/make.h rename to miniboost/boost/predef/make.h diff --git a/libktorrent/miniboost/boost/predef/os.h b/miniboost/boost/predef/os.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os.h rename to miniboost/boost/predef/os.h diff --git a/libktorrent/miniboost/boost/predef/os/aix.h b/miniboost/boost/predef/os/aix.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/aix.h rename to miniboost/boost/predef/os/aix.h diff --git a/libktorrent/miniboost/boost/predef/os/amigaos.h b/miniboost/boost/predef/os/amigaos.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/amigaos.h rename to miniboost/boost/predef/os/amigaos.h diff --git a/libktorrent/miniboost/boost/predef/os/android.h b/miniboost/boost/predef/os/android.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/android.h rename to miniboost/boost/predef/os/android.h diff --git a/libktorrent/miniboost/boost/predef/os/beos.h b/miniboost/boost/predef/os/beos.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/beos.h rename to miniboost/boost/predef/os/beos.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd.h b/miniboost/boost/predef/os/bsd.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd.h rename to miniboost/boost/predef/os/bsd.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd/bsdi.h b/miniboost/boost/predef/os/bsd/bsdi.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd/bsdi.h rename to miniboost/boost/predef/os/bsd/bsdi.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd/dragonfly.h b/miniboost/boost/predef/os/bsd/dragonfly.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd/dragonfly.h rename to miniboost/boost/predef/os/bsd/dragonfly.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd/free.h b/miniboost/boost/predef/os/bsd/free.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd/free.h rename to miniboost/boost/predef/os/bsd/free.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd/net.h b/miniboost/boost/predef/os/bsd/net.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd/net.h rename to miniboost/boost/predef/os/bsd/net.h diff --git a/libktorrent/miniboost/boost/predef/os/bsd/open.h b/miniboost/boost/predef/os/bsd/open.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/bsd/open.h rename to miniboost/boost/predef/os/bsd/open.h diff --git a/libktorrent/miniboost/boost/predef/os/cygwin.h b/miniboost/boost/predef/os/cygwin.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/cygwin.h rename to miniboost/boost/predef/os/cygwin.h diff --git a/libktorrent/miniboost/boost/predef/os/hpux.h b/miniboost/boost/predef/os/hpux.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/hpux.h rename to miniboost/boost/predef/os/hpux.h diff --git a/libktorrent/miniboost/boost/predef/os/ios.h b/miniboost/boost/predef/os/ios.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/ios.h rename to miniboost/boost/predef/os/ios.h diff --git a/libktorrent/miniboost/boost/predef/os/irix.h b/miniboost/boost/predef/os/irix.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/irix.h rename to miniboost/boost/predef/os/irix.h diff --git a/libktorrent/miniboost/boost/predef/os/linux.h b/miniboost/boost/predef/os/linux.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/linux.h rename to miniboost/boost/predef/os/linux.h diff --git a/libktorrent/miniboost/boost/predef/os/macos.h b/miniboost/boost/predef/os/macos.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/macos.h rename to miniboost/boost/predef/os/macos.h diff --git a/libktorrent/miniboost/boost/predef/os/os400.h b/miniboost/boost/predef/os/os400.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/os400.h rename to miniboost/boost/predef/os/os400.h diff --git a/libktorrent/miniboost/boost/predef/os/qnxnto.h b/miniboost/boost/predef/os/qnxnto.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/qnxnto.h rename to miniboost/boost/predef/os/qnxnto.h diff --git a/libktorrent/miniboost/boost/predef/os/solaris.h b/miniboost/boost/predef/os/solaris.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/solaris.h rename to miniboost/boost/predef/os/solaris.h diff --git a/libktorrent/miniboost/boost/predef/os/unix.h b/miniboost/boost/predef/os/unix.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/unix.h rename to miniboost/boost/predef/os/unix.h diff --git a/libktorrent/miniboost/boost/predef/os/vms.h b/miniboost/boost/predef/os/vms.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/vms.h rename to miniboost/boost/predef/os/vms.h diff --git a/libktorrent/miniboost/boost/predef/os/windows.h b/miniboost/boost/predef/os/windows.h similarity index 100% rename from libktorrent/miniboost/boost/predef/os/windows.h rename to miniboost/boost/predef/os/windows.h diff --git a/libktorrent/miniboost/boost/predef/other.h b/miniboost/boost/predef/other.h similarity index 100% rename from libktorrent/miniboost/boost/predef/other.h rename to miniboost/boost/predef/other.h diff --git a/libktorrent/miniboost/boost/predef/other/endian.h b/miniboost/boost/predef/other/endian.h similarity index 100% rename from libktorrent/miniboost/boost/predef/other/endian.h rename to miniboost/boost/predef/other/endian.h diff --git a/libktorrent/miniboost/boost/predef/platform.h b/miniboost/boost/predef/platform.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform.h rename to miniboost/boost/predef/platform.h diff --git a/libktorrent/miniboost/boost/predef/platform/mingw.h b/miniboost/boost/predef/platform/mingw.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform/mingw.h rename to miniboost/boost/predef/platform/mingw.h diff --git a/libktorrent/miniboost/boost/predef/platform/windows_desktop.h b/miniboost/boost/predef/platform/windows_desktop.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform/windows_desktop.h rename to miniboost/boost/predef/platform/windows_desktop.h diff --git a/libktorrent/miniboost/boost/predef/platform/windows_phone.h b/miniboost/boost/predef/platform/windows_phone.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform/windows_phone.h rename to miniboost/boost/predef/platform/windows_phone.h diff --git a/libktorrent/miniboost/boost/predef/platform/windows_runtime.h b/miniboost/boost/predef/platform/windows_runtime.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform/windows_runtime.h rename to miniboost/boost/predef/platform/windows_runtime.h diff --git a/libktorrent/miniboost/boost/predef/platform/windows_store.h b/miniboost/boost/predef/platform/windows_store.h similarity index 100% rename from libktorrent/miniboost/boost/predef/platform/windows_store.h rename to miniboost/boost/predef/platform/windows_store.h diff --git a/libktorrent/miniboost/boost/predef/version_number.h b/miniboost/boost/predef/version_number.h similarity index 100% rename from libktorrent/miniboost/boost/predef/version_number.h rename to miniboost/boost/predef/version_number.h diff --git a/libktorrent/miniboost/boost/preprocessor/arithmetic/add.hpp b/miniboost/boost/preprocessor/arithmetic/add.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/arithmetic/add.hpp rename to miniboost/boost/preprocessor/arithmetic/add.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/arithmetic/dec.hpp b/miniboost/boost/preprocessor/arithmetic/dec.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/arithmetic/dec.hpp rename to miniboost/boost/preprocessor/arithmetic/dec.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/arithmetic/inc.hpp b/miniboost/boost/preprocessor/arithmetic/inc.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/arithmetic/inc.hpp rename to miniboost/boost/preprocessor/arithmetic/inc.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/arithmetic/sub.hpp b/miniboost/boost/preprocessor/arithmetic/sub.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/arithmetic/sub.hpp rename to miniboost/boost/preprocessor/arithmetic/sub.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/array/data.hpp b/miniboost/boost/preprocessor/array/data.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/array/data.hpp rename to miniboost/boost/preprocessor/array/data.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/array/elem.hpp b/miniboost/boost/preprocessor/array/elem.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/array/elem.hpp rename to miniboost/boost/preprocessor/array/elem.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/array/size.hpp b/miniboost/boost/preprocessor/array/size.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/array/size.hpp rename to miniboost/boost/preprocessor/array/size.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/cat.hpp b/miniboost/boost/preprocessor/cat.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/cat.hpp rename to miniboost/boost/preprocessor/cat.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/comma_if.hpp b/miniboost/boost/preprocessor/comma_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/comma_if.hpp rename to miniboost/boost/preprocessor/comma_if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/config/config.hpp b/miniboost/boost/preprocessor/config/config.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/config/config.hpp rename to miniboost/boost/preprocessor/config/config.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/detail/dmc/while.hpp b/miniboost/boost/preprocessor/control/detail/dmc/while.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/detail/dmc/while.hpp rename to miniboost/boost/preprocessor/control/detail/dmc/while.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/detail/edg/while.hpp b/miniboost/boost/preprocessor/control/detail/edg/while.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/detail/edg/while.hpp rename to miniboost/boost/preprocessor/control/detail/edg/while.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/detail/msvc/while.hpp b/miniboost/boost/preprocessor/control/detail/msvc/while.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/detail/msvc/while.hpp rename to miniboost/boost/preprocessor/control/detail/msvc/while.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/detail/while.hpp b/miniboost/boost/preprocessor/control/detail/while.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/detail/while.hpp rename to miniboost/boost/preprocessor/control/detail/while.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/expr_if.hpp b/miniboost/boost/preprocessor/control/expr_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/expr_if.hpp rename to miniboost/boost/preprocessor/control/expr_if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/expr_iif.hpp b/miniboost/boost/preprocessor/control/expr_iif.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/expr_iif.hpp rename to miniboost/boost/preprocessor/control/expr_iif.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/if.hpp b/miniboost/boost/preprocessor/control/if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/if.hpp rename to miniboost/boost/preprocessor/control/if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/iif.hpp b/miniboost/boost/preprocessor/control/iif.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/iif.hpp rename to miniboost/boost/preprocessor/control/iif.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/control/while.hpp b/miniboost/boost/preprocessor/control/while.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/control/while.hpp rename to miniboost/boost/preprocessor/control/while.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/debug/error.hpp b/miniboost/boost/preprocessor/debug/error.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/debug/error.hpp rename to miniboost/boost/preprocessor/debug/error.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/dec.hpp b/miniboost/boost/preprocessor/dec.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/dec.hpp rename to miniboost/boost/preprocessor/dec.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/detail/auto_rec.hpp b/miniboost/boost/preprocessor/detail/auto_rec.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/detail/auto_rec.hpp rename to miniboost/boost/preprocessor/detail/auto_rec.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/detail/check.hpp b/miniboost/boost/preprocessor/detail/check.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/detail/check.hpp rename to miniboost/boost/preprocessor/detail/check.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/detail/dmc/auto_rec.hpp b/miniboost/boost/preprocessor/detail/dmc/auto_rec.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/detail/dmc/auto_rec.hpp rename to miniboost/boost/preprocessor/detail/dmc/auto_rec.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/detail/is_binary.hpp b/miniboost/boost/preprocessor/detail/is_binary.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/detail/is_binary.hpp rename to miniboost/boost/preprocessor/detail/is_binary.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/empty.hpp b/miniboost/boost/preprocessor/empty.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/empty.hpp rename to miniboost/boost/preprocessor/empty.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/enum_params.hpp b/miniboost/boost/preprocessor/enum_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/enum_params.hpp rename to miniboost/boost/preprocessor/enum_params.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/enum_shifted_params.hpp b/miniboost/boost/preprocessor/enum_shifted_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/enum_shifted_params.hpp rename to miniboost/boost/preprocessor/enum_shifted_params.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/expr_if.hpp b/miniboost/boost/preprocessor/expr_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/expr_if.hpp rename to miniboost/boost/preprocessor/expr_if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/facilities/empty.hpp b/miniboost/boost/preprocessor/facilities/empty.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/facilities/empty.hpp rename to miniboost/boost/preprocessor/facilities/empty.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/facilities/identity.hpp b/miniboost/boost/preprocessor/facilities/identity.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/facilities/identity.hpp rename to miniboost/boost/preprocessor/facilities/identity.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/facilities/overload.hpp b/miniboost/boost/preprocessor/facilities/overload.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/facilities/overload.hpp rename to miniboost/boost/preprocessor/facilities/overload.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/identity.hpp b/miniboost/boost/preprocessor/identity.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/identity.hpp rename to miniboost/boost/preprocessor/identity.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/inc.hpp b/miniboost/boost/preprocessor/inc.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/inc.hpp rename to miniboost/boost/preprocessor/inc.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iterate.hpp b/miniboost/boost/preprocessor/iterate.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iterate.hpp rename to miniboost/boost/preprocessor/iterate.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower1.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/lower1.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower1.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/lower1.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower2.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/lower2.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower2.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/lower2.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower3.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/lower3.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower3.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/lower3.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower4.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/lower4.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower4.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/lower4.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower5.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/lower5.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/lower5.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/lower5.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper1.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/upper1.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper1.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/upper1.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper2.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/upper2.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper2.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/upper2.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper3.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/upper3.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper3.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/upper3.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper4.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/upper4.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper4.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/upper4.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper5.hpp b/miniboost/boost/preprocessor/iteration/detail/bounds/upper5.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/bounds/upper5.hpp rename to miniboost/boost/preprocessor/iteration/detail/bounds/upper5.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/finish.hpp b/miniboost/boost/preprocessor/iteration/detail/finish.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/finish.hpp rename to miniboost/boost/preprocessor/iteration/detail/finish.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward1.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/forward1.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward1.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/forward1.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward2.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/forward2.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward2.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/forward2.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward3.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/forward3.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward3.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/forward3.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward4.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/forward4.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward4.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/forward4.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward5.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/forward5.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/forward5.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/forward5.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse1.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/reverse1.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse1.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/reverse1.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse2.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/reverse2.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse2.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/reverse2.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse3.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/reverse3.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse3.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/reverse3.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse4.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/reverse4.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse4.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/reverse4.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse5.hpp b/miniboost/boost/preprocessor/iteration/detail/iter/reverse5.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/iter/reverse5.hpp rename to miniboost/boost/preprocessor/iteration/detail/iter/reverse5.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/local.hpp b/miniboost/boost/preprocessor/iteration/detail/local.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/local.hpp rename to miniboost/boost/preprocessor/iteration/detail/local.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/rlocal.hpp b/miniboost/boost/preprocessor/iteration/detail/rlocal.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/rlocal.hpp rename to miniboost/boost/preprocessor/iteration/detail/rlocal.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/self.hpp b/miniboost/boost/preprocessor/iteration/detail/self.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/self.hpp rename to miniboost/boost/preprocessor/iteration/detail/self.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/detail/start.hpp b/miniboost/boost/preprocessor/iteration/detail/start.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/detail/start.hpp rename to miniboost/boost/preprocessor/iteration/detail/start.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/iterate.hpp b/miniboost/boost/preprocessor/iteration/iterate.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/iterate.hpp rename to miniboost/boost/preprocessor/iteration/iterate.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/local.hpp b/miniboost/boost/preprocessor/iteration/local.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/local.hpp rename to miniboost/boost/preprocessor/iteration/local.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/iteration/self.hpp b/miniboost/boost/preprocessor/iteration/self.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/iteration/self.hpp rename to miniboost/boost/preprocessor/iteration/self.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/adt.hpp b/miniboost/boost/preprocessor/list/adt.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/adt.hpp rename to miniboost/boost/preprocessor/list/adt.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/append.hpp b/miniboost/boost/preprocessor/list/append.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/append.hpp rename to miniboost/boost/preprocessor/list/append.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/detail/dmc/fold_left.hpp b/miniboost/boost/preprocessor/list/detail/dmc/fold_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/detail/dmc/fold_left.hpp rename to miniboost/boost/preprocessor/list/detail/dmc/fold_left.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/detail/edg/fold_left.hpp b/miniboost/boost/preprocessor/list/detail/edg/fold_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/detail/edg/fold_left.hpp rename to miniboost/boost/preprocessor/list/detail/edg/fold_left.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/detail/edg/fold_right.hpp b/miniboost/boost/preprocessor/list/detail/edg/fold_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/detail/edg/fold_right.hpp rename to miniboost/boost/preprocessor/list/detail/edg/fold_right.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/detail/fold_left.hpp b/miniboost/boost/preprocessor/list/detail/fold_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/detail/fold_left.hpp rename to miniboost/boost/preprocessor/list/detail/fold_left.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/detail/fold_right.hpp b/miniboost/boost/preprocessor/list/detail/fold_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/detail/fold_right.hpp rename to miniboost/boost/preprocessor/list/detail/fold_right.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/fold_left.hpp b/miniboost/boost/preprocessor/list/fold_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/fold_left.hpp rename to miniboost/boost/preprocessor/list/fold_left.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/fold_right.hpp b/miniboost/boost/preprocessor/list/fold_right.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/fold_right.hpp rename to miniboost/boost/preprocessor/list/fold_right.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/for_each_i.hpp b/miniboost/boost/preprocessor/list/for_each_i.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/for_each_i.hpp rename to miniboost/boost/preprocessor/list/for_each_i.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/reverse.hpp b/miniboost/boost/preprocessor/list/reverse.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/reverse.hpp rename to miniboost/boost/preprocessor/list/reverse.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/list/transform.hpp b/miniboost/boost/preprocessor/list/transform.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/list/transform.hpp rename to miniboost/boost/preprocessor/list/transform.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/logical/and.hpp b/miniboost/boost/preprocessor/logical/and.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/logical/and.hpp rename to miniboost/boost/preprocessor/logical/and.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/logical/bitand.hpp b/miniboost/boost/preprocessor/logical/bitand.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/logical/bitand.hpp rename to miniboost/boost/preprocessor/logical/bitand.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/logical/bool.hpp b/miniboost/boost/preprocessor/logical/bool.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/logical/bool.hpp rename to miniboost/boost/preprocessor/logical/bool.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/logical/compl.hpp b/miniboost/boost/preprocessor/logical/compl.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/logical/compl.hpp rename to miniboost/boost/preprocessor/logical/compl.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/logical/not.hpp b/miniboost/boost/preprocessor/logical/not.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/logical/not.hpp rename to miniboost/boost/preprocessor/logical/not.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/punctuation/comma.hpp b/miniboost/boost/preprocessor/punctuation/comma.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/punctuation/comma.hpp rename to miniboost/boost/preprocessor/punctuation/comma.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/punctuation/comma_if.hpp b/miniboost/boost/preprocessor/punctuation/comma_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/punctuation/comma_if.hpp rename to miniboost/boost/preprocessor/punctuation/comma_if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/punctuation/paren.hpp b/miniboost/boost/preprocessor/punctuation/paren.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/punctuation/paren.hpp rename to miniboost/boost/preprocessor/punctuation/paren.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/punctuation/paren_if.hpp b/miniboost/boost/preprocessor/punctuation/paren_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/punctuation/paren_if.hpp rename to miniboost/boost/preprocessor/punctuation/paren_if.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repeat.hpp b/miniboost/boost/preprocessor/repeat.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repeat.hpp rename to miniboost/boost/preprocessor/repeat.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/detail/dmc/for.hpp b/miniboost/boost/preprocessor/repetition/detail/dmc/for.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/detail/dmc/for.hpp rename to miniboost/boost/preprocessor/repetition/detail/dmc/for.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/detail/edg/for.hpp b/miniboost/boost/preprocessor/repetition/detail/edg/for.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/detail/edg/for.hpp rename to miniboost/boost/preprocessor/repetition/detail/edg/for.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/detail/for.hpp b/miniboost/boost/preprocessor/repetition/detail/for.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/detail/for.hpp rename to miniboost/boost/preprocessor/repetition/detail/for.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/detail/msvc/for.hpp b/miniboost/boost/preprocessor/repetition/detail/msvc/for.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/detail/msvc/for.hpp rename to miniboost/boost/preprocessor/repetition/detail/msvc/for.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum.hpp b/miniboost/boost/preprocessor/repetition/enum.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum.hpp rename to miniboost/boost/preprocessor/repetition/enum.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum_params.hpp b/miniboost/boost/preprocessor/repetition/enum_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum_params.hpp rename to miniboost/boost/preprocessor/repetition/enum_params.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum_shifted.hpp b/miniboost/boost/preprocessor/repetition/enum_shifted.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum_shifted.hpp rename to miniboost/boost/preprocessor/repetition/enum_shifted.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum_shifted_params.hpp b/miniboost/boost/preprocessor/repetition/enum_shifted_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum_shifted_params.hpp rename to miniboost/boost/preprocessor/repetition/enum_shifted_params.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum_trailing.hpp b/miniboost/boost/preprocessor/repetition/enum_trailing.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum_trailing.hpp rename to miniboost/boost/preprocessor/repetition/enum_trailing.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/enum_trailing_params.hpp b/miniboost/boost/preprocessor/repetition/enum_trailing_params.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/enum_trailing_params.hpp rename to miniboost/boost/preprocessor/repetition/enum_trailing_params.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/for.hpp b/miniboost/boost/preprocessor/repetition/for.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/for.hpp rename to miniboost/boost/preprocessor/repetition/for.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/repetition/repeat.hpp b/miniboost/boost/preprocessor/repetition/repeat.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/repetition/repeat.hpp rename to miniboost/boost/preprocessor/repetition/repeat.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/detail/split.hpp b/miniboost/boost/preprocessor/seq/detail/split.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/detail/split.hpp rename to miniboost/boost/preprocessor/seq/detail/split.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/elem.hpp b/miniboost/boost/preprocessor/seq/elem.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/elem.hpp rename to miniboost/boost/preprocessor/seq/elem.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/enum.hpp b/miniboost/boost/preprocessor/seq/enum.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/enum.hpp rename to miniboost/boost/preprocessor/seq/enum.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/first_n.hpp b/miniboost/boost/preprocessor/seq/first_n.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/first_n.hpp rename to miniboost/boost/preprocessor/seq/first_n.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/fold_left.hpp b/miniboost/boost/preprocessor/seq/fold_left.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/fold_left.hpp rename to miniboost/boost/preprocessor/seq/fold_left.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/for_each_i.hpp b/miniboost/boost/preprocessor/seq/for_each_i.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/for_each_i.hpp rename to miniboost/boost/preprocessor/seq/for_each_i.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/rest_n.hpp b/miniboost/boost/preprocessor/seq/rest_n.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/rest_n.hpp rename to miniboost/boost/preprocessor/seq/rest_n.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/seq.hpp b/miniboost/boost/preprocessor/seq/seq.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/seq.hpp rename to miniboost/boost/preprocessor/seq/seq.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/size.hpp b/miniboost/boost/preprocessor/seq/size.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/size.hpp rename to miniboost/boost/preprocessor/seq/size.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/seq/subseq.hpp b/miniboost/boost/preprocessor/seq/subseq.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/seq/subseq.hpp rename to miniboost/boost/preprocessor/seq/subseq.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/counter.hpp b/miniboost/boost/preprocessor/slot/detail/counter.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/counter.hpp rename to miniboost/boost/preprocessor/slot/detail/counter.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/def.hpp b/miniboost/boost/preprocessor/slot/detail/def.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/def.hpp rename to miniboost/boost/preprocessor/slot/detail/def.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/shared.hpp b/miniboost/boost/preprocessor/slot/detail/shared.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/shared.hpp rename to miniboost/boost/preprocessor/slot/detail/shared.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/slot1.hpp b/miniboost/boost/preprocessor/slot/detail/slot1.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/slot1.hpp rename to miniboost/boost/preprocessor/slot/detail/slot1.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/slot2.hpp b/miniboost/boost/preprocessor/slot/detail/slot2.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/slot2.hpp rename to miniboost/boost/preprocessor/slot/detail/slot2.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/slot3.hpp b/miniboost/boost/preprocessor/slot/detail/slot3.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/slot3.hpp rename to miniboost/boost/preprocessor/slot/detail/slot3.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/slot4.hpp b/miniboost/boost/preprocessor/slot/detail/slot4.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/slot4.hpp rename to miniboost/boost/preprocessor/slot/detail/slot4.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/detail/slot5.hpp b/miniboost/boost/preprocessor/slot/detail/slot5.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/detail/slot5.hpp rename to miniboost/boost/preprocessor/slot/detail/slot5.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/slot/slot.hpp b/miniboost/boost/preprocessor/slot/slot.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/slot/slot.hpp rename to miniboost/boost/preprocessor/slot/slot.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/stringize.hpp b/miniboost/boost/preprocessor/stringize.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/stringize.hpp rename to miniboost/boost/preprocessor/stringize.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/tuple/eat.hpp b/miniboost/boost/preprocessor/tuple/eat.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/tuple/eat.hpp rename to miniboost/boost/preprocessor/tuple/eat.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/tuple/elem.hpp b/miniboost/boost/preprocessor/tuple/elem.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/tuple/elem.hpp rename to miniboost/boost/preprocessor/tuple/elem.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/tuple/rem.hpp b/miniboost/boost/preprocessor/tuple/rem.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/tuple/rem.hpp rename to miniboost/boost/preprocessor/tuple/rem.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/tuple/size.hpp b/miniboost/boost/preprocessor/tuple/size.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/tuple/size.hpp rename to miniboost/boost/preprocessor/tuple/size.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/tuple/to_list.hpp b/miniboost/boost/preprocessor/tuple/to_list.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/tuple/to_list.hpp rename to miniboost/boost/preprocessor/tuple/to_list.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/variadic/elem.hpp b/miniboost/boost/preprocessor/variadic/elem.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/variadic/elem.hpp rename to miniboost/boost/preprocessor/variadic/elem.hpp diff --git a/libktorrent/miniboost/boost/preprocessor/variadic/size.hpp b/miniboost/boost/preprocessor/variadic/size.hpp similarity index 100% rename from libktorrent/miniboost/boost/preprocessor/variadic/size.hpp rename to miniboost/boost/preprocessor/variadic/size.hpp diff --git a/kget/miniboost/boost/ref.hpp b/miniboost/boost/ref.hpp similarity index 100% rename from kget/miniboost/boost/ref.hpp rename to miniboost/boost/ref.hpp diff --git a/libktorrent/miniboost/boost/scoped_ptr.hpp b/miniboost/boost/scoped_ptr.hpp similarity index 100% rename from libktorrent/miniboost/boost/scoped_ptr.hpp rename to miniboost/boost/scoped_ptr.hpp diff --git a/libktorrent/miniboost/boost/shared_array.hpp b/miniboost/boost/shared_array.hpp similarity index 100% rename from libktorrent/miniboost/boost/shared_array.hpp rename to miniboost/boost/shared_array.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/bad_weak_ptr.hpp b/miniboost/boost/smart_ptr/bad_weak_ptr.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/bad_weak_ptr.hpp rename to miniboost/boost/smart_ptr/bad_weak_ptr.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/lightweight_mutex.hpp b/miniboost/boost/smart_ptr/detail/lightweight_mutex.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/lightweight_mutex.hpp rename to miniboost/boost/smart_ptr/detail/lightweight_mutex.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/lwm_nop.hpp b/miniboost/boost/smart_ptr/detail/lwm_nop.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/lwm_nop.hpp rename to miniboost/boost/smart_ptr/detail/lwm_nop.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/lwm_pthreads.hpp b/miniboost/boost/smart_ptr/detail/lwm_pthreads.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/lwm_pthreads.hpp rename to miniboost/boost/smart_ptr/detail/lwm_pthreads.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/lwm_win32_cs.hpp b/miniboost/boost/smart_ptr/detail/lwm_win32_cs.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/lwm_win32_cs.hpp rename to miniboost/boost/smart_ptr/detail/lwm_win32_cs.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/operator_bool.hpp b/miniboost/boost/smart_ptr/detail/operator_bool.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/operator_bool.hpp rename to miniboost/boost/smart_ptr/detail/operator_bool.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/quick_allocator.hpp b/miniboost/boost/smart_ptr/detail/quick_allocator.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/quick_allocator.hpp rename to miniboost/boost/smart_ptr/detail/quick_allocator.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/shared_count.hpp b/miniboost/boost/smart_ptr/detail/shared_count.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/shared_count.hpp rename to miniboost/boost/smart_ptr/detail/shared_count.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_convertible.hpp b/miniboost/boost/smart_ptr/detail/sp_convertible.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_convertible.hpp rename to miniboost/boost/smart_ptr/detail/sp_convertible.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_acc_ia64.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_aix.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_aix.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_aix.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_aix.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_cw_ppc.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ia64.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_mips.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_ppc.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_nt.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_nt.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_nt.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_nt.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_pt.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_pt.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_pt.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_pt.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_snc_ps3.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_spin.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_spin.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_spin.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_spin.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_std_atomic.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_sync.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_sync.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_sync.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_sync.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_vacpp_ppc.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_w32.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_base_w32.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_base_w32.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_base_w32.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_impl.hpp b/miniboost/boost/smart_ptr/detail/sp_counted_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_counted_impl.hpp rename to miniboost/boost/smart_ptr/detail/sp_counted_impl.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_has_sync.hpp b/miniboost/boost/smart_ptr/detail/sp_has_sync.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_has_sync.hpp rename to miniboost/boost/smart_ptr/detail/sp_has_sync.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_interlocked.hpp b/miniboost/boost/smart_ptr/detail/sp_interlocked.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_interlocked.hpp rename to miniboost/boost/smart_ptr/detail/sp_interlocked.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/sp_nullptr_t.hpp b/miniboost/boost/smart_ptr/detail/sp_nullptr_t.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/sp_nullptr_t.hpp rename to miniboost/boost/smart_ptr/detail/sp_nullptr_t.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock.hpp b/miniboost/boost/smart_ptr/detail/spinlock.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock.hpp rename to miniboost/boost/smart_ptr/detail/spinlock.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_gcc_arm.hpp b/miniboost/boost/smart_ptr/detail/spinlock_gcc_arm.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_gcc_arm.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_gcc_arm.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_nt.hpp b/miniboost/boost/smart_ptr/detail/spinlock_nt.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_nt.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_nt.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_pool.hpp b/miniboost/boost/smart_ptr/detail/spinlock_pool.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_pool.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_pool.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_pt.hpp b/miniboost/boost/smart_ptr/detail/spinlock_pt.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_pt.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_pt.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_std_atomic.hpp b/miniboost/boost/smart_ptr/detail/spinlock_std_atomic.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_std_atomic.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_std_atomic.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_sync.hpp b/miniboost/boost/smart_ptr/detail/spinlock_sync.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_sync.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_sync.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/spinlock_w32.hpp b/miniboost/boost/smart_ptr/detail/spinlock_w32.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/spinlock_w32.hpp rename to miniboost/boost/smart_ptr/detail/spinlock_w32.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/detail/yield_k.hpp b/miniboost/boost/smart_ptr/detail/yield_k.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/detail/yield_k.hpp rename to miniboost/boost/smart_ptr/detail/yield_k.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/scoped_ptr.hpp b/miniboost/boost/smart_ptr/scoped_ptr.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/scoped_ptr.hpp rename to miniboost/boost/smart_ptr/scoped_ptr.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/shared_array.hpp b/miniboost/boost/smart_ptr/shared_array.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/shared_array.hpp rename to miniboost/boost/smart_ptr/shared_array.hpp diff --git a/libktorrent/miniboost/boost/smart_ptr/shared_ptr.hpp b/miniboost/boost/smart_ptr/shared_ptr.hpp similarity index 100% rename from libktorrent/miniboost/boost/smart_ptr/shared_ptr.hpp rename to miniboost/boost/smart_ptr/shared_ptr.hpp diff --git a/kget/miniboost/boost/static_assert.hpp b/miniboost/boost/static_assert.hpp similarity index 100% rename from kget/miniboost/boost/static_assert.hpp rename to miniboost/boost/static_assert.hpp diff --git a/libktorrent/miniboost/boost/throw_exception.hpp b/miniboost/boost/throw_exception.hpp similarity index 100% rename from libktorrent/miniboost/boost/throw_exception.hpp rename to miniboost/boost/throw_exception.hpp diff --git a/kget/miniboost/boost/type.hpp b/miniboost/boost/type.hpp similarity index 100% rename from kget/miniboost/boost/type.hpp rename to miniboost/boost/type.hpp diff --git a/libktorrent/miniboost/boost/type_traits/add_const.hpp b/miniboost/boost/type_traits/add_const.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/add_const.hpp rename to miniboost/boost/type_traits/add_const.hpp diff --git a/libktorrent/miniboost/boost/type_traits/add_lvalue_reference.hpp b/miniboost/boost/type_traits/add_lvalue_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/add_lvalue_reference.hpp rename to miniboost/boost/type_traits/add_lvalue_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/add_pointer.hpp b/miniboost/boost/type_traits/add_pointer.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/add_pointer.hpp rename to miniboost/boost/type_traits/add_pointer.hpp diff --git a/libktorrent/miniboost/boost/type_traits/add_reference.hpp b/miniboost/boost/type_traits/add_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/add_reference.hpp rename to miniboost/boost/type_traits/add_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/add_rvalue_reference.hpp b/miniboost/boost/type_traits/add_rvalue_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/add_rvalue_reference.hpp rename to miniboost/boost/type_traits/add_rvalue_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/alignment_of.hpp b/miniboost/boost/type_traits/alignment_of.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/alignment_of.hpp rename to miniboost/boost/type_traits/alignment_of.hpp diff --git a/libktorrent/miniboost/boost/type_traits/conditional.hpp b/miniboost/boost/type_traits/conditional.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/conditional.hpp rename to miniboost/boost/type_traits/conditional.hpp diff --git a/libktorrent/miniboost/boost/type_traits/config.hpp b/miniboost/boost/type_traits/config.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/config.hpp rename to miniboost/boost/type_traits/config.hpp diff --git a/libktorrent/miniboost/boost/type_traits/conversion_traits.hpp b/miniboost/boost/type_traits/conversion_traits.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/conversion_traits.hpp rename to miniboost/boost/type_traits/conversion_traits.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/bool_trait_def.hpp b/miniboost/boost/type_traits/detail/bool_trait_def.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/bool_trait_def.hpp rename to miniboost/boost/type_traits/detail/bool_trait_def.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/bool_trait_undef.hpp b/miniboost/boost/type_traits/detail/bool_trait_undef.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/bool_trait_undef.hpp rename to miniboost/boost/type_traits/detail/bool_trait_undef.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/cv_traits_impl.hpp b/miniboost/boost/type_traits/detail/cv_traits_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/cv_traits_impl.hpp rename to miniboost/boost/type_traits/detail/cv_traits_impl.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/false_result.hpp b/miniboost/boost/type_traits/detail/false_result.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/false_result.hpp rename to miniboost/boost/type_traits/detail/false_result.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/ice_and.hpp b/miniboost/boost/type_traits/detail/ice_and.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/ice_and.hpp rename to miniboost/boost/type_traits/detail/ice_and.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/ice_eq.hpp b/miniboost/boost/type_traits/detail/ice_eq.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/ice_eq.hpp rename to miniboost/boost/type_traits/detail/ice_eq.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/ice_not.hpp b/miniboost/boost/type_traits/detail/ice_not.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/ice_not.hpp rename to miniboost/boost/type_traits/detail/ice_not.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/ice_or.hpp b/miniboost/boost/type_traits/detail/ice_or.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/ice_or.hpp rename to miniboost/boost/type_traits/detail/ice_or.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/is_function_ptr_helper.hpp b/miniboost/boost/type_traits/detail/is_function_ptr_helper.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/is_function_ptr_helper.hpp rename to miniboost/boost/type_traits/detail/is_function_ptr_helper.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/is_function_ptr_tester.hpp b/miniboost/boost/type_traits/detail/is_function_ptr_tester.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/is_function_ptr_tester.hpp rename to miniboost/boost/type_traits/detail/is_function_ptr_tester.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp b/miniboost/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp rename to miniboost/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp b/miniboost/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp rename to miniboost/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/size_t_trait_def.hpp b/miniboost/boost/type_traits/detail/size_t_trait_def.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/size_t_trait_def.hpp rename to miniboost/boost/type_traits/detail/size_t_trait_def.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/size_t_trait_undef.hpp b/miniboost/boost/type_traits/detail/size_t_trait_undef.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/size_t_trait_undef.hpp rename to miniboost/boost/type_traits/detail/size_t_trait_undef.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/template_arity_spec.hpp b/miniboost/boost/type_traits/detail/template_arity_spec.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/template_arity_spec.hpp rename to miniboost/boost/type_traits/detail/template_arity_spec.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/type_trait_def.hpp b/miniboost/boost/type_traits/detail/type_trait_def.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/type_trait_def.hpp rename to miniboost/boost/type_traits/detail/type_trait_def.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/type_trait_undef.hpp b/miniboost/boost/type_traits/detail/type_trait_undef.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/type_trait_undef.hpp rename to miniboost/boost/type_traits/detail/type_trait_undef.hpp diff --git a/libktorrent/miniboost/boost/type_traits/detail/yes_no_type.hpp b/miniboost/boost/type_traits/detail/yes_no_type.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/detail/yes_no_type.hpp rename to miniboost/boost/type_traits/detail/yes_no_type.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_nothrow_assign.hpp b/miniboost/boost/type_traits/has_nothrow_assign.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_nothrow_assign.hpp rename to miniboost/boost/type_traits/has_nothrow_assign.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_nothrow_copy.hpp b/miniboost/boost/type_traits/has_nothrow_copy.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_nothrow_copy.hpp rename to miniboost/boost/type_traits/has_nothrow_copy.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_assign.hpp b/miniboost/boost/type_traits/has_trivial_assign.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_assign.hpp rename to miniboost/boost/type_traits/has_trivial_assign.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_constructor.hpp b/miniboost/boost/type_traits/has_trivial_constructor.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_constructor.hpp rename to miniboost/boost/type_traits/has_trivial_constructor.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_copy.hpp b/miniboost/boost/type_traits/has_trivial_copy.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_copy.hpp rename to miniboost/boost/type_traits/has_trivial_copy.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_destructor.hpp b/miniboost/boost/type_traits/has_trivial_destructor.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_destructor.hpp rename to miniboost/boost/type_traits/has_trivial_destructor.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_move_assign.hpp b/miniboost/boost/type_traits/has_trivial_move_assign.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_move_assign.hpp rename to miniboost/boost/type_traits/has_trivial_move_assign.hpp diff --git a/libktorrent/miniboost/boost/type_traits/has_trivial_move_constructor.hpp b/miniboost/boost/type_traits/has_trivial_move_constructor.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/has_trivial_move_constructor.hpp rename to miniboost/boost/type_traits/has_trivial_move_constructor.hpp diff --git a/libktorrent/miniboost/boost/type_traits/ice.hpp b/miniboost/boost/type_traits/ice.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/ice.hpp rename to miniboost/boost/type_traits/ice.hpp diff --git a/libktorrent/miniboost/boost/type_traits/integral_constant.hpp b/miniboost/boost/type_traits/integral_constant.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/integral_constant.hpp rename to miniboost/boost/type_traits/integral_constant.hpp diff --git a/libktorrent/miniboost/boost/type_traits/intrinsics.hpp b/miniboost/boost/type_traits/intrinsics.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/intrinsics.hpp rename to miniboost/boost/type_traits/intrinsics.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_abstract.hpp b/miniboost/boost/type_traits/is_abstract.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_abstract.hpp rename to miniboost/boost/type_traits/is_abstract.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_arithmetic.hpp b/miniboost/boost/type_traits/is_arithmetic.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_arithmetic.hpp rename to miniboost/boost/type_traits/is_arithmetic.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_array.hpp b/miniboost/boost/type_traits/is_array.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_array.hpp rename to miniboost/boost/type_traits/is_array.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_base_and_derived.hpp b/miniboost/boost/type_traits/is_base_and_derived.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_base_and_derived.hpp rename to miniboost/boost/type_traits/is_base_and_derived.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_class.hpp b/miniboost/boost/type_traits/is_class.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_class.hpp rename to miniboost/boost/type_traits/is_class.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_const.hpp b/miniboost/boost/type_traits/is_const.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_const.hpp rename to miniboost/boost/type_traits/is_const.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_convertible.hpp b/miniboost/boost/type_traits/is_convertible.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_convertible.hpp rename to miniboost/boost/type_traits/is_convertible.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_copy_constructible.hpp b/miniboost/boost/type_traits/is_copy_constructible.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_copy_constructible.hpp rename to miniboost/boost/type_traits/is_copy_constructible.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_empty.hpp b/miniboost/boost/type_traits/is_empty.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_empty.hpp rename to miniboost/boost/type_traits/is_empty.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_enum.hpp b/miniboost/boost/type_traits/is_enum.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_enum.hpp rename to miniboost/boost/type_traits/is_enum.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_float.hpp b/miniboost/boost/type_traits/is_float.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_float.hpp rename to miniboost/boost/type_traits/is_float.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_function.hpp b/miniboost/boost/type_traits/is_function.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_function.hpp rename to miniboost/boost/type_traits/is_function.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_integral.hpp b/miniboost/boost/type_traits/is_integral.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_integral.hpp rename to miniboost/boost/type_traits/is_integral.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_lvalue_reference.hpp b/miniboost/boost/type_traits/is_lvalue_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_lvalue_reference.hpp rename to miniboost/boost/type_traits/is_lvalue_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_member_function_pointer.hpp b/miniboost/boost/type_traits/is_member_function_pointer.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_member_function_pointer.hpp rename to miniboost/boost/type_traits/is_member_function_pointer.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_member_pointer.hpp b/miniboost/boost/type_traits/is_member_pointer.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_member_pointer.hpp rename to miniboost/boost/type_traits/is_member_pointer.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_nothrow_move_assignable.hpp b/miniboost/boost/type_traits/is_nothrow_move_assignable.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_nothrow_move_assignable.hpp rename to miniboost/boost/type_traits/is_nothrow_move_assignable.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_nothrow_move_constructible.hpp b/miniboost/boost/type_traits/is_nothrow_move_constructible.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_nothrow_move_constructible.hpp rename to miniboost/boost/type_traits/is_nothrow_move_constructible.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_pod.hpp b/miniboost/boost/type_traits/is_pod.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_pod.hpp rename to miniboost/boost/type_traits/is_pod.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_pointer.hpp b/miniboost/boost/type_traits/is_pointer.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_pointer.hpp rename to miniboost/boost/type_traits/is_pointer.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_polymorphic.hpp b/miniboost/boost/type_traits/is_polymorphic.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_polymorphic.hpp rename to miniboost/boost/type_traits/is_polymorphic.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_reference.hpp b/miniboost/boost/type_traits/is_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_reference.hpp rename to miniboost/boost/type_traits/is_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_rvalue_reference.hpp b/miniboost/boost/type_traits/is_rvalue_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_rvalue_reference.hpp rename to miniboost/boost/type_traits/is_rvalue_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_same.hpp b/miniboost/boost/type_traits/is_same.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_same.hpp rename to miniboost/boost/type_traits/is_same.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_scalar.hpp b/miniboost/boost/type_traits/is_scalar.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_scalar.hpp rename to miniboost/boost/type_traits/is_scalar.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_stateless.hpp b/miniboost/boost/type_traits/is_stateless.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_stateless.hpp rename to miniboost/boost/type_traits/is_stateless.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_union.hpp b/miniboost/boost/type_traits/is_union.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_union.hpp rename to miniboost/boost/type_traits/is_union.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_void.hpp b/miniboost/boost/type_traits/is_void.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_void.hpp rename to miniboost/boost/type_traits/is_void.hpp diff --git a/libktorrent/miniboost/boost/type_traits/is_volatile.hpp b/miniboost/boost/type_traits/is_volatile.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/is_volatile.hpp rename to miniboost/boost/type_traits/is_volatile.hpp diff --git a/libktorrent/miniboost/boost/type_traits/remove_bounds.hpp b/miniboost/boost/type_traits/remove_bounds.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/remove_bounds.hpp rename to miniboost/boost/type_traits/remove_bounds.hpp diff --git a/libktorrent/miniboost/boost/type_traits/remove_const.hpp b/miniboost/boost/type_traits/remove_const.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/remove_const.hpp rename to miniboost/boost/type_traits/remove_const.hpp diff --git a/libktorrent/miniboost/boost/type_traits/remove_cv.hpp b/miniboost/boost/type_traits/remove_cv.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/remove_cv.hpp rename to miniboost/boost/type_traits/remove_cv.hpp diff --git a/libktorrent/miniboost/boost/type_traits/remove_pointer.hpp b/miniboost/boost/type_traits/remove_pointer.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/remove_pointer.hpp rename to miniboost/boost/type_traits/remove_pointer.hpp diff --git a/libktorrent/miniboost/boost/type_traits/remove_reference.hpp b/miniboost/boost/type_traits/remove_reference.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/remove_reference.hpp rename to miniboost/boost/type_traits/remove_reference.hpp diff --git a/libktorrent/miniboost/boost/type_traits/type_with_alignment.hpp b/miniboost/boost/type_traits/type_with_alignment.hpp similarity index 100% rename from libktorrent/miniboost/boost/type_traits/type_with_alignment.hpp rename to miniboost/boost/type_traits/type_with_alignment.hpp diff --git a/kget/miniboost/boost/utility/addressof.hpp b/miniboost/boost/utility/addressof.hpp similarity index 100% rename from kget/miniboost/boost/utility/addressof.hpp rename to miniboost/boost/utility/addressof.hpp diff --git a/libktorrent/miniboost/boost/utility/declval.hpp b/miniboost/boost/utility/declval.hpp similarity index 100% rename from libktorrent/miniboost/boost/utility/declval.hpp rename to miniboost/boost/utility/declval.hpp diff --git a/libktorrent/miniboost/boost/utility/enable_if.hpp b/miniboost/boost/utility/enable_if.hpp similarity index 100% rename from libktorrent/miniboost/boost/utility/enable_if.hpp rename to miniboost/boost/utility/enable_if.hpp diff --git a/kget/miniboost/boost/version.hpp b/miniboost/boost/version.hpp similarity index 100% rename from kget/miniboost/boost/version.hpp rename to miniboost/boost/version.hpp diff --git a/kget/miniboost/boost/visit_each.hpp b/miniboost/boost/visit_each.hpp similarity index 100% rename from kget/miniboost/boost/visit_each.hpp rename to miniboost/boost/visit_each.hpp diff --git a/kget/miniboost/ctype.h b/miniboost/ctype.h similarity index 100% rename from kget/miniboost/ctype.h rename to miniboost/ctype.h diff --git a/kget/miniboost/endian.h b/miniboost/endian.h similarity index 100% rename from kget/miniboost/endian.h rename to miniboost/endian.h diff --git a/kget/miniboost/errno.h b/miniboost/errno.h similarity index 100% rename from kget/miniboost/errno.h rename to miniboost/errno.h diff --git a/kget/miniboost/features.h b/miniboost/features.h similarity index 100% rename from kget/miniboost/features.h rename to miniboost/features.h diff --git a/kget/miniboost/gconv.h b/miniboost/gconv.h similarity index 100% rename from kget/miniboost/gconv.h rename to miniboost/gconv.h diff --git a/kget/miniboost/getopt.h b/miniboost/getopt.h similarity index 100% rename from kget/miniboost/getopt.h rename to miniboost/getopt.h diff --git a/kget/miniboost/gnu/stubs-64.h b/miniboost/gnu/stubs-64.h similarity index 100% rename from kget/miniboost/gnu/stubs-64.h rename to miniboost/gnu/stubs-64.h diff --git a/kget/miniboost/gnu/stubs.h b/miniboost/gnu/stubs.h similarity index 100% rename from kget/miniboost/gnu/stubs.h rename to miniboost/gnu/stubs.h diff --git a/libktorrent/miniboost/inttypes.h b/miniboost/inttypes.h similarity index 100% rename from libktorrent/miniboost/inttypes.h rename to miniboost/inttypes.h diff --git a/kget/miniboost/libio.h b/miniboost/libio.h similarity index 100% rename from kget/miniboost/libio.h rename to miniboost/libio.h diff --git a/kget/miniboost/limits.h b/miniboost/limits.h similarity index 100% rename from kget/miniboost/limits.h rename to miniboost/limits.h diff --git a/kget/miniboost/linux/errno.h b/miniboost/linux/errno.h similarity index 100% rename from kget/miniboost/linux/errno.h rename to miniboost/linux/errno.h diff --git a/kget/miniboost/linux/limits.h b/miniboost/linux/limits.h similarity index 100% rename from kget/miniboost/linux/limits.h rename to miniboost/linux/limits.h diff --git a/libktorrent/miniboost/linux/param.h b/miniboost/linux/param.h similarity index 100% rename from libktorrent/miniboost/linux/param.h rename to miniboost/linux/param.h diff --git a/kget/miniboost/pthread.h b/miniboost/pthread.h similarity index 100% rename from kget/miniboost/pthread.h rename to miniboost/pthread.h diff --git a/kget/miniboost/sched.h b/miniboost/sched.h similarity index 100% rename from kget/miniboost/sched.h rename to miniboost/sched.h diff --git a/kget/miniboost/signal.h b/miniboost/signal.h similarity index 100% rename from kget/miniboost/signal.h rename to miniboost/signal.h diff --git a/kget/miniboost/stdc-predef.h b/miniboost/stdc-predef.h similarity index 100% rename from kget/miniboost/stdc-predef.h rename to miniboost/stdc-predef.h diff --git a/libktorrent/miniboost/stdint.h b/miniboost/stdint.h similarity index 100% rename from libktorrent/miniboost/stdint.h rename to miniboost/stdint.h diff --git a/kget/miniboost/stdio.h b/miniboost/stdio.h similarity index 100% rename from kget/miniboost/stdio.h rename to miniboost/stdio.h diff --git a/kget/miniboost/stdlib.h b/miniboost/stdlib.h similarity index 100% rename from kget/miniboost/stdlib.h rename to miniboost/stdlib.h diff --git a/kget/miniboost/string.h b/miniboost/string.h similarity index 100% rename from kget/miniboost/string.h rename to miniboost/string.h diff --git a/kget/miniboost/sys/cdefs.h b/miniboost/sys/cdefs.h similarity index 100% rename from kget/miniboost/sys/cdefs.h rename to miniboost/sys/cdefs.h diff --git a/libktorrent/miniboost/sys/param.h b/miniboost/sys/param.h similarity index 100% rename from libktorrent/miniboost/sys/param.h rename to miniboost/sys/param.h diff --git a/kget/miniboost/sys/select.h b/miniboost/sys/select.h similarity index 100% rename from kget/miniboost/sys/select.h rename to miniboost/sys/select.h diff --git a/kget/miniboost/sys/signal.h b/miniboost/sys/signal.h similarity index 100% rename from kget/miniboost/sys/signal.h rename to miniboost/sys/signal.h diff --git a/kget/miniboost/sys/sysmacros.h b/miniboost/sys/sysmacros.h similarity index 100% rename from kget/miniboost/sys/sysmacros.h rename to miniboost/sys/sysmacros.h diff --git a/kget/miniboost/sys/time.h b/miniboost/sys/time.h similarity index 100% rename from kget/miniboost/sys/time.h rename to miniboost/sys/time.h diff --git a/kget/miniboost/sys/types.h b/miniboost/sys/types.h similarity index 100% rename from kget/miniboost/sys/types.h rename to miniboost/sys/types.h diff --git a/kget/miniboost/sys/ucontext.h b/miniboost/sys/ucontext.h similarity index 100% rename from kget/miniboost/sys/ucontext.h rename to miniboost/sys/ucontext.h diff --git a/kget/miniboost/time.h b/miniboost/time.h similarity index 100% rename from kget/miniboost/time.h rename to miniboost/time.h diff --git a/kget/miniboost/unistd.h b/miniboost/unistd.h similarity index 100% rename from kget/miniboost/unistd.h rename to miniboost/unistd.h diff --git a/kget/miniboost/wchar.h b/miniboost/wchar.h similarity index 100% rename from kget/miniboost/wchar.h rename to miniboost/wchar.h diff --git a/kget/miniboost/wctype.h b/miniboost/wctype.h similarity index 100% rename from kget/miniboost/wctype.h rename to miniboost/wctype.h diff --git a/kget/miniboost/xlocale.h b/miniboost/xlocale.h similarity index 100% rename from kget/miniboost/xlocale.h rename to miniboost/xlocale.h