├── GNUmakefile ├── Makefile ├── README ├── README.compile-and-pre-built-binaries ├── README.openssl ├── VisualStudio ├── libkms │ ├── libkms.vcxproj │ └── libkms.vcxproj.filters ├── msvcrt.lib ├── msvcrt64.lib ├── vlmcs │ ├── vlmcs.vcxproj │ └── vlmcs.vcxproj.filters ├── vlmcsd.sln ├── vlmcsd │ ├── vlmcsd.vcxproj │ └── vlmcsd.vcxproj.filters └── vlmcsdmulti │ ├── vlmcsdmulti.vcxproj │ └── vlmcsdmulti.vcxproj.filters ├── bin └── .gitignore ├── build └── .gitignore ├── buildroot-configs ├── arm │ └── little-endian │ │ ├── glibc │ │ ├── armelv5t-glibc-2.23-gcc-6.1.0-binutils-2.26.config │ │ ├── armelv7-gcc8.2.0-glibc2.28.config │ │ ├── armhfv7-gcc8.2.0-glibc2.28.config │ │ ├── armv4-el-glibc2.20-gcc4.9.1-binutils2.24.config │ │ ├── armv4t-el-glibc2.20-gcc4.9.1-binutils2.24-thumb1.config │ │ ├── armv5-el-glibc2.20-gcc4.9.1-binutils2.24.config │ │ ├── armv5t-el-glibc2.20-gcc4.9.2-binutils2.25-thumb1.config │ │ ├── armv6-el-hf-glibc2.20-gcc4.9.1-binutils2.24.config │ │ └── armv7-el-glibc2.20-gcc4.9.1-binutils2.24-thumb2.config │ │ ├── musl │ │ ├── armelv5t-musl-gcc6.1.0-binutils-2.26.config │ │ ├── armv4-el-musl-gcc4.9.1-binutils2.24.config │ │ ├── armv4t-el-musl-gcc4.9.1-binutils2.24-thumb1.config │ │ ├── armv5-el-musl-gcc4.9.1-binutils2.24.config │ │ ├── armv5t-el-musl-gcc4.9.1-binutils2.24-thumb1.config │ │ └── armv7-el-musl-gcc4.9.1-binutils2.24-thumb2.config │ │ └── uclibc │ │ ├── armv4-el-uclibc0.9.33.2-gcc4.9.1-binutils2.24.config │ │ ├── armv4t-el-uclibc0.9.33.2-gcc4.9.1-binutils2.24-thumb1.config │ │ ├── armv5-el-uclibc0.9.33.2-gcc4.9.1-binutils2.24.config │ │ ├── armv5t-el-uclibc0.9.33.2-gcc4.9.1-binutils2.24-thumb1.config │ │ └── armv7-el-uclibc0.9.33.2-gcc4.9.1-binutils2.24-thumb2.config ├── intel │ └── musl │ │ ├── i486-musl-gcc-5.3.0-binutils-2.25.1.config │ │ └── x86_64-musl-gcc-5.3.0-binutils-2.25.1.config ├── mips │ ├── big-endian │ │ ├── glibc │ │ │ ├── mips16-eb-gcc4.9-glibc2.20-binutils2.24.config │ │ │ ├── mips32-eb-gcc4.9-glibc2.20-binutils2.24.config │ │ │ └── mips32r2-eb-gcc4.9-glibc2.20-binutils2.24.config │ │ ├── musl │ │ │ ├── mips32-eb-gcc4.9-musl-binutils2.24.config │ │ │ └── mips32r2-eb-gcc4.9-musl-binutils2.24.config │ │ └── uclibc │ │ │ ├── mips16-eb-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ │ ├── mips32-eb-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ │ └── mips32r2-eb-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ └── little-endian │ │ ├── glibc │ │ ├── mips16-el-gcc4.9-glibc2.20-binutils2.24.config │ │ ├── mips32-el-gcc4.9-glibc2.20-binutils2.24.config │ │ └── mips32r2-el-gcc4.9-glibc2.20-binutils2.24.config │ │ ├── musl │ │ ├── mips32-el-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ └── mips32r2-el-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ └── uclibc │ │ ├── mips16-el-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ ├── mips32-el-gcc4.9-uclibc0.9.33.2-binutils2.24.config │ │ └── mips32r2-el-gcc4.9-uclibc0.9.33.2-binutils2.24.config └── ppc │ └── big-endian │ ├── musl │ └── ppc-musl-1.15-gcc-6.2.0-binutils-2.27.config │ └── uclibc │ └── ppc-eb-gcc4.9-uclibc0.9.33.2-binutils2.24.config ├── etc ├── vlmcsd.ini └── vlmcsd.kmd ├── floppy ├── .config-busybox ├── .config-linux-kernel ├── .config-linux-kernel-efi └── .config-uClibc-ng ├── hotbird64-mass-build ├── make_bs ├── make_dragonfly ├── make_dyson ├── make_freebsd ├── make_hurd ├── make_kfreebsd ├── make_linux ├── make_minix ├── make_multilib_linux ├── make_netbsd ├── make_nonbs ├── make_openbsd ├── make_osx ├── make_solaris ├── make_windows └── strip_binaries ├── lib └── .gitignore ├── man ├── GNUmakefile ├── vlmcs.1 ├── vlmcsd-floppy.7 ├── vlmcsd.7 ├── vlmcsd.8 ├── vlmcsd.ini.5 └── vlmcsdmulti.1 └── src ├── GNUmakefile ├── KMSServer.idl ├── KMSServer_c_mingw_gcc.c ├── KMSServer_c_x64_mingw_gcc.c ├── KMSServer_h.h ├── KMSServer_s2_mingw_gcc.c ├── KMSServer_s2_x64_mingw_gcc.c ├── VisualStudio-Linux-Remote └── toolchains │ └── gcc5-x86_64-linux-gnu │ └── usr │ └── include │ ├── _G_config.h │ ├── aio.h │ ├── aliases.h │ ├── alloca.h │ ├── ar.h │ ├── argp.h │ ├── argz.h │ ├── arpa │ ├── ftp.h │ ├── inet.h │ ├── nameser.h │ ├── nameser_compat.h │ ├── telnet.h │ └── tftp.h │ ├── asm-generic │ ├── auxvec.h │ ├── bitsperlong.h │ ├── errno-base.h │ ├── errno.h │ ├── fcntl.h │ ├── int-l64.h │ ├── int-ll64.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── kvm_para.h │ ├── mman-common.h │ ├── mman.h │ ├── msgbuf.h │ ├── param.h │ ├── poll.h │ ├── posix_types.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── shmparam.h │ ├── siginfo.h │ ├── signal-defs.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ └── unistd.h │ ├── asm │ ├── a.out.h │ ├── auxvec.h │ ├── bitsperlong.h │ ├── boot.h │ ├── bootparam.h │ ├── byteorder.h │ ├── debugreg.h │ ├── e820.h │ ├── errno.h │ ├── fcntl.h │ ├── hw_breakpoint.h │ ├── hyperv.h │ ├── ioctl.h │ ├── ioctls.h │ ├── ipcbuf.h │ ├── ist.h │ ├── kvm.h │ ├── kvm_para.h │ ├── kvm_perf.h │ ├── ldt.h │ ├── mce.h │ ├── mman.h │ ├── msgbuf.h │ ├── msr-index.h │ ├── msr.h │ ├── mtrr.h │ ├── param.h │ ├── perf_regs.h │ ├── poll.h │ ├── posix_types.h │ ├── posix_types_32.h │ ├── posix_types_64.h │ ├── posix_types_x32.h │ ├── prctl.h │ ├── processor-flags.h │ ├── ptrace-abi.h │ ├── ptrace.h │ ├── resource.h │ ├── sembuf.h │ ├── setup.h │ ├── shmbuf.h │ ├── sigcontext.h │ ├── sigcontext32.h │ ├── siginfo.h │ ├── signal.h │ ├── socket.h │ ├── sockios.h │ ├── stat.h │ ├── statfs.h │ ├── svm.h │ ├── swab.h │ ├── termbits.h │ ├── termios.h │ ├── types.h │ ├── ucontext.h │ ├── unistd.h │ ├── unistd_32.h │ ├── unistd_64.h │ ├── unistd_x32.h │ ├── vm86.h │ ├── vmx.h │ └── vsyscall.h │ ├── assert.h │ ├── bits │ ├── a.out.h │ ├── auxv.h │ ├── byteswap-16.h │ ├── byteswap.h │ ├── cmathcalls.h │ ├── confname.h │ ├── dirent.h │ ├── dlfcn.h │ ├── elfclass.h │ ├── endian.h │ ├── environments.h │ ├── epoll.h │ ├── errno.h │ ├── error.h │ ├── eventfd.h │ ├── fcntl-linux.h │ ├── fcntl.h │ ├── fcntl2.h │ ├── fenv.h │ ├── fenvinline.h │ ├── huge_val.h │ ├── huge_valf.h │ ├── huge_vall.h │ ├── hwcap.h │ ├── in.h │ ├── inf.h │ ├── initspin.h │ ├── inotify.h │ ├── ioctl-types.h │ ├── ioctls.h │ ├── ipc.h │ ├── ipctypes.h │ ├── libio-ldbl.h │ ├── libm-simd-decl-stubs.h │ ├── link.h │ ├── local_lim.h │ ├── locale.h │ ├── math-finite.h │ ├── math-vector.h │ ├── mathcalls.h │ ├── mathdef.h │ ├── mathinline.h │ ├── mman-linux.h │ ├── mman.h │ ├── monetary-ldbl.h │ ├── mqueue.h │ ├── mqueue2.h │ ├── msq.h │ ├── nan.h │ ├── netdb.h │ ├── param.h │ ├── poll.h │ ├── poll2.h │ ├── posix1_lim.h │ ├── posix2_lim.h │ ├── posix_opt.h │ ├── printf-ldbl.h │ ├── pthreadtypes.h │ ├── resource.h │ ├── sched.h │ ├── select.h │ ├── select2.h │ ├── sem.h │ ├── semaphore.h │ ├── setjmp.h │ ├── setjmp2.h │ ├── shm.h │ ├── sigaction.h │ ├── sigcontext.h │ ├── siginfo.h │ ├── signalfd.h │ ├── signum.h │ ├── sigset.h │ ├── sigstack.h │ ├── sigthread.h │ ├── sockaddr.h │ ├── socket.h │ ├── socket2.h │ ├── socket_type.h │ ├── stab.def │ ├── stat.h │ ├── statfs.h │ ├── statvfs.h │ ├── stdio-ldbl.h │ ├── stdio.h │ ├── stdio2.h │ ├── stdio_lim.h │ ├── stdlib-bsearch.h │ ├── stdlib-float.h │ ├── stdlib-ldbl.h │ ├── stdlib.h │ ├── string.h │ ├── string2.h │ ├── string3.h │ ├── stropts.h │ ├── sys_errlist.h │ ├── syscall.h │ ├── sysctl.h │ ├── syslog-ldbl.h │ ├── syslog-path.h │ ├── syslog.h │ ├── termios.h │ ├── time.h │ ├── timerfd.h │ ├── timex.h │ ├── types.h │ ├── typesizes.h │ ├── uio.h │ ├── unistd.h │ ├── ustat.h │ ├── utmp.h │ ├── utmpx.h │ ├── utsname.h │ ├── waitflags.h │ ├── waitstatus.h │ ├── wchar-ldbl.h │ ├── wchar.h │ ├── wchar2.h │ ├── wordsize.h │ ├── xopen_lim.h │ └── xtitypes.h │ ├── byteswap.h │ ├── complex.h │ ├── cpio.h │ ├── crypt.h │ ├── ctype.h │ ├── dirent.h │ ├── dlfcn.h │ ├── elf.h │ ├── endian.h │ ├── envz.h │ ├── err.h │ ├── errno.h │ ├── error.h │ ├── execinfo.h │ ├── fcntl.h │ ├── features.h │ ├── fenv.h │ ├── fmtmsg.h │ ├── fnmatch.h │ ├── fstab.h │ ├── fts.h │ ├── ftw.h │ ├── gawkapi.h │ ├── gconv.h │ ├── getopt.h │ ├── glob.h │ ├── gnu-versions.h │ ├── gnumake.h │ ├── grp.h │ ├── gshadow.h │ ├── iconv.h │ ├── ifaddrs.h │ ├── inttypes.h │ ├── langinfo.h │ ├── lastlog.h │ ├── libgen.h │ ├── libintl.h │ ├── libio.h │ ├── limits.h │ ├── link.h │ ├── locale.h │ ├── malloc.h │ ├── math.h │ ├── mcheck.h │ ├── memory.h │ ├── misc │ └── cxl.h │ ├── mntent.h │ ├── monetary.h │ ├── mqueue.h │ ├── net │ ├── ethernet.h │ ├── if.h │ ├── if_arp.h │ ├── if_packet.h │ ├── if_ppp.h │ ├── if_shaper.h │ ├── if_slip.h │ ├── ppp-comp.h │ ├── ppp_defs.h │ └── route.h │ ├── netdb.h │ ├── netinet │ ├── ether.h │ ├── icmp6.h │ ├── if_ether.h │ ├── if_fddi.h │ ├── if_tr.h │ ├── igmp.h │ ├── in.h │ ├── in_systm.h │ ├── ip.h │ ├── ip6.h │ ├── ip_icmp.h │ ├── tcp.h │ └── udp.h │ ├── nl_types.h │ ├── nss.h │ ├── obstack.h │ ├── paths.h │ ├── poll.h │ ├── printf.h │ ├── protocols │ ├── routed.h │ ├── rwhod.h │ ├── talkd.h │ └── timed.h │ ├── pthread.h │ ├── pty.h │ ├── pwd.h │ ├── re_comp.h │ ├── regex.h │ ├── regexp.h │ ├── resolv.h │ ├── rpc │ ├── auth.h │ ├── auth_des.h │ ├── auth_unix.h │ ├── clnt.h │ ├── des_crypt.h │ ├── key_prot.h │ ├── netdb.h │ ├── pmap_clnt.h │ ├── pmap_prot.h │ ├── pmap_rmt.h │ ├── rpc.h │ ├── rpc_des.h │ ├── rpc_msg.h │ ├── svc.h │ ├── svc_auth.h │ ├── types.h │ └── xdr.h │ ├── sched.h │ ├── search.h │ ├── semaphore.h │ ├── setjmp.h │ ├── sgtty.h │ ├── shadow.h │ ├── signal.h │ ├── spawn.h │ ├── stab.h │ ├── stdc-predef.h │ ├── stdint.h │ ├── stdio.h │ ├── stdio_ext.h │ ├── stdlib.h │ ├── string.h │ ├── strings.h │ ├── stropts.h │ ├── sudo_plugin.h │ ├── sys │ ├── acct.h │ ├── acl.h │ ├── asoundlib.h │ ├── auxv.h │ ├── bitypes.h │ ├── capability.h │ ├── cdefs.h │ ├── debugreg.h │ ├── dir.h │ ├── elf.h │ ├── epoll.h │ ├── errno.h │ ├── eventfd.h │ ├── fanotify.h │ ├── fcntl.h │ ├── file.h │ ├── fsuid.h │ ├── gmon.h │ ├── gmon_out.h │ ├── inotify.h │ ├── io.h │ ├── ioctl.h │ ├── ipc.h │ ├── kd.h │ ├── klog.h │ ├── mman.h │ ├── mount.h │ ├── msg.h │ ├── mtio.h │ ├── param.h │ ├── pci.h │ ├── perm.h │ ├── personality.h │ ├── poll.h │ ├── prctl.h │ ├── procfs.h │ ├── profil.h │ ├── ptrace.h │ ├── queue.h │ ├── quota.h │ ├── raw.h │ ├── reboot.h │ ├── reg.h │ ├── resource.h │ ├── select.h │ ├── sem.h │ ├── sendfile.h │ ├── shm.h │ ├── signal.h │ ├── signalfd.h │ ├── socket.h │ ├── socketvar.h │ ├── soundcard.h │ ├── stat.h │ ├── statfs.h │ ├── statvfs.h │ ├── stropts.h │ ├── swap.h │ ├── syscall.h │ ├── sysctl.h │ ├── sysinfo.h │ ├── syslog.h │ ├── sysmacros.h │ ├── termios.h │ ├── time.h │ ├── timeb.h │ ├── timerfd.h │ ├── times.h │ ├── timex.h │ ├── ttychars.h │ ├── ttydefaults.h │ ├── types.h │ ├── ucontext.h │ ├── uio.h │ ├── ultrasound.h │ ├── un.h │ ├── unistd.h │ ├── user.h │ ├── ustat.h │ ├── utsname.h │ ├── vfs.h │ ├── vlimit.h │ ├── vm86.h │ ├── vt.h │ ├── vtimes.h │ ├── wait.h │ └── xattr.h │ ├── syscall.h │ ├── sysexits.h │ ├── syslog.h │ ├── tar.h │ ├── termio.h │ ├── termios.h │ ├── tgmath.h │ ├── thread_db.h │ ├── time.h │ ├── ttyent.h │ ├── uchar.h │ ├── ucontext.h │ ├── ulimit.h │ ├── unistd.h │ ├── ustat.h │ ├── utime.h │ ├── utmp.h │ ├── utmpx.h │ ├── values.h │ ├── wait.h │ ├── wchar.h │ ├── wctype.h │ ├── wordexp.h │ └── xlocale.h ├── config.h ├── crypto.c ├── crypto.h ├── crypto_internal.c ├── crypto_internal.h ├── crypto_openssl.c ├── crypto_openssl.h ├── crypto_polarssl.h ├── crypto_windows.c ├── crypto_windows.h ├── dns_srv.c ├── dns_srv.h ├── endian.c ├── endian.h ├── getifaddrs-musl.c ├── helpers.c ├── helpers.h ├── ifaddrs-android.c ├── ifaddrs-android.h ├── ifaddrs-musl.h ├── kms.c ├── kms.h ├── kmsdata-full.c ├── kmsdata.c ├── kmsdata.h ├── libkms-test.c ├── libkms.c ├── libkms.h ├── msrpc-client.c ├── msrpc-client.h ├── msrpc-server.c ├── msrpc-server.h ├── nameser.h ├── nameser_compat.h ├── netlink-musl.h ├── network.c ├── network.h ├── ns_name.c ├── ns_name.h ├── ns_parse.c ├── ns_parse.h ├── ntservice.c ├── ntservice.h ├── output.c ├── output.h ├── resolv.h ├── resolv_static.h ├── rpc.c ├── rpc.h ├── shared_globals.c ├── shared_globals.h ├── tap-windows.h ├── types.h ├── vlmcs-linux-remote.vcxproj ├── vlmcs-linux-remote.vcxproj.filters ├── vlmcs.c ├── vlmcs.h ├── vlmcsd-linux-remote.vcxproj ├── vlmcsd-linux-remote.vcxproj.filters ├── vlmcsd.c ├── vlmcsd.h ├── vlmcsdmulti.c ├── wingetopt.c ├── wingetopt.h ├── wintap.c └── wintap.h /Makefile: -------------------------------------------------------------------------------- 1 | # Let BSD make switch to GNU make 2 | all ${.TARGETS}: 3 | @echo "================================================================" 4 | @echo " PLEASE USE THE GNU VERSION OF MAKE (gmake) INSTEAD OF ${MAKE} " 5 | @echo "================================================================" 6 | @echo "" 7 | @gmake $@ 8 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | To view the documentation cd to the directory containing the distribution 2 | files and type 3 | 4 | man man/vlmcsd.8 5 | to see documentation for vlmcsd 6 | 7 | man man/vlmcs.1 8 | to see documentation for vlmcs 9 | 10 | man man/vlmcsd.7 11 | to see general documentation for kms 12 | 13 | If you don't have man, you may also use the .txt, .html and .pdf files 14 | in the man directory 15 | -------------------------------------------------------------------------------- /VisualStudio/msvcrt.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cokebar/vlmcsd/8fff445a290cb6f2929ae593f0e0e5ad722c1927/VisualStudio/msvcrt.lib -------------------------------------------------------------------------------- /VisualStudio/msvcrt64.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cokebar/vlmcsd/8fff445a290cb6f2929ae593f0e0e5ad722c1927/VisualStudio/msvcrt64.lib -------------------------------------------------------------------------------- /bin/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /build/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /etc/vlmcsd.kmd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cokebar/vlmcsd/8fff445a290cb6f2929ae593f0e0e5ad722c1927/etc/vlmcsd.kmd -------------------------------------------------------------------------------- /hotbird64-mass-build/make_dragonfly: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | export VLMCSD_VERSION=$(git describe) 4 | 5 | cd "$( dirname "$0" )" 6 | gmake -C .. clean 7 | 8 | cd ../src 9 | BINDIR="../bin" 10 | 11 | export VERBOSE=3 12 | export DNS_PARSER=OS 13 | 14 | MAKEFLAGS="-B -j12" 15 | REUSEOBJFLAGS="-j12" 16 | 17 | CF="-flto=12 -static-libgcc -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 18 | CF45="-static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 19 | CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 20 | LF="-Wl,-z,norelro -Wl,--hash-style=sysv -Wl,--build-id=none" 21 | LFCLANG="-Wl,-z,norelro -Wl,--hash-style=sysv" 22 | export CC=gcc6 23 | 24 | gmake $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-DragonFly-x64 PROGRAM_NAME=$BINDIR/vlmcsd-DragonFly-x64 CLIENT_NAME=$BINDIR/vlmcs-DragonFly-x64 CFLAGS="$CF" LDFLAGS="$LF" allmulti 25 | 26 | cd $BINDIR 27 | 28 | strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-* 29 | sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-* 30 | 31 | cp -af ../etc/vlmcsd.kmd /usr/local/sbin 32 | cp -af vlmcsd-DragonFly-x64 /usr/local/sbin/vlmcsd 33 | cp -af vlmcs-DragonFly-x64 /usr/local/bin/vlmcs 34 | 35 | # Copy everything to distribution server 36 | scp -p vlmcsdmulti-* vlmcsd-Dragon* vlmcs-* root@ubuntu64:x/binaries/DragonFly/intel/ 37 | -------------------------------------------------------------------------------- /hotbird64-mass-build/make_hurd: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export VLMCSD_VERSION=$(git describe) 4 | export VERBOSE=3 5 | export DNS_PARSER=OS 6 | 7 | cd "$( dirname "$0" )" 8 | make -C .. clean 9 | 10 | BINDIR="../bin" 11 | MANDIR="../man" 12 | cd ../src 13 | 14 | MAKEFLAGS="-B -j1" 15 | 16 | export CC=gcc 17 | CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 18 | LF="-fuse-ld=gold -lresolv -Wl,-z,norelro,--hash-style=gnu,--build-id=none" 19 | 20 | make $MAKEFLAGS MULTI_NAME=$BINDIR/vlmcsdmulti-hurd-x86-glibc PROGRAM_NAME=$BINDIR/vlmcsd-hurd-x86-glibc CLIENT_NAME=$BINDIR/vlmcs-hurd-x86-glibc CFLAGS="$CF" LDFLAGS="$LF" allmulti 21 | 22 | cd $BINDIR 23 | 24 | sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-* 25 | 26 | cp -af ../etc/vlmcsd.kmd /usr/local/sbin 27 | cp -af vlmcsd-hurd-x86-glibc /usr/local/sbin/vlmcsd 28 | cp -af vlmcs-hurd-x86-glibc /usr/local/bin/vlmcs 29 | 30 | cd $MANDIR 31 | 32 | # Copy man pages 33 | mkdir -p /usr/local/man/man1 2>/dev/null 34 | mkdir -p /usr/local/man/man5 2>/dev/null 35 | mkdir -p /usr/local/man/man8 2>/dev/null 36 | mkdir -p /usr/local/man/man7 2>/dev/null 37 | cp -af vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/ 38 | cp -af vlmcsd.7 /usr/local/man/man7/ 39 | cp -af vlmcsd.8 /usr/local/man/man8/ 40 | rm -f vlmcsdmulti vlmcsd vlmcs 2>/dev/null 41 | cp -af vlmcsd.ini.5 /usr/local/man/man5/ 42 | bzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8 43 | 44 | cd $BINDIR 45 | 46 | # Copy everything to distribution server 47 | scp -p * root@ubuntu64.internal:x/binaries/Hurd/intel/ 48 | 49 | -------------------------------------------------------------------------------- /hotbird64-mass-build/make_kfreebsd: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | export VLMCSD_VERSION=$(git describe) 4 | export VERBOSE=3 5 | export DNS_PARSER=OS 6 | 7 | cd "$( dirname "$0" )" 8 | make -C .. clean 9 | 10 | BINDIR="../bin" 11 | MANDIR="../man" 12 | cd ../src 13 | 14 | MAKEFLAGS="-B -j`nproc`" 15 | 16 | export CC=gcc 17 | CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 18 | LF="-lresolv -Wl,-z,norelro,--hash-style=gnu,--build-id=none" 19 | 20 | export PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-10.1-x64-glibc 21 | export CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-10.1-x64-glibc 22 | export MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-10.1-x64-glibc 23 | 24 | make $MAKEFLAGS CFLAGS="$CF -m64" LDFLAGS="$LF" CAT=2 allmulti 25 | 26 | cp -af ../etc/vlmcsd.kmd /usr/local/sbin 27 | cp -af $PROGRAM_NAME /usr/local/sbin/vlmcsd 28 | cp -af $CLIENT_NAME /usr/local/bin/vlmcs 29 | 30 | export PROGRAM_NAME=$BINDIR/vlmcsd-FreeBSD-10.1-x86-glibc 31 | export CLIENT_NAME=$BINDIR/vlmcs-FreeBSD-10.1-x86-glibc 32 | export MULTI_NAME=$BINDIR/vlmcsdmulti-FreeBSD-10.1-x86-glibc 33 | 34 | make $MAKEFLAGS CFLAGS="$CF -m32" LDFLAGS="$LF" CAT=2 allmulti 35 | 36 | cd $BINDIR 37 | 38 | sstrip -z * 39 | 40 | cd $MANDIR 41 | 42 | # Copy man pages 43 | mkdir -p /usr/local/man/man1 2>/dev/null 44 | mkdir -p /usr/local/man/man5 2>/dev/null 45 | mkdir -p /usr/local/man/man8 2>/dev/null 46 | mkdir -p /usr/local/man/man7 2>/dev/null 47 | cp -af vlmcs.1 vlmcsdmulti.1 /usr/local/man/man1/ 48 | cp -af vlmcsd.7 /usr/local/man/man7/ 49 | cp -af vlmcsd.8 /usr/local/man/man8/ 50 | cp -af vlmcsd.ini.5 /usr/local/man/man5/ 51 | bzip2 -f -9 /usr/local/man/man5/vlmcsd.ini.5 /usr/local/man/man1/vlmcs.1 /usr/local/man/man1/vlmcsdmulti.1 /usr/local/man/man7/vlmcsd.7 /usr/local/man/man8/vlmcsd.8 52 | 53 | cd $BINDIR 54 | 55 | # Copy everything to distribution server 56 | scp -p * root@ubuntu64.internal:x/binaries/FreeBSD/intel/ 57 | 58 | -------------------------------------------------------------------------------- /hotbird64-mass-build/make_minix: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd ~/vlmcsd/hotbird64-mass-build 4 | 5 | export VLMCSD_VERSION=$(git describe) 6 | 7 | BINDIR="bin" 8 | cd .. 9 | 10 | # Compile vlmcsd binaries for Minix 3 11 | 12 | SUFFIX=-minix-$(uname -r)-x86 13 | export CC=clang 14 | export CFLAGS="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 15 | export LDFLAGS="-Wl,--hash-style=sysv -Wl,-z,norelro -Wl,--build-id=none" 16 | export PROGRAM_NAME=$BINDIR/vlmcsd$SUFFIX 17 | export CLIENT_NAME=$BINDIR/vlmcs$SUFFIX 18 | export MULTI_NAME=$BINDIR/vlmcsdmulti$SUFFIX 19 | 20 | gmake clean 21 | gmake -B allmulti 22 | 23 | #strip -s --strip-unneeded --remove-section .eh_frame_hdr --remove-section .eh_frame --remove-section .ident --remove-section .note.minix.ident --remove-section .note.netbsd.pax --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag $BINDIR/*$SUFFIX 24 | 25 | scp -p $BINDIR/* root@ubuntu64.internal:x/binaries/Minix/intel/ 26 | -------------------------------------------------------------------------------- /hotbird64-mass-build/make_netbsd: -------------------------------------------------------------------------------- 1 | #!/usr/pkg/bin/bash 2 | 3 | export VLMCSD_VERSION=$(git describe) 4 | export VERBOSE=3 5 | export DNS_PARSER=OS 6 | 7 | cd "$( dirname "$0" )" 8 | gmake -C .. clean 9 | 10 | BINDIR="../bin" 11 | cd ../src 12 | 13 | MAKEFLAGS="-B -j12" 14 | REUSEOBJFLAGS="-j12" 15 | 16 | CF="-flto=12 -static-libgcc -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 17 | CF45="-flto=12 -static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 18 | CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 19 | LF="-Wl,-z,norelro -Wl,--hash-style=sysv -Wl,--build-id=none" 20 | LFCLANG="-Wl,-z,norelro -Wl,--hash-style=sysv" 21 | 22 | gmake $MAKEFLAGS CC=/usr/pkg/gcc7/bin/gcc PROGRAM_NAME=$BINDIR/vlmcsd-NetBSD-x64 CLIENT_NAME=$BINDIR/vlmcs-NetBSD-x64 MULTI_NAME=$BINDIR/vlmcsdmulti-NetBSD-x64 allmulti CFLAGS="$CF" LDFLAGS="$LF" 23 | 24 | gmake allmulti CC=gcc $MAKEFLAGS CAT=2 MULTI_NAME=$BINDIR/vlmcsdmulti-NetBSD-x86 PROGRAM_NAME=$BINDIR/vlmcsd-NetBSD-x86 CLIENT_NAME=$BINDIR/vlmcs-NetBSD-x86 CFLAGS="$CF45 -m32" LDFLAGS="$LF" 25 | 26 | #gmake $MAKEFLAGS CC=clang PROGRAM_NAME=vlmcsd-NetBSD-x64-clang CLIENT_NAME=vlmcs-NetBSD-x64-clang CFLAGS="$CFCLANG" LDFLAGS="$LFCLANG" 27 | 28 | cd $BINDIR 29 | 30 | strip -s --strip-unneeded -R .ident -R .got -R .note.netbsd.pax -R .gnu.version -R .eh_frame -R .note.gnu.gold-version -R .comment -R .note -R .note.gnu.build-id -R .note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-* 31 | #sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-* 32 | 33 | cp -af vlmcsd-NetBSD-x86 /usr/local/sbin/vlmcsd 34 | cp -af vlmcs-NetBSD-x86 /usr/local/bin/vlmcs 35 | 36 | # Copy everything to distribution server 37 | scp -p vlmcsdmulti-* vlmcsd-Net* vlmcs-* root@ubuntu64:x/binaries/NetBSD/intel/ 38 | -------------------------------------------------------------------------------- /hotbird64-mass-build/make_openbsd: -------------------------------------------------------------------------------- 1 | #!/usr/local/bin/bash 2 | 3 | export VLMCSD_VERSION=$(git describe) 4 | export VERBOSE=3 5 | export DNS_PARSER=OS 6 | 7 | cd "$( dirname "$0" )" 8 | gmake -C .. clean 9 | 10 | cd ../src 11 | BINDIR="../bin" 12 | 13 | MAKEFLAGS="-B -j12" 14 | REUSEOBJFLAGS="-j12" 15 | 16 | CF="-static-libgcc -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 17 | CF45="-static-libgcc -pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 18 | CFCLANG="-pipe -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -fno-asynchronous-unwind-tables -fmerge-all-constants" 19 | LF="-lpthread -Wl,-z,norelro" 20 | LFCLANG="-lpthread -Wl,-z,norelro" 21 | 22 | gmake -Bj12 allmulti $MAKEFLAGS CC=egcc THREADS=1 MULTI_NAME=$BINDIR/vlmcsdmulti-OpenBSD-x64 PROGRAM_NAME=$BINDIR/vlmcsd-OpenBSD-x64 CLIENT_NAME=$BINDIR/vlmcs-OpenBSD-x64 CFLAGS="$CF" LDFLAGS="$LF" 23 | 24 | #gmake allmulti $MAKEFLAGS CAT=2 MULTI_NAME=vlmcsdmulti-OpenBSD-x86 PROGRAM_NAME=vlmcsd-OpenBSD-x86 CLIENT_NAME=vlmcs-OpenBSD-x86 CFLAGS="$CF45 -m32" LDFLAGS="$LF" 25 | 26 | #gmake $MAKEFLAGS CC=clang PROGRAM_NAME=vlmcsd-OpenBSD-x64-clang CLIENT_NAME=vlmcs-OpenBSD-x64-clang CFLAGS="$CFCLANG" LDFLAGS="$LFCLANG" 27 | 28 | cd $BINDIR 29 | 30 | strip -s --strip-unneeded --remove-section=.eh_frame_hdr --remove-section=.eh_frame --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag vlmcs-* vlmcsd-* vlmcsdmulti-* 31 | #sstrip -z vlmcs-* vlmcsd-* vlmcsdmulti-* 32 | 33 | cp -f ../etc/vlmcsd.kmd /etc 34 | cp -f vlmcsd-OpenBSD-x64 /usr/local/sbin/vlmcsd 35 | cp -f vlmcs-OpenBSD-x64 /usr/local/bin/vlmcs 36 | 37 | # Copy everything to distribution server 38 | scp -p vlmcsdmulti-* vlmcsd-Open* vlmcs-* root@ubuntu64:x/binaries/OpenBSD/intel/ 39 | -------------------------------------------------------------------------------- /hotbird64-mass-build/strip_binaries: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | cd "$( dirname "${BASH_SOURCE[0]}" )" 4 | 5 | find ../binaries/ -xdev -name 'vlmcs*' ! -name '*-NetBSD-*' ! -name '*-Windows-*' ! -name '*-cygwin-*' ! -name '*-MacOSX-*' ! -name '*-iOS-*' -exec sstrip -z {} \; 6 | -------------------------------------------------------------------------------- /lib/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /man/GNUmakefile: -------------------------------------------------------------------------------- 1 | ################################################################################ 2 | 3 | .PHONY: clean 4 | 5 | 6 | PDFDOCS = vlmcs.1.pdf vlmcsd.7.pdf vlmcsd.8.pdf vlmcsdmulti.1.pdf vlmcsd.ini.5.pdf vlmcsd-floppy.7.pdf 7 | HTMLDOCS = $(PDFDOCS:.pdf=.html) 8 | UNIXDOCS = $(PDFDOCS:.pdf=.unix.txt) 9 | DOSDOCS = $(PDFDOCS:.pdf=.dos.txt) 10 | 11 | %.pdf : % 12 | ifeq ($(shell uname), Darwin) 13 | groff -Tps -mandoc -c $< | pstopdf -i -o $@ 14 | else 15 | groff -Tpdf -mandoc -c $< > $@ 16 | endif 17 | 18 | %.html : % 19 | groff -Thtml -mandoc -c $< > $@ 20 | 21 | %.unix.txt : % 22 | groff -P -c -Tascii -mandoc -c $< | col -bx > $@ 23 | 24 | %.dos.txt : %.unix.txt 25 | # unix2dos -n $< $@ 26 | # sed -e 's/$$/\r/' $< > $@ 27 | awk 'sub("$$", "\r")' $< > $@ 28 | 29 | alldocs : $(UNIXDOCS) $(HTMLDOCS) $(PDFDOCS) $(DOSDOCS) 30 | 31 | pdfdocs : $(PDFDOCS) 32 | 33 | dosdocs : $(DOSDOCS) 34 | 35 | unixdocs : $(UNIXDOCS) 36 | 37 | htmldocs : $(HTMLDOCS) 38 | 39 | clean: 40 | rm -f $(PDFDOCS) $(DOSDOCS) $(UNIXDOCS) $(HTMLDOCS) 41 | 42 | help: 43 | @echo "Help is available by typing 'make help' in directory $(shell realpath `pwd`/..). Use 'cd ..' to get there." 44 | 45 | -------------------------------------------------------------------------------- /src/KMSServer.idl: -------------------------------------------------------------------------------- 1 | [ 2 | uuid(51C82175-844E-4750-B0D8-EC255555BC06), 3 | version(1.0), 4 | ] 5 | interface KMSServer 6 | { 7 | int RequestActivation 8 | ( 9 | [in] int requestSize, 10 | [in, size_is(requestSize)] unsigned char* request, 11 | [out] int* responseSize, 12 | [out, size_is( , *responseSize)] unsigned char** response 13 | ); 14 | } -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/_G_config.h: -------------------------------------------------------------------------------- 1 | /* This file is needed by libio to define various configuration parameters. 2 | These are always the same in the GNU C library. */ 3 | 4 | #ifndef _G_config_h 5 | #define _G_config_h 1 6 | 7 | /* Define types for libio in terms of the standard internal type names. */ 8 | 9 | #include 10 | #define __need_size_t 11 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T 12 | # define __need_wchar_t 13 | #endif 14 | #define __need_NULL 15 | #include 16 | #define __need_mbstate_t 17 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T 18 | # define __need_wint_t 19 | #endif 20 | #include 21 | typedef struct 22 | { 23 | __off_t __pos; 24 | __mbstate_t __state; 25 | } _G_fpos_t; 26 | typedef struct 27 | { 28 | __off64_t __pos; 29 | __mbstate_t __state; 30 | } _G_fpos64_t; 31 | #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T 32 | # include 33 | typedef union 34 | { 35 | struct __gconv_info __cd; 36 | struct 37 | { 38 | struct __gconv_info __cd; 39 | struct __gconv_step_data __data; 40 | } __combined; 41 | } _G_iconv_t; 42 | #endif 43 | 44 | 45 | /* These library features are always available in the GNU C library. */ 46 | #define _G_va_list __gnuc_va_list 47 | 48 | #define _G_HAVE_MMAP 1 49 | #define _G_HAVE_MREMAP 1 50 | 51 | #define _G_IO_IO_FILE_VERSION 0x20001 52 | 53 | /* This is defined by if `st_blksize' exists. */ 54 | #define _G_HAVE_ST_BLKSIZE defined (_STATBUF_ST_BLKSIZE) 55 | 56 | #define _G_BUFSIZ 8192 57 | 58 | #endif /* _G_config.h */ 59 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/alloca.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1992-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _ALLOCA_H 19 | #define _ALLOCA_H 1 20 | 21 | #include 22 | 23 | #define __need_size_t 24 | #include 25 | 26 | __BEGIN_DECLS 27 | 28 | /* Remove any previous definitions. */ 29 | #undef alloca 30 | 31 | /* Allocate a block that will be freed when the calling function exits. */ 32 | extern void *alloca (size_t __size) __THROW; 33 | 34 | #ifdef __GNUC__ 35 | # define alloca(size) __builtin_alloca (size) 36 | #endif /* GCC. */ 37 | 38 | __END_DECLS 39 | 40 | #endif /* alloca.h */ 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/ar.h: -------------------------------------------------------------------------------- 1 | /* Header describing `ar' archive file format. 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _AR_H 20 | #define _AR_H 1 21 | 22 | #include 23 | 24 | /* Archive files start with the ARMAG identifying string. Then follows a 25 | `struct ar_hdr', and as many bytes of member file data as its `ar_size' 26 | member indicates, for each member file. */ 27 | 28 | #define ARMAG "!\n" /* String that begins an archive file. */ 29 | #define SARMAG 8 /* Size of that string. */ 30 | 31 | #define ARFMAG "`\n" /* String in ar_fmag at end of each header. */ 32 | 33 | __BEGIN_DECLS 34 | 35 | struct ar_hdr 36 | { 37 | char ar_name[16]; /* Member file name, sometimes / terminated. */ 38 | char ar_date[12]; /* File date, decimal seconds since Epoch. */ 39 | char ar_uid[6], ar_gid[6]; /* User and group IDs, in ASCII decimal. */ 40 | char ar_mode[8]; /* File mode, in ASCII octal. */ 41 | char ar_size[10]; /* File size, in ASCII decimal. */ 42 | char ar_fmag[2]; /* Always contains ARFMAG. */ 43 | }; 44 | 45 | __END_DECLS 46 | 47 | #endif /* ar.h */ 48 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/auxvec.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_AUXVEC_H 2 | #define __ASM_GENERIC_AUXVEC_H 3 | /* 4 | * Not all architectures need their own auxvec.h, the most 5 | * common definitions are already in linux/auxvec.h. 6 | */ 7 | 8 | #endif /* __ASM_GENERIC_AUXVEC_H */ 9 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_BITS_PER_LONG 2 | #define __ASM_GENERIC_BITS_PER_LONG 3 | 4 | /* 5 | * There seems to be no way of detecting this automatically from user 6 | * space, so 64 bit architectures should override this in their 7 | * bitsperlong.h. In particular, an architecture that supports 8 | * both 32 and 64 bit user space must not rely on CONFIG_64BIT 9 | * to decide it, but rather check a compiler provided macro. 10 | */ 11 | #ifndef __BITS_PER_LONG 12 | #define __BITS_PER_LONG 32 13 | #endif 14 | 15 | #endif /* __ASM_GENERIC_BITS_PER_LONG */ 16 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/errno-base.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_ERRNO_BASE_H 2 | #define _ASM_GENERIC_ERRNO_BASE_H 3 | 4 | #define EPERM 1 /* Operation not permitted */ 5 | #define ENOENT 2 /* No such file or directory */ 6 | #define ESRCH 3 /* No such process */ 7 | #define EINTR 4 /* Interrupted system call */ 8 | #define EIO 5 /* I/O error */ 9 | #define ENXIO 6 /* No such device or address */ 10 | #define E2BIG 7 /* Argument list too long */ 11 | #define ENOEXEC 8 /* Exec format error */ 12 | #define EBADF 9 /* Bad file number */ 13 | #define ECHILD 10 /* No child processes */ 14 | #define EAGAIN 11 /* Try again */ 15 | #define ENOMEM 12 /* Out of memory */ 16 | #define EACCES 13 /* Permission denied */ 17 | #define EFAULT 14 /* Bad address */ 18 | #define ENOTBLK 15 /* Block device required */ 19 | #define EBUSY 16 /* Device or resource busy */ 20 | #define EEXIST 17 /* File exists */ 21 | #define EXDEV 18 /* Cross-device link */ 22 | #define ENODEV 19 /* No such device */ 23 | #define ENOTDIR 20 /* Not a directory */ 24 | #define EISDIR 21 /* Is a directory */ 25 | #define EINVAL 22 /* Invalid argument */ 26 | #define ENFILE 23 /* File table overflow */ 27 | #define EMFILE 24 /* Too many open files */ 28 | #define ENOTTY 25 /* Not a typewriter */ 29 | #define ETXTBSY 26 /* Text file busy */ 30 | #define EFBIG 27 /* File too large */ 31 | #define ENOSPC 28 /* No space left on device */ 32 | #define ESPIPE 29 /* Illegal seek */ 33 | #define EROFS 30 /* Read-only file system */ 34 | #define EMLINK 31 /* Too many links */ 35 | #define EPIPE 32 /* Broken pipe */ 36 | #define EDOM 33 /* Math argument out of domain of func */ 37 | #define ERANGE 34 /* Math result not representable */ 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/int-l64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * asm-generic/int-l64.h 3 | * 4 | * Integer declarations for architectures which use "long" 5 | * for 64-bit types. 6 | */ 7 | 8 | #ifndef _ASM_GENERIC_INT_L64_H 9 | #define _ASM_GENERIC_INT_L64_H 10 | 11 | #include 12 | 13 | #ifndef __ASSEMBLY__ 14 | /* 15 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the 16 | * header files exported to user space 17 | */ 18 | 19 | typedef __signed__ char __s8; 20 | typedef unsigned char __u8; 21 | 22 | typedef __signed__ short __s16; 23 | typedef unsigned short __u16; 24 | 25 | typedef __signed__ int __s32; 26 | typedef unsigned int __u32; 27 | 28 | typedef __signed__ long __s64; 29 | typedef unsigned long __u64; 30 | 31 | #endif /* __ASSEMBLY__ */ 32 | 33 | 34 | #endif /* _ASM_GENERIC_INT_L64_H */ 35 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/int-ll64.h: -------------------------------------------------------------------------------- 1 | /* 2 | * asm-generic/int-ll64.h 3 | * 4 | * Integer declarations for architectures which use "long long" 5 | * for 64-bit types. 6 | */ 7 | 8 | #ifndef _ASM_GENERIC_INT_LL64_H 9 | #define _ASM_GENERIC_INT_LL64_H 10 | 11 | #include 12 | 13 | #ifndef __ASSEMBLY__ 14 | /* 15 | * __xx is ok: it doesn't pollute the POSIX namespace. Use these in the 16 | * header files exported to user space 17 | */ 18 | 19 | typedef __signed__ char __s8; 20 | typedef unsigned char __u8; 21 | 22 | typedef __signed__ short __s16; 23 | typedef unsigned short __u16; 24 | 25 | typedef __signed__ int __s32; 26 | typedef unsigned int __u32; 27 | 28 | #ifdef __GNUC__ 29 | __extension__ typedef __signed__ long long __s64; 30 | __extension__ typedef unsigned long long __u64; 31 | #else 32 | typedef __signed__ long long __s64; 33 | typedef unsigned long long __u64; 34 | #endif 35 | 36 | #endif /* __ASSEMBLY__ */ 37 | 38 | 39 | #endif /* _ASM_GENERIC_INT_LL64_H */ 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_IPCBUF_H 2 | #define __ASM_GENERIC_IPCBUF_H 3 | 4 | /* 5 | * The generic ipc64_perm structure: 6 | * Note extra padding because this structure is passed back and forth 7 | * between kernel and user space. 8 | * 9 | * ipc64_perm was originally meant to be architecture specific, but 10 | * everyone just ended up making identical copies without specific 11 | * optimizations, so we may just as well all use the same one. 12 | * 13 | * Pad space is left for: 14 | * - 32-bit mode_t on architectures that only had 16 bit 15 | * - 32-bit seq 16 | * - 2 miscellaneous 32-bit values 17 | */ 18 | 19 | struct ipc64_perm { 20 | __kernel_key_t key; 21 | __kernel_uid32_t uid; 22 | __kernel_gid32_t gid; 23 | __kernel_uid32_t cuid; 24 | __kernel_gid32_t cgid; 25 | __kernel_mode_t mode; 26 | /* pad if mode_t is u16: */ 27 | unsigned char __pad1[4 - sizeof(__kernel_mode_t)]; 28 | unsigned short seq; 29 | unsigned short __pad2; 30 | __kernel_ulong_t __unused1; 31 | __kernel_ulong_t __unused2; 32 | }; 33 | 34 | #endif /* __ASM_GENERIC_IPCBUF_H */ 35 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/kvm_para.h: -------------------------------------------------------------------------------- 1 | /* 2 | * There isn't anything here, but the file must not be empty or patch 3 | * will delete it. 4 | */ 5 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_MMAN_H 2 | #define __ASM_GENERIC_MMAN_H 3 | 4 | #include 5 | 6 | #define MAP_GROWSDOWN 0x0100 /* stack-like segment */ 7 | #define MAP_DENYWRITE 0x0800 /* ETXTBSY */ 8 | #define MAP_EXECUTABLE 0x1000 /* mark it as an executable */ 9 | #define MAP_LOCKED 0x2000 /* pages are locked */ 10 | #define MAP_NORESERVE 0x4000 /* don't check for reservations */ 11 | #define MAP_POPULATE 0x8000 /* populate (prefault) pagetables */ 12 | #define MAP_NONBLOCK 0x10000 /* do not block on IO */ 13 | #define MAP_STACK 0x20000 /* give out an address that is best suited for process/thread stacks */ 14 | #define MAP_HUGETLB 0x40000 /* create a huge page mapping */ 15 | 16 | /* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */ 17 | 18 | #define MCL_CURRENT 1 /* lock all current mappings */ 19 | #define MCL_FUTURE 2 /* lock all future mappings */ 20 | #define MCL_ONFAULT 4 /* lock all pages that are faulted in */ 21 | 22 | #endif /* __ASM_GENERIC_MMAN_H */ 23 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/msgbuf.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_MSGBUF_H 2 | #define __ASM_GENERIC_MSGBUF_H 3 | 4 | #include 5 | /* 6 | * generic msqid64_ds structure. 7 | * 8 | * Note extra padding because this structure is passed back and forth 9 | * between kernel and user space. 10 | * 11 | * msqid64_ds was originally meant to be architecture specific, but 12 | * everyone just ended up making identical copies without specific 13 | * optimizations, so we may just as well all use the same one. 14 | * 15 | * 64 bit architectures typically define a 64 bit __kernel_time_t, 16 | * so they do not need the first three padding words. 17 | * On big-endian systems, the padding is in the wrong place. 18 | * 19 | * Pad space is left for: 20 | * - 64-bit time_t to solve y2038 problem 21 | * - 2 miscellaneous 32-bit values 22 | */ 23 | 24 | struct msqid64_ds { 25 | struct ipc64_perm msg_perm; 26 | __kernel_time_t msg_stime; /* last msgsnd time */ 27 | #if __BITS_PER_LONG != 64 28 | unsigned long __unused1; 29 | #endif 30 | __kernel_time_t msg_rtime; /* last msgrcv time */ 31 | #if __BITS_PER_LONG != 64 32 | unsigned long __unused2; 33 | #endif 34 | __kernel_time_t msg_ctime; /* last change time */ 35 | #if __BITS_PER_LONG != 64 36 | unsigned long __unused3; 37 | #endif 38 | __kernel_ulong_t msg_cbytes; /* current number of bytes on queue */ 39 | __kernel_ulong_t msg_qnum; /* number of messages in queue */ 40 | __kernel_ulong_t msg_qbytes; /* max number of bytes on queue */ 41 | __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 42 | __kernel_pid_t msg_lrpid; /* last receive pid */ 43 | __kernel_ulong_t __unused4; 44 | __kernel_ulong_t __unused5; 45 | }; 46 | 47 | #endif /* __ASM_GENERIC_MSGBUF_H */ 48 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/param.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_PARAM_H 2 | #define __ASM_GENERIC_PARAM_H 3 | 4 | #ifndef HZ 5 | #define HZ 100 6 | #endif 7 | 8 | #ifndef EXEC_PAGESIZE 9 | #define EXEC_PAGESIZE 4096 10 | #endif 11 | 12 | #ifndef NOGROUP 13 | #define NOGROUP (-1) 14 | #endif 15 | 16 | #define MAXHOSTNAMELEN 64 /* max length of hostname */ 17 | 18 | 19 | #endif /* __ASM_GENERIC_PARAM_H */ 20 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/poll.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_POLL_H 2 | #define __ASM_GENERIC_POLL_H 3 | 4 | /* These are specified by iBCS2 */ 5 | #define POLLIN 0x0001 6 | #define POLLPRI 0x0002 7 | #define POLLOUT 0x0004 8 | #define POLLERR 0x0008 9 | #define POLLHUP 0x0010 10 | #define POLLNVAL 0x0020 11 | 12 | /* The rest seem to be more-or-less nonstandard. Check them! */ 13 | #define POLLRDNORM 0x0040 14 | #define POLLRDBAND 0x0080 15 | #ifndef POLLWRNORM 16 | #define POLLWRNORM 0x0100 17 | #endif 18 | #ifndef POLLWRBAND 19 | #define POLLWRBAND 0x0200 20 | #endif 21 | #ifndef POLLMSG 22 | #define POLLMSG 0x0400 23 | #endif 24 | #ifndef POLLREMOVE 25 | #define POLLREMOVE 0x1000 26 | #endif 27 | #ifndef POLLRDHUP 28 | #define POLLRDHUP 0x2000 29 | #endif 30 | 31 | #define POLLFREE 0x4000 /* currently only for epoll */ 32 | 33 | #define POLL_BUSY_LOOP 0x8000 34 | 35 | struct pollfd { 36 | int fd; 37 | short events; 38 | short revents; 39 | }; 40 | 41 | #endif /* __ASM_GENERIC_POLL_H */ 42 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/sembuf.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SEMBUF_H 2 | #define __ASM_GENERIC_SEMBUF_H 3 | 4 | #include 5 | 6 | /* 7 | * The semid64_ds structure for x86 architecture. 8 | * Note extra padding because this structure is passed back and forth 9 | * between kernel and user space. 10 | * 11 | * semid64_ds was originally meant to be architecture specific, but 12 | * everyone just ended up making identical copies without specific 13 | * optimizations, so we may just as well all use the same one. 14 | * 15 | * 64 bit architectures typically define a 64 bit __kernel_time_t, 16 | * so they do not need the first two padding words. 17 | * On big-endian systems, the padding is in the wrong place. 18 | * 19 | * Pad space is left for: 20 | * - 64-bit time_t to solve y2038 problem 21 | * - 2 miscellaneous 32-bit values 22 | */ 23 | struct semid64_ds { 24 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 25 | __kernel_time_t sem_otime; /* last semop time */ 26 | #if __BITS_PER_LONG != 64 27 | unsigned long __unused1; 28 | #endif 29 | __kernel_time_t sem_ctime; /* last change time */ 30 | #if __BITS_PER_LONG != 64 31 | unsigned long __unused2; 32 | #endif 33 | unsigned long sem_nsems; /* no. of semaphores in array */ 34 | unsigned long __unused3; 35 | unsigned long __unused4; 36 | }; 37 | 38 | #endif /* __ASM_GENERIC_SEMBUF_H */ 39 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/setup.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SETUP_H 2 | #define __ASM_GENERIC_SETUP_H 3 | 4 | #define COMMAND_LINE_SIZE 512 5 | 6 | #endif /* __ASM_GENERIC_SETUP_H */ 7 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/shmparam.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SHMPARAM_H 2 | #define __ASM_GENERIC_SHMPARAM_H 3 | 4 | #define SHMLBA PAGE_SIZE /* attach addr a multiple of this */ 5 | 6 | #endif /* _ASM_GENERIC_SHMPARAM_H */ 7 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/signal-defs.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SIGNAL_DEFS_H 2 | #define __ASM_GENERIC_SIGNAL_DEFS_H 3 | 4 | 5 | 6 | #ifndef SIG_BLOCK 7 | #define SIG_BLOCK 0 /* for blocking signals */ 8 | #endif 9 | #ifndef SIG_UNBLOCK 10 | #define SIG_UNBLOCK 1 /* for unblocking signals */ 11 | #endif 12 | #ifndef SIG_SETMASK 13 | #define SIG_SETMASK 2 /* for setting the signal mask */ 14 | #endif 15 | 16 | #ifndef __ASSEMBLY__ 17 | typedef void __signalfn_t(int); 18 | typedef __signalfn_t *__sighandler_t; 19 | 20 | typedef void __restorefn_t(void); 21 | typedef __restorefn_t *__sigrestore_t; 22 | 23 | #define SIG_DFL ((__sighandler_t)0) /* default signal handling */ 24 | #define SIG_IGN ((__sighandler_t)1) /* ignore signal */ 25 | #define SIG_ERR ((__sighandler_t)-1) /* error return from signal */ 26 | #endif 27 | 28 | #endif /* __ASM_GENERIC_SIGNAL_DEFS_H */ 29 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/sockios.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_SOCKIOS_H 2 | #define __ASM_GENERIC_SOCKIOS_H 3 | 4 | /* Socket-level I/O control calls. */ 5 | #define FIOSETOWN 0x8901 6 | #define SIOCSPGRP 0x8902 7 | #define FIOGETOWN 0x8903 8 | #define SIOCGPGRP 0x8904 9 | #define SIOCATMARK 0x8905 10 | #define SIOCGSTAMP 0x8906 /* Get stamp (timeval) */ 11 | #define SIOCGSTAMPNS 0x8907 /* Get stamp (timespec) */ 12 | 13 | #endif /* __ASM_GENERIC_SOCKIOS_H */ 14 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/swab.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_SWAB_H 2 | #define _ASM_GENERIC_SWAB_H 3 | 4 | #include 5 | 6 | /* 7 | * 32 bit architectures typically (but not always) want to 8 | * set __SWAB_64_THRU_32__. In user space, this is only 9 | * valid if the compiler supports 64 bit data types. 10 | */ 11 | 12 | #if __BITS_PER_LONG == 32 13 | #if defined(__GNUC__) && !defined(__STRICT_ANSI__) || defined(__KERNEL__) 14 | #define __SWAB_64_THRU_32__ 15 | #endif 16 | #endif 17 | 18 | #endif /* _ASM_GENERIC_SWAB_H */ 19 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/termios.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_TERMIOS_H 2 | #define _ASM_GENERIC_TERMIOS_H 3 | /* 4 | * Most architectures have straight copies of the x86 code, with 5 | * varying levels of bug fixes on top. Usually it's a good idea 6 | * to use this generic version instead, but be careful to avoid 7 | * ABI changes. 8 | * New architectures should not provide their own version. 9 | */ 10 | 11 | #include 12 | #include 13 | 14 | struct winsize { 15 | unsigned short ws_row; 16 | unsigned short ws_col; 17 | unsigned short ws_xpixel; 18 | unsigned short ws_ypixel; 19 | }; 20 | 21 | #define NCC 8 22 | struct termio { 23 | unsigned short c_iflag; /* input mode flags */ 24 | unsigned short c_oflag; /* output mode flags */ 25 | unsigned short c_cflag; /* control mode flags */ 26 | unsigned short c_lflag; /* local mode flags */ 27 | unsigned char c_line; /* line discipline */ 28 | unsigned char c_cc[NCC]; /* control characters */ 29 | }; 30 | 31 | /* modem lines */ 32 | #define TIOCM_LE 0x001 33 | #define TIOCM_DTR 0x002 34 | #define TIOCM_RTS 0x004 35 | #define TIOCM_ST 0x008 36 | #define TIOCM_SR 0x010 37 | #define TIOCM_CTS 0x020 38 | #define TIOCM_CAR 0x040 39 | #define TIOCM_RNG 0x080 40 | #define TIOCM_DSR 0x100 41 | #define TIOCM_CD TIOCM_CAR 42 | #define TIOCM_RI TIOCM_RNG 43 | #define TIOCM_OUT1 0x2000 44 | #define TIOCM_OUT2 0x4000 45 | #define TIOCM_LOOP 0x8000 46 | 47 | /* ioctl (fd, TIOCSERGETLSR, &result) where result may be as below */ 48 | 49 | 50 | #endif /* _ASM_GENERIC_TERMIOS_H */ 51 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_GENERIC_TYPES_H 2 | #define _ASM_GENERIC_TYPES_H 3 | /* 4 | * int-ll64 is used everywhere now. 5 | */ 6 | #include 7 | 8 | #endif /* _ASM_GENERIC_TYPES_H */ 9 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm-generic/ucontext.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_GENERIC_UCONTEXT_H 2 | #define __ASM_GENERIC_UCONTEXT_H 3 | 4 | struct ucontext { 5 | unsigned long uc_flags; 6 | struct ucontext *uc_link; 7 | stack_t uc_stack; 8 | struct sigcontext uc_mcontext; 9 | sigset_t uc_sigmask; /* mask last for extensibility */ 10 | }; 11 | 12 | #endif /* __ASM_GENERIC_UCONTEXT_H */ 13 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/a.out.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_A_OUT_H 2 | #define _ASM_X86_A_OUT_H 3 | 4 | struct exec 5 | { 6 | unsigned int a_info; /* Use macros N_MAGIC, etc for access */ 7 | unsigned a_text; /* length of text, in bytes */ 8 | unsigned a_data; /* length of data, in bytes */ 9 | unsigned a_bss; /* length of uninitialized data area for file, in bytes */ 10 | unsigned a_syms; /* length of symbol table data in file, in bytes */ 11 | unsigned a_entry; /* start address */ 12 | unsigned a_trsize; /* length of relocation info for text, in bytes */ 13 | unsigned a_drsize; /* length of relocation info for data, in bytes */ 14 | }; 15 | 16 | #define N_TRSIZE(a) ((a).a_trsize) 17 | #define N_DRSIZE(a) ((a).a_drsize) 18 | #define N_SYMSIZE(a) ((a).a_syms) 19 | 20 | #endif /* _ASM_X86_A_OUT_H */ 21 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/auxvec.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_AUXVEC_H 2 | #define _ASM_X86_AUXVEC_H 3 | /* 4 | * Architecture-neutral AT_ values in 0-17, leave some room 5 | * for more of them, start the x86-specific ones at 32. 6 | */ 7 | #ifdef __i386__ 8 | #define AT_SYSINFO 32 9 | #endif 10 | #define AT_SYSINFO_EHDR 33 11 | 12 | /* entries in ARCH_DLINFO: */ 13 | #if defined(CONFIG_IA32_EMULATION) || !defined(CONFIG_X86_64) 14 | # define AT_VECTOR_SIZE_ARCH 2 15 | #else /* else it's non-compat x86-64 */ 16 | # define AT_VECTOR_SIZE_ARCH 1 17 | #endif 18 | 19 | #endif /* _ASM_X86_AUXVEC_H */ 20 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/bitsperlong.h: -------------------------------------------------------------------------------- 1 | #ifndef __ASM_X86_BITSPERLONG_H 2 | #define __ASM_X86_BITSPERLONG_H 3 | 4 | #if defined(__x86_64__) && !defined(__ILP32__) 5 | # define __BITS_PER_LONG 64 6 | #else 7 | # define __BITS_PER_LONG 32 8 | #endif 9 | 10 | #include 11 | 12 | #endif /* __ASM_X86_BITSPERLONG_H */ 13 | 14 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/boot.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_BOOT_H 2 | #define _ASM_X86_BOOT_H 3 | 4 | /* Internal svga startup constants */ 5 | #define NORMAL_VGA 0xffff /* 80x25 mode */ 6 | #define EXTENDED_VGA 0xfffe /* 80x50 mode */ 7 | #define ASK_VGA 0xfffd /* ask for it at bootup */ 8 | 9 | 10 | #endif /* _ASM_X86_BOOT_H */ 11 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/byteorder.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_BYTEORDER_H 2 | #define _ASM_X86_BYTEORDER_H 3 | 4 | #include 5 | 6 | #endif /* _ASM_X86_BYTEORDER_H */ 7 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/hw_breakpoint.h: -------------------------------------------------------------------------------- 1 | /* */ 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ioctl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ioctls.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ipcbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ist.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Include file for the interface to IST BIOS 3 | * Copyright 2002 Andy Grover 4 | * 5 | * This program is free software; you can redistribute it and/or modify it 6 | * under the terms of the GNU General Public License as published by the 7 | * Free Software Foundation; either version 2, or (at your option) any 8 | * later version. 9 | * 10 | * This program is distributed in the hope that it will be useful, but 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | * General Public License for more details. 14 | */ 15 | #ifndef _ASM_X86_IST_H 16 | #define _ASM_X86_IST_H 17 | 18 | 19 | 20 | #include 21 | 22 | struct ist_info { 23 | __u32 signature; 24 | __u32 command; 25 | __u32 event; 26 | __u32 perf_level; 27 | }; 28 | 29 | #endif /* _ASM_X86_IST_H */ 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/kvm_perf.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_KVM_PERF_H 2 | #define _ASM_X86_KVM_PERF_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | #define DECODE_STR_LEN 20 9 | 10 | #define VCPU_ID "vcpu_id" 11 | 12 | #define KVM_ENTRY_TRACE "kvm:kvm_entry" 13 | #define KVM_EXIT_TRACE "kvm:kvm_exit" 14 | #define KVM_EXIT_REASON "exit_reason" 15 | 16 | #endif /* _ASM_X86_KVM_PERF_H */ 17 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ldt.h: -------------------------------------------------------------------------------- 1 | /* 2 | * ldt.h 3 | * 4 | * Definitions of structures used with the modify_ldt system call. 5 | */ 6 | #ifndef _ASM_X86_LDT_H 7 | #define _ASM_X86_LDT_H 8 | 9 | /* Maximum number of LDT entries supported. */ 10 | #define LDT_ENTRIES 8192 11 | /* The size of each LDT entry. */ 12 | #define LDT_ENTRY_SIZE 8 13 | 14 | #ifndef __ASSEMBLY__ 15 | /* 16 | * Note on 64bit base and limit is ignored and you cannot set DS/ES/CS 17 | * not to the default values if you still want to do syscalls. This 18 | * call is more for 32bit mode therefore. 19 | */ 20 | struct user_desc { 21 | unsigned int entry_number; 22 | unsigned int base_addr; 23 | unsigned int limit; 24 | unsigned int seg_32bit:1; 25 | unsigned int contents:2; 26 | unsigned int read_exec_only:1; 27 | unsigned int limit_in_pages:1; 28 | unsigned int seg_not_present:1; 29 | unsigned int useable:1; 30 | #ifdef __x86_64__ 31 | /* 32 | * Because this bit is not present in 32-bit user code, user 33 | * programs can pass uninitialized values here. Therefore, in 34 | * any context in which a user_desc comes from a 32-bit program, 35 | * the kernel must act as though lm == 0, regardless of the 36 | * actual value. 37 | */ 38 | unsigned int lm:1; 39 | #endif 40 | }; 41 | 42 | #define MODIFY_LDT_CONTENTS_DATA 0 43 | #define MODIFY_LDT_CONTENTS_STACK 1 44 | #define MODIFY_LDT_CONTENTS_CODE 2 45 | 46 | #endif /* !__ASSEMBLY__ */ 47 | #endif /* _ASM_X86_LDT_H */ 48 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/mce.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_MCE_H 2 | #define _ASM_X86_MCE_H 3 | 4 | #include 5 | #include 6 | 7 | /* Fields are zero when not available */ 8 | struct mce { 9 | __u64 status; 10 | __u64 misc; 11 | __u64 addr; 12 | __u64 mcgstatus; 13 | __u64 ip; 14 | __u64 tsc; /* cpu time stamp counter */ 15 | __u64 time; /* wall time_t when error was detected */ 16 | __u8 cpuvendor; /* cpu vendor as encoded in system.h */ 17 | __u8 inject_flags; /* software inject flags */ 18 | __u8 severity; 19 | __u8 usable_addr; 20 | __u32 cpuid; /* CPUID 1 EAX */ 21 | __u8 cs; /* code segment */ 22 | __u8 bank; /* machine check bank */ 23 | __u8 cpu; /* cpu number; obsolete; use extcpu now */ 24 | __u8 finished; /* entry is valid */ 25 | __u32 extcpu; /* linux cpu number that detected the error */ 26 | __u32 socketid; /* CPU socket ID */ 27 | __u32 apicid; /* CPU initial apic ID */ 28 | __u64 mcgcap; /* MCGCAP MSR: machine check capabilities of CPU */ 29 | }; 30 | 31 | #define MCE_GET_RECORD_LEN _IOR('M', 1, int) 32 | #define MCE_GET_LOG_LEN _IOR('M', 2, int) 33 | #define MCE_GETCLEAR_FLAGS _IOR('M', 3, int) 34 | 35 | #endif /* _ASM_X86_MCE_H */ 36 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/mman.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_MMAN_H 2 | #define _ASM_X86_MMAN_H 3 | 4 | #define MAP_32BIT 0x40 /* only give out 32bit addresses */ 5 | 6 | #define MAP_HUGE_2MB (21 << MAP_HUGE_SHIFT) 7 | #define MAP_HUGE_1GB (30 << MAP_HUGE_SHIFT) 8 | 9 | #include 10 | 11 | #endif /* _ASM_X86_MMAN_H */ 12 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/msgbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/msr.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_MSR_H 2 | #define _ASM_X86_MSR_H 3 | 4 | #ifndef __ASSEMBLY__ 5 | 6 | #include 7 | #include 8 | 9 | #define X86_IOC_RDMSR_REGS _IOWR('c', 0xA0, __u32[8]) 10 | #define X86_IOC_WRMSR_REGS _IOWR('c', 0xA1, __u32[8]) 11 | 12 | #endif /* __ASSEMBLY__ */ 13 | #endif /* _ASM_X86_MSR_H */ 14 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/param.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/perf_regs.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_PERF_REGS_H 2 | #define _ASM_X86_PERF_REGS_H 3 | 4 | enum perf_event_x86_regs { 5 | PERF_REG_X86_AX, 6 | PERF_REG_X86_BX, 7 | PERF_REG_X86_CX, 8 | PERF_REG_X86_DX, 9 | PERF_REG_X86_SI, 10 | PERF_REG_X86_DI, 11 | PERF_REG_X86_BP, 12 | PERF_REG_X86_SP, 13 | PERF_REG_X86_IP, 14 | PERF_REG_X86_FLAGS, 15 | PERF_REG_X86_CS, 16 | PERF_REG_X86_SS, 17 | PERF_REG_X86_DS, 18 | PERF_REG_X86_ES, 19 | PERF_REG_X86_FS, 20 | PERF_REG_X86_GS, 21 | PERF_REG_X86_R8, 22 | PERF_REG_X86_R9, 23 | PERF_REG_X86_R10, 24 | PERF_REG_X86_R11, 25 | PERF_REG_X86_R12, 26 | PERF_REG_X86_R13, 27 | PERF_REG_X86_R14, 28 | PERF_REG_X86_R15, 29 | 30 | PERF_REG_X86_32_MAX = PERF_REG_X86_GS + 1, 31 | PERF_REG_X86_64_MAX = PERF_REG_X86_R15 + 1, 32 | }; 33 | #endif /* _ASM_X86_PERF_REGS_H */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/posix_types.h: -------------------------------------------------------------------------------- 1 | # ifdef __i386__ 2 | # include 3 | # elif defined(__ILP32__) 4 | # include 5 | # else 6 | # include 7 | # endif 8 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/posix_types_32.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_POSIX_TYPES_32_H 2 | #define _ASM_X86_POSIX_TYPES_32_H 3 | 4 | /* 5 | * This file is generally used by user-level software, so you need to 6 | * be a little careful about namespace pollution etc. Also, we cannot 7 | * assume GCC is being used. 8 | */ 9 | 10 | typedef unsigned short __kernel_mode_t; 11 | #define __kernel_mode_t __kernel_mode_t 12 | 13 | typedef unsigned short __kernel_ipc_pid_t; 14 | #define __kernel_ipc_pid_t __kernel_ipc_pid_t 15 | 16 | typedef unsigned short __kernel_uid_t; 17 | typedef unsigned short __kernel_gid_t; 18 | #define __kernel_uid_t __kernel_uid_t 19 | 20 | typedef unsigned short __kernel_old_dev_t; 21 | #define __kernel_old_dev_t __kernel_old_dev_t 22 | 23 | #include 24 | 25 | #endif /* _ASM_X86_POSIX_TYPES_32_H */ 26 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/posix_types_64.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_POSIX_TYPES_64_H 2 | #define _ASM_X86_POSIX_TYPES_64_H 3 | 4 | /* 5 | * This file is generally used by user-level software, so you need to 6 | * be a little careful about namespace pollution etc. Also, we cannot 7 | * assume GCC is being used. 8 | */ 9 | 10 | typedef unsigned short __kernel_old_uid_t; 11 | typedef unsigned short __kernel_old_gid_t; 12 | #define __kernel_old_uid_t __kernel_old_uid_t 13 | 14 | typedef unsigned long __kernel_old_dev_t; 15 | #define __kernel_old_dev_t __kernel_old_dev_t 16 | 17 | #include 18 | 19 | #endif /* _ASM_X86_POSIX_TYPES_64_H */ 20 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/posix_types_x32.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_POSIX_TYPES_X32_H 2 | #define _ASM_X86_POSIX_TYPES_X32_H 3 | 4 | /* 5 | * This file is only used by user-level software, so you need to 6 | * be a little careful about namespace pollution etc. Also, we cannot 7 | * assume GCC is being used. 8 | * 9 | * These types should generally match the ones used by the 64-bit kernel, 10 | * 11 | */ 12 | 13 | typedef long long __kernel_long_t; 14 | typedef unsigned long long __kernel_ulong_t; 15 | #define __kernel_long_t __kernel_long_t 16 | 17 | #include 18 | 19 | #endif /* _ASM_X86_POSIX_TYPES_X32_H */ 20 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/prctl.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_PRCTL_H 2 | #define _ASM_X86_PRCTL_H 3 | 4 | #define ARCH_SET_GS 0x1001 5 | #define ARCH_SET_FS 0x1002 6 | #define ARCH_GET_FS 0x1003 7 | #define ARCH_GET_GS 0x1004 8 | 9 | #endif /* _ASM_X86_PRCTL_H */ 10 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ptrace.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_PTRACE_H 2 | #define _ASM_X86_PTRACE_H 3 | 4 | /* For */ 5 | #include 6 | #include 7 | 8 | 9 | #ifndef __ASSEMBLY__ 10 | 11 | #ifdef __i386__ 12 | /* this struct defines the way the registers are stored on the 13 | stack during a system call. */ 14 | 15 | 16 | struct pt_regs { 17 | long ebx; 18 | long ecx; 19 | long edx; 20 | long esi; 21 | long edi; 22 | long ebp; 23 | long eax; 24 | int xds; 25 | int xes; 26 | int xfs; 27 | int xgs; 28 | long orig_eax; 29 | long eip; 30 | int xcs; 31 | long eflags; 32 | long esp; 33 | int xss; 34 | }; 35 | 36 | 37 | #else /* __i386__ */ 38 | 39 | 40 | struct pt_regs { 41 | /* 42 | * C ABI says these regs are callee-preserved. They aren't saved on kernel entry 43 | * unless syscall needs a complete, fully filled "struct pt_regs". 44 | */ 45 | unsigned long r15; 46 | unsigned long r14; 47 | unsigned long r13; 48 | unsigned long r12; 49 | unsigned long rbp; 50 | unsigned long rbx; 51 | /* These regs are callee-clobbered. Always saved on kernel entry. */ 52 | unsigned long r11; 53 | unsigned long r10; 54 | unsigned long r9; 55 | unsigned long r8; 56 | unsigned long rax; 57 | unsigned long rcx; 58 | unsigned long rdx; 59 | unsigned long rsi; 60 | unsigned long rdi; 61 | /* 62 | * On syscall entry, this is syscall#. On CPU exception, this is error code. 63 | * On hw interrupt, it's IRQ number: 64 | */ 65 | unsigned long orig_rax; 66 | /* Return frame for iretq */ 67 | unsigned long rip; 68 | unsigned long cs; 69 | unsigned long eflags; 70 | unsigned long rsp; 71 | unsigned long ss; 72 | /* top of stack page */ 73 | }; 74 | 75 | #endif /* !__i386__ */ 76 | 77 | 78 | 79 | #endif /* !__ASSEMBLY__ */ 80 | 81 | #endif /* _ASM_X86_PTRACE_H */ 82 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/resource.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/sembuf.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_SEMBUF_H 2 | #define _ASM_X86_SEMBUF_H 3 | 4 | /* 5 | * The semid64_ds structure for x86 architecture. 6 | * Note extra padding because this structure is passed back and forth 7 | * between kernel and user space. 8 | * 9 | * Pad space is left for: 10 | * - 64-bit time_t to solve y2038 problem 11 | * - 2 miscellaneous 32-bit values 12 | */ 13 | struct semid64_ds { 14 | struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 15 | __kernel_time_t sem_otime; /* last semop time */ 16 | __kernel_ulong_t __unused1; 17 | __kernel_time_t sem_ctime; /* last change time */ 18 | __kernel_ulong_t __unused2; 19 | __kernel_ulong_t sem_nsems; /* no. of semaphores in array */ 20 | __kernel_ulong_t __unused3; 21 | __kernel_ulong_t __unused4; 22 | }; 23 | 24 | #endif /* _ASM_X86_SEMBUF_H */ 25 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/setup.h: -------------------------------------------------------------------------------- 1 | /* */ 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/shmbuf.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/sigcontext32.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_SIGCONTEXT32_H 2 | #define _ASM_X86_SIGCONTEXT32_H 3 | 4 | /* This is a legacy file - all the type definitions are in sigcontext.h: */ 5 | 6 | #include 7 | 8 | #endif /* _ASM_X86_SIGCONTEXT32_H */ 9 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/siginfo.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_SIGINFO_H 2 | #define _ASM_X86_SIGINFO_H 3 | 4 | #ifdef __x86_64__ 5 | # ifdef __ILP32__ /* x32 */ 6 | typedef long long __kernel_si_clock_t __attribute__((aligned(4))); 7 | # define __ARCH_SI_CLOCK_T __kernel_si_clock_t 8 | # define __ARCH_SI_ATTRIBUTES __attribute__((aligned(8))) 9 | # else /* x86-64 */ 10 | # define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) 11 | # endif 12 | #endif 13 | 14 | #include 15 | 16 | #endif /* _ASM_X86_SIGINFO_H */ 17 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/socket.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/sockios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/statfs.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_STATFS_H 2 | #define _ASM_X86_STATFS_H 3 | 4 | /* 5 | * We need compat_statfs64 to be packed, because the i386 ABI won't 6 | * add padding at the end to bring it to a multiple of 8 bytes, but 7 | * the x86_64 ABI will. 8 | */ 9 | #define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4))) 10 | 11 | #include 12 | #endif /* _ASM_X86_STATFS_H */ 13 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/swab.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_SWAB_H 2 | #define _ASM_X86_SWAB_H 3 | 4 | #include 5 | 6 | 7 | static __inline__ __u32 __arch_swab32(__u32 val) 8 | { 9 | __asm__("bswapl %0" : "=r" (val) : "0" (val)); 10 | return val; 11 | } 12 | #define __arch_swab32 __arch_swab32 13 | 14 | static __inline__ __u64 __arch_swab64(__u64 val) 15 | { 16 | #ifdef __i386__ 17 | union { 18 | struct { 19 | __u32 a; 20 | __u32 b; 21 | } s; 22 | __u64 u; 23 | } v; 24 | v.u = val; 25 | __asm__("bswapl %0 ; bswapl %1 ; xchgl %0,%1" 26 | : "=r" (v.s.a), "=r" (v.s.b) 27 | : "0" (v.s.a), "1" (v.s.b)); 28 | return v.u; 29 | #else /* __i386__ */ 30 | __asm__("bswapq %0" : "=r" (val) : "0" (val)); 31 | return val; 32 | #endif 33 | } 34 | #define __arch_swab64 __arch_swab64 35 | 36 | #endif /* _ASM_X86_SWAB_H */ 37 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/termbits.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/termios.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_TYPES_H 2 | #define _ASM_X86_TYPES_H 3 | 4 | #include 5 | 6 | #endif /* _ASM_X86_TYPES_H */ 7 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/ucontext.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_UCONTEXT_H 2 | #define _ASM_X86_UCONTEXT_H 3 | 4 | #define UC_FP_XSTATE 0x1 /* indicates the presence of extended state 5 | * information in the memory layout pointed 6 | * by the fpstate pointer in the ucontext's 7 | * sigcontext struct (uc_mcontext). 8 | */ 9 | 10 | #include 11 | 12 | #endif /* _ASM_X86_UCONTEXT_H */ 13 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_UNISTD_H 2 | #define _ASM_X86_UNISTD_H 3 | 4 | /* x32 syscall flag bit */ 5 | #define __X32_SYSCALL_BIT 0x40000000 6 | 7 | # ifdef __i386__ 8 | # include 9 | # elif defined(__ILP32__) 10 | # include 11 | # else 12 | # include 13 | # endif 14 | 15 | #endif /* _ASM_X86_UNISTD_H */ 16 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/asm/vsyscall.h: -------------------------------------------------------------------------------- 1 | #ifndef _ASM_X86_VSYSCALL_H 2 | #define _ASM_X86_VSYSCALL_H 3 | 4 | enum vsyscall_num { 5 | __NR_vgettimeofday, 6 | __NR_vtime, 7 | __NR_vgetcpu, 8 | }; 9 | 10 | #define VSYSCALL_ADDR (-10UL << 20) 11 | 12 | #endif /* _ASM_X86_VSYSCALL_H */ 13 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/a.out.h: -------------------------------------------------------------------------------- 1 | #ifndef __A_OUT_GNU_H__ 2 | # error "Never use directly; include instead." 3 | #endif 4 | 5 | #ifdef __x86_64__ 6 | 7 | /* Signal to users of this header that this architecture really doesn't 8 | support a.out binary format. */ 9 | #define __NO_A_OUT_SUPPORT 1 10 | 11 | #endif 12 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/byteswap-16.h: -------------------------------------------------------------------------------- 1 | /* Macros to swap the order of bytes in 16-bit integer values. 2 | Copyright (C) 2012-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _BITS_BYTESWAP_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #ifdef __GNUC__ 24 | # if __GNUC__ >= 2 25 | # define __bswap_16(x) \ 26 | (__extension__ \ 27 | ({ unsigned short int __v, __x = (unsigned short int) (x); \ 28 | if (__builtin_constant_p (__x)) \ 29 | __v = __bswap_constant_16 (__x); \ 30 | else \ 31 | __asm__ ("rorw $8, %w0" \ 32 | : "=r" (__v) \ 33 | : "0" (__x) \ 34 | : "cc"); \ 35 | __v; })) 36 | # else 37 | /* This is better than nothing. */ 38 | # define __bswap_16(x) \ 39 | (__extension__ \ 40 | ({ unsigned short int __x = (unsigned short int) (x); \ 41 | __bswap_constant_16 (__x); })) 42 | # endif 43 | #else 44 | static __inline unsigned short int 45 | __bswap_16 (unsigned short int __bsx) 46 | { 47 | return __bswap_constant_16 (__bsx); 48 | } 49 | #endif 50 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/elfclass.h: -------------------------------------------------------------------------------- 1 | /* This file specifies the native word size of the machine, which indicates 2 | the ELF file class used for executables and shared objects on this 3 | machine. */ 4 | 5 | #ifndef _LINK_H 6 | # error "Never use directly; include instead." 7 | #endif 8 | 9 | #include 10 | 11 | #define __ELF_NATIVE_CLASS __WORDSIZE 12 | 13 | /* The entries in the .hash table always have a size of 32 bits. */ 14 | typedef uint32_t Elf_Symndx; 15 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/endian.h: -------------------------------------------------------------------------------- 1 | /* i386/x86_64 are little-endian. */ 2 | 3 | #ifndef _ENDIAN_H 4 | # error "Never use directly; include instead." 5 | #endif 6 | 7 | #define __BYTE_ORDER __LITTLE_ENDIAN 8 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/epoll.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_EPOLL_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | /* Flags to be passed to epoll_create1. */ 23 | enum 24 | { 25 | EPOLL_CLOEXEC = 02000000 26 | #define EPOLL_CLOEXEC EPOLL_CLOEXEC 27 | }; 28 | 29 | #define __EPOLL_PACKED __attribute__ ((__packed__)) 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/eventfd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_EVENTFD_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | /* Flags for eventfd. */ 23 | enum 24 | { 25 | EFD_SEMAPHORE = 00000001, 26 | #define EFD_SEMAPHORE EFD_SEMAPHORE 27 | EFD_CLOEXEC = 02000000, 28 | #define EFD_CLOEXEC EFD_CLOEXEC 29 | EFD_NONBLOCK = 00004000 30 | #define EFD_NONBLOCK EFD_NONBLOCK 31 | }; 32 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/fenvinline.h: -------------------------------------------------------------------------------- 1 | /* This file provides inline versions of floating-pint environment 2 | handling functions. If there were any. */ 3 | 4 | #ifndef __NO_MATH_INLINES 5 | 6 | /* Here is where the code would go. */ 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/huge_vall.h: -------------------------------------------------------------------------------- 1 | /* `HUGE_VALL' constant for ix86 (where it is infinity). 2 | Used by and functions for overflow. 3 | Copyright (C) 1992-2016 Free Software Foundation, Inc. 4 | This file is part of the GNU C Library. 5 | 6 | The GNU C Library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | The GNU C Library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with the GNU C Library; if not, see 18 | . */ 19 | 20 | #ifndef _MATH_H 21 | # error "Never use directly; include instead." 22 | #endif 23 | 24 | #if __GNUC_PREREQ(3,3) 25 | # define HUGE_VALL (__builtin_huge_vall()) 26 | #elif __GNUC_PREREQ(2,96) 27 | # define HUGE_VALL (__extension__ 0x1.0p32767L) 28 | #else 29 | 30 | # define __HUGE_VALL_bytes { 0, 0, 0, 0, 0, 0, 0, 0x80, 0xff, 0x7f, 0, 0 } 31 | 32 | # define __huge_vall_t union { unsigned char __c[12]; long double __ld; } 33 | # ifdef __GNUC__ 34 | # define HUGE_VALL (__extension__ \ 35 | ((__huge_vall_t) { __c: __HUGE_VALL_bytes }).__ld) 36 | # else /* Not GCC. */ 37 | static __huge_vall_t __huge_vall = { __HUGE_VALL_bytes }; 38 | # define HUGE_VALL (__huge_vall.__ld) 39 | # endif /* GCC. */ 40 | 41 | #endif /* GCC 2.95 */ 42 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/hwcap.h: -------------------------------------------------------------------------------- 1 | /* Defines for bits in AT_HWCAP. 2 | Copyright (C) 2012-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_AUXV_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | /* No bits defined for this architecture. */ 24 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/inf.h: -------------------------------------------------------------------------------- 1 | /* `INFINITY' constant for IEEE 754 machines. 2 | Copyright (C) 2004-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _MATH_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | /* IEEE positive infinity. */ 24 | 25 | #if __GNUC_PREREQ(3,3) 26 | # define INFINITY (__builtin_inff()) 27 | #else 28 | # define INFINITY HUGE_VALF 29 | #endif 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/initspin.h: -------------------------------------------------------------------------------- 1 | /* No thread support. */ 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/inotify.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2005-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_INOTIFY_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | /* Flags for the parameter of inotify_init1. */ 23 | enum 24 | { 25 | IN_CLOEXEC = 02000000, 26 | #define IN_CLOEXEC IN_CLOEXEC 27 | IN_NONBLOCK = 00004000 28 | #define IN_NONBLOCK IN_NONBLOCK 29 | }; 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/ipctypes.h: -------------------------------------------------------------------------------- 1 | /* bits/ipctypes.h -- Define some types used by SysV IPC/MSG/SHM. 2 | Copyright (C) 2012-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_IPC_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #ifndef _BITS_IPCTYPES_H 24 | #define _BITS_IPCTYPES_H 1 25 | 26 | /* Used in `struct shmid_ds'. */ 27 | # ifdef __x86_64__ 28 | typedef int __ipc_pid_t; 29 | # else 30 | typedef unsigned short int __ipc_pid_t; 31 | # endif 32 | 33 | #endif /* bits/ipctypes.h */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/libio-ldbl.h: -------------------------------------------------------------------------------- 1 | /* -mlong-double-64 compatibility mode for libio functions. 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _IO_STDIO_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | __LDBL_REDIR_DECL (_IO_vfscanf) 24 | __LDBL_REDIR_DECL (_IO_vfprintf) 25 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/locale.h: -------------------------------------------------------------------------------- 1 | /* Definition of locale category symbol values. 2 | Copyright (C) 2001-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #if !defined _LOCALE_H && !defined _LANGINFO_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #ifndef _BITS_LOCALE_H 24 | #define _BITS_LOCALE_H 1 25 | 26 | #define __LC_CTYPE 0 27 | #define __LC_NUMERIC 1 28 | #define __LC_TIME 2 29 | #define __LC_COLLATE 3 30 | #define __LC_MONETARY 4 31 | #define __LC_MESSAGES 5 32 | #define __LC_ALL 6 33 | #define __LC_PAPER 7 34 | #define __LC_NAME 8 35 | #define __LC_ADDRESS 9 36 | #define __LC_TELEPHONE 10 37 | #define __LC_MEASUREMENT 11 38 | #define __LC_IDENTIFICATION 12 39 | 40 | #endif /* bits/locale.h */ 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/monetary-ldbl.h: -------------------------------------------------------------------------------- 1 | /* -mlong-double-64 compatibility mode for monetary functions. 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _MONETARY_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | __LDBL_REDIR_DECL (strfmon) 24 | 25 | #ifdef __USE_GNU 26 | __LDBL_REDIR_DECL (strfmon_l) 27 | #endif 28 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/mqueue.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2004-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _MQUEUE_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | #include 23 | 24 | typedef int mqd_t; 25 | 26 | struct mq_attr 27 | { 28 | __syscall_slong_t mq_flags; /* Message queue flags. */ 29 | __syscall_slong_t mq_maxmsg; /* Maximum number of messages. */ 30 | __syscall_slong_t mq_msgsize; /* Maximum message size. */ 31 | __syscall_slong_t mq_curmsgs; /* Number of messages currently queued. */ 32 | __syscall_slong_t __pad[4]; 33 | }; 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/nan.h: -------------------------------------------------------------------------------- 1 | /* `NAN' constant for IEEE 754 machines. 2 | Copyright (C) 1992-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _MATH_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | 24 | /* IEEE Not A Number. */ 25 | 26 | #if __GNUC_PREREQ(3,3) 27 | 28 | # define NAN (__builtin_nanf ("")) 29 | 30 | #elif defined __GNUC__ 31 | 32 | # define NAN \ 33 | (__extension__ \ 34 | ((union { unsigned __l __attribute__ ((__mode__ (__SI__))); float __d; }) \ 35 | { __l: 0x7fc00000UL }).__d) 36 | 37 | #else 38 | 39 | # include 40 | 41 | # if __BYTE_ORDER == __BIG_ENDIAN 42 | # define __qnan_bytes { 0x7f, 0xc0, 0, 0 } 43 | # endif 44 | # if __BYTE_ORDER == __LITTLE_ENDIAN 45 | # define __qnan_bytes { 0, 0, 0xc0, 0x7f } 46 | # endif 47 | 48 | static union { unsigned char __c[4]; float __d; } __qnan_union 49 | __attribute__ ((__unused__)) = { __qnan_bytes }; 50 | # define NAN (__qnan_union.__d) 51 | 52 | #endif /* GCC. */ 53 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/netdb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _NETDB_H 19 | # error "Never include directly; use instead." 20 | #endif 21 | 22 | 23 | /* Description of data base entry for a single network. NOTE: here a 24 | poor assumption is made. The network number is expected to fit 25 | into an unsigned long int variable. */ 26 | struct netent 27 | { 28 | char *n_name; /* Official name of network. */ 29 | char **n_aliases; /* Alias list. */ 30 | int n_addrtype; /* Net address type. */ 31 | uint32_t n_net; /* Network number. */ 32 | }; 33 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/param.h: -------------------------------------------------------------------------------- 1 | /* Old-style Unix parameters and limits. Linux version. 2 | Copyright (C) 1995-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_PARAM_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #ifndef ARG_MAX 24 | # define __undef_ARG_MAX 25 | #endif 26 | 27 | #include 28 | #include 29 | 30 | /* The kernel headers define ARG_MAX. The value is wrong, though. */ 31 | #ifdef __undef_ARG_MAX 32 | # undef ARG_MAX 33 | # undef __undef_ARG_MAX 34 | #endif 35 | 36 | #define MAXSYMLINKS 20 37 | 38 | /* The following are not really correct but it is a value we used for a 39 | long time and which seems to be usable. People should not use NOFILE 40 | and NCARGS anyway. */ 41 | #define NOFILE 256 42 | #define NCARGS 131072 43 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/printf-ldbl.h: -------------------------------------------------------------------------------- 1 | /* -mlong-double-64 compatibility mode for functions. 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _PRINTF_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | __LDBL_REDIR_DECL (printf_size) 24 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/select2.h: -------------------------------------------------------------------------------- 1 | /* Checking macros for select functions. 2 | Copyright (C) 2011-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_SELECT_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | /* Helper functions to issue warnings and errors when needed. */ 24 | extern long int __fdelt_chk (long int __d); 25 | extern long int __fdelt_warn (long int __d) 26 | __warnattr ("bit outside of fd_set selected"); 27 | #undef __FD_ELT 28 | #define __FD_ELT(d) \ 29 | __extension__ \ 30 | ({ long int __d = (d); \ 31 | (__builtin_constant_p (__d) \ 32 | ? (0 <= __d && __d < __FD_SETSIZE \ 33 | ? (__d / __NFDBITS) \ 34 | : __fdelt_warn (__d)) \ 35 | : __fdelt_chk (__d)); }) 36 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/semaphore.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2002-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | Contributed by Ulrich Drepper , 2002. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SEMAPHORE_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #include 24 | 25 | #if __WORDSIZE == 64 26 | # define __SIZEOF_SEM_T 32 27 | #else 28 | # define __SIZEOF_SEM_T 16 29 | #endif 30 | 31 | 32 | /* Value returned if `sem_open' failed. */ 33 | #define SEM_FAILED ((sem_t *) 0) 34 | 35 | 36 | typedef union 37 | { 38 | char __size[__SIZEOF_SEM_T]; 39 | long int __align; 40 | } sem_t; 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/setjmp.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2001-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | /* Define the machine-dependent type `jmp_buf'. x86-64 version. */ 19 | #ifndef _BITS_SETJMP_H 20 | #define _BITS_SETJMP_H 1 21 | 22 | #if !defined _SETJMP_H && !defined _PTHREAD_H 23 | # error "Never include directly; use instead." 24 | #endif 25 | 26 | #include 27 | 28 | #ifndef _ASM 29 | 30 | # if __WORDSIZE == 64 31 | typedef long int __jmp_buf[8]; 32 | # elif defined __x86_64__ 33 | __extension__ typedef long long int __jmp_buf[8]; 34 | # else 35 | typedef int __jmp_buf[6]; 36 | # endif 37 | 38 | #endif 39 | 40 | #endif /* bits/setjmp.h */ 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/setjmp2.h: -------------------------------------------------------------------------------- 1 | /* Checking macros for setjmp functions. 2 | Copyright (C) 2009-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SETJMP_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | /* Variant of the longjmp functions which perform some sanity checking. */ 24 | #ifdef __REDIRECT_NTH 25 | extern void __REDIRECT_NTHNL (longjmp, 26 | (struct __jmp_buf_tag __env[1], int __val), 27 | __longjmp_chk) __attribute__ ((__noreturn__)); 28 | extern void __REDIRECT_NTHNL (_longjmp, 29 | (struct __jmp_buf_tag __env[1], int __val), 30 | __longjmp_chk) __attribute__ ((__noreturn__)); 31 | extern void __REDIRECT_NTHNL (siglongjmp, 32 | (struct __jmp_buf_tag __env[1], int __val), 33 | __longjmp_chk) __attribute__ ((__noreturn__)); 34 | #else 35 | extern void __longjmp_chk (struct __jmp_buf_tag __env[1], int __val), 36 | __THROWNL __attribute__ ((__noreturn__)); 37 | # define longjmp __longjmp_chk 38 | # define _longjmp __longjmp_chk 39 | # define siglongjmp __longjmp_chk 40 | #endif 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/signalfd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_SIGNALFD_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | /* Flags for signalfd. */ 23 | enum 24 | { 25 | SFD_CLOEXEC = 02000000, 26 | #define SFD_CLOEXEC SFD_CLOEXEC 27 | SFD_NONBLOCK = 00004000 28 | #define SFD_NONBLOCK SFD_NONBLOCK 29 | }; 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/sigstack.h: -------------------------------------------------------------------------------- 1 | /* sigstack, sigaltstack definitions. 2 | Copyright (C) 1998-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SIGNAL_H 20 | # error "Never include this file directly. Use instead" 21 | #endif 22 | 23 | 24 | /* Structure describing a signal stack (obsolete). */ 25 | struct sigstack 26 | { 27 | void *ss_sp; /* Signal stack pointer. */ 28 | int ss_onstack; /* Nonzero if executing on this stack. */ 29 | }; 30 | 31 | 32 | /* Possible values for `ss_flags.'. */ 33 | enum 34 | { 35 | SS_ONSTACK = 1, 36 | #define SS_ONSTACK SS_ONSTACK 37 | SS_DISABLE 38 | #define SS_DISABLE SS_DISABLE 39 | }; 40 | 41 | /* Minimum stack size for a signal handler. */ 42 | #define MINSIGSTKSZ 2048 43 | 44 | /* System default stack size. */ 45 | #define SIGSTKSZ 8192 46 | 47 | 48 | /* Alternate, preferred interface. */ 49 | typedef struct sigaltstack 50 | { 51 | void *ss_sp; 52 | int ss_flags; 53 | size_t ss_size; 54 | } stack_t; 55 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/sigthread.h: -------------------------------------------------------------------------------- 1 | /* Signal handling function for threaded programs. 2 | Copyright (C) 1998-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public License as 7 | published by the Free Software Foundation; either version 2.1 of the 8 | License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; see the file COPYING.LIB. If 17 | not, see . */ 18 | 19 | #ifndef _BITS_SIGTHREAD_H 20 | #define _BITS_SIGTHREAD_H 1 21 | 22 | #if !defined _SIGNAL_H && !defined _PTHREAD_H 23 | # error "Never include this file directly. Use instead" 24 | #endif 25 | 26 | /* Functions for handling signals. */ 27 | 28 | /* Modify the signal mask for the calling thread. The arguments have 29 | the same meaning as for sigprocmask(2). */ 30 | extern int pthread_sigmask (int __how, 31 | const __sigset_t *__restrict __newmask, 32 | __sigset_t *__restrict __oldmask)__THROW; 33 | 34 | /* Send signal SIGNO to the given thread. */ 35 | extern int pthread_kill (pthread_t __threadid, int __signo) __THROW; 36 | 37 | #ifdef __USE_GNU 38 | /* Queue signal and data to a thread. */ 39 | extern int pthread_sigqueue (pthread_t __threadid, int __signo, 40 | const union sigval __value) __THROW; 41 | #endif 42 | 43 | #endif /* bits/sigthread.h */ 44 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/sockaddr.h: -------------------------------------------------------------------------------- 1 | /* Definition of `struct sockaddr_*' common members. Generic/4.2 BSD version. 2 | Copyright (C) 1995-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | /* 20 | * Never include this file directly; use instead. 21 | */ 22 | 23 | #ifndef _BITS_SOCKADDR_H 24 | #define _BITS_SOCKADDR_H 1 25 | 26 | 27 | /* POSIX.1g specifies this type name for the `sa_family' member. */ 28 | typedef unsigned short int sa_family_t; 29 | 30 | /* This macro is used to declare the initial common members 31 | of the data types used for socket addresses, `struct sockaddr', 32 | `struct sockaddr_in', `struct sockaddr_un', etc. */ 33 | 34 | #define __SOCKADDR_COMMON(sa_prefix) \ 35 | sa_family_t sa_prefix##family 36 | 37 | #define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int)) 38 | 39 | #endif /* bits/sockaddr.h */ 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/stdio_lim.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1994-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #if !defined _STDIO_H && !defined __need_FOPEN_MAX && !defined __need_IOV_MAX 19 | # error "Never include directly; use instead." 20 | #endif 21 | 22 | #ifdef _STDIO_H 23 | # define L_tmpnam 20 24 | # define TMP_MAX 238328 25 | # define FILENAME_MAX 4096 26 | 27 | # ifdef __USE_POSIX 28 | # define L_ctermid 9 29 | # if !defined __USE_XOPEN2K || defined __USE_GNU 30 | # define L_cuserid 9 31 | # endif 32 | # endif 33 | #endif 34 | 35 | #if defined __need_FOPEN_MAX || defined _STDIO_H 36 | # undef FOPEN_MAX 37 | # define FOPEN_MAX 16 38 | #endif 39 | 40 | #if defined __need_IOV_MAX && !defined IOV_MAX 41 | # define IOV_MAX 1024 42 | #endif 43 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/stdlib-bsearch.h: -------------------------------------------------------------------------------- 1 | /* Perform binary search - inline version. 2 | Copyright (C) 1991-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | __extern_inline void * 20 | bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, 21 | __compar_fn_t __compar) 22 | { 23 | size_t __l, __u, __idx; 24 | const void *__p; 25 | int __comparison; 26 | 27 | __l = 0; 28 | __u = __nmemb; 29 | while (__l < __u) 30 | { 31 | __idx = (__l + __u) / 2; 32 | __p = (void *) (((const char *) __base) + (__idx * __size)); 33 | __comparison = (*__compar) (__key, __p); 34 | if (__comparison < 0) 35 | __u = __idx; 36 | else if (__comparison > 0) 37 | __l = __idx + 1; 38 | else 39 | return (void *) __p; 40 | } 41 | 42 | return NULL; 43 | } 44 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/stdlib-float.h: -------------------------------------------------------------------------------- 1 | /* Floating-point inline functions for stdlib.h. 2 | Copyright (C) 2012-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _STDLIB_H 20 | # error "Never use directly; include instead." 21 | #endif 22 | 23 | #ifdef __USE_EXTERN_INLINES 24 | __BEGIN_NAMESPACE_STD 25 | __extern_inline double 26 | __NTH (atof (const char *__nptr)) 27 | { 28 | return strtod (__nptr, (char **) NULL); 29 | } 30 | __END_NAMESPACE_STD 31 | #endif /* Optimizing and Inlining. */ 32 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/stdlib-ldbl.h: -------------------------------------------------------------------------------- 1 | /* -mlong-double-64 compatibility mode for functions. 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _STDLIB_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | #ifdef __USE_ISOC99 24 | __BEGIN_NAMESPACE_C99 25 | __LDBL_REDIR1_DECL (strtold, strtod) 26 | __END_NAMESPACE_C99 27 | #endif 28 | 29 | #ifdef __USE_GNU 30 | __LDBL_REDIR1_DECL (strtold_l, strtod_l) 31 | #endif 32 | 33 | #ifdef __USE_MISC 34 | __LDBL_REDIR1_DECL (qecvt, ecvt) 35 | __LDBL_REDIR1_DECL (qfcvt, fcvt) 36 | __LDBL_REDIR1_DECL (qgcvt, gcvt) 37 | __LDBL_REDIR1_DECL (qecvt_r, ecvt_r) 38 | __LDBL_REDIR1_DECL (qfcvt_r, fcvt_r) 39 | #endif 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/sys_errlist.h: -------------------------------------------------------------------------------- 1 | /* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version. 2 | Copyright (C) 2002-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _STDIO_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | /* sys_errlist and sys_nerr are deprecated. Use strerror instead. */ 24 | 25 | #ifdef __USE_MISC 26 | extern int sys_nerr; 27 | extern const char *const sys_errlist[]; 28 | #endif 29 | #ifdef __USE_GNU 30 | extern int _sys_nerr; 31 | extern const char *const _sys_errlist[]; 32 | #endif 33 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/sysctl.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2012-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #if defined __x86_64__ && defined __ILP32__ 19 | # error "sysctl system call is unsupported in x32 kernel" 20 | #endif 21 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/syslog-ldbl.h: -------------------------------------------------------------------------------- 1 | /* -mlong-double-64 compatibility mode for syslog functions. 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_SYSLOG_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | __LDBL_REDIR_DECL (syslog) 24 | 25 | #ifdef __USE_MISC 26 | __LDBL_REDIR_DECL (vsyslog) 27 | #endif 28 | 29 | #if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function 30 | __LDBL_REDIR_DECL (__syslog_chk) 31 | 32 | # ifdef __USE_MISC 33 | __LDBL_REDIR_DECL (__vsyslog_chk) 34 | # endif 35 | #endif 36 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/syslog-path.h: -------------------------------------------------------------------------------- 1 | /* -- _PATH_LOG definition 2 | Copyright (C) 2006-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_SYSLOG_H 20 | # error "Never include this file directly. Use instead" 21 | #endif 22 | 23 | #ifndef _BITS_SYSLOG_PATH_H 24 | #define _BITS_SYSLOG_PATH_H 1 25 | 26 | #define _PATH_LOG "/dev/log" 27 | 28 | #endif /* bits/syslog-path.h */ 29 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/syslog.h: -------------------------------------------------------------------------------- 1 | /* Checking macros for syslog functions. 2 | Copyright (C) 2005-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_SYSLOG_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | 24 | extern void __syslog_chk (int __pri, int __flag, const char *__fmt, ...) 25 | __attribute__ ((__format__ (__printf__, 3, 4))); 26 | 27 | #ifdef __va_arg_pack 28 | __fortify_function void 29 | syslog (int __pri, const char *__fmt, ...) 30 | { 31 | __syslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ()); 32 | } 33 | #elif !defined __cplusplus 34 | # define syslog(pri, ...) \ 35 | __syslog_chk (pri, __USE_FORTIFY_LEVEL - 1, __VA_ARGS__) 36 | #endif 37 | 38 | 39 | #ifdef __USE_MISC 40 | extern void __vsyslog_chk (int __pri, int __flag, const char *__fmt, 41 | __gnuc_va_list __ap) 42 | __attribute__ ((__format__ (__printf__, 3, 0))); 43 | 44 | __fortify_function void 45 | vsyslog (int __pri, const char *__fmt, __gnuc_va_list __ap) 46 | { 47 | __vsyslog_chk (__pri, __USE_FORTIFY_LEVEL - 1, __fmt, __ap); 48 | } 49 | #endif 50 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/timerfd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2008-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_TIMERFD_H 19 | # error "Never use directly; include instead." 20 | #endif 21 | 22 | /* Bits to be set in the FLAGS parameter of `timerfd_create'. */ 23 | enum 24 | { 25 | TFD_CLOEXEC = 02000000, 26 | #define TFD_CLOEXEC TFD_CLOEXEC 27 | TFD_NONBLOCK = 00004000 28 | #define TFD_NONBLOCK TFD_NONBLOCK 29 | }; 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/ustat.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_USTAT_H 19 | # error "Never include directly; use instead." 20 | #endif 21 | 22 | #include 23 | 24 | struct ustat 25 | { 26 | __daddr_t f_tfree; /* Number of free blocks. */ 27 | __ino_t f_tinode; /* Number of free inodes. */ 28 | char f_fname[6]; 29 | char f_fpack[6]; 30 | }; 31 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/utsname.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1995-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_UTSNAME_H 19 | # error "Never include directly; use instead." 20 | #endif 21 | 22 | /* Length of the entries in `struct utsname' is 65. */ 23 | #define _UTSNAME_LENGTH 65 24 | 25 | /* Linux provides as additional information in the `struct utsname' 26 | the name of the current domain. Define _UTSNAME_DOMAIN_LENGTH 27 | to a value != 0 to activate this entry. */ 28 | #define _UTSNAME_DOMAIN_LENGTH _UTSNAME_LENGTH 29 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/wordsize.h: -------------------------------------------------------------------------------- 1 | /* Determine the wordsize from the preprocessor defines. */ 2 | 3 | #if defined __x86_64__ && !defined __ILP32__ 4 | # define __WORDSIZE 64 5 | #else 6 | # define __WORDSIZE 32 7 | #endif 8 | 9 | #ifdef __x86_64__ 10 | # define __WORDSIZE_TIME64_COMPAT32 1 11 | /* Both x86-64 and x32 use the 64-bit system call interface. */ 12 | # define __SYSCALL_WORDSIZE 64 13 | #endif 14 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/bits/xtitypes.h: -------------------------------------------------------------------------------- 1 | /* bits/xtitypes.h -- Define some types used by . x86-64. 2 | Copyright (C) 2002-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _STROPTS_H 20 | # error "Never include directly; use instead." 21 | #endif 22 | 23 | #ifndef _BITS_XTITYPES_H 24 | #define _BITS_XTITYPES_H 1 25 | 26 | #include 27 | 28 | /* This type is used by some structs in . */ 29 | typedef __SLONG32_TYPE __t_scalar_t; 30 | typedef __ULONG32_TYPE __t_uscalar_t; 31 | 32 | 33 | #endif /* bits/xtitypes.h */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/byteswap.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _BYTESWAP_H 19 | #define _BYTESWAP_H 1 20 | 21 | #include 22 | 23 | /* Get the machine specific, optimized definitions. */ 24 | #include 25 | 26 | 27 | /* The following definitions must all be macros since otherwise some 28 | of the possible optimizations are not possible. */ 29 | 30 | /* Return a value with all bytes in the 16 bit argument swapped. */ 31 | #define bswap_16(x) __bswap_16 (x) 32 | 33 | /* Return a value with all bytes in the 32 bit argument swapped. */ 34 | #define bswap_32(x) __bswap_32 (x) 35 | 36 | /* Return a value with all bytes in the 64 bit argument swapped. */ 37 | #define bswap_64(x) __bswap_64 (x) 38 | 39 | #endif /* byteswap.h */ 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/execinfo.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1998-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _EXECINFO_H 19 | #define _EXECINFO_H 1 20 | 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | /* Store up to SIZE return address of the current program state in 26 | ARRAY and return the exact number of values stored. */ 27 | extern int backtrace (void **__array, int __size) __nonnull ((1)); 28 | 29 | 30 | /* Return names of functions from the backtrace list in ARRAY in a newly 31 | malloc()ed memory block. */ 32 | extern char **backtrace_symbols (void *const *__array, int __size) 33 | __THROW __nonnull ((1)); 34 | 35 | 36 | /* This function is similar to backtrace_symbols() but it writes the result 37 | immediately to a file. */ 38 | extern void backtrace_symbols_fd (void *const *__array, int __size, int __fd) 39 | __THROW __nonnull ((1)); 40 | 41 | __END_DECLS 42 | 43 | #endif /* execinfo.h */ 44 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/lastlog.h: -------------------------------------------------------------------------------- 1 | /* This header file is used in 4.3BSD to define `struct lastlog', 2 | which we define in . */ 3 | 4 | #include 5 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/libgen.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _LIBGEN_H 19 | #define _LIBGEN_H 1 20 | 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | /* Return directory part of PATH or "." if none is available. */ 26 | extern char *dirname (char *__path) __THROW; 27 | 28 | /* Return final component of PATH. 29 | 30 | This is the weird XPG version of this function. It sometimes will 31 | modify its argument. Therefore we normally use the GNU version (in 32 | ) and only if this header is included make the XPG 33 | version available under the real name. */ 34 | extern char *__xpg_basename (char *__path) __THROW; 35 | #define basename __xpg_basename 36 | 37 | __END_DECLS 38 | 39 | #endif /* libgen.h */ 40 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/memory.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | /* 19 | * SVID 20 | */ 21 | 22 | #ifndef _MEMORY_H 23 | #define _MEMORY_H 1 24 | 25 | #include 26 | 27 | 28 | #ifndef _STRING_H 29 | # include 30 | #endif /* string.h */ 31 | 32 | 33 | #endif /* memory.h */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/net/if_packet.h: -------------------------------------------------------------------------------- 1 | /* Definitions for use with Linux SOCK_PACKET sockets. 2 | Copyright (C) 1997-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef __IF_PACKET_H 20 | #define __IF_PACKET_H 21 | 22 | #include 23 | #include 24 | 25 | /* This is the SOCK_PACKET address structure as used in Linux 2.0. 26 | From Linux 2.1 the AF_PACKET interface is preferred and you should 27 | consider using it in place of this one. */ 28 | 29 | struct sockaddr_pkt 30 | { 31 | __SOCKADDR_COMMON (spkt_); 32 | unsigned char spkt_device[14]; 33 | unsigned short spkt_protocol; 34 | }; 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/net/if_shaper.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1998-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _NET_IF_SHAPER_H 19 | #define _NET_IF_SHAPER_H 1 20 | 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | __BEGIN_DECLS 27 | 28 | #define SHAPER_QLEN 10 29 | /* 30 | * This is a bit speed dependant (read it shouldnt be a constant!) 31 | * 32 | * 5 is about right for 28.8 upwards. Below that double for every 33 | * halving of speed or so. - ie about 20 for 9600 baud. 34 | */ 35 | #define SHAPER_LATENCY (5 * HZ) 36 | #define SHAPER_MAXSLIP 2 37 | #define SHAPER_BURST (HZ / 50) /* Good for >128K then */ 38 | 39 | #define SHAPER_SET_DEV 0x0001 40 | #define SHAPER_SET_SPEED 0x0002 41 | #define SHAPER_GET_DEV 0x0003 42 | #define SHAPER_GET_SPEED 0x0004 43 | 44 | struct shaperconf 45 | { 46 | u_int16_t ss_cmd; 47 | union 48 | { 49 | char ssu_name[14]; 50 | u_int32_t ssu_speed; 51 | } ss_u; 52 | #define ss_speed ss_u.ssu_speed 53 | #define ss_name ss_u.ssu_name 54 | }; 55 | 56 | __END_DECLS 57 | 58 | #endif /* net/if_shaper.h */ 59 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/net/if_slip.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _NET_IF_SLIP_H 19 | #define _NET_IF_SLIP_H 1 20 | 21 | /* We can use the kernel header. */ 22 | #include 23 | 24 | #endif /* net/if_slip.h. */ 25 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/net/ppp-comp.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/net/ppp_defs.h: -------------------------------------------------------------------------------- 1 | #ifndef _NET_PPP_DEFS_H 2 | #define _NET_PPP_DEFS_H 1 3 | 4 | #define __need_time_t 5 | #include 6 | 7 | #include 8 | #include 9 | 10 | #endif /* net/ppp_defs.h */ 11 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/netinet/if_fddi.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _NETINET_IF_FDDI_H 19 | #define _NETINET_IF_FDDI_H 1 20 | 21 | #include 22 | #include 23 | #include 24 | 25 | #include 26 | 27 | #ifdef __USE_MISC 28 | 29 | struct fddi_header { 30 | u_int8_t fddi_fc; /* Frame Control (FC) value */ 31 | u_int8_t fddi_dhost[FDDI_K_ALEN]; /* Destination host */ 32 | u_int8_t fddi_shost[FDDI_K_ALEN]; /* Source host */ 33 | }; 34 | #endif 35 | 36 | #endif /* netinet/if_fddi.h */ 37 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/netinet/in_systm.h: -------------------------------------------------------------------------------- 1 | /* System specific type definitions for networking code. 2 | Copyright (C) 1997-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _NETINET_IN_SYSTM_H 20 | #define _NETINET_IN_SYSTM_H 1 21 | 22 | #include 23 | #include 24 | 25 | __BEGIN_DECLS 26 | 27 | /* 28 | * Network order versions of various data types. Unfortunately, BSD 29 | * assumes specific sizes for shorts (16 bit) and longs (32 bit) which 30 | * don't hold in general. As a consequence, the network order versions 31 | * may not reflect the actual size of the native data types. 32 | */ 33 | 34 | typedef u_int16_t n_short; /* short as received from the net */ 35 | typedef u_int32_t n_long; /* long as received from the net */ 36 | typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ 37 | 38 | __END_DECLS 39 | 40 | #endif /* netinet/in_systm.h */ 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/poll.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/pty.h: -------------------------------------------------------------------------------- 1 | /* Functions for pseudo TTY handling. 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _PTY_H 20 | #define _PTY_H 1 21 | 22 | #include 23 | 24 | struct termios; 25 | struct winsize; 26 | 27 | #include 28 | #include 29 | 30 | 31 | __BEGIN_DECLS 32 | 33 | /* Create pseudo tty master slave pair with NAME and set terminal 34 | attributes according to TERMP and WINP and return handles for both 35 | ends in AMASTER and ASLAVE. */ 36 | extern int openpty (int *__amaster, int *__aslave, char *__name, 37 | const struct termios *__termp, 38 | const struct winsize *__winp) __THROW; 39 | 40 | /* Create child process and establish the slave pseudo terminal as the 41 | child's controlling terminal. */ 42 | extern int forkpty (int *__amaster, char *__name, 43 | const struct termios *__termp, 44 | const struct winsize *__winp) __THROW; 45 | 46 | __END_DECLS 47 | 48 | #endif /* pty.h */ 49 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/re_comp.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _RE_COMP_H 19 | #define _RE_COMP_H 1 20 | 21 | /* This is only a wrapper around the file. XPG4.2 mentions 22 | this name. */ 23 | #include 24 | 25 | #endif /* re_comp.h */ 26 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/regexp.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | Contributed by Ulrich Drepper , 1996. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _REGEXP_H 20 | #define _REGEXP_H 1 21 | 22 | /* The contents of this header file were originally standardized in 23 | the Single Unix Specification, Issue 3 (1992). In Issue 4 (1994) 24 | the header was marked as TO BE WITHDRAWN, and new applications 25 | were encouraged to use instead. It was officially 26 | withdrawn from the standard in Issue 6 (aka POSIX.1-2001). 27 | 28 | The GNU C Library provided this header through version 2.22. */ 29 | 30 | #error "The GNU C Library no longer implements ." 31 | #error "Please update your code to use instead (no trailing 'p')." 32 | 33 | #endif /* regexp.h */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sgtty.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SGTTY_H 19 | #define _SGTTY_H 1 20 | 21 | #include 22 | 23 | #include 24 | 25 | /* On some systems this type is not defined by ; 26 | in that case, the functions are just stubs that return ENOSYS. */ 27 | struct sgttyb; 28 | 29 | __BEGIN_DECLS 30 | 31 | /* Fill in *PARAMS with terminal parameters associated with FD. */ 32 | extern int gtty (int __fd, struct sgttyb *__params) __THROW; 33 | 34 | /* Set the terminal parameters associated with FD to *PARAMS. */ 35 | extern int stty (int __fd, const struct sgttyb *__params) __THROW; 36 | 37 | 38 | __END_DECLS 39 | 40 | #endif /* sgtty.h */ 41 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/stab.h: -------------------------------------------------------------------------------- 1 | #ifndef __GNU_STAB__ 2 | 3 | /* Indicate the GNU stab.h is in use. */ 4 | 5 | #define __GNU_STAB__ 6 | 7 | #define __define_stab(NAME, CODE, STRING) NAME=CODE, 8 | 9 | enum __stab_debug_code 10 | { 11 | #include 12 | LAST_UNUSED_STAB_CODE 13 | }; 14 | 15 | #undef __define_stab 16 | 17 | #endif /* __GNU_STAB_ */ 18 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/asoundlib.h: -------------------------------------------------------------------------------- 1 | #warning This header is deprecated, use instead. 2 | #include 3 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/auxv.h: -------------------------------------------------------------------------------- 1 | /* Access to the auxiliary vector. 2 | Copyright (C) 2012-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_AUXV_H 20 | #define _SYS_AUXV_H 1 21 | 22 | #include 23 | #include 24 | #include 25 | #include 26 | 27 | __BEGIN_DECLS 28 | 29 | /* Return the value associated with an Elf*_auxv_t type from the auxv list 30 | passed to the program on startup. If TYPE was not present in the auxv 31 | list, returns zero and sets errno to ENOENT. */ 32 | extern unsigned long int getauxval (unsigned long int __type) 33 | __THROW; 34 | 35 | __END_DECLS 36 | 37 | #endif /* sys/auxv.h */ 38 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/bitypes.h: -------------------------------------------------------------------------------- 1 | /* The GNU defines all the necessary types. */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_DIR_H 19 | #define _SYS_DIR_H 1 20 | 21 | #include 22 | 23 | #include 24 | 25 | #define direct dirent 26 | 27 | #endif /* sys/dir.h */ 28 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/elf.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1998-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_ELF_H 19 | #define _SYS_ELF_H 1 20 | 21 | #ifdef __x86_64__ 22 | # error This header is unsupported on x86-64. 23 | #else 24 | # warning "This header is obsolete; use instead." 25 | 26 | # include 27 | #endif 28 | 29 | #endif /* _SYS_ELF_H */ 30 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/eventfd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_EVENTFD_H 19 | #define _SYS_EVENTFD_H 1 20 | 21 | #include 22 | 23 | /* Get the platform-dependent flags. */ 24 | #include 25 | 26 | /* Type for event counter. */ 27 | typedef uint64_t eventfd_t; 28 | 29 | 30 | __BEGIN_DECLS 31 | 32 | /* Return file descriptor for generic event channel. Set initial 33 | value to COUNT. */ 34 | extern int eventfd (unsigned int __count, int __flags) __THROW; 35 | 36 | /* Read event counter and possibly wait for events. */ 37 | extern int eventfd_read (int __fd, eventfd_t *__value); 38 | 39 | /* Increment event counter. */ 40 | extern int eventfd_write (int __fd, eventfd_t __value); 41 | 42 | __END_DECLS 43 | 44 | #endif /* sys/eventfd.h */ 45 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/fanotify.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2010-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_FANOTIFY_H 19 | #define _SYS_FANOTIFY_H 1 20 | 21 | #include 22 | #include 23 | 24 | 25 | __BEGIN_DECLS 26 | 27 | /* Create and initialize fanotify group. */ 28 | extern int fanotify_init (unsigned int __flags, unsigned int __event_f_flags) 29 | __THROW; 30 | 31 | /* Add, remove, or modify an fanotify mark on a filesystem object. */ 32 | extern int fanotify_mark (int __fanotify_fd, unsigned int __flags, 33 | uint64_t __mask, int __dfd, const char *__pathname) 34 | __THROW; 35 | 36 | __END_DECLS 37 | 38 | #endif /* sys/fanotify.h */ 39 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/fcntl.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/file.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_FILE_H 19 | #define _SYS_FILE_H 1 20 | 21 | #include 22 | 23 | #ifndef _FCNTL_H 24 | # include 25 | #endif 26 | 27 | __BEGIN_DECLS 28 | 29 | 30 | /* Alternate names for values for the WHENCE argument to `lseek'. 31 | These are the same as SEEK_SET, SEEK_CUR, and SEEK_END, respectively. */ 32 | #ifndef L_SET 33 | # define L_SET 0 /* Seek from beginning of file. */ 34 | # define L_INCR 1 /* Seek from current position. */ 35 | # define L_XTND 2 /* Seek from end of file. */ 36 | #endif 37 | 38 | 39 | /* Operations for the `flock' call. */ 40 | #define LOCK_SH 1 /* Shared lock. */ 41 | #define LOCK_EX 2 /* Exclusive lock. */ 42 | #define LOCK_UN 8 /* Unlock. */ 43 | #define __LOCK_ATOMIC 16 /* Atomic update. */ 44 | 45 | /* Can be OR'd in to one of the above. */ 46 | #define LOCK_NB 4 /* Don't block when locking. */ 47 | 48 | 49 | /* Apply or remove an advisory lock, according to OPERATION, 50 | on the file FD refers to. */ 51 | extern int flock (int __fd, int __operation) __THROW; 52 | 53 | 54 | __END_DECLS 55 | 56 | #endif /* sys/file.h */ 57 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/fsuid.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_FSUID_H 19 | #define _SYS_FSUID_H 1 20 | 21 | #include 22 | #include 23 | 24 | __BEGIN_DECLS 25 | 26 | /* Change uid used for file access control to UID, without affecting 27 | other privileges (such as who can send signals at the process). */ 28 | extern int setfsuid (__uid_t __uid) __THROW; 29 | 30 | /* Ditto for group id. */ 31 | extern int setfsgid (__gid_t __gid) __THROW; 32 | 33 | __END_DECLS 34 | 35 | #endif /* fsuid.h */ 36 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/ioctl.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_IOCTL_H 19 | #define _SYS_IOCTL_H 1 20 | 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | /* Get the list of `ioctl' requests and related constants. */ 26 | #include 27 | 28 | /* Define some types used by `ioctl' requests. */ 29 | #include 30 | 31 | /* On a Unix system, the system probably defines some of 32 | the symbols we define in (usually with the same 33 | values). The code to generate has omitted these 34 | symbols to avoid the conflict, but a Unix program expects 35 | to define them, so we must include here. */ 36 | #include 37 | 38 | /* Perform the I/O control operation specified by REQUEST on FD. 39 | One argument may follow; its presence and type depend on REQUEST. 40 | Return value depends on REQUEST. Usually -1 indicates error. */ 41 | extern int ioctl (int __fd, unsigned long int __request, ...) __THROW; 42 | 43 | __END_DECLS 44 | 45 | #endif /* sys/ioctl.h */ 46 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/ipc.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1995-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_IPC_H 19 | #define _SYS_IPC_H 1 20 | 21 | #include 22 | 23 | #if !defined __USE_MISC && !defined __USE_XOPEN && __GNUC__ >= 2 24 | # warning "Files using this header must be compiled with _GNU_SOURCE or _XOPEN_SOURCE" 25 | #endif 26 | 27 | /* Get system dependent definition of `struct ipc_perm' and more. */ 28 | #include 29 | #include 30 | 31 | #ifndef __uid_t_defined 32 | typedef __uid_t uid_t; 33 | # define __uid_t_defined 34 | #endif 35 | 36 | #ifndef __gid_t_defined 37 | typedef __gid_t gid_t; 38 | # define __gid_t_defined 39 | #endif 40 | 41 | #ifndef __mode_t_defined 42 | typedef __mode_t mode_t; 43 | # define __mode_t_defined 44 | #endif 45 | 46 | #ifndef __key_t_defined 47 | typedef __key_t key_t; 48 | # define __key_t_defined 49 | #endif 50 | 51 | __BEGIN_DECLS 52 | 53 | /* Generates key for System V style IPC. */ 54 | extern key_t ftok (const char *__pathname, int __proj_id) __THROW; 55 | 56 | __END_DECLS 57 | 58 | #endif /* sys/ipc.h */ 59 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/kd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_KD_H 19 | #define _SYS_KD_H 1 20 | 21 | /* Make sure the header is not loaded. */ 22 | #ifndef _LINUX_TYPES_H 23 | # define _LINUX_TYPES_H 1 24 | # define __undef_LINUX_TYPES_H 25 | #endif 26 | 27 | #include 28 | 29 | #ifdef __undef_LINUX_TYPES_H 30 | # undef _LINUX_TYPES_H 31 | # undef __undef_LINUX_TYPES_H 32 | #endif 33 | 34 | #endif /* sys/kd.h */ 35 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/klog.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_KLOG_H 19 | 20 | #define _SYS_KLOG_H 1 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | /* Control the kernel's logging facility. This corresponds exactly to 26 | the kernel's syslog system call, but that name is easily confused 27 | with the user-level syslog facility, which is something completely 28 | different. */ 29 | extern int klogctl (int __type, char *__bufp, int __len) __THROW; 30 | 31 | __END_DECLS 32 | 33 | #endif /* _SYS_KLOG_H */ 34 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/pci.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_PCI_H 19 | #define _SYS_PCI_H 1 20 | 21 | /* We use the constants from the kernel. */ 22 | #include 23 | 24 | #endif /* sys/pci.h */ 25 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/perm.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_PERM_H 19 | 20 | #define _SYS_PERM_H 1 21 | #include 22 | 23 | __BEGIN_DECLS 24 | 25 | /* Set port input/output permissions. */ 26 | extern int ioperm (unsigned long int __from, unsigned long int __num, 27 | int __turn_on) __THROW; 28 | 29 | 30 | /* Change I/O privilege level. */ 31 | extern int iopl (int __level) __THROW; 32 | 33 | __END_DECLS 34 | 35 | #endif /* _SYS_PERM_H */ 36 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/prctl.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_PRCTL_H 19 | #define _SYS_PRCTL_H 1 20 | 21 | #include 22 | #include /* The magic values come from here */ 23 | 24 | __BEGIN_DECLS 25 | 26 | /* Control process execution. */ 27 | extern int prctl (int __option, ...) __THROW; 28 | 29 | __END_DECLS 30 | 31 | #endif /* sys/prctl.h */ 32 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/raw.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1999-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_RAW_H 19 | #define _SYS_RAW_H 1 20 | 21 | #include 22 | #include 23 | 24 | /* The major device number for raw devices. */ 25 | #define RAW_MAJOR 162 26 | 27 | /* `ioctl' commands for raw devices. */ 28 | #define RAW_SETBIND _IO(0xac, 0) 29 | #define RAW_GETBIND _IO(0xac, 1) 30 | 31 | struct raw_config_request 32 | { 33 | int raw_minor; 34 | uint64_t block_major; 35 | uint64_t block_minor; 36 | }; 37 | 38 | #endif /* sys/raw.h */ 39 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/reboot.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | /* This file should define RB_* macros to be used as flag 19 | bits in the argument to the `reboot' system call. */ 20 | 21 | #ifndef _SYS_REBOOT_H 22 | #define _SYS_REBOOT_H 1 23 | 24 | #include 25 | 26 | /* Perform a hard reset now. */ 27 | #define RB_AUTOBOOT 0x01234567 28 | 29 | /* Halt the system. */ 30 | #define RB_HALT_SYSTEM 0xcdef0123 31 | 32 | /* Enable reboot using Ctrl-Alt-Delete keystroke. */ 33 | #define RB_ENABLE_CAD 0x89abcdef 34 | 35 | /* Disable reboot using Ctrl-Alt-Delete keystroke. */ 36 | #define RB_DISABLE_CAD 0 37 | 38 | /* Stop system and switch power off if possible. */ 39 | #define RB_POWER_OFF 0x4321fedc 40 | 41 | /* Suspend system using software suspend. */ 42 | #define RB_SW_SUSPEND 0xd000fce2 43 | 44 | /* Reboot system into new kernel. */ 45 | #define RB_KEXEC 0x45584543 46 | 47 | __BEGIN_DECLS 48 | 49 | /* Reboot or halt the system. */ 50 | extern int reboot (int __howto) __THROW; 51 | 52 | __END_DECLS 53 | 54 | #endif /* _SYS_REBOOT_H */ 55 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/signalfd.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 2007-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_SIGNALFD_H 19 | #define _SYS_SIGNALFD_H 1 20 | 21 | #define __need_sigset_t 22 | #include 23 | #include 24 | 25 | /* Get the platform-dependent flags. */ 26 | #include 27 | 28 | struct signalfd_siginfo 29 | { 30 | uint32_t ssi_signo; 31 | int32_t ssi_errno; 32 | int32_t ssi_code; 33 | uint32_t ssi_pid; 34 | uint32_t ssi_uid; 35 | int32_t ssi_fd; 36 | uint32_t ssi_tid; 37 | uint32_t ssi_band; 38 | uint32_t ssi_overrun; 39 | uint32_t ssi_trapno; 40 | int32_t ssi_status; 41 | int32_t ssi_int; 42 | uint64_t ssi_ptr; 43 | uint64_t ssi_utime; 44 | uint64_t ssi_stime; 45 | uint64_t ssi_addr; 46 | uint8_t __pad[48]; 47 | }; 48 | 49 | __BEGIN_DECLS 50 | 51 | /* Request notification for delivery of signals in MASK to be 52 | performed using descriptor FD.*/ 53 | extern int signalfd (int __fd, const sigset_t *__mask, int __flags) 54 | __THROW __nonnull ((2)); 55 | 56 | __END_DECLS 57 | 58 | #endif /* sys/signalfd.h */ 59 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/socketvar.h: -------------------------------------------------------------------------------- 1 | /* This header is used on many systems but for GNU we have everything 2 | already defined in the standard header. */ 3 | #include 4 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/soundcard.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/stropts.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/swap.h: -------------------------------------------------------------------------------- 1 | /* Calls to enable and disable swapping on specified locations. Linux version. 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | #ifndef _SYS_SWAP_H 20 | 21 | #define _SYS_SWAP_H 1 22 | #include 23 | 24 | /* The swap priority is encoded as: 25 | (prio << SWAP_FLAG_PRIO_SHIFT) & SWAP_FLAG_PRIO_MASK 26 | */ 27 | #define SWAP_FLAG_PREFER 0x8000 /* Set if swap priority is specified. */ 28 | #define SWAP_FLAG_PRIO_MASK 0x7fff 29 | #define SWAP_FLAG_PRIO_SHIFT 0 30 | #define SWAP_FLAG_DISCARD 0x10000 /* Discard swap cluster after use. */ 31 | 32 | __BEGIN_DECLS 33 | 34 | /* Make the block special device PATH available to the system for swapping. 35 | This call is restricted to the super-user. */ 36 | extern int swapon (const char *__path, int __flags) __THROW; 37 | 38 | /* Stop using block special device PATH for swapping. */ 39 | extern int swapoff (const char *__path) __THROW; 40 | 41 | __END_DECLS 42 | 43 | #endif /* _SYS_SWAP_H */ 44 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/syscall.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1995-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYSCALL_H 19 | #define _SYSCALL_H 1 20 | 21 | /* This file should list the numbers of the system calls the system knows. 22 | But instead of duplicating this we use the information available 23 | from the kernel sources. */ 24 | #include 25 | 26 | #ifndef _LIBC 27 | /* The Linux kernel header file defines macros `__NR_', but some 28 | programs expect the traditional form `SYS_'. So in building libc 29 | we scan the kernel's list and produce with macros for 30 | all the `SYS_' names. */ 31 | # include 32 | #endif 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/sysinfo.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_SYSINFO_H 19 | #define _SYS_SYSINFO_H 1 20 | 21 | #include 22 | 23 | /* Get sysinfo structure from kernel header. */ 24 | #include 25 | 26 | __BEGIN_DECLS 27 | 28 | /* Returns information on overall system statistics. */ 29 | extern int sysinfo (struct sysinfo *__info) __THROW; 30 | 31 | 32 | /* Return number of configured processors. */ 33 | extern int get_nprocs_conf (void) __THROW; 34 | 35 | /* Return number of available processors. */ 36 | extern int get_nprocs (void) __THROW; 37 | 38 | 39 | /* Return number of physical pages of memory in the system. */ 40 | extern long int get_phys_pages (void) __THROW; 41 | 42 | /* Return number of available physical pages of memory in the system. */ 43 | extern long int get_avphys_pages (void) __THROW; 44 | 45 | __END_DECLS 46 | 47 | #endif /* sys/sysinfo.h */ 48 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/termios.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TERMIOS_H 2 | #define _SYS_TERMIOS_H 3 | #include 4 | #endif 5 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/timeb.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1994-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_TIMEB_H 19 | #define _SYS_TIMEB_H 1 20 | 21 | #include 22 | 23 | #define __need_time_t 24 | #include 25 | 26 | 27 | __BEGIN_DECLS 28 | 29 | /* Structure returned by the `ftime' function. */ 30 | 31 | struct timeb 32 | { 33 | time_t time; /* Seconds since epoch, as from `time'. */ 34 | unsigned short int millitm; /* Additional milliseconds. */ 35 | short int timezone; /* Minutes west of GMT. */ 36 | short int dstflag; /* Nonzero if Daylight Savings Time used. */ 37 | }; 38 | 39 | /* Fill in TIMEBUF with information about the current time. */ 40 | 41 | extern int ftime (struct timeb *__timebuf); 42 | 43 | __END_DECLS 44 | 45 | #endif /* sys/timeb.h */ 46 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/times.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | /* 19 | * POSIX Standard: 4.5.2 Process Times 20 | */ 21 | 22 | #ifndef _SYS_TIMES_H 23 | #define _SYS_TIMES_H 1 24 | 25 | #include 26 | 27 | #define __need_clock_t 28 | #include 29 | 30 | 31 | __BEGIN_DECLS 32 | 33 | /* Structure describing CPU time used by a process and its children. */ 34 | struct tms 35 | { 36 | clock_t tms_utime; /* User CPU time. */ 37 | clock_t tms_stime; /* System CPU time. */ 38 | 39 | clock_t tms_cutime; /* User CPU time of dead children. */ 40 | clock_t tms_cstime; /* System CPU time of dead children. */ 41 | }; 42 | 43 | 44 | /* Store the CPU time used by this process and all its 45 | dead children (and their dead children) in BUFFER. 46 | Return the elapsed real time, or (clock_t) -1 for errors. 47 | All times are in CLK_TCKths of a second. */ 48 | extern clock_t times (struct tms *__buffer) __THROW; 49 | 50 | __END_DECLS 51 | 52 | #endif /* sys/times.h */ 53 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/ultrasound.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/un.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_UN_H 19 | #define _SYS_UN_H 1 20 | 21 | #include 22 | 23 | /* Get the definition of the macro to define the common sockaddr members. */ 24 | #include 25 | 26 | __BEGIN_DECLS 27 | 28 | /* Structure describing the address of an AF_LOCAL (aka AF_UNIX) socket. */ 29 | struct sockaddr_un 30 | { 31 | __SOCKADDR_COMMON (sun_); 32 | char sun_path[108]; /* Path name. */ 33 | }; 34 | 35 | 36 | #ifdef __USE_MISC 37 | # include /* For prototype of `strlen'. */ 38 | 39 | /* Evaluate to actual length of the `sockaddr_un' structure. */ 40 | # define SUN_LEN(ptr) ((size_t) (((struct sockaddr_un *) 0)->sun_path) \ 41 | + strlen ((ptr)->sun_path)) 42 | #endif 43 | 44 | __END_DECLS 45 | 46 | #endif /* sys/un.h */ 47 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/unistd.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/ustat.h: -------------------------------------------------------------------------------- 1 | /* Header describing obsolete `ustat' interface. 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | 5 | The GNU C Library is free software; you can redistribute it and/or 6 | modify it under the terms of the GNU Lesser General Public 7 | License as published by the Free Software Foundation; either 8 | version 2.1 of the License, or (at your option) any later version. 9 | 10 | The GNU C Library is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 | Lesser General Public License for more details. 14 | 15 | You should have received a copy of the GNU Lesser General Public 16 | License along with the GNU C Library; if not, see 17 | . */ 18 | 19 | /* 20 | * This interface is obsolete. Use instead. 21 | */ 22 | 23 | #ifndef _SYS_USTAT_H 24 | #define _SYS_USTAT_H 1 25 | 26 | #include 27 | 28 | #include 29 | #include 30 | 31 | __BEGIN_DECLS 32 | 33 | extern int ustat (__dev_t __dev, struct ustat *__ubuf) __THROW; 34 | 35 | __END_DECLS 36 | 37 | #endif /* sys/ustat.h */ 38 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/vfs.h: -------------------------------------------------------------------------------- 1 | /* Other systems declare `struct statfs' et al in , 2 | so we have this file to be compatible with programs expecting it. */ 3 | 4 | #include 5 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/vm86.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1996-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _SYS_VM86_H 19 | 20 | #define _SYS_VM86_H 1 21 | #include 22 | 23 | #ifdef __x86_64__ 24 | # error This header is unsupported on x86-64. 25 | #else 26 | /* Get constants and data types from kernel header file. */ 27 | # include 28 | 29 | __BEGIN_DECLS 30 | 31 | /* Enter virtual 8086 mode. */ 32 | extern int vm86 (unsigned long int __subfunction, 33 | struct vm86plus_struct *__info) __THROW; 34 | 35 | __END_DECLS 36 | # endif 37 | 38 | #endif /* _SYS_VM86_H */ 39 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/sys/vt.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/syscall.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/syslog.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/termio.h: -------------------------------------------------------------------------------- 1 | /* Compatible for old `struct termio' ioctl interface. 2 | This is obsolete; use the POSIX.1 `struct termios' interface 3 | defined in instead. */ 4 | 5 | #include 6 | #include 7 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/ulimit.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1997-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | #ifndef _ULIMIT_H 19 | #define _ULIMIT_H 1 20 | 21 | #include 22 | 23 | /* Constants used as the first parameter for `ulimit'. They denote limits 24 | which can be set or retrieved using this function. */ 25 | enum 26 | { 27 | UL_GETFSIZE = 1, /* Return limit on the size of a file, 28 | in units of 512 bytes. */ 29 | #define UL_GETFSIZE UL_GETFSIZE 30 | UL_SETFSIZE, /* Set limit on the size of a file to 31 | second argument. */ 32 | #define UL_SETFSIZE UL_SETFSIZE 33 | __UL_GETMAXBRK, /* Return the maximum possible address 34 | of the data segment. */ 35 | __UL_GETOPENMAX /* Return the maximum number of files 36 | that the calling process can open.*/ 37 | }; 38 | 39 | 40 | __BEGIN_DECLS 41 | 42 | /* Control process limits according to CMD. */ 43 | extern long int ulimit (int __cmd, ...) __THROW; 44 | 45 | __END_DECLS 46 | 47 | #endif /* ulimit.h */ 48 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/ustat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/utime.h: -------------------------------------------------------------------------------- 1 | /* Copyright (C) 1991-2016 Free Software Foundation, Inc. 2 | This file is part of the GNU C Library. 3 | 4 | The GNU C Library is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | The GNU C Library is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with the GNU C Library; if not, see 16 | . */ 17 | 18 | /* 19 | * POSIX Standard: 5.6.6 Set File Access and Modification Times 20 | */ 21 | 22 | #ifndef _UTIME_H 23 | #define _UTIME_H 1 24 | 25 | #include 26 | 27 | __BEGIN_DECLS 28 | 29 | #include 30 | 31 | #if defined __USE_XOPEN || defined __USE_XOPEN2K 32 | # define __need_time_t 33 | # include 34 | #endif 35 | 36 | /* Structure describing file times. */ 37 | struct utimbuf 38 | { 39 | __time_t actime; /* Access time. */ 40 | __time_t modtime; /* Modification time. */ 41 | }; 42 | 43 | /* Set the access and modification times of FILE to those given in 44 | *FILE_TIMES. If FILE_TIMES is NULL, set them to the current time. */ 45 | extern int utime (const char *__file, 46 | const struct utimbuf *__file_times) 47 | __THROW __nonnull ((1)); 48 | 49 | __END_DECLS 50 | 51 | #endif /* utime.h */ 52 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/wait.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /src/VisualStudio-Linux-Remote/toolchains/gcc5-x86_64-linux-gnu/usr/include/xlocale.h: -------------------------------------------------------------------------------- 1 | /* Definition of locale datatype. 2 | Copyright (C) 1997-2016 Free Software Foundation, Inc. 3 | This file is part of the GNU C Library. 4 | Contributed by Ulrich Drepper , 1997. 5 | 6 | The GNU C Library is free software; you can redistribute it and/or 7 | modify it under the terms of the GNU Lesser General Public 8 | License as published by the Free Software Foundation; either 9 | version 2.1 of the License, or (at your option) any later version. 10 | 11 | The GNU C Library is distributed in the hope that it will be useful, 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 | Lesser General Public License for more details. 15 | 16 | You should have received a copy of the GNU Lesser General Public 17 | License along with the GNU C Library; if not, see 18 | . */ 19 | 20 | #ifndef _XLOCALE_H 21 | #define _XLOCALE_H 1 22 | 23 | /* Structure for reentrant locale using functions. This is an 24 | (almost) opaque type for the user level programs. The file and 25 | this data structure is not standardized. Don't rely on it. It can 26 | go away without warning. */ 27 | typedef struct __locale_struct 28 | { 29 | /* Note: LC_ALL is not a valid index into this array. */ 30 | struct __locale_data *__locales[13]; /* 13 = __LC_LAST. */ 31 | 32 | /* To increase the speed of this solution we add some special members. */ 33 | const unsigned short int *__ctype_b; 34 | const int *__ctype_tolower; 35 | const int *__ctype_toupper; 36 | 37 | /* Note: LC_ALL is not a valid index into this array. */ 38 | const char *__names[13]; 39 | } *__locale_t; 40 | 41 | /* POSIX 2008 makes locale_t official. */ 42 | typedef __locale_t locale_t; 43 | 44 | #endif /* xlocale.h */ 45 | -------------------------------------------------------------------------------- /src/crypto.h: -------------------------------------------------------------------------------- 1 | #ifndef __crypto_h 2 | #define __crypto_h 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #include "types.h" 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include "endian.h" 15 | #include 16 | 17 | #define AES_KEY_BYTES (16) // 128 Bits 18 | #define AES_BLOCK_BYTES (16) 19 | #define AES_BLOCK_WORDS (AES_BLOCK_BYTES / sizeof(DWORD)) 20 | #define AES_KEY_DWORDS (AES_KEY_BYTES / sizeof(DWORD)) 21 | #define V4_KEY_BYTES (20) // 160 Bits 22 | 23 | #define ROR32(v, n) ( (v) << (32 - n) | (v) >> n ) 24 | 25 | void XorBlock(const BYTE *const in, const BYTE *out); 26 | 27 | void AesCmacV4(BYTE *data, size_t len, BYTE *hash); 28 | 29 | extern const BYTE AesKeyV5[]; 30 | extern const BYTE AesKeyV6[]; 31 | 32 | typedef struct { 33 | DWORD Key[48]; // Supports a maximum of 160 key bits! 34 | uint_fast8_t rounds; 35 | } AesCtx; 36 | 37 | void AesInitKey(AesCtx *Ctx, const BYTE *Key, int_fast8_t IsV6, int AesKeyBytes); 38 | void AesEncryptBlock(const AesCtx *const Ctx, BYTE *block); 39 | void AesDecryptBlock(const AesCtx *const Ctx, BYTE *block); 40 | void AesEncryptCbc(const AesCtx *const Ctx, BYTE *restrict iv, BYTE *restrict data, size_t *restrict len); 41 | void AesDecryptCbc(const AesCtx *const Ctx, BYTE *iv, BYTE *data, size_t len); 42 | void MixColumnsR(BYTE *restrict state); 43 | 44 | #if defined(_CRYPTO_OPENSSL) 45 | #include "crypto_openssl.h" 46 | 47 | #elif defined(_CRYPTO_POLARSSL) 48 | #include "crypto_polarssl.h" 49 | 50 | #elif defined(_CRYPTO_WINDOWS) 51 | #include "crypto_windows.h" 52 | 53 | #else 54 | #include "crypto_internal.h" 55 | 56 | #endif 57 | #endif // __crypto_h 58 | -------------------------------------------------------------------------------- /src/crypto_internal.h: -------------------------------------------------------------------------------- 1 | #ifndef __crypto_internal_h 2 | #define __crypto_internal_h 3 | 4 | #if !defined(_CRYPTO_OPENSSL) && !defined(_CRYPTO_POLARSSL) && !defined(_CRYPTO_WINDOWS) 5 | 6 | #ifndef CONFIG 7 | #define CONFIG "config.h" 8 | #endif // CONFIG 9 | #include CONFIG 10 | 11 | #include "crypto.h" 12 | 13 | typedef struct { 14 | DWORD State[8]; 15 | BYTE Buffer[64]; 16 | unsigned int Len; 17 | } Sha256Ctx; 18 | 19 | typedef struct { 20 | Sha256Ctx ShaCtx; 21 | BYTE OPad[64]; 22 | } Sha256HmacCtx; 23 | 24 | void Sha256(BYTE *data, size_t len, BYTE *hash); 25 | int_fast8_t Sha256Hmac(BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac); 26 | 27 | //void _Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, size_t klen); 28 | //void _Sha256HmacUpdate(Sha256HmacCtx *Ctx, BYTE *data, size_t len); 29 | //void _Sha256HmacFinish(Sha256HmacCtx *Ctx, BYTE *hmac); 30 | 31 | //#define Sha256HmacInit(c, k, l) ( _Sha256HmacInit(c, k, l), !0 ) 32 | //#define Sha256HmacUpdate(c, d, l) ( _Sha256HmacUpdate(c, d, l), !0 ) 33 | //#define Sha256HmacFinish(c, h) ( _Sha256HmacFinish(c, h), !0 ) 34 | 35 | 36 | #endif // !defined(_CRYPTO_OPENSSL) && !defined(_CRYPTO_POLARSSL) && !defined(_CRYPTO_WINDOWS) 37 | 38 | #endif // __crypto_internal_h 39 | -------------------------------------------------------------------------------- /src/crypto_openssl.h: -------------------------------------------------------------------------------- 1 | #ifndef __crypto_openssl_h 2 | #define __crypto_openssl_h 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include "crypto.h" 14 | 15 | #define Sha256(d, l, h) SHA256(d, l, h) 16 | int_fast8_t Sha256Hmac(BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac); 17 | 18 | #ifndef _OPENSSL_NO_HMAC 19 | #define Sha256HmacCtx HMAC_CTX 20 | #else 21 | typedef struct { 22 | SHA256_CTX ShaCtx; 23 | BYTE OPad[64]; 24 | } Sha256HmacCtx; 25 | #endif 26 | 27 | #ifndef _OPENSSL_NO_HMAC 28 | 29 | #define Sha256HmacInit(c, k, l) Sha256HmacInit_OpenSSL(c, k, l) 30 | #define Sha256HmacFinish(c, h) Sha256HmacFinish_OpenSSL(c, h, NULL) 31 | 32 | #if OPENSSL_VERSION_NUMBER >= 0x10000000L 33 | #define Sha256HmacUpdate(c, d, l) HMAC_Update(c, d, l) 34 | #else // OPENSSL_VERSION_NUMBER < 0x10000000L 35 | #define Sha256HmacUpdate(c, d, l) (HMAC_Update(c, d, l), !0) 36 | #endif // OPENSSL_VERSION_NUMBER >= 0x10000000L 37 | 38 | int Sha256HmacInit_OpenSSL(HMAC_CTX *c, const void *k, int l); 39 | int Sha256HmacFinish_OpenSSL(HMAC_CTX *c, unsigned char *h, unsigned int *l); 40 | 41 | #else // _OPENSSL_NO_HMAC 42 | 43 | int _Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, size_t klen); 44 | int _Sha256HmacUpdate(Sha256HmacCtx *Ctx, BYTE *data, size_t len); 45 | int _Sha256HmacFinish(Sha256HmacCtx *Ctx, BYTE *hmac, void* dummy); 46 | #define Sha256HmacInit(c, k, l) _Sha256HmacInit(c, k, l) 47 | #define Sha256HmacFinish(c, h) _Sha256HmacFinish(c, h, NULL) 48 | #define Sha256HmacUpdate(c, d, l) _Sha256HmacUpdate(c, d, l) 49 | 50 | #endif // _OPENSSL_NO_HMAC 51 | 52 | extern const BYTE AesKeyV4[]; 53 | #endif // __crypto_openssl_h 54 | -------------------------------------------------------------------------------- /src/crypto_polarssl.h: -------------------------------------------------------------------------------- 1 | #ifndef __crypto_polarssl_h 2 | #define __crypto_polarssl_h 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #include 10 | #include "crypto.h" 11 | 12 | #if POLARSSL_VERSION_NUMBER >= 0x01030000 13 | 14 | #include 15 | 16 | #define Sha256(d, l, h) sha256(d, l, h, 0) 17 | 18 | #define Sha256HmacCtx sha256_context 19 | #define Sha256HmacInit(c, k, l) ( sha256_hmac_starts(c, k, l, 0), !0 ) 20 | #define Sha256HmacUpdate(c, d, l) ( sha256_hmac_update(c, d, l), !0 ) 21 | #define Sha256HmacFinish(c, h) ( sha256_hmac_finish(c, h), !0 ) 22 | #define Sha256Hmac(k, d, l, h) ( sha256_hmac(k, 16, d, l, h, FALSE), !0 ) 23 | 24 | #else // POLARSSL_VERSION_NUMBER 25 | 26 | #include 27 | 28 | #define Sha256(d, l, h) sha2(d, l, h, 0) 29 | 30 | #define Sha256HmacCtx sha2_context 31 | #define Sha256HmacInit(c, k, l) ( sha2_hmac_starts(c, k, l, 0), !0 ) 32 | #define Sha256HmacUpdate(c, d, l) ( sha2_hmac_update(c, d, l), !0 ) 33 | #define Sha256HmacFinish(c, h) ( sha2_hmac_finish(c, h), !0 ) 34 | #define Sha256Hmac(k, d, l, h) ( sha2_hmac(k, 16, d, l, h, FALSE), !0 ) 35 | 36 | #endif // POLARSSL_VERSION_NUMBER 37 | #endif // __crypto_polarssl_h 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/crypto_windows.h: -------------------------------------------------------------------------------- 1 | /* 2 | * crypto_windows.h 3 | */ 4 | 5 | #ifdef _CRYPTO_WINDOWS 6 | #ifndef CRYPTO_WINDOWS_H_ 7 | #define CRYPTO_WINDOWS_H_ 8 | 9 | #if !_WIN32 && !__CYGWIN__ 10 | #error You cannot use Windows CryptoAPI on non-Windows platforms 11 | #else // _WIN32 || __CYGWIN__ 12 | 13 | #include "types.h" 14 | #if _MSC_VER 15 | #include "Wincrypt.h" 16 | #endif 17 | 18 | typedef struct _Sha2356HmacCtx 19 | { 20 | HCRYPTHASH hHmac; 21 | HCRYPTKEY hKey; 22 | } Sha256HmacCtx; 23 | 24 | int_fast8_t Sha256(BYTE* restrict data, DWORD DataSize, BYTE* restrict hash); 25 | int_fast8_t Sha256Hmac(const BYTE* key, BYTE* restrict data, DWORD len, BYTE* restrict hmac); 26 | 27 | /*int_fast8_t Sha256HmacInit(Sha256HmacCtx *Ctx, BYTE *key, uint8_t keySize); 28 | int_fast8_t Sha256HmacUpdate(Sha256HmacCtx *Ctx, BYTE *data, DWORD len); 29 | int_fast8_t Sha256HmacFinish(Sha256HmacCtx *Ctx, BYTE *hmac);*/ 30 | 31 | 32 | #endif // _WIN32 || __CYGWIN__ 33 | #endif /* CRYPTO_WINDOWS_H_ */ 34 | #endif // _CRYPTO_WINDOWS 35 | -------------------------------------------------------------------------------- /src/ifaddrs-musl.h: -------------------------------------------------------------------------------- 1 | #ifndef _IFADDRS_H 2 | #define _IFADDRS_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #if !__linux__ 9 | #error ifaddrs-musl.h only works with a Linux kernel 10 | #endif 11 | 12 | #if __ANDROID__ 13 | #error ifaddrs-musl.h does not work with Android 14 | #endif 15 | 16 | #include 17 | #include 18 | #include 19 | 20 | struct ifaddrs { 21 | struct ifaddrs *ifa_next; 22 | char *ifa_name; 23 | unsigned ifa_flags; 24 | struct sockaddr *ifa_addr; 25 | struct sockaddr *ifa_netmask; 26 | union { 27 | struct sockaddr *ifu_broadaddr; 28 | struct sockaddr *ifu_dstaddr; 29 | } ifa_ifu; 30 | void *ifa_data; 31 | }; 32 | #define ifa_broadaddr ifa_ifu.ifu_broadaddr 33 | #define ifa_dstaddr ifa_ifu.ifu_dstaddr 34 | 35 | void freeifaddrs(struct ifaddrs *ifp); 36 | int getifaddrs(struct ifaddrs **ifap); 37 | 38 | #ifdef __cplusplus 39 | } 40 | #endif 41 | 42 | #endif 43 | 44 | -------------------------------------------------------------------------------- /src/kmsdata-full.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cokebar/vlmcsd/8fff445a290cb6f2929ae593f0e0e5ad722c1927/src/kmsdata-full.c -------------------------------------------------------------------------------- /src/kmsdata.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cokebar/vlmcsd/8fff445a290cb6f2929ae593f0e0e5ad722c1927/src/kmsdata.c -------------------------------------------------------------------------------- /src/kmsdata.h: -------------------------------------------------------------------------------- 1 | #ifndef KMSDATA_SERVER_H 2 | #define KMSDATA_SERVER_H 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #ifndef NO_INTERNAL_DATA 10 | 11 | #include "types.h" 12 | 13 | extern uint8_t DefaultKmsData[]; 14 | __pure size_t getDefaultKmsDataSize(); 15 | 16 | #endif // NO_INTERNAL_DATA 17 | 18 | #endif // KMSDATA_SERVER_H 19 | 20 | -------------------------------------------------------------------------------- /src/libkms-test.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "libkms.h" 6 | #include "kms.h" 7 | #include "endian.h" 8 | 9 | static const char ePID[] = { 'T', 0, 'E', 0, 'S', 0, 'T', 0, 0, 0 }; 10 | 11 | __stdcall BOOL KmsCallBack(const REQUEST *const baseRequest, RESPONSE *const baseResponse, BYTE *const hwId, const char* const ipstr) 12 | { 13 | printf("libvlmcs-test.c: Entered KmsCallBack for client %s\n", ipstr); 14 | 15 | memcpy(&baseResponse->CMID, &baseRequest->CMID, sizeof(GUID)); 16 | memcpy(&baseResponse->ClientTime, &baseRequest->ClientTime, sizeof(FILETIME)); 17 | memcpy(&baseResponse->KmsPID, ePID, sizeof(ePID)); 18 | 19 | baseResponse->Version = baseRequest->Version; 20 | baseResponse->Count = LE32(LE32(baseRequest->N_Policy) << 1); 21 | baseResponse->PIDSize = sizeof(ePID); 22 | baseResponse->VLActivationInterval = LE32(120); 23 | baseResponse->VLRenewalInterval = LE32(10080); 24 | 25 | if (hwId && baseResponse->MajorVer > 5) memcpy(hwId, "\x01\x02\x03\x04\x05\x06\x07\x08", 8); 26 | 27 | return TRUE; 28 | } 29 | 30 | int main(int argc, char** argv) 31 | { 32 | int version = GetLibKmsVersion(); 33 | 34 | if (version < 0x30001) 35 | { 36 | fprintf(stderr, "KMS library version %u.%u or greater required\n", (unsigned int)(version >> 16), (unsigned int)(version & 0xffff)); 37 | } 38 | 39 | printf("%s: Program start\n", GetEmulatorVersion()); 40 | StartKmsServer(1688, KmsCallBack); 41 | return 0; 42 | } 43 | -------------------------------------------------------------------------------- /src/libkms.h: -------------------------------------------------------------------------------- 1 | /* 2 | * libkms.h 3 | */ 4 | 5 | #ifndef LIBKMS_H_ 6 | #define LIBKMS_H_ 7 | 8 | #include "types.h" 9 | #include "kms.h" 10 | #include "rpc.h" 11 | #include "vlmcs.h" 12 | 13 | #ifndef EXTERNC 14 | #ifdef __cplusplus 15 | #define EXTERNC EXTERN "C" 16 | #else 17 | #define EXTERNC 18 | #endif 19 | #endif 20 | 21 | EXTERNC __declspec(EXTERNAL) DWORD __cdecl SendKMSRequest(const SOCKET sock, RESPONSE* baseResponse, REQUEST* baseRequest, RESPONSE_RESULT* result, BYTE *hwid); 22 | EXTERNC __declspec(EXTERNAL) DWORD __cdecl StartKmsServer(const int port, RequestCallback_t requestCallback); 23 | EXTERNC __declspec(EXTERNAL) DWORD __cdecl StopKmsServer(); 24 | EXTERNC __declspec(EXTERNAL) int __cdecl GetLibKmsVersion(); 25 | EXTERNC __declspec(EXTERNAL) const char* const __cdecl GetEmulatorVersion(); 26 | EXTERNC __declspec(EXTERNAL) SOCKET __cdecl ConnectToServer(const char* host, const char* port, const int addressFamily); 27 | EXTERNC __declspec(EXTERNAL) char* __cdecl GetErrorMessage(); 28 | EXTERNC __declspec(EXTERNAL) void __cdecl CloseConnection(const SOCKET sock); 29 | EXTERNC __declspec(EXTERNAL) RpcStatus __cdecl BindRpc(const SOCKET sock, const int_fast8_t useMultiplexedRpc, const int_fast8_t useRpcNDR64, const int_fast8_t useRpcBTFN, PRpcDiag_t rpcDiag); 30 | EXTERNC __declspec(EXTERNAL) int_fast8_t __cdecl IsDisconnected(const SOCKET sock); 31 | //EXTERN_C __declspec(EXTERNAL) unsigned int __cdecl GetRandom32(); 32 | 33 | 34 | #endif /* LIBKMS_H_ */ 35 | -------------------------------------------------------------------------------- /src/msrpc-client.h: -------------------------------------------------------------------------------- 1 | /* 2 | * msrpc-client.h 3 | */ 4 | 5 | #ifdef USE_MSRPC 6 | #ifndef MSRPC_CLIENT_H_ 7 | #define MSRPC_CLIENT_H_ 8 | 9 | #include "types.h" 10 | #include "shared_globals.h" 11 | #include 12 | #include "output.h" 13 | 14 | typedef int_fast8_t RpcCtx; 15 | typedef RPC_STATUS RpcStatus; 16 | 17 | RpcCtx connectToAddress(char *const addr, const int AddressFamily_unused, int_fast8_t showHostName); 18 | int_fast8_t isDisconnected(const RpcCtx handle); 19 | RpcStatus rpcBindClient(const RpcCtx handle, const int_fast8_t verbose, PRpcDiag_t rpcDiag); 20 | RpcStatus rpcSendRequest(const RpcCtx handle, BYTE* KmsRequest, size_t requestSize, BYTE **KmsResponse, size_t *responseSize); 21 | RpcStatus closeRpc(RpcCtx s); 22 | 23 | #define INVALID_RPCCTX ((RpcCtx)~0) 24 | #endif // USE_MSRPC 25 | 26 | #endif /* MSRPC_CLIENT_H_ */ 27 | -------------------------------------------------------------------------------- /src/msrpc-server.h: -------------------------------------------------------------------------------- 1 | /* 2 | * msrpc-server.h 3 | */ 4 | 5 | #ifndef MSRPC_SERVER_H_ 6 | #define MSRPC_SERVER_H_ 7 | 8 | int runServer(); 9 | 10 | #endif /* MSRPC_SERVER_H_ */ 11 | -------------------------------------------------------------------------------- /src/network.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDED_NETWORK_H 2 | #define INCLUDED_NETWORK_H 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #ifndef _GNU_SOURCE 10 | #define _GNU_SOURCE 11 | #endif 12 | 13 | #include "types.h" 14 | #include "output.h" 15 | 16 | #if _MSC_VER 17 | //typedef signed char int_fast8_t; 18 | //typedef unsigned char BYTE; 19 | //typedef UINT_PTR size_t; 20 | //typedef unsigned long DWORD; 21 | #define STDIN_FILENO 0 22 | #endif 23 | 24 | int_fast8_t sendrecv(SOCKET sock, BYTE *data, int len, int_fast8_t do_send); 25 | 26 | #define _recv(s, d, l) sendrecv(s, (BYTE *)d, l, 0) 27 | #define _send(s, d, l) sendrecv(s, (BYTE *)d, l, !0) 28 | 29 | #ifndef NO_SOCKETS 30 | 31 | void closeAllListeningSockets(); 32 | #ifdef SIMPLE_SOCKETS 33 | int listenOnAllAddresses(); 34 | #endif // SIMPLE_SOCKETS 35 | BOOL addListeningSocket(const char *const addr); 36 | __pure int_fast8_t checkProtocolStack(const int addressfamily); 37 | 38 | #if HAVE_GETIFADDR 39 | void getPrivateIPAddresses(int* numAddresses, char*** ipAddresses); 40 | #endif // HAVE_GETIFADDR 41 | 42 | #endif // NO_SOCKETS 43 | 44 | int runServer(); 45 | SOCKET connectToAddress(const char *const addr, const int AddressFamily, int_fast8_t showHostName); 46 | int_fast8_t isDisconnected(const SOCKET s); 47 | 48 | #endif // INCLUDED_NETWORK_H 49 | -------------------------------------------------------------------------------- /src/ns_name.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef NS_NAME_H_ 3 | #define NS_NAME_H_ 4 | 5 | int 6 | ns_name_uncompress_vlmcsd(uint8_t *msg, uint8_t *eom, uint8_t *src, 7 | char *dst, size_t dstsiz); 8 | 9 | #endif /* NS_NAME_H_ */ 10 | -------------------------------------------------------------------------------- /src/ntservice.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDED_NTSERVICE_H 2 | #define INCLUDED_NTSERVICE_H 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #include "types.h" 10 | #ifdef _NTSERVICE 11 | 12 | //#include 13 | 14 | #define NT_SERVICE_NAME "vlmcsd" 15 | #define NT_SERVICE_DISPLAY_NAME "Key Management Server" 16 | 17 | extern SERVICE_TABLE_ENTRY NTServiceDispatchTable[]; 18 | 19 | VOID ReportServiceStatus(const DWORD, const DWORD, const DWORD); 20 | int NtServiceInstallation(const int_fast8_t installService, const char *restrict ServiceUser, const char *const ServicePassword); 21 | 22 | #else // !_NTSERVICE 23 | 24 | #define ReportServiceStatus(x,y,z) 25 | 26 | #endif // _NTSERVICE 27 | 28 | #endif // INCLUDED_NTSERVICE_H 29 | -------------------------------------------------------------------------------- /src/output.h: -------------------------------------------------------------------------------- 1 | #ifndef INCLUDED_OUTPUT_H 2 | #define INCLUDED_OUTPUT_H 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #include 10 | #include "types.h" 11 | #include "kms.h" 12 | 13 | typedef int (*PRINTFUNC)(const char *const fmt, ...); 14 | 15 | int printerrorf(const char *const fmt, ...); 16 | int errorout(const char* fmt, ...); 17 | void logRequestVerbose(REQUEST* Request, const PRINTFUNC p); 18 | void logResponseVerbose(const char *const ePID, const BYTE *const hwid, RESPONSE* response, const PRINTFUNC p); 19 | 20 | #ifndef NO_VERSION_INFORMATION 21 | void printPlatform(); 22 | void printCommonFlags(); 23 | void printServerFlags(); 24 | void printClientFlags(); 25 | #endif // NO_VERSION_INFORMATION 26 | 27 | #ifndef NO_LOG 28 | int logger(const char *const fmt, ...); 29 | #endif //NO_LOG 30 | 31 | void uuid2StringLE(const GUID *const guid, char *const string); 32 | 33 | //void copy_arguments(int argc, char **argv, char ***new_argv); 34 | //void destroy_arguments(int argc, char **argv); 35 | 36 | #endif // INCLUDED_OUTPUT_H 37 | -------------------------------------------------------------------------------- /src/resolv_static.h: -------------------------------------------------------------------------------- 1 | #ifndef _RESOLV_STATIC_H 2 | #define _RESOLV_STATIC_H 3 | 4 | #include 5 | 6 | /* this structure contains all the variables that were declared 7 | * 'static' in the original NetBSD resolver code. 8 | * 9 | * this caused vast amounts of crashes and memory corruptions 10 | * when the resolver was being used by multiple threads. 11 | * 12 | * (note: the OpenBSD/FreeBSD resolver has similar 'issues') 13 | */ 14 | 15 | #define MAXALIASES 35 16 | #define MAXADDRS 35 17 | 18 | typedef struct res_static { 19 | char* h_addr_ptrs[MAXADDRS + 1]; 20 | char* host_aliases[MAXALIASES]; 21 | char hostbuf[8*1024]; 22 | u_int32_t host_addr[16 / sizeof(u_int32_t)]; /* IPv4 or IPv6 */ 23 | FILE* hostf; 24 | int stayopen; 25 | const char* servent_ptr; 26 | struct servent servent; 27 | struct hostent host; 28 | } *res_static; 29 | 30 | extern res_static __res_get_static(void); 31 | 32 | #endif /* _RESOLV_STATIC_H */ 33 | -------------------------------------------------------------------------------- /src/vlmcs.h: -------------------------------------------------------------------------------- 1 | #ifndef VLMCS_H_ 2 | #define VLMCS_H_ 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #if !defined(USE_MSRPC) && defined(_WIN32) 10 | #include 11 | #endif // defined(USE_MSRPC) && defined(_WIN32) 12 | #include "types.h" 13 | #ifndef USE_MSRPC 14 | #include "rpc.h" 15 | #else // USE_MSRPC 16 | #include "msrpc-client.h" 17 | #endif // USE_MSRPC 18 | #include "kms.h" 19 | 20 | #if MULTI_CALL_BINARY < 1 21 | #define client_main main 22 | #else 23 | int client_main(int argc, CARGV argv); 24 | #endif 25 | 26 | int SendActivationRequest(const RpcCtx sock, RESPONSE *baseResponse, REQUEST *baseRequest, RESPONSE_RESULT *result, BYTE *const hwid); 27 | 28 | #endif /* VLMCS_H_ */ 29 | 30 | -------------------------------------------------------------------------------- /src/vlmcsd.h: -------------------------------------------------------------------------------- 1 | #ifndef __main_h 2 | #define __main_h 3 | 4 | #ifndef CONFIG 5 | #define CONFIG "config.h" 6 | #endif // CONFIG 7 | #include CONFIG 8 | 9 | #define __T(x) #x 10 | #define _T(x) __T(x) 11 | 12 | extern char *fn_log; 13 | 14 | #include "types.h" 15 | 16 | //int main(int argc, CARGV); 17 | extern void cleanup(); 18 | 19 | int newmain(); 20 | 21 | #if MULTI_CALL_BINARY < 1 22 | #define server_main main 23 | #else 24 | int server_main(int argc, CARGV argv); 25 | #endif 26 | 27 | #ifndef SA_NOCLDWAIT // required for Cygwin 28 | #define SA_NOCLDWAIT 0 29 | #endif 30 | 31 | #if !defined(NO_INI_FILE) || !defined(NO_CL_PIDS) 32 | #define INI_PARAM_RANDOMIZATION_LEVEL 1 33 | #define INI_PARAM_LCID 2 34 | #define INI_PARAM_LISTEN 3 35 | #define INI_PARAM_MAX_WORKERS 4 36 | #define INI_PARAM_CONNECTION_TIMEOUT 5 37 | #define INI_PARAM_PID_FILE 6 38 | #define INI_PARAM_LOG_FILE 7 39 | #define INI_PARAM_LOG_VERBOSE 8 40 | #define INI_PARAM_ACTIVATION_INTERVAL 9 41 | #define INI_PARAM_RENEWAL_INTERVAL 10 42 | #define INI_PARAM_DISCONNECT_IMMEDIATELY 11 43 | #define INI_PARAM_UID 12 44 | #define INI_PARAM_GID 13 45 | #define INI_PARAM_PORT 14 46 | #define INI_PARAM_RPC_NDR64 15 47 | #define INI_PARAM_RPC_BTFN 16 48 | #define INI_PARAM_FREEBIND 17 49 | #define INI_PARAM_PUBLIC_IP_PROTECTION_LEVEL 18 50 | #define INI_PARAM_LOG_DATE_AND_TIME 19 51 | #define INI_PARAM_HOST_BUILD 20 52 | #define INI_PARAM_WHITELISTING_LEVEL 24 53 | #define INI_PARAM_CHECK_CLIENT_TIME 25 54 | #define INI_PARAM_MAINTAIN_CLIENTS 26 55 | #define INI_PARAM_START_EMPTY 27 56 | #define INI_PARAM_DATA_FILE 28 57 | #define INI_PARAM_VPN 29 58 | #define INI_PARAM_EXIT_LEVEL 30 59 | 60 | #define INI_FILE_PASS_1 1 61 | #define INI_FILE_PASS_2 2 62 | #define INI_FILE_PASS_3 3 63 | 64 | typedef struct IniFileParameter 65 | { 66 | const char* const Name; 67 | uint_fast8_t Id; 68 | } IniFileParameter_t, *PIniFileParameter_t; 69 | #endif // NO_INI_FILE 70 | 71 | #endif // __main_h 72 | -------------------------------------------------------------------------------- /src/wingetopt.c: -------------------------------------------------------------------------------- 1 | /* 2 | POSIX getopt for Windows 3 | 4 | AT&T Public License 5 | 6 | Code given out at the 1985 UNIFORUM conference in Dallas. 7 | Modified for vlmcsd by Hotbird64 8 | */ 9 | 10 | #ifdef _MSC_VER 11 | 12 | #include "wingetopt.h" 13 | //#include 14 | #include 15 | 16 | #define EOF (-1) 17 | #define ERR(s, c) if(opterr){\ 18 | char errbuf[2];\ 19 | errbuf[0] = c; errbuf[1] = '\n';\ 20 | fputs(argv[0], stderr);\ 21 | fputs(s, stderr);\ 22 | fputc(c, stderr);} 23 | //(void) write(2, argv[0], (unsigned)strlen(argv[0]));\ 24 | //(void) write(2, s, (unsigned)strlen(s));\ 25 | //(void) write(2, errbuf, 2);} 26 | 27 | int opterr = 1; 28 | int optind = 1; 29 | int optopt; 30 | char* optarg; 31 | 32 | int getopt(int argc, char * const argv[], const char *opts) 33 | { 34 | static int sp = 1; 35 | register int c; 36 | register char *cp; 37 | 38 | if (sp == 1) 39 | if (optind >= argc || 40 | argv[optind][0] != '-' || argv[optind][1] == '\0') 41 | return(EOF); 42 | else if (strcmp(argv[optind], "--") == 0) { 43 | optind++; 44 | return(EOF); 45 | } 46 | optopt = c = argv[optind][sp]; 47 | if (c == ':' || (cp = strchr(opts, c)) == NULL) { 48 | //ERR(": illegal option -- ", (char)c); 49 | if (argv[optind][++sp] == '\0') { 50 | optind++; 51 | sp = 1; 52 | } 53 | return('?'); 54 | } 55 | if (*++cp == ':') { 56 | if (argv[optind][sp + 1] != '\0') 57 | optarg = (char*)&argv[optind++][sp + 1]; 58 | else if (++optind >= argc) { 59 | //ERR(": option requires an argument -- ", (char)c); 60 | sp = 1; 61 | return('?'); 62 | } 63 | else 64 | optarg = (char*)argv[optind++]; 65 | sp = 1; 66 | } 67 | else { 68 | if (argv[optind][++sp] == '\0') { 69 | sp = 1; 70 | optind++; 71 | } 72 | optarg = NULL; 73 | } 74 | return(c); 75 | } 76 | 77 | #endif // _MSC_VER 78 | 79 | -------------------------------------------------------------------------------- /src/wingetopt.h: -------------------------------------------------------------------------------- 1 | /* 2 | POSIX getopt for Windows 3 | 4 | AT&T Public License 5 | 6 | Code given out at the 1985 UNIFORUM conference in Dallas. 7 | Modified for vlmcsd by Hotbird64 8 | */ 9 | 10 | #ifndef _WINGETOPT_H_ 11 | #define _WINGETOPT_H_ 12 | 13 | #ifdef _MSC_VER 14 | 15 | 16 | #ifdef __cplusplus 17 | extern "C" { 18 | #endif 19 | 20 | extern int opterr; 21 | extern int optind; 22 | extern int optopt; 23 | extern char *optarg; 24 | extern int getopt(int argc, char * const argv[], const char *optstring); 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif // _MSC_VER 31 | #endif // __wingetopt_h 32 | -------------------------------------------------------------------------------- /src/wintap.h: -------------------------------------------------------------------------------- 1 | #ifndef __WINTAP_H 2 | #define __WINTAP_H 3 | 4 | #define TAP_REGISTRY_DATA_SIZE 256 5 | 6 | // Network-Endian (= Big-Endian) 7 | typedef struct TapConfigTun 8 | { 9 | struct in_addr Address; 10 | struct in_addr Network; 11 | struct in_addr Mask; 12 | } TapConfigTun_t, *PTapConfigTun_t; 13 | 14 | // Network-Endian (= Big-Endian), except LeaseDuration 15 | typedef struct TapConfigDhcp 16 | { 17 | struct in_addr Address; 18 | struct in_addr Mask; 19 | struct in_addr DhcpServer; 20 | uint32_t LeaseDuration; // Host-Endian (=Little-Endian). Anything else is Big-Endian 21 | } TapConfigDhcp_t, *PTapConfigDhcp_t; 22 | 23 | typedef struct TapDriverVersion 24 | { 25 | uint32_t Major; 26 | uint32_t Minor; 27 | uint32_t Build; 28 | uint32_t Revision; 29 | } TapDriverVersion_t, *PTapDriverVersion_t; 30 | 31 | // Network-Endian (= Big-Endian) 32 | typedef struct IpPacket { 33 | uint8_t ip_hl : 4, /* header length */ 34 | ip_v : 4; /* version */ 35 | uint8_t ip_tos; /* type of service */ 36 | int16_t ip_len; /* total length */ 37 | uint16_t ip_id; /* identification */ 38 | int16_t ip_off; /* fragment offset field */ 39 | uint8_t ip_ttl; /* time to live */ 40 | uint8_t ip_p; /* protocol */ 41 | uint16_t ip_sum; /* checksum */ 42 | uint32_t ip_src, ip_dst; /* source and dest address */ 43 | uint8_t payload[0]; 44 | } IpPacket_t, *PIpPacket_t; 45 | 46 | void startTap(char* const argument); 47 | 48 | #endif //__WINTAP_H 49 | 50 | 51 | --------------------------------------------------------------------------------