# 1 "" # 1 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" /*===- GCDAProfiling.c - Support library for GCDA file emission -----------===*\ |* |* The LLVM Compiler Infrastructure |* |* This file is distributed under the University of Illinois Open Source |* License. See LICENSE.TXT for details. |* |*===----------------------------------------------------------------------===*| |* |* This file implements the call back routines for the gcov profiling |* instrumentation pass. Link against this library when running code through |* the -insert-gcov-profiling LLVM pass. |* |* We emit files in a corrupt version of GCOV's "gcda" file format. These files |* are only close enough that LCOV will happily parse them. Anything that lcov |* ignores is missing. |* |* TODO: gcov is multi-process safe by having each exit open the existing file |* and append to it. We'd like to achieve that and be thread-safe too. |* \*===----------------------------------------------------------------------===*/ #ifdef _LIBC #if 0 /* expanded by -frewrite-includes */ #include "namespace.h" #endif /* expanded by -frewrite-includes */ # 24 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" 1 /* $NetBSD: namespace.h,v 1.199 2020/05/06 16:17:36 nia Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _NAMESPACE_H_ #define _NAMESPACE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" 1 /* $NetBSD: cdefs.h,v 1.154 2020/04/22 09:23:21 rin Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Berkeley Software Design, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)cdefs.h 8.8 (Berkeley) 1/9/95 */ #ifndef _SYS_CDEFS_H_ #define _SYS_CDEFS_H_ #ifdef _KERNEL_OPT #if 0 /* expanded by -frewrite-includes */ #include "opt_diagnostic.h" #endif /* expanded by -frewrite-includes */ # 40 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # 41 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Macro to test if we're using a GNU C compiler of a specific vintage * or later, for e.g. features that appeared in a particular version * of GNU C. Usage: * * #if __GNUC_PREREQ__(major, minor) * ...cool feature... * #else * ...delete feature... * #endif */ #ifdef __GNUC__ #define __GNUC_PREREQ__(x, y) \ ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || \ (__GNUC__ > (x))) #else # 59 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __GNUC_PREREQ__(x, y) 0 #endif # 61 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Macros to test Clang/LLVM features. * Usage: * * #if __has_feature(safe_stack) * ...SafeStack specific code... * #else * ..regular code... * #endif */ #ifndef __has_feature #define __has_feature(x) 0 #endif # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #ifndef __has_extension #define __has_extension __has_feature /* Compat with pre-3.0 Clang */ #endif # 79 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 80 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/cdefs.h" 1 3 4 /* $NetBSD: cdefs.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/cdefs.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 1 3 4 /* $NetBSD: cdefs.h,v 1.16 2019/08/02 12:07:25 joerg Exp $ */ #ifndef _ARM_CDEFS_H_ #define _ARM_CDEFS_H_ #ifndef __lint__ #if 0 /* disabled by -frewrite-includes */ #if (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || __GNUC__ < 4 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 8 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #error GCC 4.1 or compatible required. #endif # 10 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #endif # 11 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (__ARM_ARCH_8A__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 13 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_8 /* ARMv8 64-bit in AARCH32 */ #endif # 15 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_8) || defined (__ARM_ARCH_7__) || \ defined (__ARM_ARCH_7A__) || defined (__ARM_ARCH_7R__) || \ defined (__ARM_ARCH_7M__) || defined (__ARM_ARCH_7EM__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 19 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 /* 7R, 7M, 7EM are for non MMU arms */ #define _ARM_ARCH_7 #endif # 22 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_7) || defined (__ARM_ARCH_6T2__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 24 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_T2 /* Thumb2 */ #endif # 26 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_T2) || defined (__ARM_ARCH_6__) || \ defined (__ARM_ARCH_6J__) || \ defined (__ARM_ARCH_6K__) || defined (__ARM_ARCH_6KZ__) || \ defined (__ARM_ARCH_6Z__) || defined (__ARM_ARCH_6ZK__) || \ defined (__ARM_ARCH_6ZM__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 32 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_6 #endif # 34 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5T__) || \ defined (__ARM_ARCH_5TE__) || defined (__ARM_ARCH_5TEJ__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_5T #endif # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_6) || defined (_ARM_ARCH_5T) || defined (__ARM_ARCH_5__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 41 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_5 #endif # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_5) || defined (__ARM_ARCH_4T__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_4T #endif # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined (_ARM_ARCH_T2) || \ (!defined (__thumb__) && \ (defined (_ARM_ARCH_6) || defined (__ARM_ARCH_5TE__) || \ defined (__ARM_ARCH_5TEJ__))) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define _ARM_ARCH_DWORD_OK #endif # 54 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__ARM_PCS_AAPCS64) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 56 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define __ALIGNBYTES (sizeof(__int128_t) - 1) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__ARM_EABI__) #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 58 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define __ALIGNBYTES (sizeof(long long) - 1) #else # 60 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #define __ALIGNBYTES (sizeof(int) - 1) #endif # 62 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 #endif /* !_ARM_CDEFS_H_ */ # 64 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/cdefs.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/cdefs.h" 2 3 4 # 81 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" 2 #ifdef __ELF__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" 1 /* $NetBSD: cdefs_elf.h,v 1.57 2020/04/30 14:32:05 joerg Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. * All rights reserved. * * Author: Chris G. Demetriou * * Permission to use, copy, modify and distribute this software and * its documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. */ #ifndef _SYS_CDEFS_ELF_H_ #define _SYS_CDEFS_ELF_H_ #ifdef __LEADING_UNDERSCORE #define _C_LABEL(x) __CONCAT(_,x) #define _C_LABEL_STRING(x) "_"x #else # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define _C_LABEL(x) x #define _C_LABEL_STRING(x) x #endif # 40 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #if 0 /* disabled by -frewrite-includes */ #if __STDC__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define ___RENAME(x) __asm(___STRING(_C_LABEL(x))) #else # 44 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #ifdef __LEADING_UNDERSCORE #define ___RENAME(x) ____RENAME(_/**/x) #define ____RENAME(x) __asm(___STRING(x)) #else # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define ___RENAME(x) __asm(___STRING(x)) #endif # 50 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #endif # 51 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __indr_reference(sym,alias) /* nada, since we do weak refs */ #if 0 /* disabled by -frewrite-includes */ #if __STDC__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 55 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __strong_alias(alias,sym) \ __asm(".global " _C_LABEL_STRING(#alias) "\n" \ _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); #define __weak_alias(alias,sym) \ __asm(".weak " _C_LABEL_STRING(#alias) "\n" \ _C_LABEL_STRING(#alias) " = " _C_LABEL_STRING(#sym)); /* Do not use __weak_extern, use __weak_reference instead */ #define __weak_extern(sym) \ __asm(".weak " _C_LABEL_STRING(#sym)); #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 0) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak __attribute__((__weak__)) #else # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 0) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 74 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak_reference(sym) __attribute__((__weakref__(#sym))) #else # 76 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak_reference(sym) ; __asm(".weak " _C_LABEL_STRING(#sym)) #endif # 78 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 2) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 80 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weakref_visible static #else # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weakref_visible extern #endif # 84 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __warn_references(sym,msg) \ __asm(".pushsection .gnu.warning." #sym "\n" \ ".ascii \"" msg "\"\n" \ ".popsection"); #else /* !__STDC__ */ # 91 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #ifdef __LEADING_UNDERSCORE #define __weak_alias(alias,sym) ___weak_alias(_/**/alias,_/**/sym) #define ___weak_alias(alias,sym) \ __asm(".weak alias\nalias = sym"); #else # 97 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak_alias(alias,sym) \ __asm(".weak alias\nalias = sym"); #endif # 100 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #ifdef __LEADING_UNDERSCORE #define __weak_extern(sym) ___weak_extern(_/**/sym) #define ___weak_extern(sym) \ __asm(".weak sym"); #else # 105 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __weak_extern(sym) \ __asm(".weak sym"); #endif # 108 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __warn_references(sym,msg) \ __asm(".pushsection .gnu.warning.sym\n" \ ".ascii \"" msg "\"\n" \ ".popsection"); #endif /* !__STDC__ */ # 114 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #if 0 /* disabled by -frewrite-includes */ #if __arm__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 116 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __ifunc(name, resolver) \ __asm(".globl " _C_LABEL_STRING(#name) "\n" \ ".type " _C_LABEL_STRING(#name) ", %gnu_indirect_function\n" \ _C_LABEL_STRING(#name) " = " _C_LABEL_STRING(#resolver)) #define __hidden_ifunc(name, resolver) \ __asm(".globl " _C_LABEL_STRING(#name) "\n" \ ".hidden " _C_LABEL_STRING(#name) "\n" \ ".type " _C_LABEL_STRING(#name) ", %gnu_indirect_function\n" \ _C_LABEL_STRING(#name) " = " _C_LABEL_STRING(#resolver)) #else # 126 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __ifunc(name, resolver) \ __asm(".globl " _C_LABEL_STRING(#name) "\n" \ ".type " _C_LABEL_STRING(#name) ", @gnu_indirect_function\n" \ _C_LABEL_STRING(#name) " = " _C_LABEL_STRING(#resolver)) #define __hidden_ifunc(name, resolver) \ __asm(".globl " _C_LABEL_STRING(#name) "\n" \ ".hidden " _C_LABEL_STRING(#name) "\n" \ ".type " _C_LABEL_STRING(#name) ", @gnu_indirect_function\n" \ _C_LABEL_STRING(#name) " = " _C_LABEL_STRING(#resolver)) #endif # 136 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #ifdef __arm__ #if 0 /* disabled by -frewrite-includes */ #if __STDC__ #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 139 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" # define __SECTIONSTRING(_sec, _str) \ __asm(".pushsection " #_sec ",\"MS\",%progbits,1\n" \ ".asciz \"" _str "\"\n" \ ".popsection") #else # 144 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" # define __SECTIONSTRING(_sec, _str) \ __asm(".pushsection " _sec ",\"MS\",%progbits,1\n" \ ".asciz \"" _str "\"\n" \ ".popsection") # endif # 149 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #else # 150 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #if 0 /* disabled by -frewrite-includes */ # if __STDC__ #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 151 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" # define __SECTIONSTRING(_sec, _str) \ __asm(".pushsection " #_sec ",\"MS\",@progbits,1\n" \ ".asciz \"" _str "\"\n" \ ".popsection") # else # 156 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" # define __SECTIONSTRING(_sec, _str) \ __asm(".pushsection " _sec ",\"MS\",@progbits,1\n" \ ".asciz \"" _str "\"\n" \ ".popsection") # endif # 161 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #endif # 162 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s) #define __RCSID(_s) __IDSTRING(rcsid,_s) #define __SCCSID(_s) #define __SCCSID2(_s) #define __COPYRIGHT(_s) __SECTIONSTRING(.copyright,_s) #define __KERNEL_RCSID(_n, _s) __RCSID(_s) #define __KERNEL_SCCSID(_n, _s) #define __KERNEL_COPYRIGHT(_n, _s) __COPYRIGHT(_s) #ifndef __lint__ #define __link_set_make_entry(set, sym) \ static void const * const __link_set_##set##_sym_##sym \ __section("link_set_" #set) __used = (const void *)&sym #define __link_set_make_entry2(set, sym, n) \ static void const * const __link_set_##set##_sym_##sym##_##n \ __section("link_set_" #set) __used = (const void *)&sym[n] #else # 182 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __link_set_make_entry(set, sym) \ extern void const * const __link_set_##set##_sym_##sym #define __link_set_make_entry2(set, sym, n) \ extern void const * const __link_set_##set##_sym_##sym##_##n #endif /* __lint__ */ # 187 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #define __link_set_add_text(set, sym) __link_set_make_entry(set, sym) #define __link_set_add_rodata(set, sym) __link_set_make_entry(set, sym) #define __link_set_add_data(set, sym) __link_set_make_entry(set, sym) #define __link_set_add_bss(set, sym) __link_set_make_entry(set, sym) #define __link_set_add_text2(set, sym, n) __link_set_make_entry2(set, sym, n) #define __link_set_add_rodata2(set, sym, n) __link_set_make_entry2(set, sym, n) #define __link_set_add_data2(set, sym, n) __link_set_make_entry2(set, sym, n) #define __link_set_add_bss2(set, sym, n) __link_set_make_entry2(set, sym, n) #define __link_set_start(set) (__start_link_set_##set) #define __link_set_end(set) (__stop_link_set_##set) #define __link_set_decl(set, ptype) \ extern ptype * const __link_set_start(set)[] __dso_hidden; \ __asm__(".hidden " __STRING(__stop_link_set_##set)); \ extern ptype * const __link_set_end(set)[] __weak __dso_hidden #define __link_set_count(set) \ (__link_set_end(set) - __link_set_start(set)) #ifdef _KERNEL /* * On multiprocessor systems we can gain an improvement in performance * by being mindful of which cachelines data is placed in. * * __read_mostly: * * It makes sense to ensure that rarely modified data is not * placed in the same cacheline as frequently modified data. * To mitigate the phenomenon known as "false-sharing" we * can annotate rarely modified variables with __read_mostly. * All such variables are placed into the .data.read_mostly * section in the kernel ELF. * * Prime candidates for __read_mostly annotation are variables * which are hardly ever modified and which are used in code * hot-paths, e.g. pmap_initialized. * * __cacheline_aligned: * * Some data structures (mainly locks) benefit from being aligned * on a cacheline boundary, and having a cacheline to themselves. * This way, the modification of other data items cannot adversely * affect the lock and vice versa. * * Any variables annotated with __cacheline_aligned will be * placed into the .data.cacheline_aligned ELF section. */ #define __read_mostly \ __attribute__((__section__(".data.read_mostly"))) #define __cacheline_aligned \ __attribute__((__aligned__(COHERENCY_UNIT), \ __section__(".data.cacheline_aligned"))) #endif /* _KERNEL */ # 246 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" #endif /* !_SYS_CDEFS_ELF_H_ */ # 248 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs_elf.h" # 83 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" 2 #else # 84 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 84 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # 85 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif # 86 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #ifdef __GNUC__ #define __strict_weak_alias(alias,sym) \ __unused static __typeof__(alias) *__weak_alias_##alias = &sym; \ __weak_alias(alias,sym) #else # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __strict_weak_alias(alias,sym) __weak_alias(alias,sym) #endif # 94 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Optional marker for size-optimised MD calling convention. */ #ifndef __compactcall #define __compactcall #endif # 101 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * The __CONCAT macro is used to concatenate parts of symbol names, e.g. * with "#define OLD(foo) __CONCAT(old,foo)", OLD(foo) produces oldfoo. * The __CONCAT macro is a bit tricky -- make sure you don't put spaces * in between its arguments. __CONCAT can also concatenate double-quoted * strings produced by the __STRING macro, but this only works with ANSI C. */ #define ___STRING(x) __STRING(x) #define ___CONCAT(x,y) __CONCAT(x,y) #if 0 /* disabled by -frewrite-includes */ #if __STDC__ || defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 114 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __P(protos) protos /* full-blown ANSI C */ #define __CONCAT(x,y) x ## y #define __STRING(x) #x #define __const const /* define reserved names to standard */ #define __signed signed #define __volatile volatile #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) || defined(__PCC__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 122 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __inline inline /* convert to C++/C99 keyword */ #else # 124 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(__GNUC__) && !defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 125 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __inline /* delete GCC keyword */ #endif /* !__GNUC__ && !__lint__ */ # 127 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif /* !__cplusplus */ # 128 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #else /* !(__STDC__ || __cplusplus) */ # 130 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __P(protos) () /* traditional C preprocessor */ #define __CONCAT(x,y) x/**/y #define __STRING(x) "x" #ifndef __GNUC__ #define __const /* delete pseudo-ANSI C keywords */ #define __inline #define __signed #define __volatile #endif /* !__GNUC__ */ # 140 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * In non-ANSI C environments, new programs will want ANSI-only C keywords * deleted from the program and old programs will want them left alone. * Programs using the ANSI C keywords const, inline etc. as normal * identifiers should define -DNO_ANSI_KEYWORDS. */ #ifndef NO_ANSI_KEYWORDS #define const __const /* convert ANSI C keywords */ #define inline __inline #define signed __signed #define volatile __volatile #endif /* !NO_ANSI_KEYWORDS */ # 153 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif /* !(__STDC__ || __cplusplus) */ # 154 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Used for internal auditing of the NetBSD source tree. */ #ifdef __AUDIT__ #define __aconst __const #else # 161 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __aconst #endif # 163 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Compile Time Assertion. */ #ifdef __COUNTER__ #define __CTASSERT(x) __CTASSERT0(x, __ctassert, __COUNTER__) #else # 170 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __CTASSERT(x) __CTASSERT99(x, __INCLUDE_LEVEL__, __LINE__) #define __CTASSERT99(x, a, b) __CTASSERT0(x, __CONCAT(__ctassert,a), \ __CONCAT(_,b)) #endif # 174 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __CTASSERT0(x, y, z) __CTASSERT1(x, y, z) #define __CTASSERT1(x, y, z) \ struct y ## z ## _struct { \ unsigned int y ## z : /*CONSTCOND*/(x) ? 1 : -1; \ } /* * The following macro is used to remove const cast-away warnings * from gcc -Wcast-qual; it should be used with caution because it * can hide valid errors; in particular most valid uses are in * situations where the API requires it, not to cast away string * constants. We don't use *intptr_t on purpose here and we are * explicit about unsigned long so that we don't have additional * dependencies. */ #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a)) /* * The following macro is used to remove the volatile cast-away warnings * from gcc -Wcast-qual; as above it should be used with caution * because it can hide valid errors or warnings. Valid uses include * making it possible to pass a volatile pointer to memset(). * For the same reasons as above, we use unsigned long and not intptr_t. */ #define __UNVOLATILE(a) ((void *)(unsigned long)(volatile void *)(a)) /* * The following macro is used to remove the the function type cast warnings * from gcc -Wcast-function-type and as above should be used with caution. */ #define __FPTRCAST(t, f) ((t)(void *)(f)) /* * GCC2 provides __extension__ to suppress warnings for various GNU C * language extensions under "-ansi -pedantic". */ #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 0) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 211 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __extension__ /* delete __extension__ if non-gcc or gcc1 */ #endif # 213 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * GCC1 and some versions of GCC2 declare dead (non-returning) and * pure (no side effects) functions using "volatile" and "const"; * unfortunately, these then cause warnings under "-ansi -pedantic". * GCC2 uses a new, peculiar __attribute__((attrs)) style. All of * these work for GNU C++ (modulo a slight glitch in the C++ grammar * in the distribution version of 2.5.5). * * GCC defines a pure function as depending only on its arguments and * global variables. Typical examples are strlen and sqrt. * * GCC defines a const function as depending only on its arguments. * Therefore calling a const function again with identical arguments * will always produce the same result. * * Rounding modes for floating point operations are considered global * variables and prevent sqrt from being a const function. * * Calls to const functions can be optimised away and moved around * without limitations. */ #if 0 /* disabled by -frewrite-includes */ #if !__GNUC_PREREQ__(2, 0) && !defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 236 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __attribute__(x) #endif # 238 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 5) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 240 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __dead __attribute__((__noreturn__)) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 242 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __dead __volatile #else # 244 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __dead #endif # 246 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 96) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 248 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __pure __attribute__((__pure__)) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 250 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __pure __const #else # 252 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __pure #endif # 254 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 5) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 256 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __constfunc __attribute__((__const__)) #else # 258 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __constfunc #endif # 260 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 0) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 262 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noinline __attribute__((__noinline__)) #else # 264 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noinline /* nothing */ #endif # 266 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 0) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 268 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __always_inline __attribute__((__always_inline__)) #else # 270 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __always_inline /* nothing */ #endif # 272 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 1) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 274 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __returns_twice __attribute__((__returns_twice__)) #else # 276 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __returns_twice /* nothing */ #endif # 278 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 5) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 280 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noclone __attribute__((__noclone__)) #else # 282 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noclone /* nothing */ #endif # 284 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * __unused: Note that item or function might be unused. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 7) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 289 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __unused __attribute__((__unused__)) #else # 291 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __unused /* delete */ #endif # 293 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * __used: Note that item is needed, even if it appears to be unused. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 1) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 298 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __used __attribute__((__used__)) #else # 300 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __used __unused #endif # 302 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * __diagused: Note that item is used in diagnostic code, but may be * unused in non-diagnostic code. */ #if 0 /* disabled by -frewrite-includes */ #if (defined(_KERNEL) && defined(DIAGNOSTIC)) \ || (!defined(_KERNEL) && !defined(NDEBUG)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 309 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __diagused /* empty */ #else # 311 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __diagused __unused #endif # 313 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * __debugused: Note that item is used in debug code, but may be * unused in non-debug code. */ #if 0 /* disabled by -frewrite-includes */ #if defined(DEBUG) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 319 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __debugused /* empty */ #else # 321 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __debugused __unused #endif # 323 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(3, 1) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 325 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noprofile __attribute__((__no_instrument_function__)) #else # 327 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noprofile /* nothing */ #endif # 329 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 6) || defined(__clang__) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 331 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __unreachable() __builtin_unreachable() #else # 333 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __unreachable() do {} while (/*CONSTCOND*/0) #endif # 335 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_RUMPKERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 337 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__clang__) && __has_feature(address_sanitizer) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 338 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noasan __attribute__((no_sanitize("kernel-address", "address"))) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(4, 9) && defined(__SANITIZE_ADDRESS__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 340 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noasan __attribute__((no_sanitize_address)) #else # 342 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noasan /* nothing */ #endif # 344 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__clang__) && __has_feature(thread_sanitizer) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 346 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __nocsan __attribute__((no_sanitize("thread"))) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(4, 9) && defined(__SANITIZE_THREAD__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 348 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __nocsan __attribute__((no_sanitize_thread)) #else # 350 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __nocsan /* nothing */ #endif # 352 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__clang__) && __has_feature(memory_sanitizer) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 354 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __nomsan __attribute__((no_sanitize("kernel-memory", "memory"))) #else # 356 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __nomsan /* nothing */ #endif # 358 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__clang__) && __has_feature(undefined_behavior_sanitizer) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 360 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noubsan __attribute__((no_sanitize("undefined"))) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(4, 9) && defined(__SANITIZE_UNDEFINED__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 362 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noubsan __attribute__((no_sanitize_undefined)) #else # 364 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __noubsan /* nothing */ #endif # 366 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif # 367 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__COVERITY__) || \ __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) ||\ __has_feature(leak_sanitizer) || defined(__SANITIZE_LEAK__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 371 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __NO_LEAKS #endif # 373 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * To be used when an empty body is required like: * * #ifdef DEBUG * # define dprintf(a) printf(a) * #else * # define dprintf(a) __nothing * #endif * * We use ((void)0) instead of do {} while (0) so that it * works on , expressions. */ #define __nothing (/*LINTED*/(void)0) #if 0 /* disabled by -frewrite-includes */ #if defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 389 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __BEGIN_EXTERN_C extern "C" { #define __END_EXTERN_C } #define __static_cast(x,y) static_cast(y) #else # 393 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __BEGIN_EXTERN_C #define __END_EXTERN_C #define __static_cast(x,y) (x)y #endif # 397 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 0) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 399 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # define __dso_public __attribute__((__visibility__("default"))) # define __dso_hidden __attribute__((__visibility__("hidden"))) # define __BEGIN_PUBLIC_DECLS \ _Pragma("GCC visibility push(default)") __BEGIN_EXTERN_C # define __END_PUBLIC_DECLS __END_EXTERN_C _Pragma("GCC visibility pop") # define __BEGIN_HIDDEN_DECLS \ _Pragma("GCC visibility push(hidden)") __BEGIN_EXTERN_C # define __END_HIDDEN_DECLS __END_EXTERN_C _Pragma("GCC visibility pop") #else # 408 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # define __dso_public # define __dso_hidden # define __BEGIN_PUBLIC_DECLS __BEGIN_EXTERN_C # define __END_PUBLIC_DECLS __END_EXTERN_C # define __BEGIN_HIDDEN_DECLS __BEGIN_EXTERN_C # define __END_HIDDEN_DECLS __END_EXTERN_C #endif # 415 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 2) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 416 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # define __dso_protected __attribute__((__visibility__("protected"))) #else # 418 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # define __dso_protected #endif # 420 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __BEGIN_DECLS __BEGIN_PUBLIC_DECLS #define __END_DECLS __END_PUBLIC_DECLS /* * Non-static C99 inline functions are optional bodies. They don't * create global symbols if not used, but can be replaced if desirable. * This differs from the behavior of GCC before version 4.3. The nearest * equivalent for older GCC is `extern inline'. For newer GCC, use the * gnu_inline attribute additionally to get the old behavior. * * For C99 compilers other than GCC, the C99 behavior is expected. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(__GNUC_STDC_INLINE__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 434 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __c99inline extern __attribute__((__gnu_inline__)) __inline #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 436 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __c99inline extern __inline #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__STDC_VERSION__) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 438 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __c99inline __inline #endif # 440 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 442 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __thread /* delete */ #define __packed __packed #define __aligned(x) /* delete */ #define __section(x) /* delete */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(2, 7) || defined(__PCC__) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 447 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __packed __attribute__((__packed__)) #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 451 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __packed /* ignore */ #else # 453 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __packed error: no __packed for this compiler #define __aligned(x) error: no __aligned for this compiler #define __section(x) error: no __section for this compiler #endif # 457 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * C99 defines the restrict type qualifier keyword, which was made available * in GCC 2.92. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 463 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __restrict /* delete __restrict when not supported */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __STDC_VERSION__ >= 199901L #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 465 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __restrict restrict #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __GNUC_PREREQ__(2, 92) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 467 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __restrict __restrict__ #else # 469 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __restrict /* delete __restrict when not supported */ #endif # 471 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * C99 and C++11 define __func__ predefined identifier, which was made * available in GCC 2.95. */ #if 0 /* disabled by -frewrite-includes */ #if !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 477 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 4) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 478 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __func__ __FUNCTION__ #else # 480 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __func__ "" #endif # 482 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #endif /* !(__STDC_VERSION__ >= 199901L) && !(__cplusplus - 0 >= 201103L) */ # 483 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) && defined(NO_KERNEL_RCSIDS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 485 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #undef __KERNEL_RCSID #define __KERNEL_RCSID(_n, _s) /* nothing */ #undef __RCSID #define __RCSID(_s) /* nothing */ #endif # 490 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(_STANDALONE) && !defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 492 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) || defined(__PCC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 493 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __RENAME(x) ___RENAME(x) #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 495 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __RENAME(x) __symbolrename(x) #else # 497 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #error "No function renaming possible" #endif /* __GNUC__ */ # 499 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #else /* _STANDALONE || _KERNEL */ # 500 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __RENAME(x) no renaming in kernel/standalone environment #endif # 502 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * A barrier to stop the optimizer from moving code or assume live * register values. This is gcc specific, the version is more or less * arbitrary, might work with older compilers. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 95) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 509 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __insn_barrier() __asm __volatile("":::"memory") #else # 511 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __insn_barrier() /* */ #endif # 513 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * GNU C version 2.96 adds explicit branch prediction so that * the CPU back-end can hint the processor and also so that * code blocks can be reordered such that the predicted path * sees a more linear flow, thus improving cache behavior, etc. * * The following two macros provide us with a way to use this * compiler feature. Use __predict_true() if you expect the expression * to evaluate to true, and __predict_false() if you expect the * expression to evaluate to false. * * A few notes about usage: * * * Generally, __predict_false() error condition checks (unless * you have some _strong_ reason to do otherwise, in which case * document it), and/or __predict_true() `no-error' condition * checks, assuming you want to optimize for the no-error case. * * * Other than that, if you don't know the likelihood of a test * succeeding from empirical or other `hard' evidence, don't * make predictions. * * * These are meant to be used in places that are run `a lot'. * It is wasteful to make predictions in code that is run * seldomly (e.g. at subsystem initialization time) as the * basic block reordering that this affects can often generate * larger code. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 96) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 543 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __predict_true(exp) __builtin_expect((exp) != 0, 1) #define __predict_false(exp) __builtin_expect((exp) != 0, 0) #else # 546 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __predict_true(exp) (exp) #define __predict_false(exp) (exp) #endif # 549 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Compiler-dependent macros to declare that functions take printf-like * or scanf-like arguments. They are null except for versions of gcc * that are known to support the features properly (old versions of gcc-2 * didn't permit keeping the keywords out of the application namespace). */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 7) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 557 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __printflike(fmtarg, firstvararg) \ __attribute__((__format__ (__printf__, fmtarg, firstvararg))) #ifndef __syslog_attribute__ #define __syslog__ __printf__ #endif # 562 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __sysloglike(fmtarg, firstvararg) \ __attribute__((__format__ (__syslog__, fmtarg, firstvararg))) #define __scanflike(fmtarg, firstvararg) \ __attribute__((__format__ (__scanf__, fmtarg, firstvararg))) #define __format_arg(fmtarg) __attribute__((__format_arg__ (fmtarg))) #else # 568 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __printflike(fmtarg, firstvararg) /* nothing */ #define __scanflike(fmtarg, firstvararg) /* nothing */ #define __sysloglike(fmtarg, firstvararg) /* nothing */ #define __format_arg(fmtarg) /* nothing */ #endif # 573 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Macros for manipulating "link sets". Link sets are arrays of pointers * to objects, which are gathered up by the linker. * * Object format-specific code has provided us with the following macros: * * __link_set_add_text(set, sym) * Add a reference to the .text symbol `sym' to `set'. * * __link_set_add_rodata(set, sym) * Add a reference to the .rodata symbol `sym' to `set'. * * __link_set_add_data(set, sym) * Add a reference to the .data symbol `sym' to `set'. * * __link_set_add_bss(set, sym) * Add a reference to the .bss symbol `sym' to `set'. * * __link_set_decl(set, ptype) * Provide an extern declaration of the set `set', which * contains an array of pointers to type `ptype'. This * macro must be used by any code which wishes to reference * the elements of a link set. * * __link_set_start(set) * This points to the first slot in the link set. * * __link_set_end(set) * This points to the (non-existent) slot after the last * entry in the link set. * * __link_set_count(set) * Count the number of entries in link set `set'. * * In addition, we provide the following macros for accessing link sets: * * __link_set_foreach(pvar, set) * Iterate over the link set `set'. Because a link set is * an array of pointers, pvar must be declared as "type **pvar", * and the actual entry accessed as "*pvar". * * __link_set_entry(set, idx) * Access the link set entry at index `idx' from set `set'. */ #define __link_set_foreach(pvar, set) \ for (pvar = __link_set_start(set); pvar < __link_set_end(set); pvar++) #define __link_set_entry(set, idx) (__link_set_start(set)[idx]) /* * Return the natural alignment in bytes for the given type */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4, 1) || defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 627 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __alignof(__t) __alignof__(__t) #else # 629 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __alignof(__t) (sizeof(struct { char __x; __t __y; }) - sizeof(__t)) #endif # 631 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* * Return the number of elements in a statically-allocated array, * __x. */ #define __arraycount(__x) (sizeof(__x) / sizeof(__x[0])) #ifndef __ASSEMBLER__ /* __BIT(n): nth bit, where __BIT(0) == 0x1. */ #define __BIT(__n) \ (((uintmax_t)(__n) >= NBBY * sizeof(uintmax_t)) ? 0 : \ ((uintmax_t)1 << (uintmax_t)((__n) & (NBBY * sizeof(uintmax_t) - 1)))) /* Macros for min/max. */ #define __MIN(a,b) ((/*CONSTCOND*/(a)<=(b))?(a):(b)) #define __MAX(a,b) ((/*CONSTCOND*/(a)>(b))?(a):(b)) /* __BITS(m, n): bits m through n, m < n. */ #define __BITS(__m, __n) \ ((__BIT(__MAX((__m), (__n)) + 1) - 1) ^ (__BIT(__MIN((__m), (__n))) - 1)) #endif /* !__ASSEMBLER__ */ # 652 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" /* find least significant bit that is set */ #define __LOWEST_SET_BIT(__mask) ((((__mask) - 1) & (__mask)) ^ (__mask)) #define __PRIuBIT PRIuMAX #define __PRIuBITS __PRIuBIT #define __PRIxBIT PRIxMAX #define __PRIxBITS __PRIxBIT #define __SHIFTOUT(__x, __mask) (((__x) & (__mask)) / __LOWEST_SET_BIT(__mask)) #define __SHIFTIN(__x, __mask) ((__x) * __LOWEST_SET_BIT(__mask)) #define __SHIFTOUT_MASK(__mask) __SHIFTOUT((__mask), (__mask)) /* * Only to be used in other headers that are included from both c or c++ * NOT to be used in code. */ #ifdef __cplusplus #define __CAST(__dt, __st) static_cast<__dt>(__st) #else # 673 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __CAST(__dt, __st) ((__dt)(__st)) #endif # 675 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __CASTV(__dt, __st) __CAST(__dt, __CAST(void *, __st)) #define __CASTCV(__dt, __st) __CAST(__dt, __CAST(const void *, __st)) #define __USE(a) (/*LINTED*/(void)(a)) #define __type_mask(t) (/*LINTED*/sizeof(t) < sizeof(intmax_t) ? \ (~((1ULL << (sizeof(t) * NBBY)) - 1)) : 0ULL) #ifndef __ASSEMBLER__ static __inline long long __zeroll(void) { return 0; } static __inline unsigned long long __zeroull(void) { return 0; } #else # 688 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __zeroll() (0LL) #define __zeroull() (0ULL) #endif # 691 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" #define __negative_p(x) (!((x) > 0) && ((x) != 0)) #define __type_min_s(t) ((t)((1ULL << (sizeof(t) * NBBY - 1)))) #define __type_max_s(t) ((t)~((1ULL << (sizeof(t) * NBBY - 1)))) #define __type_min_u(t) ((t)0ULL) #define __type_max_u(t) ((t)~0ULL) #define __type_is_signed(t) (/*LINTED*/__type_min_s(t) + (t)1 < (t)1) #define __type_min(t) (__type_is_signed(t) ? __type_min_s(t) : __type_min_u(t)) #define __type_max(t) (__type_is_signed(t) ? __type_max_s(t) : __type_max_u(t)) #define __type_fit_u(t, a) (/*LINTED*/!__negative_p(a) && \ (uintmax_t)((a) + __zeroull()) <= (uintmax_t)__type_max_u(t)) #define __type_fit_s(t, a) (/*LINTED*/__negative_p(a) ? \ ((intmax_t)((a) + __zeroll()) >= (intmax_t)__type_min_s(t)) : \ ((intmax_t)((a) + __zeroll()) >= (intmax_t)0 && \ (intmax_t)((a) + __zeroll()) <= (intmax_t)__type_max_s(t))) /* * return true if value 'a' fits in type 't' */ #define __type_fit(t, a) (__type_is_signed(t) ? \ __type_fit_s(t, a) : __type_fit_u(t, a)) #endif /* !_SYS_CDEFS_H_ */ # 718 "/usr/home/sme/sandbox/usr/src/sys/sys/cdefs.h" # 33 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 1 3 4 /* $NetBSD: ssp.h,v 1.13 2015/09/03 20:43:47 plunky Exp $ */ /*- * Copyright (c) 2006, 2011 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SSP_SSP_H_ #define _SSP_SSP_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if _FORTIFY_SOURCE > 0 && !defined(__lint__) && \ (__OPTIMIZE__ > 0 || defined(__clang__)) && __GNUC_PREREQ__(4, 1) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #if 0 /* disabled by -frewrite-includes */ # if _FORTIFY_SOURCE > 1 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 40 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # define __SSP_FORTIFY_LEVEL 2 # else # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # define __SSP_FORTIFY_LEVEL 1 # endif # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # else # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # define __SSP_FORTIFY_LEVEL 0 # endif # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #else # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # define __SSP_FORTIFY_LEVEL 0 #endif # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 /* __ssp_real is used by the implementation in libc */ #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL == 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 53 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #define __ssp_real_(fun) fun #else # 55 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #define __ssp_real_(fun) __ssp_real_ ## fun #endif # 57 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 #define __ssp_real(fun) __ssp_real_(fun) #define __ssp_inline static __inline __attribute__((__always_inline__)) #define __ssp_bos(ptr) __builtin_object_size(ptr, __SSP_FORTIFY_LEVEL > 1) #define __ssp_bos0(ptr) __builtin_object_size(ptr, 0) #define __ssp_check(buf, len, bos) \ if (bos(buf) != (size_t)-1 && len > bos(buf)) \ __chk_fail() #define __ssp_redirect_raw(rtype, fun, symbol, args, call, cond, bos) \ rtype __ssp_real_(fun) args __RENAME(symbol); \ __ssp_inline rtype fun args __RENAME(__ssp_protected_ ## fun); \ __ssp_inline rtype fun args { \ if (cond) \ __ssp_check(__buf, __len, bos); \ return __ssp_real_(fun) call; \ } #define __ssp_redirect(rtype, fun, args, call) \ __ssp_redirect_raw(rtype, fun, fun, args, call, 1, __ssp_bos) #define __ssp_redirect0(rtype, fun, args, call) \ __ssp_redirect_raw(rtype, fun, fun, args, call, 1, __ssp_bos0) #define __ssp_overlap(a, b, l) \ (((a) <= (b) && (b) < (a) + (l)) || ((b) <= (a) && (a) < (b) + (l))) __BEGIN_DECLS void __stack_chk_fail(void) __dead; void __chk_fail(void) __dead; __END_DECLS #endif /* _SSP_SSP_H_ */ # 90 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/ssp.h" 3 4 # 34 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" 2 #ifndef __lint__ #define aio_suspend _aio_suspend #define brk _brk #define catclose _catclose #define catgets _catgets #define catopen _catopen #define catopen_l _catopen_l #define daylight _daylight #define difftime _difftime #define devname_r _devname_r #define err _err #define errc _errc #define errx _errx #ifdef _REENTRANT #define fileno _fileno #endif /* _REENTRANT */ # 51 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define fork _fork #define fseeko _fseeko #define ftello _ftello #define getcontext _getcontext #define getenv_r _getenv_r #define imaxabs _imaxabs #define imaxdiv _imaxdiv #define inet_aton _inet_aton #define inet_pton _inet_pton #define pipe _pipe #define sbrk _sbrk #define strerror_l _strerror_l #define strerror_r _strerror_r #define strerror_r_ss _strerror_r_ss #define strlcat _strlcat #define strlcpy _strlcpy #define strtod_l _strtod_l #define strtof _strtof #define strtof_l _strtof_l #define strtoi _strtoi #define strtoi_l _strtoi_l #define strtoimax _strtoimax #define strtoimax_l _strtoimax_l #define strtold _strtold #define strtold_l _strtold_l #define strtoll _strtoll #define strtoll_l _strtoll_l #define strtou _strtou #define strtou_l _strtou_l #define strtoull _strtoull #define strtoull_l _strtoull_l #define strtoumax _strtoumax #define strtoumax_l _strtoumax_l #define sys_errlist _sys_errlist #define sys_nerr _sys_nerr #define sys_siglist _sys_siglist #define sys_nsig _sys_nsig #define sysconf __sysconf #define verr _verr #define verrc _verrc #define verrx _verrx #define vwarn _vwarn #define vwarnc _vwarnc #define vwarnx _vwarnx #define warn _warn #define warnc _warnc #define warnx _warnx /* * namespace protection for libc functions that are used internally * in libc and should be not overriden by applications. To do this, * this header renames them to a name that starts with an "_" so that * libc uses the "_" flavor internally (and this name is not part of * the application namespace), and then a weak alias is added to the * "_" name next to the function definition so that the function is * exposed again. * * See src/lib/libc/README for more details. */ #ifdef __weak_alias #define MD2Data _MD2Data #define MD2End _MD2End #define MD2FileChunk _MD2FileChunk #define MD2File _MD2File #define MD2Final _MD2Final #define MD2Init _MD2Init #define MD2Transform _MD2Transform #define MD2Update _MD2Update #define MD4Data _MD4Data #define MD4End _MD4End #define MD4FileChunk _MD4FileChunk #define MD4File _MD4File #define MD4Final _MD4Final #define MD4Init _MD4Init #define MD4Transform _MD4Transform #define MD4Update _MD4Update #define MD5Data _MD5Data #define MD5End _MD5End #define MD5FileChunk _MD5FileChunk #define MD5File _MD5File #define MD5Final _MD5Final #define MD5Init _MD5Init #define MD5Transform _MD5Transform #define MD5Update _MD5Update #define RMD160Data _RMD160Data #define RMD160End _RMD160End #define RMD160FileChunk _RMD160FileChunk #define RMD160File _RMD160File #define RMD160Final _RMD160Final #define RMD160Init _RMD160Init #define RMD160Transform _RMD160Transform #define RMD160Update _RMD160Update #define SHA1Data _SHA1Data #define SHA1End _SHA1End #define SHA1FileChunk _SHA1FileChunk #define SHA1File _SHA1File #define SHA1Final _SHA1Final #define SHA1Init _SHA1Init #define SHA1Transform _SHA1Transform #define SHA1Update _SHA1Update #define SHA224_Data _SHA224_Data #define SHA224_End _SHA224_End #define SHA224_FileChunk _SHA224_FileChunk #define SHA224_File _SHA224_File #define SHA224_Final _SHA224_Final #define SHA224_Init _SHA224_Init #define SHA224_Transform _SHA224_Transform #define SHA224_Update _SHA224_Update #define SHA256_Data _SHA256_Data #define SHA256_End _SHA256_End #define SHA256_FileChunk _SHA256_FileChunk #define SHA256_File _SHA256_File #define SHA256_Final _SHA256_Final #define SHA256_Init _SHA256_Init #define SHA256_Transform _SHA256_Transform #define SHA256_Update _SHA256_Update #define SHA3_224_Init _SHA3_224_Init #define SHA3_224_Update _SHA3_224_Update #define SHA3_224_Final _SHA3_224_Final #define SHA3_256_Init _SHA3_256_Init #define SHA3_256_Update _SHA3_256_Update #define SHA3_256_Final _SHA3_256_Final #define SHA3_384_Init _SHA3_284_Init #define SHA3_384_Update _SHA3_284_Update #define SHA3_384_Final _SHA3_284_Final #define SHA3_512_Init _SHA3_512_Init #define SHA3_512_Update _SHA3_512_Update #define SHA3_512_Final _SHA3_512_Final #define SHA3_Selftest _SHA3_Selftest #define SHA384_Data _SHA384_Data #define SHA384_End _SHA384_End #define SHA384_FileChunk _SHA384_FileChunk #define SHA384_File _SHA384_File #define SHA384_Final _SHA384_Final #define SHA384_Init _SHA384_Init #define SHA384_Transform _SHA384_Transform #define SHA384_Update _SHA384_Update #define SHA512_Data _SHA512_Data #define SHA512_End _SHA512_End #define SHA512_FileChunk _SHA512_FileChunk #define SHA512_File _SHA512_File #define SHA512_Final _SHA512_Final #define SHA512_Init _SHA512_Init #define SHA512_Transform _SHA512_Transform #define SHA512_Update _SHA512_Update #define SHAKE128_Init _SHAKE128_Init #define SHAKE128_Update _SHAKE128_Update #define SHAKE128_Final _SHAKE128_Final #define SHAKE256_Init _SHAKE256_Init #define SHAKE256_Update _SHAKE256_Update #define SHAKE256_Final _SHAKE256_Final #define a64l _a64l #define adjtime _adjtime #define alarm _alarm #define allocaddrinfo _allocaddrinfo #define alphasort _alphasort #define arc4random _arc4random #define arc4random_addrandom _arc4random_addrandom #define arc4random_buf _arc4random_buf #define arc4random_stir _arc4random_stir #define arc4random_uniform _arc4random_uniform #define asctime_r _asctime_r #define asprintf _asprintf #define asprintf_l _asprintf_l #define asysctl _asysctl #define asysctlbyname _asysctlbyname #define atoll _atoll #define authnone_create _authnone_create #define authunix_create _authunix_create #define authunix_create_default _authunix_create_default #define basename _basename #define bindresvport _bindresvport #define bindresvport_sa _bindresvport_sa #define bm_comp _bm_comp #define bm_exec _bm_exec #define bm_free _bm_free #define callrpc _callrpc #define cdbr_close _cdbr_close #define cdbr_find _cdbr_find #define cdbr_get _cdbr_get #define cdbr_open _cdbr_open #define cdbr_open_mem _cdbr_open_mem #define cdbw_close _cdbw_close #define cdbw_open _cdbw_open #define cdbw_put _cdbw_put #define cdbw_put_data _cdbw_put_data #define cdbw_put_key _cdbw_put_key #define cdbw_output _cdbw_output #define cfgetispeed _cfgetispeed #define cfgetospeed _cfgetospeed #define cfmakeraw _cfmakeraw #define cfsetispeed _cfsetispeed #define cfsetospeed _cfsetospeed #define cfsetspeed _cfsetspeed #define cgetcap _cgetcap #define cgetclose _cgetclose #define cgetent _cgetent #define cgetfirst _cgetfirst #define cgetmatch _cgetmatch #define cgetnext _cgetnext #define cgetnum _cgetnum #define cgetset _cgetset #define cgetstr _cgetstr #define cgetustr _cgetustr #define clnt_broadcast _clnt_broadcast #define clnt_create _clnt_create #define clnt_create_vers _clnt_create_vers #define clnt_dg_create _clnt_dg_create #define clnt_pcreateerror _clnt_pcreateerror #define clnt_perrno _clnt_perrno #define clnt_perror _clnt_perror #define clnt_raw_create _clnt_raw_create #define clnt_tli_create _clnt_tli_create #define clnt_tp_create _clnt_tp_create #define clnt_spcreateerror _clnt_spcreateerror #define clnt_sperrno _clnt_sperrno #define clnt_sperror _clnt_sperror #define clnt_vc_create _clnt_vc_create #define clntraw_create _clntraw_create #define clnttcp_create _clnttcp_create #define clntudp_bufcreate _clntudp_bufcreate #define clntudp_create _clntudp_create #define clock_gettime _clock_gettime #define clock_getres _clock_getres #define clock_settime _clock_settime #define closedir _closedir #define closelog _closelog #define closelog_r _closelog_r #define confstr _confstr #define consttime_memequal _consttime_memequal #define csetexpandtc _csetexpandtc #define ctermid _ctermid #define ctime_r _ctime_r #define ctime_rz _ctime_rz #define daemon _daemon #define dbopen _dbopen #define devname _devname #define difftime _difftime #define dirname _dirname #define dn_expand _dn_expand #define dprintf_l _dprintf_l #define drand48 _drand48 #define duplocale _duplocale #define endfsent _endfsent #define endgrent _endgrent #define endhostent _endhostent #define endnetconfig _endnetconfig #define endnetent _endnetent #define endnetgrent _endnetgrent #define endnetpath _endnetpath #define endprotoent _endprotoent #define endprotoent_r _endprotoent_r #define endpwent _endpwent #define endrpcent _endrpcent #define endservent _endservent #define endservent_r _endservent_r #define endttyent _endttyent #define endusershell _endusershell #define erand48 _erand48 #define ether_aton _ether_aton #define ether_hostton _ether_hostton #define ether_line _ether_line #define ether_ntoa _ether_ntoa #define ether_ntohost _ether_ntohost #define execl _execl #define execle _execle #define execlp _execlp #define execlpe _execlpe #define execv _execv #define execvp _execvp #define execvpe _execvpe #define explicit_memset _explicit_memset #define fdiscard _fdiscard #define fdopen _fdopen #define fgetln _fgetln #define fgetwln _fgetwln #define flockfile _flockfile #define ftrylockfile _ftrylockfile #define funlockfile _funlockfile #define fnmatch _fnmatch #define fparseln _fparseln #define fprintf_l _fprintf_l #define fpgetmask _fpgetmask #define fpgetprec _fpgetprec #define fpgetround _fpgetround #define fpgetsticky _fpgetsticky #define fpsetmask _fpsetmask #define fpsetprec _fpsetprec #define fpsetround _fpsetround #define fpsetsticky _fpsetsticky #define freenetconfigent _freenetconfigent #define freeaddrinfo _freeaddrinfo #define freeifaddrs _freeifaddrs #define freelocale _freelocale #define fscanf_l _fscanf_l #define ftok _ftok #define ftruncate _ftruncate #define fts_children _fts_children #define fts_close _fts_close #define fts_open _fts_open #define fts_read _fts_read #define fts_set _fts_set #define fwprintf_l _fwprintf_l #define fwscanf_l _fwscanf_l #define gai_strerror _gai_strerror #define get_myaddress _get_myaddress #define getaddrinfo _getaddrinfo #define getbsize _getbsize #define getcwd _getcwd #define getdelim _getdelim #define getdevmajor _getdevmajor #define getdiskbyname _getdiskbyname #define getdomainname _getdomainname #define getentropy _getentropy #define getfsent _getfsent #define getfsfile _getfsfile #define getfsspec _getfsspec #define getgrent _getgrent #define getgrent_r _getgrent_r #define getgrgid _getgrgid #define getgrgid_r _getgrgid_r #define getgrnam _getgrnam #define getgrnam_r _getgrnam_r #define getgrouplist _getgrouplist #define getgroupmembership _getgroupmembership #define gethostbyaddr _gethostbyaddr #define gethostbyname _gethostbyname #define gethostent _gethostent #define gethostname _gethostname #define getifaddrs _getifaddrs #define getline _getline #define getloadavg _getloadavg #define getlogin _getlogin #define getlogin_r _getlogin_r #define getmntinfo _getmntinfo #define getmode _getmode #define getnameinfo _getnameinfo #define getnetbyaddr _getnetbyaddr #define getnetbyname _getnetbyname #define getnetconfig _getnetconfig #define getnetconfigent _getnetconfigent #define getnetent _getnetent #define getnetgrent _getnetgrent #define getnetpath _getnetpath #define getopt _getopt #define getopt_long _getopt_long #define getpagesize _getpagesize #define getpass _getpass #define getpassfd _getpassfd #define getpass_r _getpass_r #define getprogname _getprogname #define getprotobyname _getprotobyname #define getprotobyname_r _getprotobyname_r #define getprotobynumber _getprotobynumber #define getprotobynumber_r _getprotobynumber_r #define getprotoent _getprotoent #define getprotoent_r _getprotoent_r #define getpwent _getpwent #define getpwent_r _getpwent_r #define getpwnam _getpwnam #define getpwnam_r _getpwnam_r #define getpwuid _getpwuid #define getpwuid_r _getpwuid_r #define getrpcbyname _getrpcbyname #define getrpcbyname_r _getrpcbyname_r #define getrpcbynumber _getrpcbynumber #define getrpcbynumber_r _getrpcbynumber_r #define getrpcent _getrpcent #define getrpcent_r _getrpcent_r #define getrpcport _getrpcport #define getservbyname _getservbyname #define getservbyname_r _getservbyname_r #define getservbyport _getservbyport #define getservbyport_r _getservbyport_r #define getservent _getservent #define getservent_r _getservent_r #define getsubopt _getsubopt #define getttyent _getttyent #define getttynam _getttynam #define getusershell _getusershell #define glob _glob #define globfree _globfree #define gmtime_r _gmtime_r #define group_from_gid _group_from_gid #define heapsort _heapsort #define herror _herror #define hes_error _hes_error #define hes_free _hes_free #define hes_init _hes_init #define hes_resolve _hes_resolve #define hes_to_bind _hes_to_bind #define hesiod_end _hesiod_end #define hesiod_free_list _hesiod_free_list #define hesiod_init _hesiod_init #define hesiod_resolve _hesiod_resolve #define hesiod_to_bind _hesiod_to_bind #define iconv _iconv #define iconv_open _iconv_open #define iconv_close _iconv_close #define if_freenameindex _if_freenameindex #define if_indextoname _if_indextoname #define if_nameindex _if_nameindex #define if_nametoindex _if_nametoindex #define in6addr_any _in6addr_any #define in6addr_linklocal_allnodes _in6addr_linklocal_allnodes #define in6addr_linklocal_allrouters _in6addr_linklocal_allrouters #define in6addr_loopback _in6addr_loopback #define in6addr_nodelocal_allnodes _in6addr_nodelocal_allnodes #define inet6_option_alloc _inet6_option_alloc #define inet6_option_append _inet6_option_append #define inet6_option_find _inet6_option_find #define inet6_option_init _inet6_option_init #define inet6_option_next _inet6_option_next #define inet6_option_space _inet6_option_space #define inet6_opt_init _inet6_opt_init #define inet6_opt_append _inet6_opt_append #define inet6_opt_finish _inet6_opt_finish #define inet6_opt_set_val _inet6_opt_set_val #define inet6_opt_next _inet6_opt_next #define inet6_opt_find _inet6_opt_find #define inet6_opt_get_val _inet6_opt_get_val #define inet6_rthdr_add _inet6_rthdr_add #define inet6_rthdr_getaddr _inet6_rthdr_getaddr #define inet6_rthdr_getflags _inet6_rthdr_getflags #define inet6_rthdr_init _inet6_rthdr_init #define inet6_rthdr_lasthop _inet6_rthdr_lasthop #define inet6_rthdr_segments _inet6_rthdr_segments #define inet6_rthdr_space _inet6_rthdr_space #define inet6_rth_space _inet6_rth_space #define inet6_rth_init _inet6_rth_init #define inet6_rth_add _inet6_rth_add #define inet6_rth_reverse _inet6_rth_reverse #define inet6_rth_segments _inet6_rth_segments #define inet6_rth_getaddr _inet6_rth_getaddr #define inet_cidr_ntop _inet_cidr_ntop #define inet_cidr_pton _inet_cidr_pton #define inet_lnaof _inet_lnaof #define inet_makeaddr _inet_makeaddr #define inet_net_ntop _inet_net_ntop #define inet_net_pton _inet_net_pton #define inet_neta _inet_neta #define inet_netof _inet_netof #define inet_network _inet_network #define inet_nsap_addr _inet_nsap_addr #define inet_nsap_ntoa _inet_nsap_ntoa #define inet_ntoa _inet_ntoa #define inet_ntop _inet_ntop #define initgroups _initgroups #define initstate _initstate #define innetgr _innetgr #define isatty _isatty #define jrand48 _jrand48 #define kill _kill #define l64a _l64a #define l64a_r _l64a_r #define lcong48 _lcong48 #define llabs _llabs #define lldiv _lldiv #define localtime_r _localtime_r #define localtime_rz _localtime_rz #define lockf _lockf #define lrand48 _lrand48 #define lseek _lseek #define membar_producer _membar_producer #define mergesort _mergesort #define mi_vector_hash _mi_vector_hash #define mkstemp _mkstemp #define mktime_z _mktime_z #define mmap _mmap #define mpool_close _mpool_close #define mpool_filter _mpool_filter #define mpool_get _mpool_get #define mpool_new _mpool_new #define mpool_newf _mpool_newf #define mpool_open _mpool_open #define mpool_put _mpool_put #define mpool_sync _mpool_sync #define mq_timedreceive _mq_timedreceive #define mq_timedsend _mq_timedsend #define mrand48 _mrand48 #define murmurhash2 _murmurhash2 #define nc_perror _nc_perror #define nc_sperror _nc_sperror #define nanosleep _nanosleep #define newlocale _newlocale #define nice _nice #if 0 /* disabled by -frewrite-includes */ #if 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 539 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define nlist _nlist #endif # 541 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define nl_langinfo_l _nl_langinfo_l #define nrand48 _nrand48 #define ntp_adjtime _ntp_adjtime #define nsdispatch _nsdispatch #define offtime _offtime #define opendir _opendir #define fdopendir _fdopendir #define openlog _openlog #define openlog_r _openlog_r #define pause _pause #define pclose _pclose #define pmap_getmaps _pmap_getmaps #define pmap_getport _pmap_getport #define pmap_rmtcall _pmap_rmtcall #define pmap_set _pmap_set #define pmap_unset _pmap_unset #define paccept _paccept #define pollts _pollts #define popen _popen #define posix2time _posix2time #define posix2time_z _posix2time_z #define pread _pread #define printf_l _printf_l #define pselect _pselect #define posix_fallocate _posix_fallocate #define psignal _psignal #define pthread_atfork _pthread_atfork #define ptree_init ptree_init #define ptree_insert_node ptree_insert_node #define ptree_insert_mask_node ptree_insert_mask_node #define ptree_find_filtered_node ptree_find_filtered_node #define ptree_remove_node ptree_remove_node #define ptree_iterate ptree_iterate #define putenv _putenv #define pwcache_groupdb _pwcache_groupdb #define pwcache_userdb _pwcache_userdb #define pwrite _pwrite #define qabs _qabs #define qdiv _qdiv #define radixsort _radixsort #define random _random #define randomid _randomid #define randomid_new _randomid_new #define randomid_delete _randomid_delete #define read _read #define readdir _readdir #define readdir_r _readdir_r #define readlink _readlink #define reallocarr _reallocarr #define realpath _realpath #define regcomp _regcomp #define regerror _regerror #define regexec _regexec #define regfree _regfree #define registerrpc _registerrpc #define res_init _res_init #define res_mkquery _res_mkquery #define res_query _res_query #define res_search _res_search #define rewinddir _rewinddir #define rpc_broadcast _rpc_broadcast #define rpc_broadcast_exp _rpc_broadcast_exp #define rpc_call _rpc_call #define rpc_control _rpc_control #define rpc_reg _rpc_reg #define rpcb_getmaps _rpcb_getmaps #define rpcb_gettime _rpcb_gettime #define rpcb_rmtcall _rpcb_rmtcall #define rpcb_set _rpcb_set #define rpcb_taddr2uaddr _rpcb_taddr2uaddr #define rpcb_uaddr2taddr _rpcb_uaddr2taddr #define rpcb_unset _rpcb_unset #define scandir _scandir #define scanf_l _scanf_l #define seed48 _seed48 #define seekdir _seekdir #define select _select #define send _send #define setdomainname _setdomainname #define setenv _setenv #define setfsent _setfsent #define setgrent _setgrent #define setgroupent _setgroupent #define sethostent _sethostent #define sethostname _sethostname #define setlogin _setlogin #define setlogmask _setlogmask #define setlogmask_r _setlogmask_r #define setmode _setmode #define setnetconfig _setnetconfig #define setnetent _setnetent #define setnetgrent _setnetgrent #define setpassent _setpassent #define setnetpath _setnetpath #define setproctitle _setproctitle #define setprotoent _setprotoent #define setprotoent_r _setprotoent_r #define setpwent _setpwent #define setrpcent _setrpcent #define setservent _setservent #define setservent_r _setservent_r #define setstate _setstate #define setttyent _setttyent #define setttyentpath _setttyentpath #define settimeofday _settimeofday #define setusershell _setusershell #define shm_open _shm_open #define shm_unlink _shm_unlink #define shquote _shquote #define siginterrupt _siginterrupt #define signal _signal #define sigtimedwait _sigtimedwait #define sl_add _sl_add #define sl_create _sl_create #define sl_delete _sl_delete #define sl_find _sl_find #define sl_free _sl_free #define sl_init _sl_init #define sleep _sleep #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL == 0 && !defined(snprintf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 661 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define snprintf _snprintf #endif # 663 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define snprintf_l _snprintf_l #define snprintf_ss _snprintf_ss #define sprintf_l _sprintf_l #define sradixsort _sradixsort #define srand48 _srand48 #define srandom _srandom #define sscanf_l _sscanf_l #define strcasecmp _strcasecmp #define strcoll_l _strcoll_l #define strdup _strdup #define stresep _stresep #define strftime_l _strftime_l #define strftime_lz _strftime_lz #define strftime_z _strftime_z #define strndup _strndup #define strncasecmp _strncasecmp #define strptime _strptime #define strptime_l _strptime_l #define strsep _strsep #define strsignal _strsignal #define strsuftoll _strsuftoll #define strsuftollx _strsuftollx #define strtok_r _strtok_r #define strnunvisx _strnunvisx #define strvisx _strvisx #define strxfrm_l _strxfrm_l #define svc_auth_reg _svc_auth_reg #define svc_create _svc_create #define svc_dg_create _svc_dg_create #define svc_exit _svc_exit #define svc_fd_create _svc_fd_create #define svc_getreq _svc_getreq #define svc_getreqset _svc_getreqset #define svc_getreq_common _svc_getreq_common #define svc_raw_create _svc_raw_create #define svc_register _svc_register #define svc_reg _svc_reg #define svc_run _svc_run #define svc_sendreply _svc_sendreply #define svc_tli_create _svc_tli_create #define svc_tp_create _svc_tp_create #define svc_unregister _svc_unregister #define svc_unreg _svc_unreg #define svc_vc_create _svc_vc_create #define svcerr_auth _svcerr_auth #define svcerr_decode _svcerr_decode #define svcerr_noproc _svcerr_noproc #define svcerr_noprog _svcerr_noprog #define svcerr_progvers _svcerr_progvers #define svcerr_systemerr _svcerr_systemerr #define svcerr_weakauth _svcerr_weakauth #define svcfd_create _svcfd_create #define svcraw_create _svcraw_create #define svctcp_create _svctcp_create #define svcudp_bufcreate _svcudp_bufcreate #define svcudp_create _svcudp_create #define svcudp_enablecache _svcudp_enablecache #define sysarch _sys_sysarch #define swprintf_l _swprintf_l #define swscanf_l _swscanf_l #define sysctl _sysctl #define sysctlbyname _sysctlbyname #define sysctlgetmibinfo _sysctlgetmibinfo #define sysctlnametomib _sysctlnametomib #define syscall _syscall #define syslog _syslog #define syslog_r _syslog_r #define syslog_ss _syslog_ss #define syslogp _syslogp #define syslogp_r _syslogp_r #define syslogp_ss _syslogp_ss #define taddr2uaddr _taddr2uaddr #define tcdrain _tcdrain #define tcflow _tcflow #define tcflush _tcflush #define tcgetattr _tcgetattr #define tcgetpgrp _tcgetpgrp #define tcgetsid _tcgetsid #define tcsendbreak _tcsendbreak #define tcsetattr _tcsetattr #define tcsetpgrp _tcsetpgrp #define telldir _telldir #define time _time #define time2posix _time2posix #define timegm _timegm #define timelocal _timelocal #define timeoff _timeoff #define times _times #define ttyname _ttyname #define ttyname_r _ttyname_r #define ttyslot _ttyslot #define tzname _tzname #define tzset _tzset #define tzsetwall _tzsetwall #define uaddr2taddr _uaddr2taddr #define ualarm _ualarm #define uname _uname #define unsetenv _unsetenv #define user_from_uid _user_from_uid #define usleep _usleep #define utime _utime #define uuid_create_nil _uuid_create_nil #define uuid_is_nil _uuid_is_nil #define valloc _valloc #define vasprintf _vasprintf #define vasprintf_l _vasprintf_l #define vdprintf _vdprintf #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL == 0 && !defined(vsnprintf) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 771 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define vsnprintf _vsnprintf #endif # 773 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #define vdprintf_l _vdprintf_l #define vdprintf_l _vdprintf_l #define vfprintf_l _vfprintf_l #define vfwprintf_l _vfwprintf_l #define vprintf_l _vprintf_l #define vscanf_l _vscanf_l #define vsscanf_l _vsscanf_l #define vswscanf_l _vswscanf_l #define vsnprintf_l _vsnprintf_l #define vsnprintf_ss _vsnprintf_ss #define vsprintf_l _vsprintf_l #define vswprintf_l _vswprintf_l #define vwprintf_l _vwprintf_l #define vwscanf_l _vwscanf_l #define vsyslog _vsyslog #define vsyslog_r _vsyslog_r #define vsyslog_ss _vsyslog_ss #define vsyslogp _vsyslogp #define vsyslogp_r _vsyslogp_r #define vsyslogp_ss _vsyslogp_ss #define wait _wait #define wait3 _wait3 #define wait4 _wait4 #define waitid _waitid #define waitpid _waitpid #define wcscasecmp _wcscasecmp #define wcscasecmp_l _wcscasecmp_l #define wcsdup _wcsdup #define wcsftime_l _wcsftime_l #define wcsncasecmp _wcsncasecmp #define wcsncasecmp_l _wcsncasecmp_l #define wcstof _wcstof #define wcstof_l _wcstof_l #define wcstod _wcstod #define wcstod_l _wcstod_l #define wcstold _wcstold #define wcstold_l _wcstold_l #define wcwidth _wcwidth #define wcwidth_l _wcwidth_l #define wprintf_l _wprintf_l #define wscanf_l _wscanf_l #define xdr_accepted_reply _xdr_accepted_reply #define xdr_array _xdr_array #define xdr_authunix_parms _xdr_authunix_parms #define xdr_bool _xdr_bool #define xdr_bytes _xdr_bytes #define xdr_callhdr _xdr_callhdr #define xdr_callmsg _xdr_callmsg #define xdr_char _xdr_char #define xdr_datum _xdr_datum #define xdr_des_block _xdr_des_block #define xdr_domainname _xdr_domainname #define xdr_double _xdr_double #define xdr_enum _xdr_enum #define xdr_float _xdr_float #define xdr_free _xdr_free #define xdr_hyper _xdr_hyper #define xdr_int _xdr_int #define xdr_int16_t _xdr_int16_t #define xdr_int32_t _xdr_int32_t #define xdr_int64_t _xdr_int64_t #define xdr_long _xdr_long #define xdr_longlong_t _xdr_longlong_t #define xdr_mapname _xdr_mapname #define xdr_netbuf _xdr_netbuf #define xdr_netobj _xdr_netobj #define xdr_opaque _xdr_opaque #define xdr_opaque_auth _xdr_opaque_auth #define xdr_peername _xdr_peername #define xdr_pmap _xdr_pmap #define xdr_pmaplist _xdr_pmaplist #define xdr_pointer _xdr_pointer #define xdr_reference _xdr_reference #define xdr_rejected_reply _xdr_rejected_reply #define xdr_replymsg _xdr_replymsg #define xdr_rmtcall_args _xdr_rmtcall_args #define xdr_rmtcallres _xdr_rmtcallres #define xdr_rpcb _xdr_rpcb #define xdr_rpcb_entry _xdr_rpcb_entry #define xdr_rpcb_entry_list_ptr _xdr_rpcb_entry_list_ptr #define xdr_rpcb_rmtcallargs _xdr_rpcb_rmtcallargs #define xdr_rpcb_rmtcallres _xdr_rpcb_rmtcallres #define xdr_rpcb_stat _xdr_rpcb_stat #define xdr_rpcb_stat_byvers _xdr_rpcb_stat_byvers #define xdr_rpcblist _xdr_rpcblist #define xdr_rpcblist_ptr _xdr_rpcblist_ptr #define xdr_rpcbs_addrlist _xdr_rpcbs_addrlist #define xdr_rpcbs_addrlist_ptr _xdr_rpcbs_addrlist_ptr #define xdr_rpcbs_proc _xdr_rpcbs_proc #define xdr_rpcbs_rmtcalllist _xdr_rpcbs_rmtcalllist #define xdr_rpcbs_rmtcalllist_ptr _xdr_rpcbs_rmtcalllist_ptr #define xdr_rpcbs _xdr_rpcbs #define xdr_rpcbs _xdr_rpcbs #define xdr_short _xdr_short #define xdr_sizeof _xdr_sizeof #define xdr_string _xdr_string #define xdr_u_char _xdr_u_char #define xdr_u_hyper _xdr_u_hyper #define xdr_u_int _xdr_u_int #define xdr_u_int16_t _xdr_u_int16_t #define xdr_u_int32_t _xdr_u_int32_t #define xdr_u_int64_t _xdr_u_int64_t #define xdr_u_long _xdr_u_long #define xdr_u_longlong_t _xdr_u_longlong_t #define xdr_u_short _xdr_u_short #define xdr_union _xdr_union #define xdr_vector _xdr_vector #define xdr_void _xdr_void #define xdr_wrapstring _xdr_wrapstring #define xdr_yp_inaddr _xdr_yp_inaddr #define xdr_ypall _xdr_ypall #define xdr_ypbind_resp _xdr_ypbind_resp #define xdr_ypbind_setdom _xdr_ypbind_setdom #define xdr_ypdomain_wrap_string _xdr_ypdomain_wrap_string #define xdr_ypmap_parms _xdr_ypmap_parms #define xdr_ypmap_wrap_string _xdr_ypmap_wrap_string #define xdr_ypmaplist _xdr_ypmaplist #define xdr_ypowner_wrap_string _xdr_ypowner_wrap_string #define xdr_yppushresp_xfr _xdr_yppushresp_xfr #define xdr_ypreq_key _xdr_ypreq_key #define xdr_ypreq_nokey _xdr_ypreq_nokey #define xdr_ypreq_xfr _xdr_ypreq_xfr #define xdr_ypresp_key_val _xdr_ypresp_key_val #define xdr_ypresp_maplist _xdr_ypresp_maplist #define xdr_ypresp_master _xdr_ypresp_master #define xdr_ypresp_order _xdr_ypresp_order #define xdr_ypresp_val _xdr_ypresp_val #define xdrmem_create _xdrmem_create #define xdrrec_create _xdrrec_create #define xdrrec_endofrecord _xdrrec_endofrecord #define xdrrec_eof _xdrrec_eof #define xdrrec_skiprecord _xdrrec_skiprecord #define xdrstdio_create _xdrstdio_create #define xprt_register _xprt_register #define xprt_unregister _xprt_unregister #define yp_all _yp_all #define yp_bind _yp_bind #define yp_first _yp_first #define yp_get_default_domain _yp_get_default_domain #define yp_maplist _yp_maplist #define yp_master _yp_master #define yp_match _yp_match #define yp_next _yp_next #define yp_order _yp_order #define yp_unbind _yp_unbind #define yperr_string _yperr_string #define ypprot_err _ypprot_err #define yp_setbindtries _yp_setbindtries #define dl_iterate_phdr __dl_iterate_phdr #define dlopen __dlopen #define dlclose __dlclose #define dlsym __dlsym #define dlerror __dlerror #define dladdr __dladdr #define fmtcheck __fmtcheck /* RB trees */ #define rb_tree_init _rb_tree_init #define rb_tree_find_node _rb_tree_find_node #define rb_tree_find_node_geq _rb_tree_find_node_geq #define rb_tree_find_node_leq _rb_tree_find_node_leq #define rb_tree_insert_node _rb_tree_insert_node #define rb_tree_remove_node _rb_tree_remove_node #define rb_tree_iterate _rb_tree_iterate #ifdef RBDEBUG #define rb_tree_check _rb_tree_check #define rb_tree_depths _rb_tree_depths #endif # 941 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" /* rpc locks */ #define authdes_lock __rpc_authdes_lock #define authnone_lock __rpc_authnone_lock #define authsvc_lock __rpc_authsvc_lock #define clnt_fd_lock __rpc_clnt_fd_lock #define clntraw_lock __rpc_clntraw_lock #define dname_lock __rpc_dname_lock #define dupreq_lock __rpc_dupreq_lock #define keyserv_lock __rpc_keyserv_lock #define libnsl_trace_lock __rpc_libnsl_trace_lock #define loopnconf_lock __rpc_loopnconf_lock #define ops_lock __rpc_ops_lock #define portnum_lock __rpc_portnum_lock #define proglst_lock __rpc_proglst_lock #define rpcbaddr_cache_lock __rpc_rpcbaddr_cache_lock #define rpcsoc_lock __rpc_rpcsoc_lock #define svc_fd_lock __rpc_svc_fd_lock #define svc_lock __rpc_svc_lock #define svcraw_lock __rpc_svcraw_lock #define xprtlist_lock __rpc_xprtlist_lock #define __learn_tree ___learn_tree #endif /* __weak_alias */ # 965 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #endif /* !__lint__ */ # 966 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" #endif /* _NAMESPACE_H_ */ # 968 "/usr/home/sme/sandbox/usr/src/lib/libc/include/namespace.h" # 25 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #endif # 26 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* expanded by -frewrite-includes */ #include "InstrProfilingUtil.h" #endif /* expanded by -frewrite-includes */ # 27 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingUtil.h" 1 /*===- InstrProfilingUtil.h - Support library for PGO instrumentation -----===*\ |* |* The LLVM Compiler Infrastructure |* |* This file is distributed under the University of Illinois Open Source |* License. See LICENSE.TXT for details. |* \*===----------------------------------------------------------------------===*/ #ifndef PROFILE_INSTRPROFILINGUTIL_H #define PROFILE_INSTRPROFILINGUTIL_H /*! \brief Create a directory tree. */ void __llvm_profile_recursive_mkdir(char *Pathname); #endif /* PROFILE_INSTRPROFILINGUTIL_H */ # 17 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/InstrProfilingUtil.h" # 28 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 29 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 1 3 4 /* $NetBSD: errno.h,v 1.11 2008/03/03 06:57:48 dholland Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * from: @(#)errno.h 8.5 (Berkeley) 1/21/94 */ #ifndef _ERRNO_H_ #define _ERRNO_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/errno.h" 1 3 4 /* $NetBSD: errno.h,v 1.42 2020/03/08 22:09:43 mgorny Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)errno.h 8.5 (Berkeley) 1/21/94 */ #ifndef _SYS_ERRNO_H_ #define _SYS_ERRNO_H_ #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ #define ESRCH 3 /* No such process */ #define EINTR 4 /* Interrupted system call */ #define EIO 5 /* Input/output error */ #define ENXIO 6 /* Device not configured */ #define E2BIG 7 /* Argument list too long */ #define ENOEXEC 8 /* Exec format error */ #define EBADF 9 /* Bad file descriptor */ #define ECHILD 10 /* No child processes */ #define EDEADLK 11 /* Resource deadlock avoided */ /* 11 was EAGAIN */ #define ENOMEM 12 /* Cannot allocate memory */ #define EACCES 13 /* Permission denied */ #define EFAULT 14 /* Bad address */ #define ENOTBLK 15 /* Block device required */ #define EBUSY 16 /* Device busy */ #define EEXIST 17 /* File exists */ #define EXDEV 18 /* Cross-device link */ #define ENODEV 19 /* Operation not supported by device */ #define ENOTDIR 20 /* Not a directory */ #define EISDIR 21 /* Is a directory */ #define EINVAL 22 /* Invalid argument */ #define ENFILE 23 /* Too many open files in system */ #define EMFILE 24 /* Too many open files */ #define ENOTTY 25 /* Inappropriate ioctl for device */ #define ETXTBSY 26 /* Text file busy */ #define EFBIG 27 /* File too large */ #define ENOSPC 28 /* No space left on device */ #define ESPIPE 29 /* Illegal seek */ #define EROFS 30 /* Read-only file system */ #define EMLINK 31 /* Too many links */ #define EPIPE 32 /* Broken pipe */ /* math software */ #define EDOM 33 /* Numerical argument out of domain */ #define ERANGE 34 /* Result too large or too small */ /* non-blocking and interrupt i/o */ #define EAGAIN 35 /* Resource temporarily unavailable */ #define EWOULDBLOCK EAGAIN /* Operation would block */ #define EINPROGRESS 36 /* Operation now in progress */ #define EALREADY 37 /* Operation already in progress */ /* ipc/network software -- argument errors */ #define ENOTSOCK 38 /* Socket operation on non-socket */ #define EDESTADDRREQ 39 /* Destination address required */ #define EMSGSIZE 40 /* Message too long */ #define EPROTOTYPE 41 /* Protocol wrong type for socket */ #define ENOPROTOOPT 42 /* Protocol option not available */ #define EPROTONOSUPPORT 43 /* Protocol not supported */ #define ESOCKTNOSUPPORT 44 /* Socket type not supported */ #define EOPNOTSUPP 45 /* Operation not supported */ #define EPFNOSUPPORT 46 /* Protocol family not supported */ #define EAFNOSUPPORT 47 /* Address family not supported by protocol family */ #define EADDRINUSE 48 /* Address already in use */ #define EADDRNOTAVAIL 49 /* Can't assign requested address */ /* ipc/network software -- operational errors */ #define ENETDOWN 50 /* Network is down */ #define ENETUNREACH 51 /* Network is unreachable */ #define ENETRESET 52 /* Network dropped connection on reset */ #define ECONNABORTED 53 /* Software caused connection abort */ #define ECONNRESET 54 /* Connection reset by peer */ #define ENOBUFS 55 /* No buffer space available */ #define EISCONN 56 /* Socket is already connected */ #define ENOTCONN 57 /* Socket is not connected */ #define ESHUTDOWN 58 /* Can't send after socket shutdown */ #define ETOOMANYREFS 59 /* Too many references: can't splice */ #define ETIMEDOUT 60 /* Operation timed out */ #define ECONNREFUSED 61 /* Connection refused */ #define ELOOP 62 /* Too many levels of symbolic links */ #define ENAMETOOLONG 63 /* File name too long */ /* should be rearranged */ #define EHOSTDOWN 64 /* Host is down */ #define EHOSTUNREACH 65 /* No route to host */ #define ENOTEMPTY 66 /* Directory not empty */ /* quotas & mush */ #define EPROCLIM 67 /* Too many processes */ #define EUSERS 68 /* Too many users */ #define EDQUOT 69 /* Disc quota exceeded */ /* Network File System */ #define ESTALE 70 /* Stale NFS file handle */ #define EREMOTE 71 /* Too many levels of remote in path */ #define EBADRPC 72 /* RPC struct is bad */ #define ERPCMISMATCH 73 /* RPC version wrong */ #define EPROGUNAVAIL 74 /* RPC prog. not avail */ #define EPROGMISMATCH 75 /* Program version wrong */ #define EPROCUNAVAIL 76 /* Bad procedure for program */ #define ENOLCK 77 /* No locks available */ #define ENOSYS 78 /* Function not implemented */ #define EFTYPE 79 /* Inappropriate file type or format */ #define EAUTH 80 /* Authentication error */ #define ENEEDAUTH 81 /* Need authenticator */ /* SystemV IPC */ #define EIDRM 82 /* Identifier removed */ #define ENOMSG 83 /* No message of desired type */ #define EOVERFLOW 84 /* Value too large to be stored in data type */ /* Wide/multibyte-character handling, ISO/IEC 9899/AMD1:1995 */ #define EILSEQ 85 /* Illegal byte sequence */ /* From IEEE Std 1003.1-2001 */ /* Base, Realtime, Threads or Thread Priority Scheduling option errors */ #define ENOTSUP 86 /* Not supported */ /* Realtime option errors */ #define ECANCELED 87 /* Operation canceled */ /* Realtime, XSI STREAMS option errors */ #define EBADMSG 88 /* Bad or Corrupt message */ /* XSI STREAMS option errors */ #define ENODATA 89 /* No message available */ #define ENOSR 90 /* No STREAM resources */ #define ENOSTR 91 /* Not a STREAM */ #define ETIME 92 /* STREAM ioctl timeout */ /* File system extended attribute errors */ #define ENOATTR 93 /* Attribute not found */ /* Realtime, XSI STREAMS option errors */ #define EMULTIHOP 94 /* Multihop attempted */ #define ENOLINK 95 /* Link has been severed */ #define EPROTO 96 /* Protocol error */ /* Robust mutexes */ #define EOWNERDEAD 97 /* Previous owner died */ #define ENOTRECOVERABLE 98 /* State not recoverable */ #define ELAST 98 /* Must equal largest errno */ #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 182 "/usr/home/sme/sandbox/usr/src/sys/sys/errno.h" 3 4 /* pseudo-errors returned inside kernel to modify return to process */ #define EJUSTRETURN -2 /* don't modify regs, just return */ #define ERESTART -3 /* restart syscall */ #define EPASSTHROUGH -4 /* ioctl not handled by this layer */ #define EDUPFD -5 /* Dup given fd */ #define EMOVEFD -6 /* Move given fd */ #endif # 189 "/usr/home/sme/sandbox/usr/src/sys/sys/errno.h" 3 4 #endif /* !_SYS_ERRNO_H_ */ # 191 "/usr/home/sme/sandbox/usr/src/sys/sys/errno.h" 3 4 # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 2 3 4 __BEGIN_DECLS /* note: this appears in both errno.h and signal.h */ #ifndef __errno int *__errno(void); #define __errno __errno #endif # 53 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 #ifndef errno #define errno (*__errno()) #endif # 57 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 59 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 #ifndef __LIBC12_SOURCE__ extern const int sys_nerr __RENAME(__sys_nerr14); extern const char *const *sys_errlist __RENAME(__sys_errlist14); #endif # 63 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 #endif # 64 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 __END_DECLS #endif /* !_ERRNO_H_ */ # 67 "/usr/obj/evbarm64/destdir.evbarm/usr/include/errno.h" 3 4 # 30 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 30 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 1 3 4 /* $NetBSD: fcntl.h,v 1.54 2020/03/30 20:17:42 kamil Exp $ */ /*- * Copyright (c) 1983, 1990, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 */ #ifndef _SYS_FCNTL_H_ #define _SYS_FCNTL_H_ /* * This file includes the definitions for open and fcntl * described by POSIX for ; it also includes * related kernel definitions. */ #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 1 3 4 /* $NetBSD: types.h,v 1.105 2020/05/16 18:31:53 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)types.h 8.4 (Berkeley) 1/21/94 */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 43 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 /* Machine type dependent parameters. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 1 3 4 /* $NetBSD: types.h,v 1.14 2020/02/14 07:21:02 skrll Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Matt Thomas of 3am Software Foundry. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _AARCH64_TYPES_H_ #define _AARCH64_TYPES_H_ #ifdef __aarch64__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 # 40 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || \ defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 typedef unsigned long vm_offset_t; /* depreciated */ typedef unsigned long vm_size_t; /* depreciated */ typedef unsigned long paddr_t; typedef unsigned long psize_t; typedef unsigned long vaddr_t; typedef unsigned long vsize_t; #define PRIxPADDR "lx" #define PRIxPSIZE "lx" #define PRIuPSIZE "lu" #define PRIxVADDR "lx" #define PRIxVSIZE "lx" #define PRIuVSIZE "lu" typedef __uint64_t register_t; typedef __uint32_t register32_t; #define PRIxREGISTER PRIx64 #define PRIxREGISTER32 PRIx32 typedef unsigned short tlb_asid_t; #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #define LBL_X19 0 #define LBL_X20 1 #define LBL_X21 2 #define LBL_X22 3 #define LBL_X23 4 #define LBL_X24 5 #define LBL_X25 6 #define LBL_X26 7 #define LBL_X27 8 #define LBL_X28 9 #define LBL_X29 10 #define LBL_LR 11 #define LBL_SP 12 #define LBL_MAX 13 typedef struct label_t { /* Used by setjmp & longjmp */ register_t lb_reg[LBL_MAX]; /* x19 .. x30, sp */ } label_t; #endif # 83 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #endif # 85 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 /* * This should have always been an 8-bit type. */ typedef unsigned char __cpu_simple_lock_nv_t; typedef __uint64_t __register_t; #define __SIMPLELOCK_LOCKED 1 #define __SIMPLELOCK_UNLOCKED 0 #define __HAVE_ATOMIC64_OPS #define __HAVE_COMMON___TLS_GET_ADDR #define __HAVE_CPU_COUNTER #define __HAVE_CPU_DATA_FIRST #define __HAVE_FAST_SOFTINTS #define __HAVE_MINIMAL_EMUL #define __HAVE_MM_MD_DIRECT_MAPPED_PHYS #define __HAVE_MM_MD_KERNACC #define __HAVE_NEW_STYLE_BUS_H #define __HAVE_OLD_DISKLABEL /* compatibility */ #define __HAVE_SYSCALL_INTERN #define __HAVE_TLS_VARIANT_I #define __HAVE___LWP_GETPRIVATE_FAST #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 110 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #define PCU_FPU 0 #define PCU_UNIT_COUNT 1 #endif # 113 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 115 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #define __HAVE_RAS #endif # 117 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__arm__) #endif #endif /* disabled by -frewrite-includes */ #elif 1 /* evaluated by -frewrite-includes */ # 119 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 120 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 1 3 4 /* $NetBSD: types.h,v 1.40 2020/01/18 14:40:04 skrll Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * from: @(#)types.h 7.5 (Berkeley) 3/9/91 */ #ifndef _ARM_TYPES_H_ #define _ARM_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.17 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Matt Thomas of 3am Software Foundry. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_INT_TYPES_H_ #define _ARM_INT_TYPES_H_ #ifdef __UINTPTR_TYPE__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_types.h" 1 3 4 /* $NetBSD: common_int_types.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Joerg Sonnenberger. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_COMMON_INT_TYPES_H_ #define _SYS_COMMON_INT_TYPES_H_ #ifndef __UINTPTR_TYPE__ #error Your compiler does not provide exact width type macros. #endif # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_types.h" 3 4 /* * 7.18.1 Integer types */ /* 7.18.1.1 Exact-width integer types */ typedef __INT8_TYPE__ __int8_t; typedef __UINT8_TYPE__ __uint8_t; typedef __INT16_TYPE__ __int16_t; typedef __UINT16_TYPE__ __uint16_t; typedef __INT32_TYPE__ __int32_t; typedef __UINT32_TYPE__ __uint32_t; typedef __INT64_TYPE__ __int64_t; typedef __UINT64_TYPE__ __uint64_t; #define __BIT_TYPES_DEFINED__ /* 7.18.1.4 Integer types capable of holding object pointers */ typedef __INTPTR_TYPE__ __intptr_t; typedef __UINTPTR_TYPE__ __uintptr_t; #endif /* _SYS_COMMON_INT_TYPES_H_ */ # 62 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_types.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 2 3 4 #else # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 /* * 7.18.1 Integer types */ /* 7.18.1.1 Exact-width integer types */ #ifndef __UINT8_TYPE__ # define __UINT8_TYPE__ unsigned char #endif # 49 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #ifndef __INT8_TYPE__ # define __INT8_TYPE__ signed char #endif # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #ifndef __UINT16_TYPE__ # ifndef __INT16_TYPE__ # define __INT16_TYPE__ short int # endif # 56 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # define __UINT16_TYPE__ unsigned __INT16_TYPE__ #endif # 58 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #ifndef __UINT32_TYPE__ # ifndef __INT32_TYPE__ # define __INT32_TYPE__ int # endif # 62 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # define __UINT32_TYPE__ unsigned __INT32_TYPE__ #endif # 64 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #ifndef __UINT64_TYPE__ # ifndef __INT64_TYPE__ # define __INT64_TYPE__ long long int # endif # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # define __UINT64_TYPE__ unsigned __INT64_TYPE__ #endif # 70 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #ifdef __clang__ typedef signed __INT8_TYPE__ __int8_t; #else # 74 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 typedef __INT8_TYPE__ __int8_t; #endif # 76 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 typedef __UINT8_TYPE__ __uint8_t; typedef __INT16_TYPE__ __int16_t; typedef __UINT16_TYPE__ __uint16_t; typedef __INT32_TYPE__ __int32_t; typedef __UINT32_TYPE__ __uint32_t; typedef __INT64_TYPE__ __int64_t; typedef __UINT64_TYPE__ __uint64_t; #define __BIT_TYPES_DEFINED__ /* 7.18.1.4 Integer types capable of holding object pointers */ #ifndef __UINTPTR_TYPE__ # ifndef __INTPTR_TYPE__ # define __INTPTR_TYPE__ long int # endif # 92 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # define __UINTPTR_TYPE__ unsigned __INTPTR_TYPE__ #endif # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 typedef __INTPTR_TYPE__ __intptr_t; typedef __UINTPTR_TYPE__ __uintptr_t; #endif # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 #endif /* !_ARM_INT_TYPES_H_ */ # 100 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_types.h" 3 4 # 40 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 typedef struct label_t { /* Used by setjmp & longjmp */ int val[11]; } label_t; #endif # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) || defined(_KERNTYPES) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 typedef unsigned long paddr_t; typedef unsigned long psize_t; typedef unsigned long vaddr_t; typedef unsigned long vsize_t; #define PRIxPADDR "lx" #define PRIxPSIZE "lx" #define PRIuPSIZE "lu" #define PRIxVADDR "lx" #define PRIxVSIZE "lx" #define PRIuVSIZE "lu" #define VADDR_MAX ULONG_MAX #define PADDR_MAX ULONG_MAX typedef int register_t, register32_t; #define PRIxREGISTER "x" typedef unsigned short tlb_asid_t; #endif # 67 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 /* * This should have always been an 8-bit type, but since it's been exposed * to user-space, we don't want ABI breakage there. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 73 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 typedef unsigned char __cpu_simple_lock_nv_t; #else # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 typedef int __cpu_simple_lock_nv_t; #endif /* _KERNEL */ # 77 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 typedef int __register_t; #define __SIMPLELOCK_LOCKED 1 #define __SIMPLELOCK_UNLOCKED 0 #define __HAVE_COMMON___TLS_GET_ADDR #define __HAVE_CPU_DATA_FIRST #define __HAVE_MINIMAL_EMUL #define __HAVE_NEW_STYLE_BUS_H #define __HAVE_OLD_DISKLABEL #define __HAVE_SYSCALL_INTERN #define __HAVE_TLS_VARIANT_I #define __HAVE___LWP_GETPRIVATE_FAST #if 0 /* disabled by -frewrite-includes */ #if defined(__ARM_EABI__) && defined(_ARM_ARCH_6) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #define __HAVE_ATOMIC64_OPS #endif # 93 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_ARM_ARCH_6) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #define __HAVE_MAXPROC_HOOK #define __HAVE_UCAS_MP #endif # 97 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 99 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #define PCU_FPU 0 #define PCU_UNIT_COUNT 1 #endif # 102 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 104 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #define __HAVE_RAS #endif # 106 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 #endif /* _ARM_TYPES_H_ */ # 108 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/types.h" 3 4 # 121 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 2 3 4 #endif # 123 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 #endif /* _AARCH64_TYPES_H_ */ # 125 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/types.h" 3 4 # 46 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 1 3 4 /* $NetBSD: common_ansi.h,v 1.1 2014/08/19 07:27:31 matt Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Matt Thomas of 3am Software Foundry. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_COMMON_ANSI_H_ #define _SYS_COMMON_ANSI_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 # 36 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__PTRDIFF_TYPE__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 40 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #error __PTRDIFF_TYPE__ not present #endif # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__SIZE_TYPE__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 44 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #error __SIZE_TYPE__ not present #endif # 46 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__WCHAR_TYPE__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #error __WCHAR_TYPE__ not present #endif # 50 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__WINT_TYPE__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 #error __WINT_TYPE__ not present #endif # 54 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 /* * Types which are fundamental to the implementation and may appear in * more than one standard header are defined here. Standard headers * then use: * #ifdef _BSD_SIZE_T_ * typedef _BSD_SIZE_T_ size_t; * #undef _BSD_SIZE_T_ * #endif */ #define _BSD_CLOCK_T_ unsigned int /* clock() */ #define _BSD_PTRDIFF_T_ __PTRDIFF_TYPE__ /* ptr1 - ptr2 */ #define _BSD_SSIZE_T_ __PTRDIFF_TYPE__ /* byte count or error */ #define _BSD_SIZE_T_ __SIZE_TYPE__ /* sizeof() */ #define _BSD_TIME_T_ __int64_t /* time() */ #define _BSD_CLOCKID_T_ int /* clockid_t */ #define _BSD_TIMER_T_ int /* timer_t */ #define _BSD_SUSECONDS_T_ int /* suseconds_t */ #define _BSD_USECONDS_T_ unsigned int /* useconds_t */ #define _BSD_WCHAR_T_ __WCHAR_TYPE__ /* wchar_t */ #define _BSD_WINT_T_ __WINT_TYPE__ /* wint_t */ #endif /* _SYS_COMMON_ANSI_H_ */ # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/common_ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 2 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 49 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.15 2020/05/16 18:31:53 christos Exp $ */ /*- * Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Jun-ichiro itojun Hagino and by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_ANSI_H_ #define _SYS_ANSI_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 36 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 2 3 4 typedef char * __caddr_t; /* core address */ typedef __uint32_t __gid_t; /* group id */ typedef __uint32_t __in_addr_t; /* IP(v4) address */ typedef __uint16_t __in_port_t; /* "Internet" port number */ typedef __uint32_t __mode_t; /* file permissions */ typedef __uint32_t __accmode_t; /* access permissions */ typedef __int64_t __off_t; /* file offset */ typedef __int32_t __pid_t; /* process id */ typedef __uint8_t __sa_family_t; /* socket address family */ typedef unsigned int __socklen_t; /* socket-related datum length */ typedef __uint32_t __uid_t; /* user id */ typedef __uint64_t __fsblkcnt_t; /* fs block count (statvfs) */ typedef __uint64_t __fsfilcnt_t; /* fs file count */ struct __tag_wctrans_t; typedef struct __tag_wctrans_t *__wctrans_t; struct __tag_wctype_t; typedef struct __tag_wctype_t *__wctype_t; /* * mbstate_t is an opaque object to keep conversion state, during multibyte * stream conversions. The content must not be referenced by user programs. */ typedef union { __int64_t __mbstateL; /* for alignment */ char __mbstate8[128]; } __mbstate_t; #define _BSD_WCTRANS_T_ __wctrans_t /* wctrans_t */ #define _BSD_WCTYPE_T_ __wctype_t /* wctype_t */ #define _BSD_MBSTATE_T_ __mbstate_t /* mbstate_t */ #ifdef __lint__ typedef char *__va_list; #else # 73 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 3 4 typedef __builtin_va_list __va_list; #endif # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 3 4 #endif /* !_SYS_ANSI_H_ */ # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/ansi.h" 3 4 # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #ifndef _BSD_INT8_T_ typedef __int8_t int8_t; #define _BSD_INT8_T_ #endif # 57 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT8_T_ typedef __uint8_t uint8_t; #define _BSD_UINT8_T_ #endif # 62 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT16_T_ typedef __int16_t int16_t; #define _BSD_INT16_T_ #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT16_T_ typedef __uint16_t uint16_t; #define _BSD_UINT16_T_ #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT32_T_ typedef __int32_t int32_t; #define _BSD_INT32_T_ #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT32_T_ typedef __uint32_t uint32_t; #define _BSD_UINT32_T_ #endif # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT64_T_ typedef __int64_t int64_t; #define _BSD_INT64_T_ #endif # 87 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT64_T_ typedef __uint64_t uint64_t; #define _BSD_UINT64_T_ #endif # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 98 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian.h" 1 3 4 /* $NetBSD: endian.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 1 3 4 /* $NetBSD: endian.h,v 1.30 2016/02/27 21:37:35 christos Exp $ */ /* * Copyright (c) 1987, 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)endian.h 8.1 (Berkeley) 6/11/93 */ #ifndef _SYS_ENDIAN_H_ #define _SYS_ENDIAN_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 2 3 4 /* * Definitions for byte order, according to byte significance from low * address to high. */ #define _LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ #define _BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ #define _PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #ifndef _LOCORE /* C-family endian-ness definitions */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 53 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 54 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 54 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 55 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 55 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 1 3 4 /* $NetBSD: types.h,v 1.105 2020/05/16 18:31:53 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)types.h 8.4 (Berkeley) 1/21/94 */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 43 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* Machine type dependent parameters. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 46 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 49 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT8_T_ typedef __int8_t int8_t; #define _BSD_INT8_T_ #endif # 57 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT8_T_ typedef __uint8_t uint8_t; #define _BSD_UINT8_T_ #endif # 62 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT16_T_ typedef __int16_t int16_t; #define _BSD_INT16_T_ #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT16_T_ typedef __uint16_t uint16_t; #define _BSD_UINT16_T_ #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT32_T_ typedef __int32_t int32_t; #define _BSD_INT32_T_ #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT32_T_ typedef __uint32_t uint32_t; #define _BSD_UINT32_T_ #endif # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT64_T_ typedef __int64_t int64_t; #define _BSD_INT64_T_ #endif # 87 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT64_T_ typedef __uint64_t uint64_t; #define _BSD_UINT64_T_ #endif # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 98 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 99 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned char unchar; /* Sys V compatibility */ typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */ typedef unsigned long ulong; /* Sys V compatibility */ #endif # 111 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t u_quad_t; /* quads */ typedef int64_t quad_t; typedef quad_t * qaddr_t; /* * The types longlong_t and u_longlong_t exist for use with the * Sun-derived XDR routines involving these types, and their usage * in other contexts is discouraged. Further note that these types * may not be equivalent to "long long" and "unsigned long long", * they are only guaranteed to be signed and unsigned 64-bit types * respectively. Portable programs that need 64-bit types should use * the C99 types int64_t and uint64_t instead. */ typedef int64_t longlong_t; /* for XDR */ typedef uint64_t u_longlong_t; /* for XDR */ typedef int64_t blkcnt_t; /* fs block count */ typedef int32_t blksize_t; /* fs optimal block size */ #ifndef fsblkcnt_t typedef __fsblkcnt_t fsblkcnt_t; /* fs block count (statvfs) */ #define fsblkcnt_t __fsblkcnt_t #endif # 136 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef fsfilcnt_t typedef __fsfilcnt_t fsfilcnt_t; /* fs file count */ #define fsfilcnt_t __fsfilcnt_t #endif # 141 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 143 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* We don't and shouldn't use caddr_t in the kernel anymore */ #ifndef caddr_t typedef __caddr_t caddr_t; /* core address */ #define caddr_t __caddr_t #endif # 148 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 149 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef __daddr_t typedef __daddr_t daddr_t; /* disk address */ #undef __daddr_t #else # 154 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int64_t daddr_t; /* disk address */ #endif # 156 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t dev_t; /* device number */ typedef uint32_t fixpt_t; /* fixed point number */ #ifndef gid_t typedef __gid_t gid_t; /* group id */ #define gid_t __gid_t #endif # 164 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t id_t; /* group id, process id or user id */ typedef uint64_t ino_t; /* inode number */ typedef long key_t; /* IPC key (for Sys V IPC) */ #ifndef mode_t typedef __mode_t mode_t; /* permissions */ #define mode_t __mode_t #endif # 173 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef accmode_t typedef __accmode_t accmode_t; /* access permissions */ #define accmode_t __accmode_t #endif # 178 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t nlink_t; /* link count */ #ifndef off_t typedef __off_t off_t; /* file offset */ #define off_t __off_t #endif # 185 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef pid_t typedef __pid_t pid_t; /* process id */ #define pid_t __pid_t #endif # 190 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int32_t lwpid_t; /* LWP id */ typedef uint64_t rlim_t; /* resource limit */ typedef int32_t segsz_t; /* segment size */ typedef int32_t swblk_t; /* swap offset */ #ifndef uid_t typedef __uid_t uid_t; /* user id */ #define uid_t __uid_t #endif # 199 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int mqd_t; typedef unsigned long cpuid_t; typedef int psetid_t; typedef volatile __cpu_simple_lock_nv_t __cpu_simple_lock_t; #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 209 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 210 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 211 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Deprecated Mach-style boolean_t type. Should not be used by new code. */ typedef int boolean_t; #ifndef TRUE #define TRUE 1 #endif # 219 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef FALSE #define FALSE 0 #endif # 222 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _STANDALONE */ # 224 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_LIBC) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 226 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * semctl(2)'s argument structure. This is here for the benefit of * . It is not in the user's namespace in SUSv2. * The SUSv2 semctl(2) takes variable arguments. */ union __semun { int val; /* value for SETVAL */ struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ unsigned short *array; /* array for GETALL & SETALL */ }; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 236 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 237 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _LIBC || _KMEMUSER */ # 238 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * These belong in unistd.h, but are placed here too to ensure that * long arguments will be promoted to off_t if the program fails to * include that header or explicitly cast them to off_t. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 245 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef __OFF_T_SYSCALLS_DECLARED #define __OFF_T_SYSCALLS_DECLARED #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 248 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 249 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 __BEGIN_DECLS off_t lseek(int, off_t, int); int ftruncate(int, off_t); int truncate(const char *, off_t); __END_DECLS #endif /* !_KERNEL */ # 255 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* __OFF_T_SYSCALLS_DECLARED */ # 256 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* defined(_NETBSD_SOURCE) */ # 257 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 259 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* Major, minor numbers, dev_t's. */ typedef int32_t __devmajor_t, __devminor_t; #define devmajor_t __devmajor_t #define devminor_t __devminor_t #define NODEVMAJOR (-1) #define major(x) ((devmajor_t)(((uint32_t)(x) & 0x000fff00) >> 8)) #define minor(x) ((devminor_t)((((uint32_t)(x) & 0xfff00000) >> 12) | \ (((uint32_t)(x) & 0x000000ff) >> 0))) #define makedev(x,y) ((dev_t)((((dev_t)(x) << 8) & 0x000fff00U) | \ (((dev_t)(y) << 12) & 0xfff00000U) | \ (((dev_t)(y) << 0) & 0x000000ffU))) #endif # 271 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCK_T_ typedef _BSD_CLOCK_T_ clock_t; #undef _BSD_CLOCK_T_ #endif # 276 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_PTRDIFF_T_ typedef _BSD_PTRDIFF_T_ ptrdiff_t; #undef _BSD_PTRDIFF_T_ #endif # 281 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #define _SIZE_T #undef _BSD_SIZE_T_ #endif # 287 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SSIZE_T_ typedef _BSD_SSIZE_T_ ssize_t; #undef _BSD_SSIZE_T_ #endif # 292 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIME_T_ typedef _BSD_TIME_T_ time_t; #undef _BSD_TIME_T_ #endif # 297 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCKID_T_ typedef _BSD_CLOCKID_T_ clockid_t; #undef _BSD_CLOCKID_T_ #endif # 302 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIMER_T_ typedef _BSD_TIMER_T_ timer_t; #undef _BSD_TIMER_T_ #endif # 307 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SUSECONDS_T_ typedef _BSD_SUSECONDS_T_ suseconds_t; #undef _BSD_SUSECONDS_T_ #endif # 312 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_USECONDS_T_ typedef _BSD_USECONDS_T_ useconds_t; #undef _BSD_USECONDS_T_ #endif # 317 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _NETBSD_SOURCE #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 319 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 320 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #define NBBY 8 typedef struct kauth_cred *kauth_cred_t; typedef int pri_t; #endif # 328 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC__) && (defined(_KERNEL) || defined(_KMEMUSER)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 330 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Forward structure declarations for function prototypes. We include the * common structures that cross subsystem boundaries here; others are mostly * used in the same place that the structure is defined. */ struct lwp; typedef struct lwp lwp_t; struct __ucontext; struct proc; typedef struct proc proc_t; struct pgrp; struct rusage; struct file; typedef struct file file_t; struct buf; typedef struct buf buf_t; struct tty; struct uio; #endif # 349 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 351 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #define SET(t, f) ((t) |= (f)) #define ISSET(t, f) ((t) & (f)) #define CLR(t, f) ((t) &= ~(f)) #endif # 355 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 357 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0L) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 360 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 361 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 362 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* !_SYS_TYPES_H_ */ # 364 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 56 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 2 3 4 #ifndef in_addr_t typedef __in_addr_t in_addr_t; #define in_addr_t __in_addr_t #endif # 61 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #ifndef in_port_t typedef __in_port_t in_port_t; #define in_port_t __in_port_t #endif # 66 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 __BEGIN_DECLS uint32_t htonl(uint32_t) __constfunc; uint16_t htons(uint16_t) __constfunc; uint32_t ntohl(uint32_t) __constfunc; uint16_t ntohs(uint16_t) __constfunc; __END_DECLS #endif /* !_LOCORE */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */ # 76 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 78 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian_machdep.h" 1 3 4 /* $NetBSD: endian_machdep.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian_machdep.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/endian_machdep.h" 1 3 4 /* $NetBSD: endian_machdep.h,v 1.9 2014/01/29 01:03:13 matt Exp $ */ /* __ARMEB__ or __AARCH64EB__ is predefined when building big-endian ARM. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__ARMEB__) || defined(__AARCH64EB__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 5 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/endian_machdep.h" 3 4 #define _BYTE_ORDER _BIG_ENDIAN #else # 7 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/endian_machdep.h" 3 4 #define _BYTE_ORDER _LITTLE_ENDIAN #endif # 9 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/endian_machdep.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian_machdep.h" 2 3 4 # 79 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 2 3 4 /* * Define the order of 32-bit words in 64-bit words. */ #if 0 /* disabled by -frewrite-includes */ #if _BYTE_ORDER == _LITTLE_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 84 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define _QUAD_HIGHWORD 1 #define _QUAD_LOWWORD 0 #endif # 87 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if _BYTE_ORDER == _BIG_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 89 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define _QUAD_HIGHWORD 0 #define _QUAD_LOWWORD 1 #endif # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 95 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 /* * Traditional names for byteorder. These are defined as the numeric * sequences so that third party code can "#define XXX_ENDIAN" and not * cause errors. */ #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ #define BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ #define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ #define BYTE_ORDER _BYTE_ORDER #ifndef _LOCORE #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 107 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 1 3 4 /* $NetBSD: bswap.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 1 3 4 /* $NetBSD: bswap.h,v 1.6 2014/01/29 01:36:43 matt Exp $ */ #ifndef _ARM_BSWAP_H_ #define _ARM_BSWAP_H_ #ifdef __aarch64__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 7 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 8 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #else # 9 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 9 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 1 3 4 /* $NetBSD: byte_swap.h,v 1.16 2017/01/17 11:08:50 rin Exp $ */ /*- * Copyright (c) 1997, 1999, 2002 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Charles M. Hannum, Neil A. Carson, and Jason R. Thorpe. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_BYTE_SWAP_H_ #define _ARM_BYTE_SWAP_H_ #ifdef _LOCORE #if 0 /* disabled by -frewrite-includes */ #if defined(_ARM_ARCH_6) || defined(_ARM_ARCH_7) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #define BSWAP16(_src, _dst, _tmp) \ rev16 _dst, _src #define BSWAP32(_src, _dst, _tmp) \ rev _dst, _src #else # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #define BSWAP16(_src, _dst, _tmp) \ mov _tmp, _src, ror #8 ;\ orr _tmp, _tmp, _tmp, lsr #16 ;\ bic _dst, _tmp, _tmp, lsl #16 #define BSWAP32(_src, _dst, _tmp) \ eor _tmp, _src, _src, ror #16 ;\ bic _tmp, _tmp, #0x00FF0000 ;\ mov _dst, _src, ror #8 ;\ eor _dst, _dst, _tmp, lsr #8 #endif # 58 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #else # 61 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #ifdef __GNUC__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 63 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 1 3 4 /* $NetBSD: types.h,v 1.105 2020/05/16 18:31:53 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993, 1994 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)types.h 8.4 (Berkeley) 1/21/94 */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 43 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* Machine type dependent parameters. */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 46 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 48 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 49 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 51 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT8_T_ typedef __int8_t int8_t; #define _BSD_INT8_T_ #endif # 57 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT8_T_ typedef __uint8_t uint8_t; #define _BSD_UINT8_T_ #endif # 62 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT16_T_ typedef __int16_t int16_t; #define _BSD_INT16_T_ #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT16_T_ typedef __uint16_t uint16_t; #define _BSD_UINT16_T_ #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT32_T_ typedef __int32_t int32_t; #define _BSD_INT32_T_ #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT32_T_ typedef __uint32_t uint32_t; #define _BSD_UINT32_T_ #endif # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_INT64_T_ typedef __int64_t int64_t; #define _BSD_INT64_T_ #endif # 87 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef _BSD_UINT64_T_ typedef __uint64_t uint64_t; #define _BSD_UINT64_T_ #endif # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint8_t u_int8_t; typedef uint16_t u_int16_t; typedef uint32_t u_int32_t; typedef uint64_t u_int64_t; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 98 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 99 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 101 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned char unchar; /* Sys V compatibility */ typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */ typedef unsigned long ulong; /* Sys V compatibility */ #endif # 111 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t u_quad_t; /* quads */ typedef int64_t quad_t; typedef quad_t * qaddr_t; /* * The types longlong_t and u_longlong_t exist for use with the * Sun-derived XDR routines involving these types, and their usage * in other contexts is discouraged. Further note that these types * may not be equivalent to "long long" and "unsigned long long", * they are only guaranteed to be signed and unsigned 64-bit types * respectively. Portable programs that need 64-bit types should use * the C99 types int64_t and uint64_t instead. */ typedef int64_t longlong_t; /* for XDR */ typedef uint64_t u_longlong_t; /* for XDR */ typedef int64_t blkcnt_t; /* fs block count */ typedef int32_t blksize_t; /* fs optimal block size */ #ifndef fsblkcnt_t typedef __fsblkcnt_t fsblkcnt_t; /* fs block count (statvfs) */ #define fsblkcnt_t __fsblkcnt_t #endif # 136 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef fsfilcnt_t typedef __fsfilcnt_t fsfilcnt_t; /* fs file count */ #define fsfilcnt_t __fsfilcnt_t #endif # 141 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 143 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* We don't and shouldn't use caddr_t in the kernel anymore */ #ifndef caddr_t typedef __caddr_t caddr_t; /* core address */ #define caddr_t __caddr_t #endif # 148 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 149 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef __daddr_t typedef __daddr_t daddr_t; /* disk address */ #undef __daddr_t #else # 154 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int64_t daddr_t; /* disk address */ #endif # 156 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t dev_t; /* device number */ typedef uint32_t fixpt_t; /* fixed point number */ #ifndef gid_t typedef __gid_t gid_t; /* group id */ #define gid_t __gid_t #endif # 164 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t id_t; /* group id, process id or user id */ typedef uint64_t ino_t; /* inode number */ typedef long key_t; /* IPC key (for Sys V IPC) */ #ifndef mode_t typedef __mode_t mode_t; /* permissions */ #define mode_t __mode_t #endif # 173 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef accmode_t typedef __accmode_t accmode_t; /* access permissions */ #define accmode_t __accmode_t #endif # 178 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t nlink_t; /* link count */ #ifndef off_t typedef __off_t off_t; /* file offset */ #define off_t __off_t #endif # 185 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef pid_t typedef __pid_t pid_t; /* process id */ #define pid_t __pid_t #endif # 190 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int32_t lwpid_t; /* LWP id */ typedef uint64_t rlim_t; /* resource limit */ typedef int32_t segsz_t; /* segment size */ typedef int32_t swblk_t; /* swap offset */ #ifndef uid_t typedef __uid_t uid_t; /* user id */ #define uid_t __uid_t #endif # 199 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int mqd_t; typedef unsigned long cpuid_t; typedef int psetid_t; typedef volatile __cpu_simple_lock_nv_t __cpu_simple_lock_t; #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 209 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 210 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 211 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Deprecated Mach-style boolean_t type. Should not be used by new code. */ typedef int boolean_t; #ifndef TRUE #define TRUE 1 #endif # 219 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef FALSE #define FALSE 0 #endif # 222 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _STANDALONE */ # 224 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_LIBC) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 226 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * semctl(2)'s argument structure. This is here for the benefit of * . It is not in the user's namespace in SUSv2. * The SUSv2 semctl(2) takes variable arguments. */ union __semun { int val; /* value for SETVAL */ struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ unsigned short *array; /* array for GETALL & SETALL */ }; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 236 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 237 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _LIBC || _KMEMUSER */ # 238 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * These belong in unistd.h, but are placed here too to ensure that * long arguments will be promoted to off_t if the program fails to * include that header or explicitly cast them to off_t. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 245 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef __OFF_T_SYSCALLS_DECLARED #define __OFF_T_SYSCALLS_DECLARED #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 248 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 249 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 __BEGIN_DECLS off_t lseek(int, off_t, int); int ftruncate(int, off_t); int truncate(const char *, off_t); __END_DECLS #endif /* !_KERNEL */ # 255 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* __OFF_T_SYSCALLS_DECLARED */ # 256 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* defined(_NETBSD_SOURCE) */ # 257 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 259 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* Major, minor numbers, dev_t's. */ typedef int32_t __devmajor_t, __devminor_t; #define devmajor_t __devmajor_t #define devminor_t __devminor_t #define NODEVMAJOR (-1) #define major(x) ((devmajor_t)(((uint32_t)(x) & 0x000fff00) >> 8)) #define minor(x) ((devminor_t)((((uint32_t)(x) & 0xfff00000) >> 12) | \ (((uint32_t)(x) & 0x000000ff) >> 0))) #define makedev(x,y) ((dev_t)((((dev_t)(x) << 8) & 0x000fff00U) | \ (((dev_t)(y) << 12) & 0xfff00000U) | \ (((dev_t)(y) << 0) & 0x000000ffU))) #endif # 271 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCK_T_ typedef _BSD_CLOCK_T_ clock_t; #undef _BSD_CLOCK_T_ #endif # 276 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_PTRDIFF_T_ typedef _BSD_PTRDIFF_T_ ptrdiff_t; #undef _BSD_PTRDIFF_T_ #endif # 281 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #define _SIZE_T #undef _BSD_SIZE_T_ #endif # 287 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SSIZE_T_ typedef _BSD_SSIZE_T_ ssize_t; #undef _BSD_SSIZE_T_ #endif # 292 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIME_T_ typedef _BSD_TIME_T_ time_t; #undef _BSD_TIME_T_ #endif # 297 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCKID_T_ typedef _BSD_CLOCKID_T_ clockid_t; #undef _BSD_CLOCKID_T_ #endif # 302 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIMER_T_ typedef _BSD_TIMER_T_ timer_t; #undef _BSD_TIMER_T_ #endif # 307 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SUSECONDS_T_ typedef _BSD_SUSECONDS_T_ suseconds_t; #undef _BSD_SUSECONDS_T_ #endif # 312 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_USECONDS_T_ typedef _BSD_USECONDS_T_ useconds_t; #undef _BSD_USECONDS_T_ #endif # 317 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _NETBSD_SOURCE #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 319 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 320 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #define NBBY 8 typedef struct kauth_cred *kauth_cred_t; typedef int pri_t; #endif # 328 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC__) && (defined(_KERNEL) || defined(_KMEMUSER)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 330 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Forward structure declarations for function prototypes. We include the * common structures that cross subsystem boundaries here; others are mostly * used in the same place that the structure is defined. */ struct lwp; typedef struct lwp lwp_t; struct __ucontext; struct proc; typedef struct proc proc_t; struct pgrp; struct rusage; struct file; typedef struct file file_t; struct buf; typedef struct buf buf_t; struct tty; struct uio; #endif # 349 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 351 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #define SET(t, f) ((t) |= (f)) #define ISSET(t, f) ((t) & (f)) #define CLR(t, f) ((t) &= ~(f)) #endif # 355 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 357 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0L) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 360 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 361 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 362 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* !_SYS_TYPES_H_ */ # 364 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 64 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 2 3 4 __BEGIN_DECLS #define __BYTE_SWAP_U32_VARIABLE __byte_swap_u32_variable static __inline uint32_t __byte_swap_u32_variable(uint32_t v) { uint32_t t1; #ifdef _ARM_ARCH_6 if (!__builtin_constant_p(v)) { __asm("rev\t%0, %1" : "=r" (v) : "0" (v)); return v; } #endif # 78 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 t1 = v ^ ((v << 16) | (v >> 16)); t1 &= 0xff00ffffU; v = (v >> 8) | (v << 24); v ^= (t1 >> 8); return v; } #define __BYTE_SWAP_U16_VARIABLE __byte_swap_u16_variable static __inline uint16_t __byte_swap_u16_variable(uint16_t v) { #ifdef _ARM_ARCH_6 if (!__builtin_constant_p(v)) { uint32_t v32 = v; __asm("rev16\t%0, %1" : "=r" (v32) : "0" (v32)); return (uint16_t)v32; } #if 0 /* disabled by -frewrite-includes */ #if 0 #elif !defined(__thumb__) && 0 /* gcc produces decent code for this */ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 99 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 if (!__builtin_constant_p(v)) { uint32_t v0 = v; __asm volatile( "mov %0, %1, ror #8\n" "orr %0, %0, %0, lsr #16\n" "bic %0, %0, %0, lsl #16" : "=&r" (v0) : "0" (v0)); return (uint16_t)v0; } #endif # 110 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 v &= 0xffff; v = (uint16_t)((v >> 8) | (v << 8)); return v; } __END_DECLS #endif # 118 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #endif /* _LOCORE */ # 120 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 #endif /* _ARM_BYTE_SWAP_H_ */ # 122 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/byte_swap.h" 3 4 # 10 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 2 3 4 #endif # 11 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #define __BSWAP_RENAME #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 13 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 1 3 4 /* $NetBSD: bswap.h,v 1.19 2015/03/12 15:28:16 christos Exp $ */ /* Written by Manuel Bouyer. Public domain */ #ifndef _SYS_BSWAP_H_ #define _SYS_BSWAP_H_ #ifndef _LOCORE #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 9 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 1 3 4 /* $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ */ /*- * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_STDINT_H_ #define _SYS_STDINT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 36 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 2 3 4 #ifndef _BSD_INT8_T_ typedef __int8_t int8_t; #define _BSD_INT8_T_ #endif # 42 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_UINT8_T_ typedef __uint8_t uint8_t; #define _BSD_UINT8_T_ #endif # 47 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_INT16_T_ typedef __int16_t int16_t; #define _BSD_INT16_T_ #endif # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_UINT16_T_ typedef __uint16_t uint16_t; #define _BSD_UINT16_T_ #endif # 57 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_INT32_T_ typedef __int32_t int32_t; #define _BSD_INT32_T_ #endif # 62 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_UINT32_T_ typedef __uint32_t uint32_t; #define _BSD_UINT32_T_ #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_INT64_T_ typedef __int64_t int64_t; #define _BSD_INT64_T_ #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_UINT64_T_ typedef __uint64_t uint64_t; #define _BSD_UINT64_T_ #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_INTPTR_T_ typedef __intptr_t intptr_t; #define _BSD_INTPTR_T_ #endif # 82 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #ifndef _BSD_UINTPTR_T_ typedef __uintptr_t uintptr_t; #define _BSD_UINTPTR_T_ #endif # 87 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 88 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_mwgwtypes.h" 1 3 4 /* $NetBSD: int_mwgwtypes.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_mwgwtypes.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 1 3 4 /* $NetBSD: int_mwgwtypes.h,v 1.7 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Matt Thomas of 3am Software Foundry. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_INT_MWGWTYPES_H_ #define _ARM_INT_MWGWTYPES_H_ #ifdef __UINT_FAST64_TYPE__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_mwgwtypes.h" 1 3 4 /* $NetBSD: common_int_mwgwtypes.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Joerg Sonnenberger. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_COMMON_INT_MWGWTYPES_H_ #define _SYS_COMMON_INT_MWGWTYPES_H_ #ifndef __UINT_FAST64_TYPE__ #error Your compiler does not provide min/fast width type macros. #endif # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_mwgwtypes.h" 3 4 /* * 7.18.1 Integer types */ /* 7.18.1.2 Minimum-width integer types */ typedef __INT_LEAST8_TYPE__ int_least8_t; typedef __UINT_LEAST8_TYPE__ uint_least8_t; typedef __INT_LEAST16_TYPE__ int_least16_t; typedef __UINT_LEAST16_TYPE__ uint_least16_t; typedef __INT_LEAST32_TYPE__ int_least32_t; typedef __UINT_LEAST32_TYPE__ uint_least32_t; typedef __INT_LEAST64_TYPE__ int_least64_t; typedef __UINT_LEAST64_TYPE__ uint_least64_t; /* 7.18.1.3 Fastest minimum-width integer types */ typedef __INT_FAST8_TYPE__ int_fast8_t; typedef __UINT_FAST8_TYPE__ uint_fast8_t; typedef __INT_FAST16_TYPE__ int_fast16_t; typedef __UINT_FAST16_TYPE__ uint_fast16_t; typedef __INT_FAST32_TYPE__ int_fast32_t; typedef __UINT_FAST32_TYPE__ uint_fast32_t; typedef __INT_FAST64_TYPE__ int_fast64_t; typedef __UINT_FAST64_TYPE__ uint_fast64_t; /* 7.18.1.5 Greatest-width integer types */ typedef __INTMAX_TYPE__ intmax_t; typedef __UINTMAX_TYPE__ uintmax_t; #endif /* _SYS_COMMON_INT_MWGWTYPES_H_ */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_mwgwtypes.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 2 3 4 #else # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 /* * 7.18.1 Integer types */ /* 7.18.1.2 Minimum-width integer types */ #ifndef __INT_LEAST8_TYPE__ # define __INT_LEAST8_TYPE__ signed char #endif # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_LEAST8_TYPE__ # define __UINT_LEAST8_TYPE__ unsigned char #endif # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_LEAST16_TYPE__ # define __INT_LEAST16_TYPE__ short int #endif # 53 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_LEAST16_TYPE__ # define __UINT_LEAST16_TYPE__ short unsigned int #endif # 56 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_LEAST32_TYPE__ # define __INT_LEAST32_TYPE__ int #endif # 59 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_LEAST32_TYPE__ # define __UINT_LEAST32_TYPE__ unsigned int #endif # 62 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_LEAST64_TYPE__ # define __INT_LEAST64_TYPE__ long long int #endif # 65 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_LEAST64_TYPE__ # define __UINT_LEAST64_TYPE__ long long unsigned int #endif # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 typedef __INT_LEAST8_TYPE__ int_least8_t; typedef __UINT_LEAST8_TYPE__ uint_least8_t; typedef __INT_LEAST16_TYPE__ int_least16_t; typedef __UINT_LEAST16_TYPE__ uint_least16_t; typedef __INT_LEAST32_TYPE__ int_least32_t; typedef __UINT_LEAST32_TYPE__ uint_least32_t; typedef __INT_LEAST64_TYPE__ int_least64_t; typedef __UINT_LEAST64_TYPE__ uint_least64_t; /* 7.18.1.3 Fastest minimum-width integer types */ #ifndef __INT_FAST8_TYPE__ # define __INT_FAST8_TYPE__ int #endif # 83 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_FAST8_TYPE__ # define __UINT_FAST8_TYPE__ unsigned int #endif # 86 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_FAST16_TYPE__ # define __INT_FAST16_TYPE__ int #endif # 89 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_FAST16_TYPE__ # define __UINT_FAST16_TYPE__ unsigned int #endif # 92 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_FAST32_TYPE__ # define __INT_FAST32_TYPE__ int #endif # 95 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_FAST32_TYPE__ # define __UINT_FAST32_TYPE__ unsigned int #endif # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __INT_FAST64_TYPE__ # define __INT_FAST64_TYPE__ long long int #endif # 101 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINT_FAST64_TYPE__ # define __UINT_FAST64_TYPE__ long long unsigned int #endif # 104 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 typedef __INT_FAST8_TYPE__ int_fast8_t; typedef __UINT_FAST8_TYPE__ uint_fast8_t; typedef __INT_FAST16_TYPE__ int_fast16_t; typedef __UINT_FAST16_TYPE__ uint_fast16_t; typedef __INT_FAST32_TYPE__ int_fast32_t; typedef __UINT_FAST32_TYPE__ uint_fast32_t; typedef __INT_FAST64_TYPE__ int_fast64_t; typedef __UINT_FAST64_TYPE__ uint_fast64_t; /* 7.18.1.5 Greatest-width integer types */ #ifndef __INTMAX_TYPE__ # define __INTMAX_TYPE__ long long int #endif # 119 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #ifndef __UINTMAX_TYPE__ # define __UINTMAX_TYPE__ unsigned __INTMAX_TYPE__ #endif # 122 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 typedef __INTMAX_TYPE__ intmax_t; typedef __UINTMAX_TYPE__ uintmax_t; #endif # 126 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 #endif /* !_ARM_INT_MWGWTYPES_H_ */ # 128 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_mwgwtypes.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_mwgwtypes.h" 2 3 4 # 89 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \ (__cplusplus >= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 92 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_limits.h" 1 3 4 /* $NetBSD: int_limits.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_limits.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 1 3 4 /* $NetBSD: int_limits.h,v 1.11 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_INT_LIMITS_H_ #define _ARM_INT_LIMITS_H_ #ifdef __SIG_ATOMIC_MAX__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_limits.h" 1 3 4 /* $NetBSD: common_int_limits.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Joerg Sonnenberger. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_COMMON_INT_LIMITS_H_ #define _SYS_COMMON_INT_LIMITS_H_ #ifndef __SIG_ATOMIC_MAX__ #error Your compiler does not provide limit macros. #endif # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_limits.h" 3 4 /* * 7.18.2 Limits of specified-width integer types */ /* 7.18.2.1 Limits of exact-width integer types */ /* minimum values of exact-width signed integer types */ #define INT8_MIN (-__INT8_MAX__-1) #define INT16_MIN (-__INT16_MAX__-1) #define INT32_MIN (-__INT32_MAX__-1) #define INT64_MIN (-__INT64_MAX__-1) /* maximum values of exact-width signed integer types */ #define INT8_MAX __INT8_MAX__ #define INT16_MAX __INT16_MAX__ #define INT32_MAX __INT32_MAX__ #define INT64_MAX __INT64_MAX__ /* maximum values of exact-width unsigned integer types */ #define UINT8_MAX __UINT8_MAX__ #define UINT16_MAX __UINT16_MAX__ #define UINT32_MAX __UINT32_MAX__ #define UINT64_MAX __UINT64_MAX__ /* 7.18.2.2 Limits of minimum-width integer types */ /* minimum values of minimum-width signed integer types */ #define INT_LEAST8_MIN (-__INT_LEAST8_MAX__-1) #define INT_LEAST16_MIN (-__INT_LEAST16_MAX__-1) #define INT_LEAST32_MIN (-__INT_LEAST32_MAX__-1) #define INT_LEAST64_MIN (-__INT_LEAST64_MAX__-1) /* maximum values of minimum-width signed integer types */ #define INT_LEAST8_MAX __INT_LEAST8_MAX__ #define INT_LEAST16_MAX __INT_LEAST16_MAX__ #define INT_LEAST32_MAX __INT_LEAST32_MAX__ #define INT_LEAST64_MAX __INT_LEAST64_MAX__ /* maximum values of minimum-width unsigned integer types */ #define UINT_LEAST8_MAX __UINT_LEAST8_MAX__ #define UINT_LEAST16_MAX __UINT_LEAST16_MAX__ #define UINT_LEAST32_MAX __UINT_LEAST32_MAX__ #define UINT_LEAST64_MAX __UINT_LEAST64_MAX__ /* 7.18.2.3 Limits of fastest minimum-width integer types */ /* minimum values of fastest minimum-width signed integer types */ #define INT_FAST8_MIN (-__INT_FAST8_MAX__-1) #define INT_FAST16_MIN (-__INT_FAST16_MAX__-1) #define INT_FAST32_MIN (-__INT_FAST32_MAX__-1) #define INT_FAST64_MIN (-__INT_FAST64_MAX__-1) /* maximum values of fastest minimum-width signed integer types */ #define INT_FAST8_MAX __INT_FAST8_MAX__ #define INT_FAST16_MAX __INT_FAST16_MAX__ #define INT_FAST32_MAX __INT_FAST32_MAX__ #define INT_FAST64_MAX __INT_FAST64_MAX__ /* maximum values of fastest minimum-width unsigned integer types */ #define UINT_FAST8_MAX __UINT_FAST8_MAX__ #define UINT_FAST16_MAX __UINT_FAST16_MAX__ #define UINT_FAST32_MAX __UINT_FAST32_MAX__ #define UINT_FAST64_MAX __UINT_FAST64_MAX__ /* 7.18.2.4 Limits of integer types capable of holding object pointers */ #define INTPTR_MIN (-__INTPTR_MAX__-1) #define INTPTR_MAX __INTPTR_MAX__ #define UINTPTR_MAX __UINTPTR_MAX__ /* 7.18.2.5 Limits of greatest-width integer types */ #define INTMAX_MIN (-__INTMAX_MAX__-1) #define INTMAX_MAX __INTMAX_MAX__ #define UINTMAX_MAX __UINTMAX_MAX__ /* * 7.18.3 Limits of other integer types */ /* limits of ptrdiff_t */ #define PTRDIFF_MIN (-__PTRDIFF_MAX__-1) #define PTRDIFF_MAX __PTRDIFF_MAX__ /* limits of sig_atomic_t */ #define SIG_ATOMIC_MIN (-__SIG_ATOMIC_MAX__-1) #define SIG_ATOMIC_MAX __SIG_ATOMIC_MAX__ /* limit of size_t */ #define SIZE_MAX __SIZE_MAX__ #endif /* _SYS_COMMON_INT_LIMITS_H_ */ # 131 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_limits.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 2 3 4 #else # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 /* * 7.18.2 Limits of specified-width integer types */ /* 7.18.2.1 Limits of exact-width integer types */ /* minimum values of exact-width signed integer types */ #define INT8_MIN (-0x7f-1) /* int8_t */ #define INT16_MIN (-0x7fff-1) /* int16_t */ #define INT32_MIN (-0x7fffffff-1) /* int32_t */ #define INT64_MIN (-0x7fffffffffffffffLL-1) /* int64_t */ /* maximum values of exact-width signed integer types */ #define INT8_MAX 0x7f /* int8_t */ #define INT16_MAX 0x7fff /* int16_t */ #define INT32_MAX 0x7fffffff /* int32_t */ #define INT64_MAX 0x7fffffffffffffffLL /* int64_t */ /* maximum values of exact-width unsigned integer types */ #define UINT8_MAX 0xff /* uint8_t */ #define UINT16_MAX 0xffff /* uint16_t */ #define UINT32_MAX 0xffffffffU /* uint32_t */ #define UINT64_MAX 0xffffffffffffffffULL /* uint64_t */ /* 7.18.2.2 Limits of minimum-width integer types */ /* minimum values of minimum-width signed integer types */ #define INT_LEAST8_MIN (-0x7f-1) /* int_least8_t */ #define INT_LEAST16_MIN (-0x7fff-1) /* int_least16_t */ #define INT_LEAST32_MIN (-0x7fffffff-1) /* int_least32_t */ #define INT_LEAST64_MIN (-0x7fffffffffffffffLL-1) /* int_least64_t */ /* maximum values of minimum-width signed integer types */ #define INT_LEAST8_MAX 0x7f /* int_least8_t */ #define INT_LEAST16_MAX 0x7fff /* int_least16_t */ #define INT_LEAST32_MAX 0x7fffffff /* int_least32_t */ #define INT_LEAST64_MAX 0x7fffffffffffffffLL /* int_least64_t */ /* maximum values of minimum-width unsigned integer types */ #define UINT_LEAST8_MAX 0xff /* uint_least8_t */ #define UINT_LEAST16_MAX 0xffff /* uint_least16_t */ #define UINT_LEAST32_MAX 0xffffffffU /* uint_least32_t */ #define UINT_LEAST64_MAX 0xffffffffffffffffULL /* uint_least64_t */ /* 7.18.2.3 Limits of fastest minimum-width integer types */ /* minimum values of fastest minimum-width signed integer types */ #define INT_FAST8_MIN (-0x7fffffff-1) /* int_fast8_t */ #define INT_FAST16_MIN (-0x7fffffff-1) /* int_fast16_t */ #define INT_FAST32_MIN (-0x7fffffff-1) /* int_fast32_t */ #define INT_FAST64_MIN (-0x7fffffffffffffffLL-1) /* int_fast64_t */ /* maximum values of fastest minimum-width signed integer types */ #define INT_FAST8_MAX 0x7fffffff /* int_fast8_t */ #define INT_FAST16_MAX 0x7fffffff /* int_fast16_t */ #define INT_FAST32_MAX 0x7fffffff /* int_fast32_t */ #define INT_FAST64_MAX 0x7fffffffffffffffLL /* int_fast64_t */ /* maximum values of fastest minimum-width unsigned integer types */ #define UINT_FAST8_MAX 0xffffffffU /* uint_fast8_t */ #define UINT_FAST16_MAX 0xffffffffU /* uint_fast16_t */ #define UINT_FAST32_MAX 0xffffffffU /* uint_fast32_t */ #define UINT_FAST64_MAX 0xffffffffffffffffULL /* uint_fast64_t */ /* 7.18.2.4 Limits of integer types capable of holding object pointers */ #ifdef _LP64 #define INTPTR_MIN (-0x7fffffffffffffffL-1) /* intptr_t */ #define INTPTR_MAX 0x7fffffffffffffffL /* intptr_t */ #define UINTPTR_MAX 0xffffffffffffffffUL /* uintptr_t */ #else # 109 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 #define INTPTR_MIN (-0x7fffffffL-1) /* intptr_t */ #define INTPTR_MAX 0x7fffffffL /* intptr_t */ #define UINTPTR_MAX 0xffffffffUL /* uintptr_t */ #endif # 113 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 /* 7.18.2.5 Limits of greatest-width integer types */ #define INTMAX_MIN (-0x7fffffffffffffffLL-1) /* intmax_t */ #define INTMAX_MAX 0x7fffffffffffffffLL /* intmax_t */ #define UINTMAX_MAX 0xffffffffffffffffULL /* uintmax_t */ /* * 7.18.3 Limits of other integer types */ /* limits of ptrdiff_t */ #ifdef _LP64 #define PTRDIFF_MIN (-0x7fffffffffffffffL-1) /* ptrdiff_t */ #define PTRDIFF_MAX 0x7fffffffffffffffL /* ptrdiff_t */ #else # 130 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 #define PTRDIFF_MIN (-0x7fffffffL-1) /* ptrdiff_t */ #define PTRDIFF_MAX 0x7fffffffL /* ptrdiff_t */ #endif # 133 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 /* limits of sig_atomic_t */ #define SIG_ATOMIC_MIN (-0x7fffffff-1) /* sig_atomic_t */ #define SIG_ATOMIC_MAX 0x7fffffff /* sig_atomic_t */ /* limit of size_t */ #ifdef _LP64 #define SIZE_MAX 0xffffffffffffffffUL /* size_t */ #else # 142 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 #define SIZE_MAX 0xffffffffUL /* size_t */ #endif # 144 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 #endif # 145 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 #endif /* !_ARM_INT_LIMITS_H_ */ # 147 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_limits.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_limits.h" 2 3 4 # 93 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 2 3 4 #endif # 94 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) || \ (__cplusplus >= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 97 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 97 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_const.h" 1 3 4 /* $NetBSD: int_const.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_const.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 1 3 4 /* $NetBSD: int_const.h,v 1.5 2018/08/10 17:05:22 jakllsch Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_INT_CONST_H_ #define _ARM_INT_CONST_H_ #ifdef __INTMAX_C_SUFFIX__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_const.h" 1 3 4 /* $NetBSD: common_int_const.h,v 1.1 2014/07/25 21:43:13 joerg Exp $ */ /*- * Copyright (c) 2014 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Joerg Sonnenberger. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_COMMON_INT_CONST_H_ #define _SYS_COMMON_INT_CONST_H_ #ifndef __INTMAX_C_SUFFIX__ #error Your compiler does not provide inter constant suffix macros. #endif # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_const.h" 3 4 #define __int_join_(c,suffix) c ## suffix #define __int_join(c,suffix) __int_join_(c,suffix) /* * 7.18.4 Macros for integer constants */ /* 7.18.4.1 Macros for minimum-width integer constants */ #define INT8_C(c) __int_join(c, __INT8_C_SUFFIX__) #define INT16_C(c) __int_join(c, __INT16_C_SUFFIX__) #define INT32_C(c) __int_join(c, __INT32_C_SUFFIX__) #define INT64_C(c) __int_join(c, __INT64_C_SUFFIX__) #define UINT8_C(c) __int_join(c, __UINT8_C_SUFFIX__) #define UINT16_C(c) __int_join(c, __UINT16_C_SUFFIX__) #define UINT32_C(c) __int_join(c, __UINT32_C_SUFFIX__) #define UINT64_C(c) __int_join(c, __UINT64_C_SUFFIX__) /* 7.18.4.2 Macros for greatest-width integer constants */ #define INTMAX_C(c) __int_join(c, __INTMAX_C_SUFFIX__) #define UINTMAX_C(c) __int_join(c, __UINTMAX_C_SUFFIX__) #endif /* _SYS_COMMON_INT_CONST_H_ */ # 63 "/usr/home/sme/sandbox/usr/src/sys/sys/common_int_const.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 2 3 4 #else # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 /* * 7.18.4 Macros for integer constants */ /* 7.18.4.1 Macros for minimum-width integer constants */ #define INT8_C(c) c #define INT16_C(c) c #define INT32_C(c) c #ifdef _LP64 #define INT64_C(c) c ## L #else # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #define INT64_C(c) c ## LL #endif # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #define UINT8_C(c) c #define UINT16_C(c) c #define UINT32_C(c) c ## U #ifdef _LP64 #define UINT64_C(c) c ## UL #else # 59 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #define UINT64_C(c) c ## ULL #endif # 61 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 /* 7.18.4.2 Macros for greatest-width integer constants */ #ifdef _LP64 #define INTMAX_C(c) c ## L #define UINTMAX_C(c) c ## UL #else # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #define INTMAX_C(c) c ## LL #define UINTMAX_C(c) c ## ULL #endif # 71 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #endif /* !__INTMAX_C_SUFFIX__ */ # 73 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 #endif /* !_ARM_INT_CONST_H_ */ # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/int_const.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_const.h" 2 3 4 # 98 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 2 3 4 #endif # 99 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 100 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/wchar_limits.h" 1 3 4 /* $NetBSD: wchar_limits.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/wchar_limits.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 1 3 4 /* $NetBSD: wchar_limits.h,v 1.4 2013/01/24 10:17:00 matt Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _ARM_WCHAR_LIMITS_H_ #define _ARM_WCHAR_LIMITS_H_ /* * 7.18.3 Limits of other integer types */ /* limits of wchar_t */ #ifdef __WCHAR_MIN__ #define WCHAR_MIN __WCHAR_MIN__ /* wchar_t */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __WCHAR_UNSIGNED__ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WCHAR_MIN 0U /* wchar_t */ #else # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WCHAR_MIN (-0x7fffffff-1) /* wchar_t */ #endif # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #ifdef __WCHAR_MAX__ #define WCHAR_MAX __WCHAR_MAX__ /* wchar_t */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __WCHAR_UNSIGNED__ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WCHAR_MAX 0xffffffffU /* wchar_t */ #else # 54 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WCHAR_MAX 0x7fffffff /* wchar_t */ #endif # 56 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 /* limits of wint_t */ #ifdef __WINT_MIN__ #define WINT_MIN __WINT_MIN__ /* wint_t */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __WINT_UNSIGNED__ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 62 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WINT_MIN 0U /* wint_t */ #else # 64 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WINT_MIN (-0x7fffffff-1) /* wint_t */ #endif # 66 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #ifdef __WINT_MAX__ #define WINT_MAX __WINT_MAX__ /* wint_t */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif __WINT_UNSIGNED__ #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 70 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WINT_MAX 0xffffffffU /* wint_t */ #else # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #define WINT_MAX 0x7fffffff /* wint_t */ #endif # 74 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 #endif /* !_ARM_WCHAR_LIMITS_H_ */ # 76 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/wchar_limits.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/wchar_limits.h" 2 3 4 # 101 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 2 3 4 #endif /* !_SYS_STDINT_H_ */ # 103 "/usr/home/sme/sandbox/usr/src/sys/sys/stdint.h" 3 4 # 10 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 11 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 1 3 4 /* $NetBSD: bswap.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 1 3 4 /* $NetBSD: bswap.h,v 1.6 2014/01/29 01:36:43 matt Exp $ */ #ifndef _ARM_BSWAP_H_ #define _ARM_BSWAP_H_ #ifdef __aarch64__ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 7 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 8 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #else # 9 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 9 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 10 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #endif # 11 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #define __BSWAP_RENAME #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 13 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 14 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 #endif /* !_ARM_BSWAP_H_ */ # 16 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 2 3 4 # 12 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 2 3 4 __BEGIN_DECLS /* Always declare the functions in case their address is taken (etc) */ #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) || !defined(__BSWAP_RENAME) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 16 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 uint16_t bswap16(uint16_t) __constfunc; uint32_t bswap32(uint32_t) __constfunc; #else # 19 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 uint16_t bswap16(uint16_t) __RENAME(__bswap16) __constfunc; uint32_t bswap32(uint32_t) __RENAME(__bswap32) __constfunc; #endif # 22 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 uint64_t bswap64(uint64_t) __constfunc; __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && !defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 26 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 /* machine/byte_swap.h might have defined inline versions */ #ifndef __BYTE_SWAP_U64_VARIABLE #define __BYTE_SWAP_U64_VARIABLE bswap64 #endif # 31 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 #ifndef __BYTE_SWAP_U32_VARIABLE #define __BYTE_SWAP_U32_VARIABLE bswap32 #endif # 35 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 #ifndef __BYTE_SWAP_U16_VARIABLE #define __BYTE_SWAP_U16_VARIABLE bswap16 #endif # 39 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 #define __byte_swap_u64_constant(x) \ (__CAST(uint64_t, \ ((((x) & 0xff00000000000000ull) >> 56) | \ (((x) & 0x00ff000000000000ull) >> 40) | \ (((x) & 0x0000ff0000000000ull) >> 24) | \ (((x) & 0x000000ff00000000ull) >> 8) | \ (((x) & 0x00000000ff000000ull) << 8) | \ (((x) & 0x0000000000ff0000ull) << 24) | \ (((x) & 0x000000000000ff00ull) << 40) | \ (((x) & 0x00000000000000ffull) << 56)))) #define __byte_swap_u32_constant(x) \ (__CAST(uint32_t, \ ((((x) & 0xff000000) >> 24) | \ (((x) & 0x00ff0000) >> 8) | \ (((x) & 0x0000ff00) << 8) | \ (((x) & 0x000000ff) << 24)))) #define __byte_swap_u16_constant(x) \ (__CAST(uint16_t, \ ((((x) & 0xff00) >> 8) | \ (((x) & 0x00ff) << 8)))) #define bswap64(x) \ __CAST(uint64_t, __builtin_constant_p((x)) ? \ __byte_swap_u64_constant(x) : __BYTE_SWAP_U64_VARIABLE(x)) #define bswap32(x) \ __CAST(uint32_t, __builtin_constant_p((x)) ? \ __byte_swap_u32_constant(x) : __BYTE_SWAP_U32_VARIABLE(x)) #define bswap16(x) \ __CAST(uint16_t, __builtin_constant_p((x)) ? \ __byte_swap_u16_constant(x) : __BYTE_SWAP_U16_VARIABLE(x)) #endif /* __GNUC__ && !__lint__ */ # 76 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 #endif /* !_LOCORE */ # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 #endif /* !_SYS_BSWAP_H_ */ # 79 "/usr/home/sme/sandbox/usr/src/sys/sys/bswap.h" 3 4 # 14 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 2 3 4 #endif /* !_ARM_BSWAP_H_ */ # 16 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/bswap.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/bswap.h" 2 3 4 # 108 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 2 3 4 /* * Macros for network/external number representation conversion. */ #if 0 /* disabled by -frewrite-includes */ #if BYTE_ORDER == BIG_ENDIAN && !defined(__lint__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 113 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define ntohl(x) (x) #define ntohs(x) (x) #define htonl(x) (x) #define htons(x) (x) #define NTOHL(x) (void) (x) #define NTOHS(x) (void) (x) #define HTONL(x) (void) (x) #define HTONS(x) (void) (x) #else /* LITTLE_ENDIAN || !defined(__lint__) */ # 124 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define ntohl(x) bswap32(__CAST(uint32_t, (x))) #define ntohs(x) bswap16(__CAST(uint16_t, (x))) #define htonl(x) bswap32(__CAST(uint32_t, (x))) #define htons(x) bswap16(__CAST(uint16_t, (x))) #define NTOHL(x) (x) = ntohl(__CAST(uint32_t, (x))) #define NTOHS(x) (x) = ntohs(__CAST(uint16_t, (x))) #define HTONL(x) (x) = htonl(__CAST(uint32_t, (x))) #define HTONS(x) (x) = htons(__CAST(uint16_t, (x))) #endif /* LITTLE_ENDIAN || !defined(__lint__) */ # 135 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 /* * Macros to convert to a specific endianness. */ #if 0 /* disabled by -frewrite-includes */ #if BYTE_ORDER == BIG_ENDIAN #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 141 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define htobe16(x) (x) #define htobe32(x) (x) #define htobe64(x) (x) #define htole16(x) bswap16(__CAST(uint16_t, (x))) #define htole32(x) bswap32(__CAST(uint32_t, (x))) #define htole64(x) bswap64(__CAST(uint64_t, (x))) #define HTOBE16(x) __CAST(void, (x)) #define HTOBE32(x) __CAST(void, (x)) #define HTOBE64(x) __CAST(void, (x)) #define HTOLE16(x) (x) = bswap16(__CAST(uint16_t, (x))) #define HTOLE32(x) (x) = bswap32(__CAST(uint32_t, (x))) #define HTOLE64(x) (x) = bswap64(__CAST(uint64_t, (x))) #else /* LITTLE_ENDIAN */ # 157 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define htobe16(x) bswap16(__CAST(uint16_t, (x))) #define htobe32(x) bswap32(__CAST(uint32_t, (x))) #define htobe64(x) bswap64(__CAST(uint64_t, (x))) #define htole16(x) (x) #define htole32(x) (x) #define htole64(x) (x) #define HTOBE16(x) (x) = bswap16(__CAST(uint16_t, (x))) #define HTOBE32(x) (x) = bswap32(__CAST(uint32_t, (x))) #define HTOBE64(x) (x) = bswap64(__CAST(uint64_t, (x))) #define HTOLE16(x) __CAST(void, (x)) #define HTOLE32(x) __CAST(void, (x)) #define HTOLE64(x) __CAST(void, (x)) #endif /* LITTLE_ENDIAN */ # 173 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define be16toh(x) htobe16(x) #define be32toh(x) htobe32(x) #define be64toh(x) htobe64(x) #define le16toh(x) htole16(x) #define le32toh(x) htole32(x) #define le64toh(x) htole64(x) #define BE16TOH(x) HTOBE16(x) #define BE32TOH(x) HTOBE32(x) #define BE64TOH(x) HTOBE64(x) #define LE16TOH(x) HTOLE16(x) #define LE32TOH(x) HTOLE32(x) #define LE64TOH(x) HTOLE64(x) /* * Routines to encode/decode big- and little-endian multi-octet values * to/from an octet stream. */ #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 95) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 194 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #define __GEN_ENDIAN_ENC(bits, endian) \ static __inline void __unused \ endian ## bits ## enc(void *dst, uint ## bits ## _t u) \ { \ u = hto ## endian ## bits (u); \ __builtin_memcpy(dst, &u, sizeof(u)); \ } __GEN_ENDIAN_ENC(16, be) __GEN_ENDIAN_ENC(32, be) __GEN_ENDIAN_ENC(64, be) __GEN_ENDIAN_ENC(16, le) __GEN_ENDIAN_ENC(32, le) __GEN_ENDIAN_ENC(64, le) #undef __GEN_ENDIAN_ENC #define __GEN_ENDIAN_DEC(bits, endian) \ static __inline uint ## bits ## _t __unused \ endian ## bits ## dec(const void *buf) \ { \ uint ## bits ## _t u; \ __builtin_memcpy(&u, buf, sizeof(u)); \ return endian ## bits ## toh (u); \ } __GEN_ENDIAN_DEC(16, be) __GEN_ENDIAN_DEC(32, be) __GEN_ENDIAN_DEC(64, be) __GEN_ENDIAN_DEC(16, le) __GEN_ENDIAN_DEC(32, le) __GEN_ENDIAN_DEC(64, le) #undef __GEN_ENDIAN_DEC #else /* !(GCC >= 2.95) */ # 229 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 static __inline void __unused be16enc(void *buf, uint16_t u) { uint8_t *p = __CAST(uint8_t *, buf); p[0] = __CAST(uint8_t, ((__CAST(unsigned, u) >> 8) & 0xff)); p[1] = __CAST(uint8_t, (u & 0xff)); } static __inline void __unused le16enc(void *buf, uint16_t u) { uint8_t *p = __CAST(uint8_t *, buf); p[0] = __CAST(uint8_t, (u & 0xff)); p[1] = __CAST(uint8_t, ((__CAST(unsigned, u) >> 8) & 0xff)); } static __inline uint16_t __unused be16dec(const void *buf) { const uint8_t *p = __CAST(const uint8_t *, buf); return ((__CAST(uint16_t, p[0]) << 8) | p[1]); } static __inline uint16_t __unused le16dec(const void *buf) { const uint8_t *p = __CAST(const uint8_t *, buf); return (p[0] | (__CAST(uint16_t, p[1]) << 8)); } static __inline void __unused be32enc(void *buf, uint32_t u) { uint8_t *p = __CAST(uint8_t *, buf); p[0] = __CAST(uint8_t, ((u >> 24) & 0xff)); p[1] = __CAST(uint8_t, ((u >> 16) & 0xff)); p[2] = __CAST(uint8_t, ((u >> 8) & 0xff)); p[3] = __CAST(uint8_t, (u & 0xff)); } static __inline void __unused le32enc(void *buf, uint32_t u) { uint8_t *p = __CAST(uint8_t *, buf); p[0] = __CAST(uint8_t, (u & 0xff)); p[1] = __CAST(uint8_t, ((u >> 8) & 0xff)); p[2] = __CAST(uint8_t, ((u >> 16) & 0xff)); p[3] = __CAST(uint8_t, ((u >> 24) & 0xff)); } static __inline uint32_t __unused be32dec(const void *buf) { const uint8_t *p = __CAST(const uint8_t *, buf); return ((__CAST(uint32_t, be16dec(p)) << 16) | be16dec(p + 2)); } static __inline uint32_t __unused le32dec(const void *buf) { const uint8_t *p = __CAST(const uint8_t *, buf); return (le16dec(p) | (__CAST(uint32_t, le16dec(p + 2)) << 16)); } static __inline void __unused be64enc(void *buf, uint64_t u) { uint8_t *p = __CAST(uint8_t *, buf); be32enc(p, __CAST(uint32_t, (u >> 32))); be32enc(p + 4, __CAST(uint32_t, (u & 0xffffffffULL))); } static __inline void __unused le64enc(void *buf, uint64_t u) { uint8_t *p = __CAST(uint8_t *, buf); le32enc(p, __CAST(uint32_t, (u & 0xffffffffULL))); le32enc(p + 4, __CAST(uint32_t, (u >> 32))); } static __inline uint64_t __unused be64dec(const void *buf) { const uint8_t *p = (const uint8_t *)buf; return ((__CAST(uint64_t, be32dec(p)) << 32) | be32dec(p + 4)); } static __inline uint64_t __unused le64dec(const void *buf) { const uint8_t *p = (const uint8_t *)buf; return (le32dec(p) | (__CAST(uint64_t, le32dec(p + 4)) << 32)); } #endif /* GCC >= 2.95 */ # 337 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #endif /* !_LOCORE */ # 339 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #endif /* _XOPEN_SOURCE || _NETBSD_SOURCE */ # 340 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 #endif /* !_SYS_ENDIAN_H_ */ # 341 "/usr/home/sme/sandbox/usr/src/sys/sys/endian.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/endian.h" 2 3 4 # 99 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 101 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; typedef unsigned char unchar; /* Sys V compatibility */ typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */ typedef unsigned long ulong; /* Sys V compatibility */ #endif # 111 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t u_quad_t; /* quads */ typedef int64_t quad_t; typedef quad_t * qaddr_t; /* * The types longlong_t and u_longlong_t exist for use with the * Sun-derived XDR routines involving these types, and their usage * in other contexts is discouraged. Further note that these types * may not be equivalent to "long long" and "unsigned long long", * they are only guaranteed to be signed and unsigned 64-bit types * respectively. Portable programs that need 64-bit types should use * the C99 types int64_t and uint64_t instead. */ typedef int64_t longlong_t; /* for XDR */ typedef uint64_t u_longlong_t; /* for XDR */ typedef int64_t blkcnt_t; /* fs block count */ typedef int32_t blksize_t; /* fs optimal block size */ #ifndef fsblkcnt_t typedef __fsblkcnt_t fsblkcnt_t; /* fs block count (statvfs) */ #define fsblkcnt_t __fsblkcnt_t #endif # 136 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef fsfilcnt_t typedef __fsfilcnt_t fsfilcnt_t; /* fs file count */ #define fsfilcnt_t __fsfilcnt_t #endif # 141 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 143 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* We don't and shouldn't use caddr_t in the kernel anymore */ #ifndef caddr_t typedef __caddr_t caddr_t; /* core address */ #define caddr_t __caddr_t #endif # 148 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 149 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef __daddr_t typedef __daddr_t daddr_t; /* disk address */ #undef __daddr_t #else # 154 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int64_t daddr_t; /* disk address */ #endif # 156 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint64_t dev_t; /* device number */ typedef uint32_t fixpt_t; /* fixed point number */ #ifndef gid_t typedef __gid_t gid_t; /* group id */ #define gid_t __gid_t #endif # 164 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t id_t; /* group id, process id or user id */ typedef uint64_t ino_t; /* inode number */ typedef long key_t; /* IPC key (for Sys V IPC) */ #ifndef mode_t typedef __mode_t mode_t; /* permissions */ #define mode_t __mode_t #endif # 173 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef accmode_t typedef __accmode_t accmode_t; /* access permissions */ #define accmode_t __accmode_t #endif # 178 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef uint32_t nlink_t; /* link count */ #ifndef off_t typedef __off_t off_t; /* file offset */ #define off_t __off_t #endif # 185 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef pid_t typedef __pid_t pid_t; /* process id */ #define pid_t __pid_t #endif # 190 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int32_t lwpid_t; /* LWP id */ typedef uint64_t rlim_t; /* resource limit */ typedef int32_t segsz_t; /* segment size */ typedef int32_t swblk_t; /* swap offset */ #ifndef uid_t typedef __uid_t uid_t; /* user id */ #define uid_t __uid_t #endif # 199 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 typedef int mqd_t; typedef unsigned long cpuid_t; typedef int psetid_t; typedef volatile __cpu_simple_lock_nv_t __cpu_simple_lock_t; #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 209 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 210 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 211 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Deprecated Mach-style boolean_t type. Should not be used by new code. */ typedef int boolean_t; #ifndef TRUE #define TRUE 1 #endif # 219 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef FALSE #define FALSE 0 #endif # 222 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _STANDALONE */ # 224 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_LIBC) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 226 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * semctl(2)'s argument structure. This is here for the benefit of * . It is not in the user's namespace in SUSv2. * The SUSv2 semctl(2) takes variable arguments. */ union __semun { int val; /* value for SETVAL */ struct semid_ds *buf; /* buffer for IPC_STAT & IPC_SET */ unsigned short *array; /* array for GETALL & SETALL */ }; #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 236 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 237 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* _KERNEL || _LIBC || _KMEMUSER */ # 238 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * These belong in unistd.h, but are placed here too to ensure that * long arguments will be promoted to off_t if the program fails to * include that header or explicitly cast them to off_t. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 245 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifndef __OFF_T_SYSCALLS_DECLARED #define __OFF_T_SYSCALLS_DECLARED #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 248 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 249 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 __BEGIN_DECLS off_t lseek(int, off_t, int); int ftruncate(int, off_t); int truncate(const char *, off_t); __END_DECLS #endif /* !_KERNEL */ # 255 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* __OFF_T_SYSCALLS_DECLARED */ # 256 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* defined(_NETBSD_SOURCE) */ # 257 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 259 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* Major, minor numbers, dev_t's. */ typedef int32_t __devmajor_t, __devminor_t; #define devmajor_t __devmajor_t #define devminor_t __devminor_t #define NODEVMAJOR (-1) #define major(x) ((devmajor_t)(((uint32_t)(x) & 0x000fff00) >> 8)) #define minor(x) ((devminor_t)((((uint32_t)(x) & 0xfff00000) >> 12) | \ (((uint32_t)(x) & 0x000000ff) >> 0))) #define makedev(x,y) ((dev_t)((((dev_t)(x) << 8) & 0x000fff00U) | \ (((dev_t)(y) << 12) & 0xfff00000U) | \ (((dev_t)(y) << 0) & 0x000000ffU))) #endif # 271 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCK_T_ typedef _BSD_CLOCK_T_ clock_t; #undef _BSD_CLOCK_T_ #endif # 276 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_PTRDIFF_T_ typedef _BSD_PTRDIFF_T_ ptrdiff_t; #undef _BSD_PTRDIFF_T_ #endif # 281 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #define _SIZE_T #undef _BSD_SIZE_T_ #endif # 287 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SSIZE_T_ typedef _BSD_SSIZE_T_ ssize_t; #undef _BSD_SSIZE_T_ #endif # 292 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIME_T_ typedef _BSD_TIME_T_ time_t; #undef _BSD_TIME_T_ #endif # 297 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_CLOCKID_T_ typedef _BSD_CLOCKID_T_ clockid_t; #undef _BSD_CLOCKID_T_ #endif # 302 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_TIMER_T_ typedef _BSD_TIMER_T_ timer_t; #undef _BSD_TIMER_T_ #endif # 307 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_SUSECONDS_T_ typedef _BSD_SUSECONDS_T_ suseconds_t; #undef _BSD_SUSECONDS_T_ #endif # 312 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _BSD_USECONDS_T_ typedef _BSD_USECONDS_T_ useconds_t; #undef _BSD_USECONDS_T_ #endif # 317 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #ifdef _NETBSD_SOURCE #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 319 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 1 3 4 /* $NetBSD: fd_set.h,v 1.7 2018/06/24 12:05:40 kamil Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * from: @(#)types.h 8.4 (Berkeley) 1/21/94 */ #ifndef _SYS_FD_SET_H_ #define _SYS_FD_SET_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 39 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 40 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 2 3 4 /* * Implementation dependent defines, hidden from user space. * POSIX does not specify them. */ typedef __uint32_t __fd_mask; /* 32 = 2 ^ 5 */ #define __NFDBITS (32) #define __NFDSHIFT (5) #define __NFDMASK (__NFDBITS - 1) /* * Select uses bit fields of file descriptors. These macros manipulate * such bit fields. Note: FD_SETSIZE may be defined by the user. */ #ifndef FD_SETSIZE #define FD_SETSIZE 256 #endif # 61 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define __NFD_LEN(a) (((a) + (__NFDBITS - 1)) / __NFDBITS) #define __NFD_SIZE __NFD_LEN(FD_SETSIZE) #define __NFD_BYTES(a) (__NFD_LEN(a) * sizeof(__fd_mask)) typedef struct fd_set { __fd_mask fds_bits[__NFD_SIZE]; } fd_set; #define FD_SET(n, p) \ ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] |= (1U << ((n) & __NFDMASK))) #define FD_CLR(n, p) \ ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] &= ~(1U << ((n) & __NFDMASK))) #define FD_ISSET(n, p) \ ((p)->fds_bits[(unsigned)(n) >> __NFDSHIFT] & (1U << ((n) & __NFDMASK))) #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 95) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define FD_ZERO(p) (void)__builtin_memset((p), 0, sizeof(*(p))) #else # 79 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define FD_ZERO(p) do { \ fd_set *__fds = (p); \ unsigned int __i; \ for (__i = 0; __i < __NFD_SIZE; __i++) \ __fds->fds_bits[__i] = 0; \ } while (/* CONSTCOND */ 0) #endif /* GCC 2.95 */ # 86 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 /* * Expose our internals if we are not required to hide them. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define fd_mask __fd_mask #define NFDBITS __NFDBITS #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(2, 95) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 96 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define FD_COPY(f, t) (void)__builtin_memcpy((t), (f), sizeof(*(f))) #else # 98 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #define FD_COPY(f, t) do { \ fd_set *__f = (f), *__t = (t); \ unsigned int __i; \ for (__i = 0; __i < __NFD_SIZE; __i++) \ __t->fds_bits[__i] = __f->fds_bits[__i]; \ } while (/* CONSTCOND */ 0) #endif /* GCC 2.95 */ # 105 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #endif /* _NETBSD_SOURCE */ # 107 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 #endif /* _SYS_FD_SET_H_ */ # 109 "/usr/home/sme/sandbox/usr/src/sys/sys/fd_set.h" 3 4 # 320 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #define NBBY 8 typedef struct kauth_cred *kauth_cred_t; typedef int pri_t; #endif # 328 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(__STDC__) && (defined(_KERNEL) || defined(_KMEMUSER)) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 330 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 /* * Forward structure declarations for function prototypes. We include the * common structures that cross subsystem boundaries here; others are mostly * used in the same place that the structure is defined. */ struct lwp; typedef struct lwp lwp_t; struct __ucontext; struct proc; typedef struct proc proc_t; struct pgrp; struct rusage; struct file; typedef struct file file_t; struct buf; typedef struct buf buf_t; struct tty; struct uio; #endif # 349 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 351 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #define SET(t, f) ((t) |= (f)) #define ISSET(t, f) ((t) & (f)) #define CLR(t, f) ((t) &= ~(f)) #endif # 355 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_KERNEL) && !defined(_STANDALONE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 357 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0L) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 359 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 1 3 4 /* $NetBSD: pthread_types.h,v 1.25 2020/06/10 22:45:15 ad Exp $ */ /*- * Copyright (c) 2001, 2008, 2020 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Nathan J. Williams. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _LIB_PTHREAD_TYPES_H #define _LIB_PTHREAD_TYPES_H /* * We use the "pthread_spin_t" name internally; "pthread_spinlock_t" is the * POSIX spinlock object. * * C++ expects to be using PTHREAD_FOO_INITIALIZER as a member initializer. * This does not work for volatile types. Since C++ does not touch the guts * of those types, we do not include volatile in the C++ definitions. */ typedef __cpu_simple_lock_t pthread_spin_t; #ifdef __cplusplus typedef __cpu_simple_lock_nv_t __pthread_spin_t; #define __pthread_volatile #else # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 typedef pthread_spin_t __pthread_spin_t; #define __pthread_volatile volatile #endif # 51 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 /* * Copied from PTQ_HEAD in pthread_queue.h */ #define _PTQ_HEAD(name, type) \ struct name { \ struct type *ptqh_first;/* first element */ \ struct type **ptqh_last;/* addr of last next element */ \ } _PTQ_HEAD(pthread_queue_struct_t, __pthread_st); typedef struct pthread_queue_struct_t pthread_queue_t; struct __pthread_st; struct __pthread_attr_st; struct __pthread_mutex_st; struct __pthread_mutexattr_st; struct __pthread_cond_st; struct __pthread_condattr_st; struct __pthread_spin_st; struct __pthread_rwlock_st; struct __pthread_rwlockattr_st; struct __pthread_barrier_st; struct __pthread_barrierattr_st; typedef struct __pthread_st *pthread_t; typedef struct __pthread_attr_st pthread_attr_t; typedef struct __pthread_mutex_st pthread_mutex_t; typedef struct __pthread_mutexattr_st pthread_mutexattr_t; typedef struct __pthread_cond_st pthread_cond_t; typedef struct __pthread_condattr_st pthread_condattr_t; typedef struct __pthread_once_st pthread_once_t; typedef struct __pthread_spinlock_st pthread_spinlock_t; typedef struct __pthread_rwlock_st pthread_rwlock_t; typedef struct __pthread_rwlockattr_st pthread_rwlockattr_t; typedef struct __pthread_barrier_st pthread_barrier_t; typedef struct __pthread_barrierattr_st pthread_barrierattr_t; typedef int pthread_key_t; struct __pthread_attr_st { unsigned int pta_magic; int pta_flags; void *pta_private; }; /* * ptm_owner is the actual lock field which is locked via CAS operation. * This structure's layout is designed to compatible with the previous * version used in SA pthreads. */ #ifdef __CPU_SIMPLE_LOCK_PAD /* * If __SIMPLE_UNLOCKED != 0 and we have to pad, we have to worry about * endianness. Currently that isn't an issue but put in a check in case * something changes in the future. */ #if 0 /* disabled by -frewrite-includes */ #if __SIMPLELOCK_UNLOCKED != 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 109 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #error __CPU_SIMPLE_LOCK_PAD incompatible with __SIMPLELOCK_UNLOCKED == 0 #endif # 111 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #endif # 112 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 struct __pthread_mutex_st { unsigned int ptm_magic; __pthread_spin_t ptm_errorcheck; #ifdef __CPU_SIMPLE_LOCK_PAD uint8_t ptm_pad1[3]; #if 0 /* disabled by -frewrite-includes */ #if (__STDC_VERSION__ - 0) >= 199901L #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 118 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_PAD(a) .a = { 0, 0, 0 }, #else # 120 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_PAD(a) { 0, 0, 0 }, #endif # 122 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #else # 123 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_PAD(a) #endif # 125 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 union { unsigned char ptm_ceiling; __pthread_spin_t ptm_unused; }; #ifdef __CPU_SIMPLE_LOCK_PAD uint8_t ptm_pad2[3]; #endif # 132 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 __pthread_volatile pthread_t ptm_owner; void * __pthread_volatile ptm_waiters; unsigned int ptm_recursed; void *ptm_spare2; /* unused - backwards compat */ }; #define _PT_MUTEX_MAGIC 0x33330003 #define _PT_MUTEX_DEAD 0xDEAD0003 #if 0 /* disabled by -frewrite-includes */ #if (__STDC_VERSION__ - 0) >= 199901L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 142 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_INI(a, b) .a = b #define _PTHREAD_MUTEX_UNI(a) .a = 0 #else # 145 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_INI(a, b) b #define _PTHREAD_MUTEX_UNI(a) { 0 } #endif # 148 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 #define _PTHREAD_MUTEX_INITIALIZER { \ _PTHREAD_MUTEX_INI(ptm_magic, _PT_MUTEX_MAGIC), \ _PTHREAD_MUTEX_INI(ptm_errorcheck, __SIMPLELOCK_UNLOCKED), \ _PTHREAD_MUTEX_PAD(ptm_pad1) \ _PTHREAD_MUTEX_UNI(ptm_ceiling), \ _PTHREAD_MUTEX_PAD(ptm_pad2) \ _PTHREAD_MUTEX_INI(ptm_owner, NULL), \ _PTHREAD_MUTEX_INI(ptm_waiters, NULL), \ _PTHREAD_MUTEX_INI(ptm_recursed, 0), \ _PTHREAD_MUTEX_INI(ptm_spare2, NULL), \ } struct __pthread_mutexattr_st { unsigned int ptma_magic; void *ptma_private; }; #define _PT_MUTEXATTR_MAGIC 0x44440004 #define _PT_MUTEXATTR_DEAD 0xDEAD0004 struct __pthread_cond_st { unsigned int ptc_magic; /* Protects the queue of waiters */ __pthread_spin_t ptc_lock; void *volatile ptc_waiters; void *ptc_spare; pthread_mutex_t *ptc_mutex; /* Current mutex */ void *ptc_private; }; #define _PT_COND_MAGIC 0x55550005 #define _PT_COND_DEAD 0xDEAD0005 #define _PTHREAD_COND_INITIALIZER { _PT_COND_MAGIC, \ __SIMPLELOCK_UNLOCKED, \ NULL, \ NULL, \ NULL, \ NULL \ } struct __pthread_condattr_st { unsigned int ptca_magic; void *ptca_private; }; #define _PT_CONDATTR_MAGIC 0x66660006 #define _PT_CONDATTR_DEAD 0xDEAD0006 struct __pthread_once_st { pthread_mutex_t pto_mutex; int pto_done; }; #define _PTHREAD_ONCE_INIT { PTHREAD_MUTEX_INITIALIZER, 0 } struct __pthread_spinlock_st { unsigned int pts_magic; __pthread_spin_t pts_spin; int pts_flags; }; #define _PT_SPINLOCK_MAGIC 0x77770007 #define _PT_SPINLOCK_DEAD 0xDEAD0007 #define _PT_SPINLOCK_PSHARED 0x00000001 /* PTHREAD_SPINLOCK_INITIALIZER is an extension not specified by POSIX. */ #define _PTHREAD_SPINLOCK_INITIALIZER { _PT_SPINLOCK_MAGIC, \ __SIMPLELOCK_UNLOCKED, \ 0 \ } struct __pthread_rwlock_st { unsigned int ptr_magic; /* Protects data below */ __pthread_spin_t ptr_interlock; pthread_queue_t ptr_rblocked; pthread_queue_t ptr_wblocked; unsigned int ptr_nreaders; __pthread_volatile pthread_t ptr_owner; void *ptr_private; }; #define _PT_RWLOCK_MAGIC 0x99990009 #define _PT_RWLOCK_DEAD 0xDEAD0009 #define _PTHREAD_RWLOCK_INITIALIZER { _PT_RWLOCK_MAGIC, \ __SIMPLELOCK_UNLOCKED, \ {NULL, NULL}, \ {NULL, NULL}, \ 0, \ NULL, \ NULL, \ } struct __pthread_rwlockattr_st { unsigned int ptra_magic; void *ptra_private; }; #define _PT_RWLOCKATTR_MAGIC 0x99990909 #define _PT_RWLOCKATTR_DEAD 0xDEAD0909 struct __pthread_barrier_st { unsigned int ptb_magic; /* Protects data below */ pthread_spin_t ptb_lock; pthread_queue_t ptb_waiters; unsigned int ptb_initcount; unsigned int ptb_curcount; unsigned int ptb_generation; void *ptb_private; }; #define _PT_BARRIER_MAGIC 0x88880008 #define _PT_BARRIER_DEAD 0xDEAD0008 struct __pthread_barrierattr_st { unsigned int ptba_magic; void *ptba_private; }; #define _PT_BARRIERATTR_MAGIC 0x88880808 #define _PT_BARRIERATTR_DEAD 0xDEAD0808 #endif /* _LIB_PTHREAD_TYPES_H */ # 283 "/usr/obj/evbarm64/destdir.evbarm/usr/include/pthread_types.h" 3 4 # 360 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 2 3 4 #endif # 361 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif # 362 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 #endif /* !_SYS_TYPES_H_ */ # 364 "/usr/home/sme/sandbox/usr/src/sys/sys/types.h" 3 4 # 51 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 # 53 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #endif /* _XOPEN_SOURCE */ # 54 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #endif /* !_KERNEL */ # 55 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * File status flags: these are used by open(2), fcntl(2). * They are also used (indirectly) in the kernel file structure f_flags, * which is a superset of the open/fcntl flags. Open flags and f_flags * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags). * Open/fcntl flags begin with O_; kernel-internal flags begin with F. */ /* open-only flags */ #define O_RDONLY 0x00000000 /* open for reading only */ #define O_WRONLY 0x00000001 /* open for writing only */ #define O_RDWR 0x00000002 /* open for reading and writing */ #define O_ACCMODE 0x00000003 /* mask for above modes */ /* * Kernel encoding of open mode; separate read and write bits that are * independently testable: 1 greater than the above. * * XXX * FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH, * which was documented to use FREAD/FWRITE, continues to work. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define FREAD 0x00000001 #define FWRITE 0x00000002 #endif # 81 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_NONBLOCK 0x00000004 /* no delay */ #define O_APPEND 0x00000008 /* set append mode */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 84 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_SHLOCK 0x00000010 /* open with shared file lock */ #define O_EXLOCK 0x00000020 /* open with exclusive file lock */ #define O_ASYNC 0x00000040 /* signal pgrp when data ready */ #endif # 88 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199309L || \ (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 91 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_SYNC 0x00000080 /* synchronous writes */ #endif # 93 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_NOFOLLOW 0x00000100 /* don't follow symlinks on the last */ /* path component */ #endif # 97 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_CREAT 0x00000200 /* create if nonexistent */ #define O_TRUNC 0x00000400 /* truncate to zero length */ #define O_EXCL 0x00000800 /* error if already exists */ /* defined by POSIX 1003.1; BSD default, but required to be bitwise distinct */ #define O_NOCTTY 0x00008000 /* don't assign controlling terminal */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199309L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 106 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_DSYNC 0x00010000 /* write: I/O data completion */ #define O_RSYNC 0x00020000 /* read: I/O completion as for write */ #endif # 109 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 111 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_ALT_IO 0x00040000 /* use alternate i/o semantics */ #define O_DIRECT 0x00080000 /* direct I/O hint */ #endif # 114 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_DIRECTORY 0x00200000 /* fail if not a directory */ #define O_CLOEXEC 0x00400000 /* set close on exec */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 119 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_SEARCH 0x00800000 /* skip search permission checks */ #endif # 121 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 122 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define O_NOSIGPIPE 0x01000000 /* don't deliver sigpipe */ #define O_REGULAR 0x02000000 /* fail if not a regular file */ #define O_EXEC 0x04000000 /* open for executing only */ #endif # 126 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #ifdef _KERNEL /* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */ #define FFLAGS(oflags) ((oflags) + 1) #define OFLAGS(fflags) ((fflags) - 1) /* all bits settable during open(2) */ #define O_MASK (O_ACCMODE|O_NONBLOCK|O_APPEND|O_SHLOCK|O_EXLOCK|\ O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\ O_RSYNC|O_NOCTTY|O_ALT_IO|O_NOFOLLOW|O_DIRECT|\ O_DIRECTORY|O_CLOEXEC|O_NOSIGPIPE|O_REGULAR|O_EXEC) #define FEXEC O_EXEC #define FMARK 0x00001000 /* mark during gc() */ #define FDEFER 0x00002000 /* defer for next gc pass */ #define FHASLOCK 0x00004000 /* descriptor holds advisory lock */ #define FSCAN 0x00100000 /* scan during gc passes */ #define FSILENT 0x40000000 /* suppress kernel error messages */ #define FKIOCTL 0x80000000 /* kernel originated ioctl */ /* bits settable by fcntl(F_SETFL, ...) */ #define FCNTLFLAGS (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FDSYNC|FRSYNC|FALTIO|\ FDIRECT|FNOSIGPIPE) /* bits to save after open(2) */ #define FMASK (FREAD|FWRITE|FCNTLFLAGS|FEXEC) #endif /* _KERNEL */ # 151 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * The O_* flags used to have only F* names, which were used in the kernel * and by fcntl. We retain the F* names for the kernel f_flags field * and for backward compatibility for fcntl. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 158 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define FAPPEND O_APPEND /* kernel/compat */ #define FASYNC O_ASYNC /* kernel/compat */ #define O_FSYNC O_SYNC /* compat */ #define FNDELAY O_NONBLOCK /* compat */ #define O_NDELAY O_NONBLOCK /* compat */ #endif # 164 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 165 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define FNOSIGPIPE O_NOSIGPIPE /* kernel */ #define FNONBLOCK O_NONBLOCK /* kernel */ #define FFSYNC O_SYNC /* kernel */ #define FDSYNC O_DSYNC /* kernel */ #define FRSYNC O_RSYNC /* kernel */ #define FALTIO O_ALT_IO /* kernel */ #define FDIRECT O_DIRECT /* kernel */ #endif # 173 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * Constants used for fcntl(2) */ /* command values */ #define F_DUPFD 0 /* duplicate file descriptor */ #define F_GETFD 1 /* get file descriptor flags */ #define F_SETFD 2 /* set file descriptor flags */ #define F_GETFL 3 /* get file status flags */ #define F_SETFL 4 /* set file status flags */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 186 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_GETOWN 5 /* get SIGIO/SIGURG proc/pgrp */ #define F_SETOWN 6 /* set SIGIO/SIGURG proc/pgrp */ #endif # 189 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_GETLK 7 /* get record locking information */ #define F_SETLK 8 /* set record locking information */ #define F_SETLKW 9 /* F_SETLK; wait if blocked */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 193 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_CLOSEM 10 /* close all fds >= to the one given */ #define F_MAXFD 11 /* return the max open fd */ #endif # 196 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 197 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_DUPFD_CLOEXEC 12 /* close on exec duplicated fd */ #endif # 199 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 200 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_GETNOSIGPIPE 13 /* get SIGPIPE disposition */ #define F_SETNOSIGPIPE 14 /* set SIGPIPE disposition */ #define F_GETPATH 15 /* get pathname associated with fd */ #endif # 204 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* file descriptor flags (F_GETFD, F_SETFD) */ #define FD_CLOEXEC 1 /* close-on-exec flag */ /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */ #define F_RDLCK 1 /* shared or read lock */ #define F_UNLCK 2 /* unlock */ #define F_WRLCK 3 /* exclusive or write lock */ #ifdef _KERNEL #define F_WAIT 0x010 /* Wait until lock is granted */ #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ #define F_POSIX 0x040 /* Use POSIX semantics for lock */ #endif # 217 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* Constants for fcntl's passed to the underlying fs - like ioctl's. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 220 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define F_PARAM_MASK 0xfff #define F_PARAM_LEN(x) (((x) >> 16) & F_PARAM_MASK) #define F_PARAM_MAX 4095 #define F_FSCTL (int)0x80000000 /* This fcntl goes to the fs */ #define F_FSVOID (int)0x40000000 /* no parameters */ #define F_FSOUT (int)0x20000000 /* copy out parameter */ #define F_FSIN (int)0x10000000 /* copy in parameter */ #define F_FSINOUT (F_FSIN | F_FSOUT) #define F_FSDIRMASK (int)0x70000000 /* mask for IN/OUT/VOID */ #define F_FSPRIV (int)0x00008000 /* command is fs-specific */ /* * Define command macros for operations which, if implemented, must be * the same for all fs's. */ #define _FCN(inout, num, len) \ (F_FSCTL | inout | ((len & F_PARAM_MASK) << 16) | (num)) #define _FCNO(c) _FCN(F_FSVOID, (c), 0) #define _FCNR(c, t) _FCN(F_FSIN, (c), (int)sizeof(t)) #define _FCNW(c, t) _FCN(F_FSOUT, (c), (int)sizeof(t)) #define _FCNRW(c, t) _FCN(F_FSINOUT, (c), (int)sizeof(t)) /* * Define command macros for fs-specific commands. */ #define _FCN_FSPRIV(inout, fs, num, len) \ (F_FSCTL | F_FSPRIV | inout | ((len & F_PARAM_MASK) << 16) | \ (fs) << 8 | (num)) #define _FCNO_FSPRIV(f, c) _FCN_FSPRIV(F_FSVOID, (f), (c), 0) #define _FCNR_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSIN, (f), (c), (int)sizeof(t)) #define _FCNW_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSOUT, (f), (c), (int)sizeof(t)) #define _FCNRW_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSINOUT, (f), (c), (int)sizeof(t)) #endif /* _NETBSD_SOURCE */ # 254 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * Advisory file segment locking data type - * information passed to system by user */ struct flock { off_t l_start; /* starting offset */ off_t l_len; /* len = 0 means until end of file */ pid_t l_pid; /* lock owner */ short l_type; /* lock type: read/write, etc. */ short l_whence; /* type of l_start */ }; #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 269 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* lock operations for flock(2) */ #define LOCK_SH 0x01 /* shared file lock */ #define LOCK_EX 0x02 /* exclusive file lock */ #define LOCK_NB 0x04 /* don't block when locking */ #define LOCK_UN 0x08 /* unlock file */ #endif # 275 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* Always ensure that these are consistent with and ! */ #ifndef SEEK_SET #define SEEK_SET 0 /* set file offset to offset */ #endif # 280 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #ifndef SEEK_CUR #define SEEK_CUR 1 /* set file offset to current plus offset */ #endif # 283 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #ifndef SEEK_END #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif # 286 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * posix_advise advisories. */ #define POSIX_FADV_NORMAL 0 /* default advice / no advice */ #define POSIX_FADV_RANDOM 1 /* random access */ #define POSIX_FADV_SEQUENTIAL 2 /* sequential access(lower to higher) */ #define POSIX_FADV_WILLNEED 3 /* be needed in near future */ #define POSIX_FADV_DONTNEED 4 /* not be needed in near future */ #define POSIX_FADV_NOREUSE 5 /* be accessed once */ /* * Constants for X/Open Extended API set 2 (a.k.a. C063) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 303 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #define AT_FDCWD -100 /* Use cwd for relative link target */ #define AT_EACCESS 0x100 /* Use euig/egid for access checks */ #define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symlinks */ #define AT_SYMLINK_FOLLOW 0x400 /* Follow symlinks */ #define AT_REMOVEDIR 0x800 /* Remove directory only */ #endif # 309 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 312 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 # 313 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 __BEGIN_DECLS int open(const char *, int, ...); int creat(const char *, mode_t); int fcntl(int, int, ...); #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 319 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 int flock(int, int); #endif /* _NETBSD_SOURCE */ # 321 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 int posix_fadvise(int, off_t, off_t, int); /* * The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 328 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 int posix_fallocate(int, off_t, off_t); #endif # 330 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 /* * X/Open Extended API set 2 (a.k.a. C063) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 336 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 int openat(int, const char *, int, ...); #endif # 338 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 __END_DECLS #endif /* !_KERNEL */ # 341 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 #endif /* !_SYS_FCNTL_H_ */ # 343 "/usr/obj/evbarm64/destdir.evbarm/usr/include/fcntl.h" 3 4 # 31 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 31 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 1 3 4 /* $NetBSD: stdio.h,v 1.99 2020/03/20 01:08:42 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stdio.h 8.5 (Berkeley) 4/29/95 */ #ifndef _STDIO_H_ #define _STDIO_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 40 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 41 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (!defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE)) || ((_POSIX_C_SOURCE - 0) >= 200809L || \ defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ (__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define __STDIO_C99_FEATURES #endif # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 55 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifdef _BSD_SSIZE_T_ typedef _BSD_SSIZE_T_ ssize_t; #undef _BSD_SSIZE_T_ #endif # 59 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 61 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifndef __VA_LIST_DECLARED typedef __va_list va_list; #define __VA_LIST_DECLARED #endif # 65 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #endif # 66 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 67 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 1 3 4 /* $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $ */ /* * Written by Klaus Klein , December 22, 1999. * Public domain. */ #ifndef _SYS_NULL_H_ #define _SYS_NULL_H_ #ifndef NULL #if 0 /* disabled by -frewrite-includes */ #if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 12 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 13 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #define NULL ((void *)0) #else # 15 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #define NULL 0 #endif /* !__cplusplus */ # 17 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #else # 18 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #define NULL __null #endif # 20 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #endif # 21 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 #endif /* _SYS_NULL_H_ */ # 22 "/usr/home/sme/sandbox/usr/src/sys/sys/null.h" 3 4 # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 2 3 4 /* * This is fairly grotesque, but pure ANSI code must not inspect the * innards of an fpos_t anyway. The library internally uses off_t, * which we assume is exactly as big as eight chars. */ typedef struct __sfpos { __off_t _pos; __mbstate_t _mbstate_in, _mbstate_out; } fpos_t; #define _FSTDIO /* Define for new stdio with functions. */ /* * NB: to fit things in six character monocase externals, the stdio * code uses the prefix `__s' for stdio objects, typically followed * by a three-character attempt at a mnemonic. */ /* stdio buffers */ struct __sbuf { unsigned char *_base; int _size; }; /* * stdio state variables. * * The following always hold: * * if (_flags&(__SLBF|__SWR)) == (__SLBF|__SWR), * _lbfsize is -_bf._size, else _lbfsize is 0 * if _flags&__SRD, _w is 0 * if _flags&__SWR, _r is 0 * * This ensures that the getc and putc macros (or inline functions) never * try to write or read from a file that is in `read' or `write' mode. * (Moreover, they can, and do, automatically switch from read mode to * write mode, and back, on "r+" and "w+" files.) * * _lbfsize is used only to make the inline line-buffered output stream * code as compact as possible. * * _ub, _up, and _ur are used when ungetc() pushes back more characters * than fit in the current _bf, or when ungetc() pushes back a character * that does not match the previous one in _bf. When this happens, * _ub._base becomes non-nil (i.e., a stream has ungetc() data iff * _ub._base!=NULL) and _up and _ur save the current values of _p and _r. * * NB: see WARNING above before changing the layout of this structure! */ typedef struct __sFILE { unsigned char *_p; /* current position in (some) buffer */ int _r; /* read space left for getc() */ int _w; /* write space left for putc() */ unsigned short _flags; /* flags, below; this FILE is free if 0 */ short _file; /* fileno, if Unix descriptor, else -1 */ struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */ int _lbfsize; /* 0 or -_bf._size, for inline putc */ /* operations */ void *_cookie; /* cookie passed to io functions */ int (*_close)(void *); ssize_t (*_read) (void *, void *, size_t); __off_t (*_seek) (void *, __off_t, int); ssize_t (*_write)(void *, const void *, size_t); /* file extension */ struct __sbuf _ext; /* separate buffer for long sequences of ungetc() */ unsigned char *_up; /* saved _p when _p is doing ungetc data */ int _ur; /* saved _r when _r is counting ungetc data */ /* tricks to meet minimum requirements even when malloc() fails */ unsigned char _ubuf[3]; /* guarantee an ungetc() buffer */ unsigned char _nbuf[1]; /* guarantee a getc() buffer */ int (*_flush)(void *); /* Formerly used by fgetln/fgetwln; kept for binary compatibility */ char _lb_unused[sizeof(struct __sbuf) - sizeof(int (*)(void *))]; /* Unix stdio files get aligned to block boundaries on fseek() */ int _blksize; /* stat.st_blksize (may be != _bf._size) */ __off_t _offset; /* current lseek offset */ } FILE; __BEGIN_DECLS extern FILE __sF[3]; __END_DECLS #define __SLBF 0x0001 /* line buffered */ #define __SNBF 0x0002 /* unbuffered */ #define __SRD 0x0004 /* OK to read */ #define __SWR 0x0008 /* OK to write */ /* RD and WR are never simultaneously asserted */ #define __SRW 0x0010 /* open for reading & writing */ #define __SEOF 0x0020 /* found EOF */ #define __SERR 0x0040 /* found error */ #define __SMBF 0x0080 /* _buf is from malloc */ #define __SAPP 0x0100 /* fdopen()ed in append mode */ #define __SSTR 0x0200 /* this is an sprintf/snprintf string */ #define __SOPT 0x0400 /* do fseek() optimization */ #define __SNPT 0x0800 /* do not do fseek() optimization */ #define __SOFF 0x1000 /* set iff _offset is in fact correct */ #define __SMOD 0x2000 /* true => fgetln modified _p text */ #define __SALC 0x4000 /* allocate string space dynamically */ /* * The following three definitions are for ANSI C, which took them * from System V, which brilliantly took internal interface macros and * made them official arguments to setvbuf(), without renaming them. * Hence, these ugly _IOxxx names are *supposed* to appear in user code. * * Although numbered as their counterparts above, the implementation * does not rely on this. */ #define _IOFBF 0 /* setvbuf should set fully buffered */ #define _IOLBF 1 /* setvbuf should set line buffered */ #define _IONBF 2 /* setvbuf should set unbuffered */ #define BUFSIZ 1024 /* size of buffer used by setbuf */ #define EOF (-1) /* * FOPEN_MAX is a minimum maximum, and is the number of streams that * stdio can provide without attempting to allocate further resources * (which could fail). Do not use this for anything. */ /* must be == _POSIX_STREAM_MAX */ #define FOPEN_MAX 20 /* must be <= OPEN_MAX */ #define FILENAME_MAX 1024 /* must be <= PATH_MAX */ /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 203 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define P_tmpdir "/tmp/" #endif # 205 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ /* Always ensure that this is consistent with */ #ifndef TMP_MAX #define TMP_MAX 308915776 /* Legacy */ #endif # 210 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* Always ensure that these are consistent with and ! */ #ifndef SEEK_SET #define SEEK_SET 0 /* set file offset to offset */ #endif # 215 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifndef SEEK_CUR #define SEEK_CUR 1 /* set file offset to current plus offset */ #endif # 218 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifndef SEEK_END #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif # 221 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define stdin (&__sF[0]) #define stdout (&__sF[1]) #define stderr (&__sF[2]) /* * Functions defined in ANSI C standard. */ __BEGIN_DECLS void clearerr(FILE *); int fclose(FILE *); int feof(FILE *); int ferror(FILE *); int fflush(FILE *); int fgetc(FILE *); char *fgets(char * __restrict, int, FILE * __restrict); FILE *fopen(const char * __restrict , const char * __restrict); int fprintf(FILE * __restrict, const char * __restrict, ...) __printflike(2, 3); int fputc(int, FILE *); int fputs(const char * __restrict, FILE * __restrict); size_t fread(void * __restrict, size_t, size_t, FILE * __restrict); FILE *freopen(const char * __restrict, const char * __restrict, FILE * __restrict); int fscanf(FILE * __restrict, const char * __restrict, ...) __scanflike(2, 3); int fseek(FILE *, long, int); long ftell(FILE *); size_t fwrite(const void * __restrict, size_t, size_t, FILE * __restrict); int getc(FILE *); int getchar(void); void perror(const char *); int printf(const char * __restrict, ...) __printflike(1, 2); int putc(int, FILE *); int putchar(int); int puts(const char *); int remove(const char *); void rewind(FILE *); int scanf(const char * __restrict, ...) __scanflike(1, 2); void setbuf(FILE * __restrict, char * __restrict); int setvbuf(FILE * __restrict, char * __restrict, int, size_t); int sscanf(const char * __restrict, const char * __restrict, ...) __scanflike(2, 3); FILE *tmpfile(void); int ungetc(int, FILE *); int vfprintf(FILE * __restrict, const char * __restrict, __va_list) __printflike(2, 0); int vprintf(const char * __restrict, __va_list) __printflike(1, 0); #ifndef __AUDIT__ char *gets(char *); int sprintf(char * __restrict, const char * __restrict, ...) __printflike(2, 3); char *tmpnam(char *); int vsprintf(char * __restrict, const char * __restrict, __va_list) __printflike(2, 0); #endif # 282 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 284 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 int rename (const char *, const char *) __RENAME(__posix_rename); #else # 286 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 int rename (const char *, const char *); #endif # 288 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __END_DECLS #ifndef __LIBC12_SOURCE__ int fgetpos(FILE * __restrict, fpos_t * __restrict) __RENAME(__fgetpos50); int fsetpos(FILE *, const fpos_t *) __RENAME(__fsetpos50); #endif # 294 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * IEEE Std 1003.1-90 */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 299 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define L_ctermid 1024 /* size for ctermid(); PATH_MAX */ #define L_cuserid 9 /* size for cuserid(); UT_NAMESIZE + 1 */ __BEGIN_DECLS char *ctermid(char *); #ifndef __CUSERID_DECLARED #define __CUSERID_DECLARED /* also declared in unistd.h */ char *cuserid(char *); #endif /* __CUSERID_DECLARED */ # 309 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 FILE *fdopen(int, const char *); int fileno(FILE *); __END_DECLS #endif /* not ANSI */ # 313 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2 */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 199506L || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 319 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS void flockfile(FILE *); int ftrylockfile(FILE *); void funlockfile(FILE *); int getc_unlocked(FILE *); int getchar_unlocked(void); int putc_unlocked(int, FILE *); int putchar_unlocked(int); __END_DECLS #endif /* C99 || _POSIX_C_SOURCE >= 1995056 || _XOPEN_SOURCE >= 500 || ... */ # 329 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Functions defined in POSIX 1003.2 and XPG2 or later. */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 2 || (_XOPEN_SOURCE - 0) >= 2 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 335 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int pclose(FILE *); FILE *popen(const char *, const char *); __END_DECLS #endif # 340 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifdef _NETBSD_SOURCE __BEGIN_DECLS FILE *popenve(const char *, char *const *, char *const *, const char *); __END_DECLS #endif # 345 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Functions defined in ISO XPG4.2, ISO C99, POSIX 1003.1-2001 or later. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDIO_C99_FEATURES) || (_POSIX_C_SOURCE - 0) >= 200112L || \ (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 352 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int snprintf(char * __restrict, size_t, const char * __restrict, ...) __printflike(3, 4); int vsnprintf(char * __restrict, size_t, const char * __restrict, __va_list) __printflike(3, 0); __END_DECLS #endif # 360 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Functions defined in XPG4.2. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 365 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int getw(FILE *); int putw(int, FILE *); #ifndef __AUDIT__ char *tempnam(const char *, const char *); #endif # 372 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __END_DECLS #endif # 374 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * X/Open CAE Specification Issue 5 Version 2 */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 380 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #ifndef off_t typedef __off_t off_t; #define off_t __off_t #endif /* off_t */ # 384 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int fseeko(FILE *, off_t, int); off_t ftello(FILE *); __END_DECLS #endif /* (_POSIX_C_SOURCE - 0) >= 200112L || _XOPEN_SOURCE >= 500 || ... */ # 390 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Functions defined in ISO C99. Still put under _NETBSD_SOURCE due to * backward compatible. */ #if 0 /* disabled by -frewrite-includes */ #if defined(__STDIO_C99_FEATURES) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 396 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int vscanf(const char * __restrict, __va_list) __scanflike(1, 0); int vfscanf(FILE * __restrict, const char * __restrict, __va_list) __scanflike(2, 0); int vsscanf(const char * __restrict, const char * __restrict, __va_list) __scanflike(2, 0); __END_DECLS #endif /* C99 */ # 406 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Routines that are purely local. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 411 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define FPARSELN_UNESCESC 0x01 #define FPARSELN_UNESCCONT 0x02 #define FPARSELN_UNESCCOMM 0x04 #define FPARSELN_UNESCREST 0x08 #define FPARSELN_UNESCALL 0x0f __BEGIN_DECLS int asprintf(char ** __restrict, const char * __restrict, ...) __printflike(2, 3); char *fgetln(FILE * __restrict, size_t * __restrict); char *fparseln(FILE *, size_t *, size_t *, const char[3], int); int fpurge(FILE *); void setbuffer(FILE *, char *, int); int setlinebuf(FILE *); int vasprintf(char ** __restrict, const char * __restrict, __va_list) __printflike(2, 0); const char *fmtcheck(const char *, const char *) __format_arg(2); __END_DECLS /* * Stdio function-access interface. */ __BEGIN_DECLS FILE *funopen(const void *, int (*)(void *, char *, int), int (*)(void *, const char *, int), off_t (*)(void *, off_t, int), int (*)(void *)); FILE *funopen2(const void *, ssize_t (*)(void *, void *, size_t), ssize_t (*)(void *, const void *, size_t), off_t (*)(void *, off_t, int), int (*)(void *), int (*)(void *)); __END_DECLS #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) #define fropen2(cookie, fn) funopen2(cookie, fn, 0, 0, 0, 0) #define fwopen2(cookie, fn) funopen2(cookie, 0, fn, 0, 0, 0) #endif /* _NETBSD_SOURCE */ # 454 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * Functions internal to the implementation. */ __BEGIN_DECLS int __srget(FILE *); int __swbuf(int, FILE *); __END_DECLS /* * The __sfoo macros are here so that we can * define function versions in the C library. */ #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) #if 0 /* disabled by -frewrite-includes */ #if defined(__GNUC__) && defined(__STDC__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 469 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 static __inline int __sputc(int _c, FILE *_p) { if (--_p->_w >= 0 || (_p->_w >= _p->_lbfsize && (char)_c != '\n')) return *_p->_p++ = (unsigned char)_c; else return __swbuf(_c, _p); } #else # 476 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 /* * This has been tuned to generate reasonable code on the vax using pcc. */ #define __sputc(c, p) \ (--(p)->_w < 0 ? \ (p)->_w >= (p)->_lbfsize ? \ (*(p)->_p = (c)), *(p)->_p != '\n' ? \ (int)*(p)->_p++ : \ __swbuf('\n', p) : \ __swbuf((int)(c), p) : \ (*(p)->_p = (c), (int)*(p)->_p++)) #endif # 488 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define __sfeof(p) (((p)->_flags & __SEOF) != 0) #define __sferror(p) (((p)->_flags & __SERR) != 0) #define __sclearerr(p) ((void)((p)->_flags &= (unsigned short)~(__SERR|__SEOF))) #define __sfileno(p) \ ((p)->_file == -1 ? -1 : (int)(unsigned short)(p)->_file) #if 0 /* disabled by -frewrite-includes */ #if !defined(__lint__) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 496 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_REENTRANT) && !defined(_PTHREADS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 497 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define feof(p) __sfeof(p) #define ferror(p) __sferror(p) #define clearerr(p) __sclearerr(p) #define getc(fp) __sgetc(fp) #define putc(x, fp) __sputc(x, fp) #endif /* !_REENTRANT && !_PTHREADS */ # 504 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define getchar() getc(stdin) #define putchar(x) putc(x, stdout) #endif /* !__lint__ && !__cplusplus */ # 509 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE)) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 512 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_REENTRANT) && !defined(_PTHREADS) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 513 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define fileno(p) __sfileno(p) #endif /* !_REENTRANT && !_PTHREADS */ # 515 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #endif /* !_ANSI_SOURCE && !__cplusplus*/ # 516 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 518 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0); int dprintf(int, const char * __restrict, ...) __printflike(2, 3); __END_DECLS #endif /* (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) */ # 525 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 528 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #define getc_unlocked(fp) __sgetc(fp) #define putc_unlocked(x, fp) __sputc(x, fp) #define getchar_unlocked() getc_unlocked(stdin) #define putchar_unlocked(x) putc_unlocked(x, stdout) #endif /* _POSIX_C_SOURCE >= 199506 || _XOPEN_SOURCE >= 500 || _REENTRANT... */ # 534 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0) >= 700 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 537 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS FILE *fmemopen(void * __restrict, size_t, const char * __restrict); FILE *open_memstream(char **, size_t *); ssize_t getdelim(char ** __restrict, size_t * __restrict, int, FILE * __restrict); ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); __END_DECLS #endif # 545 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 547 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif # 551 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __BEGIN_DECLS int fprintf_l(FILE * __restrict, locale_t, const char * __restrict, ...) __printflike(3, 4); int vfprintf_l(FILE * __restrict, locale_t, const char * __restrict, __va_list) __printflike(3, 0); int printf_l(locale_t, const char * __restrict, ...) __printflike(2, 3); int vprintf_l(locale_t, const char * __restrict, __va_list) __printflike(2, 0); int asprintf_l(char ** __restrict, locale_t, const char * __restrict, ...) __printflike(3, 4); int vasprintf_l(char ** __restrict, locale_t, const char * __restrict, __va_list) __printflike(3, 0); int vdprintf_l(int, locale_t, const char * __restrict, __va_list) __printflike(3, 0); int dprintf_l(int, locale_t, const char * __restrict, ...) __printflike(3, 4); int snprintf_l(char * __restrict, size_t, locale_t, const char * __restrict, ...) __printflike(4, 5); int vsnprintf_l(char * __restrict, size_t, locale_t, const char * __restrict, __va_list) __printflike(4, 0); #ifndef __AUDIT__ int sprintf_l(char * __restrict, locale_t, const char * __restrict, ...) __printflike(3, 4); int vsprintf_l(char * __restrict, locale_t, const char * __restrict, __va_list) __printflike(3, 0); #endif # 579 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 int fscanf_l(FILE * __restrict, locale_t, const char * __restrict, ...) __scanflike(3, 4); int scanf_l(locale_t, const char * __restrict, ...) __scanflike(2, 3); int sscanf_l(const char * __restrict, locale_t, const char * __restrict, ...) __scanflike(3, 4); int vscanf_l(locale_t, const char * __restrict, __va_list) __scanflike(2, 0); int vfscanf_l(FILE * __restrict, locale_t, const char * __restrict, __va_list) __scanflike(3, 0); int vsscanf_l(const char * __restrict, locale_t, const char * __restrict, __va_list) __scanflike(3, 0); #ifdef _NETBSD_SOURCE int snprintf_ss(char *restrict, size_t, const char * __restrict, ...) __printflike(3, 4); int vsnprintf_ss(char *restrict, size_t, const char * __restrict, __va_list) __printflike(3, 0); #endif # 598 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 __END_DECLS #endif # 600 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if _FORTIFY_SOURCE > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 602 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 602 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 1 3 4 /* $NetBSD: stdio.h,v 1.5 2011/07/17 20:54:34 joerg Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SSP_STDIO_H_ #define _SSP_STDIO_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 3 4 # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 3 4 __BEGIN_DECLS int __sprintf_chk(char *__restrict, int, size_t, const char *__restrict, ...) __printflike(4, 5); int __vsprintf_chk(char *__restrict, int, size_t, const char *__restrict, __va_list) __printflike(4, 0); int __snprintf_chk(char *__restrict, size_t, int, size_t, const char *__restrict, ...) __printflike(5, 6); int __vsnprintf_chk(char *__restrict, size_t, int, size_t, const char *__restrict, __va_list) __printflike(5, 0); char *__gets_chk(char *, size_t); char *__fgets_chk(char *, int, size_t, FILE *); __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 53 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 3 4 #define sprintf(str, ...) \ __builtin___sprintf_chk(str, 0, __ssp_bos(str), __VA_ARGS__) #define vsprintf(str, fmt, ap) \ __builtin___vsprintf_chk(str, 0, __ssp_bos(str), fmt, ap) #define snprintf(str, len, ...) \ __builtin___snprintf_chk(str, len, 0, __ssp_bos(str), __VA_ARGS__) #define vsnprintf(str, len, fmt, ap) \ __builtin___vsnprintf_chk(str, len, 0, __ssp_bos(str), fmt, ap) #define gets(str) \ __gets_chk(str, __ssp_bos(str)) #define fgets(str, len, fp) \ __fgets_chk(str, len, __ssp_bos(str), fp) #endif /* __SSP_FORTIFY_LEVEL > 0 */ # 73 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 3 4 #endif /* _SSP_STDIO_H_ */ # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/stdio.h" 3 4 # 603 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 2 3 4 #endif # 604 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 #endif /* _STDIO_H_ */ # 606 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdio.h" 3 4 # 32 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 32 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 1 3 4 /* $NetBSD: stdlib.h,v 1.122 2020/05/26 21:49:29 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)stdlib.h 8.5 (Berkeley) 5/19/95 */ #ifndef _STDLIB_H_ #define _STDLIB_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 39 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 2 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 41 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* for quad_t, etc. */ #endif /* expanded by -frewrite-includes */ # 41 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #endif # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 2 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_BSD_WCHAR_T_) && !defined(__cplusplus) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 typedef _BSD_WCHAR_T_ wchar_t; #undef _BSD_WCHAR_T_ #endif # 55 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 typedef struct { int quot; /* quotient */ int rem; /* remainder */ } div_t; typedef struct { long quot; /* quotient */ long rem; /* remainder */ } ldiv_t; #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && \ (defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ (__cplusplus - 0) >= 201103L || defined(_NETBSD_SOURCE)) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 69 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 typedef struct { /* LONGLONG */ long long int quot; /* quotient */ /* LONGLONG */ long long int rem; /* remainder */ } lldiv_t; #endif # 76 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 78 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 typedef struct { quad_t quot; /* quotient */ quad_t rem; /* remainder */ } qdiv_t; #endif # 83 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 85 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 86 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 #define RAND_MAX 0x7fffffff extern size_t __mb_cur_max; #define MB_CUR_MAX __mb_cur_max __BEGIN_DECLS __dead void _Exit(int); __dead void abort(void); __constfunc int abs(int); int atexit(void (*)(void)); double atof(const char *); int atoi(const char *); long atol(const char *); #ifndef __BSEARCH_DECLARED #define __BSEARCH_DECLARED /* also in search.h */ void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void *, const void *)); #endif /* __BSEARCH_DECLARED */ # 109 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 void *calloc(size_t, size_t); div_t div(int, int); __dead void exit(int); void free(void *); __aconst char *getenv(const char *); __constfunc long labs(long); ldiv_t ldiv(long, long); void *malloc(size_t); void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); int rand(void); void *realloc(void *, size_t); void srand(unsigned); double strtod(const char * __restrict, char ** __restrict); long strtol(const char * __restrict, char ** __restrict, int); unsigned long strtoul(const char * __restrict, char ** __restrict, int); #ifdef _OPENBSD_SOURCE long long strtonum(const char *, long long, long long, const char **); void *reallocarray(void *, size_t, size_t); #endif # 130 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 int system(const char *); /* These are currently just stubs. */ int mblen(const char *, size_t); size_t mbstowcs(wchar_t * __restrict, const char * __restrict, size_t); int wctomb(char *, wchar_t); int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); size_t wcstombs(char * __restrict, const wchar_t * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 141 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * IEEE Std 1003.1c-95, also adopted by X/Open CAE Spec Issue 5 Version 2 */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 148 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 int rand_r(unsigned int *); #endif # 150 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * X/Open Portability Guide >= Issue 4 */ #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 156 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 double drand48(void); double erand48(unsigned short[3]); long jrand48(unsigned short[3]); void lcong48(unsigned short[7]); long lrand48(void); long mrand48(void); long nrand48(unsigned short[3]); unsigned short * seed48(unsigned short[3]); void srand48(long); #ifndef __LIBC12_SOURCE__ int putenv(char *) __RENAME(__putenv50); #endif # 170 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #endif # 171 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * X/Open Portability Guide >= Issue 4 Version 2 */ #if 0 /* disabled by -frewrite-includes */ #if (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 178 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 long a64l(const char *); char *l64a(long); long random(void); char *setstate(char *); #ifndef __LIBC12_SOURCE__ char *initstate(unsigned int, char *, size_t) __RENAME(__initstate60); void srandom(unsigned int) __RENAME(__srandom60); #endif # 187 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #ifdef _NETBSD_SOURCE #define RANDOM_MAX 0x7fffffff /* (((long)1 << 31) - 1) */ int mkostemp(char *, int); int mkostemps(char *, int, int); #endif # 192 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 char *mkdtemp(char *); int mkstemp(char *); char *mktemp(char *) #ifdef __MKTEMP_OK__ __RENAME(_mktemp) #endif # 199 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 ; int setkey(const char *); char *realpath(const char * __restrict, char * __restrict); int ttyslot(void); void *valloc(size_t); /* obsoleted by malloc() */ int getsubopt(char **, char * const *, char **); int grantpt(int); int unlockpt(int); char *ptsname(int); #endif # 215 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * ISO C99 */ #if 0 /* disabled by -frewrite-includes */ #if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \ defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 221 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* LONGLONG */ long long int atoll(const char *); /* LONGLONG */ long long int llabs(long long int); /* LONGLONG */ lldiv_t lldiv(long long int, long long int); /* LONGLONG */ long long int strtoll(const char * __restrict, char ** __restrict, int); /* LONGLONG */ unsigned long long int strtoull(const char * __restrict, char ** __restrict, int); float strtof(const char * __restrict, char ** __restrict); long double strtold(const char * __restrict, char ** __restrict); #endif # 236 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_ISOC11_SOURCE) || (__STDC_VERSION__ - 0) >= 201101L || \ defined(_NETBSD_SOURCE) || (__cplusplus - 0) >= 201103L #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 239 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 void *aligned_alloc(size_t, size_t); int at_quick_exit(void (*)(void)); __dead void quick_exit(int); #endif # 243 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 249 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 int setenv(const char *, const char *, int); #ifndef __LIBC12_SOURCE__ int unsetenv(const char *) __RENAME(__unsetenv13); #endif # 253 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 int posix_openpt(int); int posix_memalign(void **, size_t, size_t); #endif # 257 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 /* * Implementation-defined extensions */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 262 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(alloca) && (alloca == __builtin_alloca) && \ defined(__GNUC__) && (__GNUC__ < 2) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 264 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 void *alloca(int); /* built-in for gcc */ #if 0 /* disabled by -frewrite-includes */ #if 0 #elif defined(__PCC__) && !defined(__GNUC__) #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 266 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #define alloca(size) __builtin_alloca(size) #else # 268 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 void *alloca(size_t); #endif /* __GNUC__ */ # 270 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 uint32_t arc4random(void); void arc4random_stir(void); void arc4random_buf(void *, size_t); uint32_t arc4random_uniform(uint32_t); void arc4random_addrandom(unsigned char *, int); char *getbsize(int *, long *); char *cgetcap(char *, const char *, int); int cgetclose(void); int cgetent(char **, const char * const *, const char *); int cgetfirst(char **, const char * const *); int cgetmatch(const char *, const char *); int cgetnext(char **, const char * const *); int cgetnum(char *, const char *, long *); int cgetset(const char *); int cgetstr(char *, const char *, char **); int cgetustr(char *, const char *, char **); void csetexpandtc(int); int daemon(int, int); int devname_r(dev_t, mode_t, char *, size_t); #ifndef __LIBC12_SOURCE__ __aconst char *devname(dev_t, mode_t) __RENAME(__devname50); #endif # 294 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #define HN_DECIMAL 0x01 #define HN_NOSPACE 0x02 #define HN_B 0x04 #define HN_DIVISOR_1000 0x08 #define HN_GETSCALE 0x10 #define HN_AUTOSCALE 0x20 int humanize_number(char *, size_t, int64_t, const char *, int, int); int dehumanize_number(const char *, int64_t *); ssize_t hmac(const char *, const void *, size_t, const void *, size_t, void *, size_t); devmajor_t getdevmajor(const char *, mode_t); int getloadavg(double [], int); int getenv_r(const char *, char *, size_t); void cfree(void *); int heapsort(void *, size_t, size_t, int (*)(const void *, const void *)); int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); int ptsname_r(int, char *, size_t); int radixsort(const unsigned char **, int, const unsigned char *, unsigned); int sradixsort(const unsigned char **, int, const unsigned char *, unsigned); void mi_vector_hash(const void * __restrict, size_t, uint32_t, uint32_t[3]); void setproctitle(const char *, ...) __printflike(1, 2); const char *getprogname(void) __constfunc; void setprogname(const char *); quad_t qabs(quad_t); quad_t strtoq(const char * __restrict, char ** __restrict, int); u_quad_t strtouq(const char * __restrict, char ** __restrict, int); /* LONGLONG */ long long strsuftoll(const char *, const char *, long long, long long); /* LONGLONG */ long long strsuftollx(const char *, const char *, long long, long long, char *, size_t); int l64a_r(long, char *, int); size_t shquote(const char *, char *, size_t); size_t shquotev(int, char * const *, char *, size_t); int reallocarr(void *, size_t, size_t); #endif /* _NETBSD_SOURCE */ # 349 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */ # 350 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 352 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 qdiv_t qdiv(quad_t, quad_t); #endif # 354 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 356 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif # 360 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 double strtod_l(const char * __restrict, char ** __restrict, locale_t); float strtof_l(const char * __restrict, char ** __restrict, locale_t); long double strtold_l(const char * __restrict, char ** __restrict, locale_t); long strtol_l(const char * __restrict, char ** __restrict, int, locale_t); unsigned long strtoul_l(const char * __restrict, char ** __restrict, int, locale_t); /* LONGLONG */ long long int strtoll_l(const char * __restrict, char ** __restrict, int, locale_t); /* LONGLONG */ unsigned long long int strtoull_l(const char * __restrict, char ** __restrict, int, locale_t); #if 0 /* disabled by -frewrite-includes */ # if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 375 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 quad_t strtoq_l(const char * __restrict, char ** __restrict, int, locale_t); u_quad_t strtouq_l(const char * __restrict, char ** __restrict, int, locale_t); size_t _mb_cur_max_l(locale_t); #define MB_CUR_MAX_L(loc) _mb_cur_max_l(loc) int mblen_l(const char *, size_t, locale_t); size_t mbstowcs_l(wchar_t * __restrict, const char * __restrict, size_t, locale_t); int wctomb_l(char *, wchar_t, locale_t); int mbtowc_l(wchar_t * __restrict, const char * __restrict, size_t, locale_t); size_t wcstombs_l(char * __restrict, const wchar_t * __restrict, size_t, locale_t); # endif /* _NETBSD_SOURCE */ # 390 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 #endif /* _POSIX_C_SOURCE >= 200809 || _NETBSD_SOURCE */ # 391 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 __END_DECLS #endif /* !_STDLIB_H_ */ # 395 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdlib.h" 3 4 # 33 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 33 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 1 3 4 /* $NetBSD: string.h,v 1.52 2018/02/20 02:35:24 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)string.h 8.1 (Berkeley) 6/2/93 */ #ifndef _STRING_H_ #define _STRING_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 2 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 2 3 4 __BEGIN_DECLS void *memchr(const void *, int, size_t); int memcmp(const void *, const void *, size_t); void *memcpy(void * __restrict, const void * __restrict, size_t); void *memmove(void *, const void *, size_t); void *memset(void *, int, size_t); char *strcat(char * __restrict, const char * __restrict); char *strchr(const char *, int); int strcmp(const char *, const char *); int strcoll(const char *, const char *); char *strcpy(char * __restrict, const char * __restrict); size_t strcspn(const char *, const char *); __aconst char *strerror(int); size_t strlen(const char *); char *strncat(char * __restrict, const char * __restrict, size_t); int strncmp(const char *, const char *, size_t); char *strncpy(char * __restrict, const char * __restrict, size_t); char *strpbrk(const char *, const char *); char *strrchr(const char *, int); size_t strspn(const char *, const char *); char *strstr(const char *, const char *); char *strtok(char * __restrict, const char * __restrict); #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 199506L) || (_XOPEN_SOURCE - 0 >= 500) || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 char *strtok_r(char *, const char *, char **); int strerror_r(int, char *, size_t); #endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */ # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 size_t strxfrm(char * __restrict, const char * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 79 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 void *memccpy(void *, const void *, int, size_t); char *strdup(const char *); #endif # 82 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 200809L) || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 85 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 char *stpcpy(char * __restrict, const char * __restrict); char *stpncpy(char * __restrict, const char * __restrict, size_t); char *strndup(const char *, size_t); size_t strnlen(const char *, size_t); #ifndef __STRSIGNAL_DECLARED #define __STRSIGNAL_DECLARED /* also in unistd.h */ __aconst char *strsignal(int); #endif /* __STRSIGNAL_DECLARED */ # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #endif # 95 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* for backwards-compatibilty */ #endif /* expanded by -frewrite-includes */ # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 1 3 4 /* $NetBSD: strings.h,v 1.18 2011/08/22 01:24:15 dholland Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _STRINGS_H_ #define _STRINGS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 2 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 3 4 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 2 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #endif # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 1 3 4 /* $NetBSD: int_types.h,v 1.1 2014/08/10 05:47:38 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/int_types.h" 3 4 # 50 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 2 3 4 __BEGIN_DECLS int bcmp(const void *, const void *, size_t); void bcopy(const void *, void *, size_t); void bzero(void *, size_t); int ffs(int); char *index(const char *, int); unsigned int popcount(unsigned int) __constfunc; unsigned int popcountl(unsigned long) __constfunc; unsigned int popcountll(unsigned long long) __constfunc; unsigned int popcount32(__uint32_t) __constfunc; unsigned int popcount64(__uint64_t) __constfunc; char *rindex(const char *, int); int strcasecmp(const char *, const char *); int strncasecmp(const char *, const char *, size_t); __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 68 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 1 3 4 /* $NetBSD: string.h,v 1.52 2018/02/20 02:35:24 kamil Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)string.h 8.1 (Berkeley) 6/2/93 */ #ifndef _STRING_H_ #define _STRING_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 43 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 44 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 45 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __BEGIN_DECLS void *memchr(const void *, int, size_t); int memcmp(const void *, const void *, size_t); void *memcpy(void * __restrict, const void * __restrict, size_t); void *memmove(void *, const void *, size_t); void *memset(void *, int, size_t); char *strcat(char * __restrict, const char * __restrict); char *strchr(const char *, int); int strcmp(const char *, const char *); int strcoll(const char *, const char *); char *strcpy(char * __restrict, const char * __restrict); size_t strcspn(const char *, const char *); __aconst char *strerror(int); size_t strlen(const char *); char *strncat(char * __restrict, const char * __restrict, size_t); int strncmp(const char *, const char *, size_t); char *strncpy(char * __restrict, const char * __restrict, size_t); char *strpbrk(const char *, const char *); char *strrchr(const char *, int); size_t strspn(const char *, const char *); char *strstr(const char *, const char *); char *strtok(char * __restrict, const char * __restrict); #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 199506L) || (_XOPEN_SOURCE - 0 >= 500) || \ defined(_REENTRANT) || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 char *strtok_r(char *, const char *, char **); int strerror_r(int, char *, size_t); #endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */ # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 size_t strxfrm(char * __restrict, const char * __restrict, size_t); #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 79 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 void *memccpy(void *, const void *, int, size_t); char *strdup(const char *); #endif # 82 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0 >= 200809L) || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 85 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 char *stpcpy(char * __restrict, const char * __restrict); char *stpncpy(char * __restrict, const char * __restrict, size_t); char *strndup(const char *, size_t); size_t strnlen(const char *, size_t); #ifndef __STRSIGNAL_DECLARED #define __STRSIGNAL_DECLARED /* also in unistd.h */ __aconst char *strsignal(int); #endif /* __STRSIGNAL_DECLARED */ # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #endif # 95 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include /* for backwards-compatibilty */ #endif /* expanded by -frewrite-includes */ # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 99 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __BEGIN_DECLS void *memmem(const void *, size_t, const void *, size_t); char *strcasestr(const char *, const char *); char *strchrnul(const char *, int); size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); char *strsep(char **, const char *); char *stresep(char **, const char *, int); char *strnstr(const char *, const char *, size_t); void *memrchr(const void *, int, size_t); void *explicit_memset(void *, int, size_t); int consttime_memequal(const void *, const void *, size_t); __END_DECLS #endif # 113 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 115 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif # 119 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __BEGIN_DECLS int strcoll_l(const char *, const char *, locale_t); size_t strxfrm_l(char * __restrict, const char * __restrict, size_t, locale_t); __aconst char *strerror_l(int, locale_t); __END_DECLS #endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */ # 125 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if _FORTIFY_SOURCE > 0 #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 127 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 127 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 128 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #endif # 129 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #endif /* !defined(_STRING_H_) */ # 130 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 69 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 2 3 4 #endif # 70 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if _FORTIFY_SOURCE > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 1 3 4 /* $NetBSD: strings.h,v 1.3 2008/04/28 20:22:54 martin Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SSP_STRINGS_H_ #define _SSP_STRINGS_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 3 4 # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 3 4 #define bcopy(src, dst, len) \ ((__ssp_bos0(dst) != (size_t)-1) ? \ __builtin___memmove_chk(dst, src, len, __ssp_bos0(dst)) : \ __memmove_ichk(dst, src, len)) #define bzero(dst, len) \ ((__ssp_bos0(dst) != (size_t)-1) ? \ __builtin___memset_chk(dst, 0, len, __ssp_bos0(dst)) : \ __memset_ichk(dst, 0, len)) #endif /* __SSP_FORTIFY_LEVEL > 0 */ # 48 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 3 4 #endif /* _SSP_STRINGS_H_ */ # 49 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/strings.h" 3 4 # 73 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 2 3 4 #endif # 74 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 #endif /* !defined(_STRINGS_H_) */ # 75 "/usr/obj/evbarm64/destdir.evbarm/usr/include/strings.h" 3 4 # 99 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 2 3 4 __BEGIN_DECLS void *memmem(const void *, size_t, const void *, size_t); char *strcasestr(const char *, const char *); char *strchrnul(const char *, int); size_t strlcat(char *, const char *, size_t); size_t strlcpy(char *, const char *, size_t); char *strsep(char **, const char *); char *stresep(char **, const char *, int); char *strnstr(const char *, const char *, size_t); void *memrchr(const void *, int, size_t); void *explicit_memset(void *, int, size_t); int consttime_memequal(const void *, const void *, size_t); __END_DECLS #endif # 113 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 115 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # ifndef __LOCALE_T_DECLARED typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif # 119 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 __BEGIN_DECLS int strcoll_l(const char *, const char *, locale_t); size_t strxfrm_l(char * __restrict, const char * __restrict, size_t, locale_t); __aconst char *strerror_l(int, locale_t); __END_DECLS #endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */ # 125 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if _FORTIFY_SOURCE > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 127 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 127 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 1 3 4 /* $NetBSD: string.h,v 1.13 2014/11/29 13:23:48 pooka Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Christos Zoulas. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SSP_STRING_H_ #define _SSP_STRING_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 34 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 __BEGIN_DECLS void *__memcpy_chk(void *, const void *, size_t, size_t); void *__memmove_chk(void *, void *, size_t, size_t); void *__memset_chk(void *, int, size_t, size_t); char *__stpcpy_chk(char *, const char *, size_t); char *__strcat_chk(char *, const char *, size_t); char *__strcpy_chk(char *, const char *, size_t); char *__strncat_chk(char *, const char *, size_t, size_t); char *__strncpy_chk(char *, const char *, size_t, size_t); __END_DECLS #if 0 /* disabled by -frewrite-includes */ #if __SSP_FORTIFY_LEVEL > 0 #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 #define __ssp_bos_check3(fun, dst, src, len) \ ((__ssp_bos0(dst) != (size_t)-1) ? \ __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)) : \ __ ## fun ## _ichk(dst, src, len)) #define __ssp_bos_check2(fun, dst, src) \ ((__ssp_bos0(dst) != (size_t)-1) ? \ __builtin___ ## fun ## _chk(dst, src, __ssp_bos0(dst)) : \ __ ## fun ## _ichk(dst, src)) #define __ssp_bos_icheck3_restrict(fun, type1, type2) \ static __inline type1 __ ## fun ## _ichk(type1 __restrict, type2 __restrict, size_t); \ static __inline __attribute__((__always_inline__)) type1 \ __ ## fun ## _ichk(type1 __restrict dst, type2 __restrict src, size_t len) { \ return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \ } #define __ssp_bos_icheck3(fun, type1, type2) \ static __inline type1 __ ## fun ## _ichk(type1, type2, size_t); \ static __inline __attribute__((__always_inline__)) type1 \ __ ## fun ## _ichk(type1 dst, type2 src, size_t len) { \ return __builtin___ ## fun ## _chk(dst, src, len, __ssp_bos0(dst)); \ } #define __ssp_bos_icheck2_restrict(fun, type1, type2) \ static __inline type1 __ ## fun ## _ichk(type1, type2); \ static __inline __attribute__((__always_inline__)) type1 \ __ ## fun ## _ichk(type1 __restrict dst, type2 __restrict src) { \ return __builtin___ ## fun ## _chk(dst, src, __ssp_bos0(dst)); \ } __BEGIN_DECLS __ssp_bos_icheck3_restrict(memcpy, void *, const void *) __ssp_bos_icheck3(memmove, void *, const void *) __ssp_bos_icheck3(memset, void *, int) __ssp_bos_icheck2_restrict(stpcpy, char *, const char *) #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4,8) || defined(__clang__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 87 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 __ssp_bos_icheck3_restrict(stpncpy, char *, const char *) #endif # 89 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 __ssp_bos_icheck2_restrict(strcpy, char *, const char *) __ssp_bos_icheck2_restrict(strcat, char *, const char *) __ssp_bos_icheck3_restrict(strncpy, char *, const char *) __ssp_bos_icheck3_restrict(strncat, char *, const char *) __END_DECLS #define memcpy(dst, src, len) __ssp_bos_check3(memcpy, dst, src, len) #define memmove(dst, src, len) __ssp_bos_check3(memmove, dst, src, len) #define memset(dst, val, len) __ssp_bos_check3(memset, dst, val, len) #define stpcpy(dst, src) __ssp_bos_check2(stpcpy, dst, src) #if 0 /* disabled by -frewrite-includes */ #if __GNUC_PREREQ__(4,8) || defined(__clang__) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 100 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 #define stpncpy(dst, src, len) __ssp_bos_check3(stpncpy, dst, src, len) #endif # 102 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 #define strcpy(dst, src) __ssp_bos_check2(strcpy, dst, src) #define strcat(dst, src) __ssp_bos_check2(strcat, dst, src) #define strncpy(dst, src, len) __ssp_bos_check3(strncpy, dst, src, len) #define strncat(dst, src, len) __ssp_bos_check3(strncat, dst, src, len) #endif /* __SSP_FORTIFY_LEVEL > 0 */ # 108 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 #endif /* _SSP_STRING_H_ */ # 109 "/usr/obj/evbarm64/destdir.evbarm/usr/include/ssp/string.h" 3 4 # 128 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 2 3 4 #endif # 129 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 #endif /* !defined(_STRING_H_) */ # 130 "/usr/obj/evbarm64/destdir.evbarm/usr/include/string.h" 3 4 # 34 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* disabled by -frewrite-includes */ #if defined(_WIN32) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 36 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* expanded by -frewrite-includes */ #include "WindowsMMap.h" #endif /* expanded by -frewrite-includes */ # 36 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 37 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #else # 38 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 38 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" 1 /* $NetBSD: mman.h,v 1.62 2019/12/06 19:37:43 christos Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)mman.h 8.2 (Berkeley) 1/9/95 */ #ifndef _SYS_MMAN_H_ #define _SYS_MMAN_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.1 2014/08/10 05:47:37 matt Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 3 4 # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 1 3 4 /* $NetBSD: ansi.h,v 1.18 2019/05/07 03:49:26 kamil Exp $ */ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 3 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/arm/ansi.h" 3 4 # 4 "/usr/obj/evbarm64/destdir.evbarm/usr/include/machine/ansi.h" 2 3 4 # 40 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" 2 #ifdef _BSD_SIZE_T_ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif # 45 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 46 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" # 47 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" #ifndef mode_t typedef __mode_t mode_t; #define mode_t __mode_t #endif # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" #ifndef off_t typedef __off_t off_t; /* file offset */ #define off_t __off_t #endif # 57 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" /* * Protections are chosen from these bits, or-ed together */ #define PROT_NONE 0x00 /* no permissions */ #define PROT_READ 0x01 /* pages can be read */ #define PROT_WRITE 0x02 /* pages can be written */ #define PROT_EXEC 0x04 /* pages can be executed */ #ifdef _NETBSD_SOURCE /* * PAX mprotect prohibits setting protection bits * missing from the original mmap call unless explicitly * requested with PROT_MPROTECT. */ #define PROT_MPROTECT(x) ((x) << 3) #define PROT_MPROTECT_EXTRACT(x) (((x) >> 3) & 0x7) #endif # 76 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" /* * Flags contain sharing type and options. * Sharing types; choose one. */ #define MAP_SHARED 0x0001 /* share changes */ #define MAP_PRIVATE 0x0002 /* changes are private */ /* old MAP_COPY 0x0004 "copy" region at mmap time */ /* * Other flags */ #define MAP_REMAPDUP 0x0004 /* mremap only: duplicate the mapping */ #define MAP_FIXED 0x0010 /* map addr must be exactly as requested */ #define MAP_RENAME 0x0020 /* Sun: rename private pages to file */ #define MAP_NORESERVE 0x0040 /* Sun: don't reserve needed swap area */ #define MAP_INHERIT 0x0080 /* region is retained after exec */ #define MAP_HASSEMAPHORE 0x0200 /* region may contain semaphores */ #define MAP_TRYFIXED 0x0400 /* attempt hint address, even within break */ #define MAP_WIRED 0x0800 /* mlock() mapping when it is established */ /* * Mapping type */ #define MAP_FILE 0x0000 /* map from file (default) */ #define MAP_ANONYMOUS 0x1000 /* allocated from memory, swap space */ #define MAP_ANON MAP_ANONYMOUS #define MAP_STACK 0x2000 /* allocated from memory, swap space (stack) */ /* * Alignment (expressed in log2). Must be >= log2(PAGE_SIZE) and * < # bits in a pointer (32 or 64). */ #define MAP_ALIGNED(n) ((int)((unsigned int)(n) << MAP_ALIGNMENT_SHIFT)) #define MAP_ALIGNMENT_SHIFT 24 #define MAP_ALIGNMENT_MASK MAP_ALIGNED(0xff) #define MAP_ALIGNMENT_64KB MAP_ALIGNED(16) /* 2^16 */ #define MAP_ALIGNMENT_16MB MAP_ALIGNED(24) /* 2^24 */ #define MAP_ALIGNMENT_4GB MAP_ALIGNED(32) /* 2^32 */ #define MAP_ALIGNMENT_1TB MAP_ALIGNED(40) /* 2^40 */ #define MAP_ALIGNMENT_256TB MAP_ALIGNED(48) /* 2^48 */ #define MAP_ALIGNMENT_64PB MAP_ALIGNED(56) /* 2^56 */ #ifdef _NETBSD_SOURCE #define MAP_FMT "\177\020" \ "b\0" "SHARED\0" \ "b\1" "PRIVATE\0" \ "b\2" "COPY\0" \ "b\4" "FIXED\0" \ "b\5" "RENAME\0" \ "b\6" "NORESERVE\0" \ "b\7" "INHERIT\0" \ "b\11" "HASSEMAPHORE\0" \ "b\12" "TRYFIXED\0" \ "b\13" "WIRED\0" \ "F\14\1\0" \ ":\0" "FILE\0" \ ":\1" "ANONYMOUS\0" \ "b\15" "STACK\0" \ "F\30\010\0" \ ":\000" "ALIGN=NONE\0" \ ":\012" "ALIGN=1KB\0" \ ":\013" "ALIGN=2KB\0" \ ":\014" "ALIGN=4KB\0" \ ":\015" "ALIGN=8KB\0" \ ":\016" "ALIGN=16KB\0" \ ":\017" "ALIGN=32KB\0" \ ":\020" "ALIGN=64KB\0" \ ":\021" "ALIGN=128KB\0" \ ":\022" "ALIGN=256KB\0" \ ":\023" "ALIGN=512KB\0" \ ":\024" "ALIGN=1MB\0" \ ":\025" "ALIGN=2MB\0" \ ":\026" "ALIGN=4MB\0" \ ":\027" "ALIGN=8MB\0" \ ":\030" "ALIGN=16MB\0" \ ":\034" "ALIGN=256MB\0" \ ":\040" "ALIGN=4GB\0" \ ":\044" "ALIGN=64GB\0" \ ":\050" "ALIGN=1TB\0" \ ":\054" "ALIGN=16TB\0" \ ":\060" "ALIGN=256TB\0" \ ":\064" "ALIGN=4PB\0" \ ":\070" "ALIGN=64PB\0" \ ":\074" "ALIGN=256PB\0" \ "*" "ALIGN=2^%ju\0" #endif # 163 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" /* * Error indicator returned by mmap(2) */ #define MAP_FAILED ((void *) -1) /* mmap() failed */ /* * Flags to msync */ #define MS_ASYNC 0x01 /* perform asynchronous writes */ #define MS_INVALIDATE 0x02 /* invalidate cached data */ #define MS_SYNC 0x04 /* perform synchronous writes */ /* * Flags to mlockall */ #define MCL_CURRENT 0x01 /* lock all pages currently mapped */ #define MCL_FUTURE 0x02 /* lock all pages mapped in the future */ /* * POSIX memory advisory values. * Note: keep consistent with the original definitions below. */ #define POSIX_MADV_NORMAL 0 /* No further special treatment */ #define POSIX_MADV_RANDOM 1 /* Expect random page references */ #define POSIX_MADV_SEQUENTIAL 2 /* Expect sequential page references */ #define POSIX_MADV_WILLNEED 3 /* Will need these pages */ #define POSIX_MADV_DONTNEED 4 /* Don't need these pages */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 193 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" /* * Original advice values, equivalent to POSIX definitions, * and few implementation-specific ones. */ #define MADV_NORMAL POSIX_MADV_NORMAL #define MADV_RANDOM POSIX_MADV_RANDOM #define MADV_SEQUENTIAL POSIX_MADV_SEQUENTIAL #define MADV_WILLNEED POSIX_MADV_WILLNEED #define MADV_DONTNEED POSIX_MADV_DONTNEED #define MADV_SPACEAVAIL 5 /* Insure that resources are reserved */ #define MADV_FREE 6 /* Pages are empty, free them */ /* * Flags to minherit */ #define MAP_INHERIT_SHARE 0 /* share with child */ #define MAP_INHERIT_COPY 1 /* copy into child */ #define MAP_INHERIT_NONE 2 /* absent from child */ #define MAP_INHERIT_DONATE_COPY 3 /* copy and delete -- not implemented in UVM */ #define MAP_INHERIT_ZERO 4 /* zero in child */ #define MAP_INHERIT_DEFAULT MAP_INHERIT_COPY #endif # 216 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 219 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" # 220 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" __BEGIN_DECLS void * mmap(void *, size_t, int, int, int, off_t); int munmap(void *, size_t); int mprotect(void *, size_t, int); #ifndef __LIBC12_SOURCE__ int msync(void *, size_t, int) __RENAME(__msync13); #endif # 228 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" int mlock(const void *, size_t); int munlock(const void *, size_t); int mlockall(int); int munlockall(void); #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 233 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" int madvise(void *, size_t, int); int mincore(void *, size_t, char *); int minherit(void *, size_t, int); void * mremap(void *, size_t, void *, size_t, int); #endif # 238 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" int posix_madvise(void *, size_t, int); int shm_open(const char *, int, mode_t); int shm_unlink(const char *); __END_DECLS #endif /* !_KERNEL */ # 244 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" #endif /* !_SYS_MMAN_H_ */ # 246 "/usr/home/sme/sandbox/usr/src/sys/sys/mman.h" # 39 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 39 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" 1 /* $NetBSD: file.h,v 1.86 2020/05/02 18:43:02 christos Exp $ */ /*- * Copyright (c) 2009 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Andrew Doran. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ /* * Copyright (c) 1982, 1986, 1989, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)file.h 8.3 (Berkeley) 1/9/95 */ #ifndef _SYS_FILE_H_ #define _SYS_FILE_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 66 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" 1 /* $NetBSD: fcntl.h,v 1.54 2020/03/30 20:17:42 kamil Exp $ */ /*- * Copyright (c) 1983, 1990, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. * All or some portions of this file are derived from material licensed * to the University of California by American Telephone and Telegraph * Co. or Unix System Laboratories, Inc. and are reproduced herein with * the permission of UNIX System Laboratories, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 */ #ifndef _SYS_FCNTL_H_ #define _SYS_FCNTL_H_ /* * This file includes the definitions for open and fcntl * described by POSIX for ; it also includes * related kernel definitions. */ #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" # 50 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 50 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" # 51 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_XOPEN_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 52 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" # 53 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #endif /* _XOPEN_SOURCE */ # 54 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #endif /* !_KERNEL */ # 55 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * File status flags: these are used by open(2), fcntl(2). * They are also used (indirectly) in the kernel file structure f_flags, * which is a superset of the open/fcntl flags. Open flags and f_flags * are inter-convertible using OFLAGS(fflags) and FFLAGS(oflags). * Open/fcntl flags begin with O_; kernel-internal flags begin with F. */ /* open-only flags */ #define O_RDONLY 0x00000000 /* open for reading only */ #define O_WRONLY 0x00000001 /* open for writing only */ #define O_RDWR 0x00000002 /* open for reading and writing */ #define O_ACCMODE 0x00000003 /* mask for above modes */ /* * Kernel encoding of open mode; separate read and write bits that are * independently testable: 1 greater than the above. * * XXX * FREAD and FWRITE are excluded from the #ifdef _KERNEL so that TIOCFLUSH, * which was documented to use FREAD/FWRITE, continues to work. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 78 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define FREAD 0x00000001 #define FWRITE 0x00000002 #endif # 81 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_NONBLOCK 0x00000004 /* no delay */ #define O_APPEND 0x00000008 /* set append mode */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 84 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_SHLOCK 0x00000010 /* open with shared file lock */ #define O_EXLOCK 0x00000020 /* open with exclusive file lock */ #define O_ASYNC 0x00000040 /* signal pgrp when data ready */ #endif # 88 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199309L || \ (defined(_XOPEN_SOURCE) && defined(_XOPEN_SOURCE_EXTENDED)) || \ (_XOPEN_SOURCE - 0) >= 500 || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 91 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_SYNC 0x00000080 /* synchronous writes */ #endif # 93 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 94 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_NOFOLLOW 0x00000100 /* don't follow symlinks on the last */ /* path component */ #endif # 97 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_CREAT 0x00000200 /* create if nonexistent */ #define O_TRUNC 0x00000400 /* truncate to zero length */ #define O_EXCL 0x00000800 /* error if already exists */ /* defined by POSIX 1003.1; BSD default, but required to be bitwise distinct */ #define O_NOCTTY 0x00008000 /* don't assign controlling terminal */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 199309L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 106 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_DSYNC 0x00010000 /* write: I/O data completion */ #define O_RSYNC 0x00020000 /* read: I/O completion as for write */ #endif # 109 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 111 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_ALT_IO 0x00040000 /* use alternate i/o semantics */ #define O_DIRECT 0x00080000 /* direct I/O hint */ #endif # 114 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_DIRECTORY 0x00200000 /* fail if not a directory */ #define O_CLOEXEC 0x00400000 /* set close on exec */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 119 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_SEARCH 0x00800000 /* skip search permission checks */ #endif # 121 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 122 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define O_NOSIGPIPE 0x01000000 /* don't deliver sigpipe */ #define O_REGULAR 0x02000000 /* fail if not a regular file */ #define O_EXEC 0x04000000 /* open for executing only */ #endif # 126 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #ifdef _KERNEL /* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */ #define FFLAGS(oflags) ((oflags) + 1) #define OFLAGS(fflags) ((fflags) - 1) /* all bits settable during open(2) */ #define O_MASK (O_ACCMODE|O_NONBLOCK|O_APPEND|O_SHLOCK|O_EXLOCK|\ O_ASYNC|O_SYNC|O_CREAT|O_TRUNC|O_EXCL|O_DSYNC|\ O_RSYNC|O_NOCTTY|O_ALT_IO|O_NOFOLLOW|O_DIRECT|\ O_DIRECTORY|O_CLOEXEC|O_NOSIGPIPE|O_REGULAR|O_EXEC) #define FEXEC O_EXEC #define FMARK 0x00001000 /* mark during gc() */ #define FDEFER 0x00002000 /* defer for next gc pass */ #define FHASLOCK 0x00004000 /* descriptor holds advisory lock */ #define FSCAN 0x00100000 /* scan during gc passes */ #define FSILENT 0x40000000 /* suppress kernel error messages */ #define FKIOCTL 0x80000000 /* kernel originated ioctl */ /* bits settable by fcntl(F_SETFL, ...) */ #define FCNTLFLAGS (FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FDSYNC|FRSYNC|FALTIO|\ FDIRECT|FNOSIGPIPE) /* bits to save after open(2) */ #define FMASK (FREAD|FWRITE|FCNTLFLAGS|FEXEC) #endif /* _KERNEL */ # 151 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * The O_* flags used to have only F* names, which were used in the kernel * and by fcntl. We retain the F* names for the kernel f_flags field * and for backward compatibility for fcntl. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 158 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define FAPPEND O_APPEND /* kernel/compat */ #define FASYNC O_ASYNC /* kernel/compat */ #define O_FSYNC O_SYNC /* compat */ #define FNDELAY O_NONBLOCK /* compat */ #define O_NDELAY O_NONBLOCK /* compat */ #endif # 164 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 165 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define FNOSIGPIPE O_NOSIGPIPE /* kernel */ #define FNONBLOCK O_NONBLOCK /* kernel */ #define FFSYNC O_SYNC /* kernel */ #define FDSYNC O_DSYNC /* kernel */ #define FRSYNC O_RSYNC /* kernel */ #define FALTIO O_ALT_IO /* kernel */ #define FDIRECT O_DIRECT /* kernel */ #endif # 173 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * Constants used for fcntl(2) */ /* command values */ #define F_DUPFD 0 /* duplicate file descriptor */ #define F_GETFD 1 /* get file descriptor flags */ #define F_SETFD 2 /* set file descriptor flags */ #define F_GETFL 3 /* get file status flags */ #define F_SETFL 4 /* set file status flags */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 500 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 186 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_GETOWN 5 /* get SIGIO/SIGURG proc/pgrp */ #define F_SETOWN 6 /* set SIGIO/SIGURG proc/pgrp */ #endif # 189 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_GETLK 7 /* get record locking information */ #define F_SETLK 8 /* set record locking information */ #define F_SETLKW 9 /* F_SETLK; wait if blocked */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 193 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_CLOSEM 10 /* close all fds >= to the one given */ #define F_MAXFD 11 /* return the max open fd */ #endif # 196 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 197 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_DUPFD_CLOEXEC 12 /* close on exec duplicated fd */ #endif # 199 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 200 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_GETNOSIGPIPE 13 /* get SIGPIPE disposition */ #define F_SETNOSIGPIPE 14 /* set SIGPIPE disposition */ #define F_GETPATH 15 /* get pathname associated with fd */ #endif # 204 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* file descriptor flags (F_GETFD, F_SETFD) */ #define FD_CLOEXEC 1 /* close-on-exec flag */ /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */ #define F_RDLCK 1 /* shared or read lock */ #define F_UNLCK 2 /* unlock */ #define F_WRLCK 3 /* exclusive or write lock */ #ifdef _KERNEL #define F_WAIT 0x010 /* Wait until lock is granted */ #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ #define F_POSIX 0x040 /* Use POSIX semantics for lock */ #endif # 217 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* Constants for fcntl's passed to the underlying fs - like ioctl's. */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 220 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define F_PARAM_MASK 0xfff #define F_PARAM_LEN(x) (((x) >> 16) & F_PARAM_MASK) #define F_PARAM_MAX 4095 #define F_FSCTL (int)0x80000000 /* This fcntl goes to the fs */ #define F_FSVOID (int)0x40000000 /* no parameters */ #define F_FSOUT (int)0x20000000 /* copy out parameter */ #define F_FSIN (int)0x10000000 /* copy in parameter */ #define F_FSINOUT (F_FSIN | F_FSOUT) #define F_FSDIRMASK (int)0x70000000 /* mask for IN/OUT/VOID */ #define F_FSPRIV (int)0x00008000 /* command is fs-specific */ /* * Define command macros for operations which, if implemented, must be * the same for all fs's. */ #define _FCN(inout, num, len) \ (F_FSCTL | inout | ((len & F_PARAM_MASK) << 16) | (num)) #define _FCNO(c) _FCN(F_FSVOID, (c), 0) #define _FCNR(c, t) _FCN(F_FSIN, (c), (int)sizeof(t)) #define _FCNW(c, t) _FCN(F_FSOUT, (c), (int)sizeof(t)) #define _FCNRW(c, t) _FCN(F_FSINOUT, (c), (int)sizeof(t)) /* * Define command macros for fs-specific commands. */ #define _FCN_FSPRIV(inout, fs, num, len) \ (F_FSCTL | F_FSPRIV | inout | ((len & F_PARAM_MASK) << 16) | \ (fs) << 8 | (num)) #define _FCNO_FSPRIV(f, c) _FCN_FSPRIV(F_FSVOID, (f), (c), 0) #define _FCNR_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSIN, (f), (c), (int)sizeof(t)) #define _FCNW_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSOUT, (f), (c), (int)sizeof(t)) #define _FCNRW_FSPRIV(f, c, t) _FCN_FSPRIV(F_FSINOUT, (f), (c), (int)sizeof(t)) #endif /* _NETBSD_SOURCE */ # 254 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * Advisory file segment locking data type - * information passed to system by user */ struct flock { off_t l_start; /* starting offset */ off_t l_len; /* len = 0 means until end of file */ pid_t l_pid; /* lock owner */ short l_type; /* lock type: read/write, etc. */ short l_whence; /* type of l_start */ }; #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 269 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* lock operations for flock(2) */ #define LOCK_SH 0x01 /* shared file lock */ #define LOCK_EX 0x02 /* exclusive file lock */ #define LOCK_NB 0x04 /* don't block when locking */ #define LOCK_UN 0x08 /* unlock file */ #endif # 275 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* Always ensure that these are consistent with and ! */ #ifndef SEEK_SET #define SEEK_SET 0 /* set file offset to offset */ #endif # 280 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #ifndef SEEK_CUR #define SEEK_CUR 1 /* set file offset to current plus offset */ #endif # 283 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #ifndef SEEK_END #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif # 286 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * posix_advise advisories. */ #define POSIX_FADV_NORMAL 0 /* default advice / no advice */ #define POSIX_FADV_RANDOM 1 /* random access */ #define POSIX_FADV_SEQUENTIAL 2 /* sequential access(lower to higher) */ #define POSIX_FADV_WILLNEED 3 /* be needed in near future */ #define POSIX_FADV_DONTNEED 4 /* not be needed in near future */ #define POSIX_FADV_NOREUSE 5 /* be accessed once */ /* * Constants for X/Open Extended API set 2 (a.k.a. C063) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 303 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #define AT_FDCWD -100 /* Use cwd for relative link target */ #define AT_EACCESS 0x100 /* Use euig/egid for access checks */ #define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symlinks */ #define AT_SYMLINK_FOLLOW 0x400 /* Follow symlinks */ #define AT_REMOVEDIR 0x800 /* Remove directory only */ #endif # 309 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #ifndef _KERNEL #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 312 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" # 313 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" __BEGIN_DECLS int open(const char *, int, ...); int creat(const char *, mode_t); int fcntl(int, int, ...); #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 319 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" int flock(int, int); #endif /* _NETBSD_SOURCE */ # 321 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" int posix_fadvise(int, off_t, off_t, int); /* * The Open Group Base Specifications, Issue 6; IEEE Std 1003.1-2001 (POSIX) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200112L || (_XOPEN_SOURCE - 0) >= 600 || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 328 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" int posix_fallocate(int, off_t, off_t); #endif # 330 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" /* * X/Open Extended API set 2 (a.k.a. C063) */ #if 0 /* disabled by -frewrite-includes */ #if (_POSIX_C_SOURCE - 0) >= 200809L || (_XOPEN_SOURCE - 0 >= 700) || \ defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 336 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" int openat(int, const char *, int, ...); #endif # 338 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" __END_DECLS #endif /* !_KERNEL */ # 341 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" #endif /* !_SYS_FCNTL_H_ */ # 343 "/usr/home/sme/sandbox/usr/src/sys/sys/fcntl.h" # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" 2 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" 1 /* $NetBSD: unistd.h,v 1.63 2020/05/16 18:31:53 christos Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @(#)unistd.h 8.2 (Berkeley) 1/7/94 */ #ifndef _SYS_UNISTD_H_ #define _SYS_UNISTD_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 37 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" # 1 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" 1 /* $NetBSD: featuretest.h,v 1.10 2013/04/26 18:29:06 christos Exp $ */ /* * Written by Klaus Klein , February 2, 1998. * Public domain. * * NOTE: Do not protect this header against multiple inclusion. Doing * so can have subtle side-effects due to header file inclusion order * and testing of e.g. _POSIX_SOURCE vs. _POSIX_C_SOURCE. Instead, * protect each CPP macro that we want to supply. */ /* * Feature-test macros are defined by several standards, and allow an * application to specify what symbols they want the system headers to * expose, and hence what standard they want them to conform to. * There are two classes of feature-test macros. The first class * specify complete standards, and if one of these is defined, header * files will try to conform to the relevant standard. They are: * * ANSI macros: * _ANSI_SOURCE ANSI C89 * * POSIX macros: * _POSIX_SOURCE == 1 IEEE Std 1003.1 (version?) * _POSIX_C_SOURCE == 1 IEEE Std 1003.1-1990 * _POSIX_C_SOURCE == 2 IEEE Std 1003.2-1992 * _POSIX_C_SOURCE == 199309L IEEE Std 1003.1b-1993 * _POSIX_C_SOURCE == 199506L ISO/IEC 9945-1:1996 * _POSIX_C_SOURCE == 200112L IEEE Std 1003.1-2001 * _POSIX_C_SOURCE == 200809L IEEE Std 1003.1-2008 * * X/Open macros: * _XOPEN_SOURCE System Interfaces and Headers, Issue 4, Ver 2 * _XOPEN_SOURCE_EXTENDED == 1 XSH4.2 UNIX extensions * _XOPEN_SOURCE == 500 System Interfaces and Headers, Issue 5 * _XOPEN_SOURCE == 520 Networking Services (XNS), Issue 5.2 * _XOPEN_SOURCE == 600 IEEE Std 1003.1-2001, XSI option * _XOPEN_SOURCE == 700 IEEE Std 1003.1-2008, XSI option * * NetBSD macros: * _NETBSD_SOURCE == 1 Make all NetBSD features available. * * If more than one of these "major" feature-test macros is defined, * then the set of facilities provided (and namespace used) is the * union of that specified by the relevant standards, and in case of * conflict, the earlier standard in the above list has precedence (so * if both _POSIX_C_SOURCE and _NETBSD_SOURCE are defined, the version * of rename() that's used is the POSIX one). If none of the "major" * feature-test macros is defined, _NETBSD_SOURCE is assumed. * * There are also "minor" feature-test macros, which enable extra * functionality in addition to some base standard. They should be * defined along with one of the "major" macros. The "minor" macros * are: * * _REENTRANT * _ISOC99_SOURCE * _ISOC11_SOURCE * _LARGEFILE_SOURCE Large File Support * */ #if 0 /* disabled by -frewrite-includes */ #if defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 65 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _POSIX_C_SOURCE 1L #endif # 67 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #if 0 /* disabled by -frewrite-includes */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE) && \ !defined(_XOPEN_SOURCE) && !defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _NETBSD_SOURCE 1 #endif # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #if 0 /* disabled by -frewrite-includes */ #if ((_POSIX_C_SOURCE - 0) >= 199506L || (_XOPEN_SOURCE - 0) >= 500) && \ !defined(_REENTRANT) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 75 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" #define _REENTRANT #endif # 77 "/usr/home/sme/sandbox/usr/src/sys/sys/featuretest.h" # 38 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" 2 /* compile-time symbolic constants */ #define _POSIX_JOB_CONTROL 1 /* implementation supports job control */ /* * According to POSIX 1003.1: * "The saved set-user-ID capability allows a program to regain the * effective user ID established at the last exec call." * However, the setuid/setgid function as specified by POSIX 1003.1 does * not allow changing the effective ID from the super-user without also * changed the saved ID, so it is impossible to get super-user privileges * back later. Instead we provide this feature independent of the current * effective ID through the seteuid/setegid function. In addition, we do * not use the saved ID as specified by POSIX 1003.1 in setuid/setgid, * because this would make it impossible for a set-user-ID executable * owned by a user other than the super-user to permanently revoke its * extra privileges. */ #ifdef _NOT_AVAILABLE #define _POSIX_SAVED_IDS 1 /* saved set-user-ID and set-group-ID */ #endif # 61 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" #define _POSIX_VERSION 200112L #define _POSIX2_VERSION 200112L /* * We support the posix_spawn() family of functions (unconditionally). */ #define _POSIX_SPAWN 200809L /* execution-time symbolic constants */ /* * POSIX options and option groups we unconditionally do or don't * implement. Those options which are implemented (or not) entirely * in user mode are defined in . Please keep this list in * alphabetical order. * * Anything which is defined as zero below **must** have an * implementation for the corresponding sysconf() which is able to * determine conclusively whether or not the feature is supported. * Anything which is defined as other than -1 below **must** have * complete headers, types, and function declarations as specified by * the POSIX standard; however, if the relevant sysconf() function * returns -1, the functions may be stubbed out. */ /* Advisory information */ #undef _POSIX_ADVISORY_INFO /* asynchronous I/O is available */ #define _POSIX_ASYNCHRONOUS_IO 200112L /* barriers */ #define _POSIX_BARRIERS 200112L /* chown requires correct privileges */ #define _POSIX_CHOWN_RESTRICTED 1 /* clock selection */ #define _POSIX_CLOCK_SELECTION -1 /* cputime clock */ #define _POSIX_CPUTIME 200112L /* CPU type */ #undef _POSIX_CPUTYPE /* file synchronization is available */ #define _POSIX_FSYNC 1 /* support IPv6 */ #define _POSIX_IPV6 0 /* job control is available */ #define _POSIX_JOB_CONTROL 1 /* memory mapped files */ #define _POSIX_MAPPED_FILES 1 /* memory locking whole address space */ #define _POSIX_MEMLOCK 1 /* memory locking address ranges */ #define _POSIX_MEMLOCK_RANGE 1 /* memory access protections */ #define _POSIX_MEMORY_PROTECTION 1 /* message passing is available */ #define _POSIX_MESSAGE_PASSING 200112L /* monotonic clock */ #define _POSIX_MONOTONIC_CLOCK 200112L /* too-long path comp generate errors */ #define _POSIX_NO_TRUNC 1 /* prioritized I/O */ #define _POSIX_PRIORITIZED_IO -1 /* priority scheduling */ #define _POSIX_PRIORITY_SCHEDULING 200112L /* raw sockets */ #define _POSIX_RAW_SOCKETS 200112L /* read/write locks */ #define _POSIX_READER_WRITER_LOCKS 200112L /* realtime signals */ #undef _POSIX_REALTIME_SIGNALS /* regular expressions */ #define _POSIX_REGEXP 1 /* semaphores */ #define _POSIX_SEMAPHORES 0 /* shared memory objects */ #define _POSIX_SHARED_MEMORY_OBJECTS 0 /* shell */ #define _POSIX_SHELL 1 /* spin locks */ #define _POSIX_SPIN_LOCKS 200112L /* sporadic server */ #undef _POSIX_SPORADIC_SERVER /* synchronized I/O is available */ #define _POSIX_SYNCHRONIZED_IO 1 /* threads */ #define _POSIX_THREADS 200112L /* pthread_attr for stack size */ #define _POSIX_THREAD_ATTR_STACKSIZE 200112L /* pthread_attr for stack address */ #define _POSIX_THREAD_ATTR_STACKADDR 200112L /* thread cputime clock */ #define _POSIX_THREAD_CPUTIME 200112L /* _r functions */ #define _POSIX_THREAD_PRIO_PROTECT 200112L /* PTHREAD_PRIO_PROTECT */ #define _POSIX_THREAD_SAFE_FUNCTIONS 200112L /* timeouts */ #undef _POSIX_TIMEOUTS /* timers */ #define _POSIX_TIMERS 200112L /* typed memory objects */ #undef _POSIX_TYPED_MEMORY_OBJECTS /* may disable terminal spec chars */ #define _POSIX_VDISABLE __CAST(unsigned char, '\377') /* C binding */ #define _POSIX2_C_BIND 200112L /* XPG4.2 shared memory */ #define _XOPEN_SHM 0 /* access function */ #define F_OK 0 /* test for existence of file */ #define X_OK 0x01 /* test for execute or search permission */ #define W_OK 0x02 /* test for write permission */ #define R_OK 0x04 /* test for read permission */ /* whence values for lseek(2) */ #define SEEK_SET 0 /* set file offset to offset */ #define SEEK_CUR 1 /* set file offset to current plus offset */ #define SEEK_END 2 /* set file offset to EOF plus offset */ #if 0 /* disabled by -frewrite-includes */ #if defined(_NETBSD_SOURCE) #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 183 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" /* whence values for lseek(2); renamed by POSIX 1003.1 */ #define L_SET SEEK_SET #define L_INCR SEEK_CUR #define L_XTND SEEK_END /* * fsync_range values. * * Note the following flag values were chosen to not overlap * values for SEEK_XXX flags. While not currently implemented, * it is possible to extend this call to respect SEEK_CUR and * SEEK_END offset addressing modes. */ #define FDATASYNC 0x0010 /* sync data and minimal metadata */ #define FFILESYNC 0x0020 /* sync data and metadata */ #define FDISKSYNC 0x0040 /* flush disk caches after sync */ #endif # 200 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" /* configurable pathname variables; use as argument to pathconf(3) */ #define _PC_LINK_MAX 1 #define _PC_MAX_CANON 2 #define _PC_MAX_INPUT 3 #define _PC_NAME_MAX 4 #define _PC_PATH_MAX 5 #define _PC_PIPE_BUF 6 #define _PC_CHOWN_RESTRICTED 7 #define _PC_NO_TRUNC 8 #define _PC_VDISABLE 9 #define _PC_SYNC_IO 10 #define _PC_FILESIZEBITS 11 #define _PC_SYMLINK_MAX 12 #define _PC_2_SYMLINKS 13 #define _PC_ACL_EXTENDED 14 /* From OpenSolaris, used by SEEK_DATA/SEEK_HOLE. */ #define _PC_MIN_HOLE_SIZE 15 #ifdef _NETBSD_SOURCE #define _PC_ACL_PATH_MAX 16 #define _PC_ACL_NFS4 17 #endif # 224 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" /* configurable system variables; use as argument to sysconf(3) */ /* * XXX The value of _SC_CLK_TCK is embedded in . * XXX The value of _SC_PAGESIZE is embedded in . */ #define _SC_ARG_MAX 1 #define _SC_CHILD_MAX 2 #define _O_SC_CLK_TCK 3 /* Old version, always 100 */ #define _SC_NGROUPS_MAX 4 #define _SC_OPEN_MAX 5 #define _SC_JOB_CONTROL 6 #define _SC_SAVED_IDS 7 #define _SC_VERSION 8 #define _SC_BC_BASE_MAX 9 #define _SC_BC_DIM_MAX 10 #define _SC_BC_SCALE_MAX 11 #define _SC_BC_STRING_MAX 12 #define _SC_COLL_WEIGHTS_MAX 13 #define _SC_EXPR_NEST_MAX 14 #define _SC_LINE_MAX 15 #define _SC_RE_DUP_MAX 16 #define _SC_2_VERSION 17 #define _SC_2_C_BIND 18 #define _SC_2_C_DEV 19 #define _SC_2_CHAR_TERM 20 #define _SC_2_FORT_DEV 21 #define _SC_2_FORT_RUN 22 #define _SC_2_LOCALEDEF 23 #define _SC_2_SW_DEV 24 #define _SC_2_UPE 25 #define _SC_STREAM_MAX 26 #define _SC_TZNAME_MAX 27 #define _SC_PAGESIZE 28 #define _SC_PAGE_SIZE _SC_PAGESIZE /* 1170 compatibility */ #define _SC_FSYNC 29 #define _SC_XOPEN_SHM 30 #define _SC_SYNCHRONIZED_IO 31 #define _SC_IOV_MAX 32 #define _SC_MAPPED_FILES 33 #define _SC_MEMLOCK 34 #define _SC_MEMLOCK_RANGE 35 #define _SC_MEMORY_PROTECTION 36 #define _SC_LOGIN_NAME_MAX 37 #define _SC_MONOTONIC_CLOCK 38 #define _SC_CLK_TCK 39 /* New, variable version */ #define _SC_ATEXIT_MAX 40 #define _SC_THREADS 41 #define _SC_SEMAPHORES 42 #define _SC_BARRIERS 43 #define _SC_TIMERS 44 #define _SC_SPIN_LOCKS 45 #define _SC_READER_WRITER_LOCKS 46 #define _SC_GETGR_R_SIZE_MAX 47 #define _SC_GETPW_R_SIZE_MAX 48 #define _SC_CLOCK_SELECTION 49 #define _SC_ASYNCHRONOUS_IO 50 #define _SC_AIO_LISTIO_MAX 51 #define _SC_AIO_MAX 52 #define _SC_MESSAGE_PASSING 53 #define _SC_MQ_OPEN_MAX 54 #define _SC_MQ_PRIO_MAX 55 #define _SC_PRIORITY_SCHEDULING 56 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 57 #define _SC_THREAD_KEYS_MAX 58 #define _SC_THREAD_STACK_MIN 59 #define _SC_THREAD_THREADS_MAX 60 #define _SC_THREAD_ATTR_STACKADDR 61 #define _SC_THREAD_ATTR_STACKSIZE 62 #define _SC_THREAD_PRIORITY_SCHEDULING 63 #define _SC_THREAD_PRIO_INHERIT 64 #define _SC_THREAD_PRIO_PROTECT 65 #define _SC_THREAD_PROCESS_SHARED 66 #define _SC_THREAD_SAFE_FUNCTIONS 67 #define _SC_TTY_NAME_MAX 68 #define _SC_HOST_NAME_MAX 69 #define _SC_PASS_MAX 70 #define _SC_REGEXP 71 #define _SC_SHELL 72 #define _SC_SYMLOOP_MAX 73 /* Actually, they are not supported or implemented yet */ #define _SC_V6_ILP32_OFF32 74 #define _SC_V6_ILP32_OFFBIG 75 #define _SC_V6_LP64_OFF64 76 #define _SC_V6_LPBIG_OFFBIG 77 #define _SC_2_PBS 80 #define _SC_2_PBS_ACCOUNTING 81 #define _SC_2_PBS_CHECKPOINT 82 #define _SC_2_PBS_LOCATE 83 #define _SC_2_PBS_MESSAGE 84 #define _SC_2_PBS_TRACK 85 /* These are implemented */ #define _SC_SPAWN 86 #define _SC_SHARED_MEMORY_OBJECTS 87 #define _SC_TIMER_MAX 88 #define _SC_SEM_NSEMS_MAX 89 #define _SC_CPUTIME 90 #define _SC_THREAD_CPUTIME 91 #define _SC_DELAYTIMER_MAX 92 #define _SC_SIGQUEUE_MAX 93 #define _SC_REALTIME_SIGNALS 94 #define _SC_RTSIG_MAX 95 /* Extensions found in Solaris and Linux. */ #define _SC_PHYS_PAGES 121 #ifdef _NETBSD_SOURCE /* Commonly provided sysconf() extensions */ #define _SC_NPROCESSORS_CONF 1001 #define _SC_NPROCESSORS_ONLN 1002 /* Native variables */ #define _SC_SCHED_RT_TS 2001 #define _SC_SCHED_PRI_MIN 2002 #define _SC_SCHED_PRI_MAX 2003 #endif /* _NETBSD_SOURCE */ # 342 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" /* configurable system strings */ #define _CS_PATH 1 #endif /* !_SYS_UNISTD_H_ */ # 347 "/usr/home/sme/sandbox/usr/src/sys/sys/unistd.h" # 68 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" 2 #if 0 /* disabled by -frewrite-includes */ #if defined(_KERNEL) || defined(_KMEMUSER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 70 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 71 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 71 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 72 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 73 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" struct proc; struct lwp; struct uio; struct iovec; struct stat; struct knote; struct uvm_object; struct fileops { const char *fo_name; int (*fo_read) (struct file *, off_t *, struct uio *, kauth_cred_t, int); int (*fo_write) (struct file *, off_t *, struct uio *, kauth_cred_t, int); int (*fo_ioctl) (struct file *, u_long, void *); int (*fo_fcntl) (struct file *, u_int, void *); int (*fo_poll) (struct file *, int); int (*fo_stat) (struct file *, struct stat *); int (*fo_close) (struct file *); int (*fo_kqfilter) (struct file *, struct knote *); void (*fo_restart) (struct file *); int (*fo_mmap) (struct file *, off_t *, size_t, int, int *, int *, struct uvm_object **, int *); void (*fo_spare2) (void); }; union file_data { struct vnode *fd_vp; // DTYPE_VNODE struct socket *fd_so; // DTYPE_SOCKET struct pipe *fd_pipe; // DTYPE_PIPE struct kqueue *fd_kq; // DTYPE_KQUEUE void *fd_data; // DTYPE_MISC struct audio_file *fd_audioctx; // DTYPE_MISC (audio) struct pad_softc *fd_pad; // DTYPE_MISC (pad) int fd_devunit; // DTYPE_MISC (tap) struct bpf_d *fd_bpf; // DTYPE_MISC (bpf) struct fcrypt *fd_fcrypt; // DTYPE_CRYPTO is not used struct mqueue *fd_mq; // DTYPE_MQUEUE struct ksem *fd_ks; // DTYPE_SEM struct iscsifd *fd_iscsi; // DTYPE_MISC (iscsi) }; /* * Kernel file descriptor. One entry for each open kernel vnode and * socket. * * This structure is exported via the KERN_FILE sysctl. * Only add members to the end, do not delete them. * * Note: new code should not use KERN_FILE; use KERN_FILE2 instead, * which exports struct kinfo_file instead; struct kinfo_file is * declared in sys/sysctl.h and is meant to be ABI-stable. */ struct file { off_t f_offset; /* first, is 64-bit */ kauth_cred_t f_cred; /* creds associated with descriptor */ const struct fileops *f_ops; union file_data f_undata; /* descriptor data, e.g. vnode/socket */ LIST_ENTRY(file) f_list; /* list of active files */ kmutex_t f_lock; /* lock on structure */ int f_flag; /* see fcntl.h */ u_int f_marker; /* traversal marker (sysctl) */ u_int f_type; /* descriptor type */ u_int f_advice; /* access pattern hint; UVM_ADV_* */ u_int f_count; /* reference count */ u_int f_msgcount; /* references from message queue */ u_int f_unpcount; /* deferred close: see uipc_usrreq.c */ SLIST_ENTRY(file) f_unplist; /* deferred close: see uipc_usrreq.c */ }; #define f_vnode f_undata.fd_vp #define f_socket f_undata.fd_so #define f_pipe f_undata.fd_pipe #define f_kqueue f_undata.fd_kq #define f_data f_undata.fd_data #define f_mqueue f_undata.fd_mq #define f_ksem f_undata.fd_ks #define f_rndctx f_undata.fd_rndctx #define f_audioctx f_undata.fd_audioctx #define f_pad f_undata.fd_pad #define f_devunit f_undata.fd_devunit #define f_bpf f_undata.fd_bpf #define f_fcrypt f_undata.fd_fcrypt #define f_iscsi f_undata.fd_iscsi #endif /* _KERNEL || _KMEMUSER */ # 160 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" /* * Descriptor types. */ #define DTYPE_VNODE 1 /* file */ #define DTYPE_SOCKET 2 /* communications endpoint */ #define DTYPE_PIPE 3 /* pipe */ #define DTYPE_KQUEUE 4 /* event queue */ #define DTYPE_MISC 5 /* misc file descriptor type */ #define DTYPE_CRYPTO 6 /* crypto */ #define DTYPE_MQUEUE 7 /* message queue */ #define DTYPE_SEM 8 /* semaphore */ #define DTYPE_NAMES \ "0", "file", "socket", "pipe", "kqueue", "misc", "crypto", "mqueue", \ "semaphore" #ifdef _KERNEL /* * Flags for fo_read and fo_write and do_fileread/write/v */ #define FOF_UPDATE_OFFSET 0x0001 /* update the file offset */ #define FOF_IOV_SYSSPACE 0x0100 /* iov structure in kernel memory */ LIST_HEAD(filelist, file); extern struct filelist filehead; /* head of list of open files */ extern u_int maxfiles; /* kernel limit on # of open files */ extern const struct fileops vnops; /* vnode operations for files */ int dofileread(int, struct file *, void *, size_t, off_t *, int, register_t *); int dofilewrite(int, struct file *, const void *, size_t, off_t *, int, register_t *); int do_filereadv(int, const struct iovec *, int, off_t *, int, register_t *); int do_filewritev(int, const struct iovec *, int, off_t *, int, register_t *); int fsetown(pid_t *, u_long, const void *); int fgetown(pid_t, u_long, void *); void fownsignal(pid_t, int, int, int, void *); /* Commonly used fileops */ int fnullop_fcntl(struct file *, u_int, void *); int fnullop_poll(struct file *, int); int fnullop_kqfilter(struct file *, struct knote *); int fbadop_read(struct file *, off_t *, struct uio *, kauth_cred_t, int); int fbadop_write(struct file *, off_t *, struct uio *, kauth_cred_t, int); int fbadop_ioctl(struct file *, u_long, void *); int fbadop_close(struct file *); int fbadop_stat(struct file *, struct stat *); void fnullop_restart(struct file *); #endif /* _KERNEL */ # 218 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" #endif /* _SYS_FILE_H_ */ # 220 "/usr/home/sme/sandbox/usr/src/sys/sys/file.h" # 40 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #endif # 41 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* disabled by -frewrite-includes */ #if defined(__FreeBSD__) && defined(__i386__) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 43 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #define I386_FREEBSD 1 #else # 45 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #define I386_FREEBSD 0 #endif # 47 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* disabled by -frewrite-includes */ #if !defined(_MSC_VER) && !I386_FREEBSD #endif #endif /* disabled by -frewrite-includes */ #if 1 /* evaluated by -frewrite-includes */ # 49 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 49 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" # 1 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 1 3 4 /* $NetBSD: stdint.h,v 1.8 2018/11/06 16:26:44 maya Exp $ */ /*- * Copyright (c) 2001, 2004 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Klaus Klein. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _SYS_STDINT_H_ #define _SYS_STDINT_H_ #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 35 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 36 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 37 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_INT8_T_ typedef __int8_t int8_t; #define _BSD_INT8_T_ #endif # 42 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_UINT8_T_ typedef __uint8_t uint8_t; #define _BSD_UINT8_T_ #endif # 47 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_INT16_T_ typedef __int16_t int16_t; #define _BSD_INT16_T_ #endif # 52 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_UINT16_T_ typedef __uint16_t uint16_t; #define _BSD_UINT16_T_ #endif # 57 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_INT32_T_ typedef __int32_t int32_t; #define _BSD_INT32_T_ #endif # 62 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_UINT32_T_ typedef __uint32_t uint32_t; #define _BSD_UINT32_T_ #endif # 67 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_INT64_T_ typedef __int64_t int64_t; #define _BSD_INT64_T_ #endif # 72 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_UINT64_T_ typedef __uint64_t uint64_t; #define _BSD_UINT64_T_ #endif # 77 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_INTPTR_T_ typedef __intptr_t intptr_t; #define _BSD_INTPTR_T_ #endif # 82 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #ifndef _BSD_UINTPTR_T_ typedef __uintptr_t uintptr_t; #define _BSD_UINTPTR_T_ #endif # 87 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 88 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 89 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \ (__cplusplus >= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 92 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 92 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 93 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #endif # 94 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* disabled by -frewrite-includes */ #if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) || \ (__cplusplus >= 201103L) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 97 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 97 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 98 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #endif # 99 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #if 0 /* expanded by -frewrite-includes */ #include #endif /* expanded by -frewrite-includes */ # 100 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 101 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 #endif /* !_SYS_STDINT_H_ */ # 103 "/usr/obj/evbarm64/destdir.evbarm/usr/include/stdint.h" 3 4 # 50 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" 2 #endif # 51 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" #if 0 /* disabled by -frewrite-includes */ #if defined(_MSC_VER) #endif #endif /* disabled by -frewrite-includes */ #if 0 /* evaluated by -frewrite-includes */ # 53 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" typedef unsigned char uint8_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; #if 0 /* disabled by -frewrite-includes */ #if 0 #elif I386_FREEBSD #endif #endif /* disabled by -frewrite-includes */ #elif 0 /* evaluated by -frewrite-includes */ # 57 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" /* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to * FreeBSD 10, r232261) when compiled in 32-bit mode. */ typedef unsigned char uint8_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; #endif # 64 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" /* #define DEBUG_GCDAPROFILING */ /* * --- GCOV file format I/O primitives --- */ /* * The current file name we're outputting. Used primarily for error logging. */ static char *filename = NULL; /* * The current file we're outputting. */ static FILE *output_file = NULL; /* * Buffer that we write things into. */ #define WRITE_BUFFER_SIZE (128 * 1024) static char *write_buffer = NULL; static uint64_t cur_buffer_size = 0; static uint64_t cur_pos = 0; static uint64_t file_size = 0; static int new_file = 0; static int fd = -1; /* * A list of functions to write out the data. */ typedef void (*writeout_fn)(); struct writeout_fn_node { writeout_fn fn; struct writeout_fn_node *next; }; static struct writeout_fn_node *writeout_fn_head = NULL; static struct writeout_fn_node *writeout_fn_tail = NULL; /* * A list of flush functions that our __gcov_flush() function should call. */ typedef void (*flush_fn)(); struct flush_fn_node { flush_fn fn; struct flush_fn_node *next; }; static struct flush_fn_node *flush_fn_head = NULL; static struct flush_fn_node *flush_fn_tail = NULL; static void resize_write_buffer(uint64_t size) { if (!new_file) return; size += cur_pos; if (size <= cur_buffer_size) return; size = (size - 1) / WRITE_BUFFER_SIZE + 1; size *= WRITE_BUFFER_SIZE; write_buffer = realloc(write_buffer, size); cur_buffer_size = size; } static void write_bytes(const char *s, size_t len) { resize_write_buffer(len); memcpy(&write_buffer[cur_pos], s, len); cur_pos += len; } static void write_32bit_value(uint32_t i) { write_bytes((char*)&i, 4); } static void write_64bit_value(uint64_t i) { write_bytes((char*)&i, 8); } static uint32_t length_of_string(const char *s) { return (strlen(s) / 4) + 1; } static void write_string(const char *s) { uint32_t len = length_of_string(s); write_32bit_value(len); write_bytes(s, strlen(s)); write_bytes("\0\0\0\0", 4 - (strlen(s) % 4)); } static uint32_t read_32bit_value() { uint32_t val; if (new_file) return (uint32_t)-1; val = *(uint32_t*)&write_buffer[cur_pos]; cur_pos += 4; return val; } static uint64_t read_64bit_value() { uint64_t val; if (new_file) return (uint64_t)-1; val = *(uint64_t*)&write_buffer[cur_pos]; cur_pos += 8; return val; } static char *mangle_filename(const char *orig_filename) { char *new_filename; size_t filename_len, prefix_len; int prefix_strip; int level = 0; const char *fname, *ptr; const char *prefix = getenv("GCOV_PREFIX"); const char *prefix_strip_str = getenv("GCOV_PREFIX_STRIP"); if (prefix == NULL || prefix[0] == '\0') return strdup(orig_filename); if (prefix_strip_str) { prefix_strip = atoi(prefix_strip_str); /* Negative GCOV_PREFIX_STRIP values are ignored */ if (prefix_strip < 0) prefix_strip = 0; } else { prefix_strip = 0; } fname = orig_filename; for (level = 0, ptr = fname + 1; level < prefix_strip; ++ptr) { if (*ptr == '\0') break; if (*ptr != '/') continue; fname = ptr; ++level; } filename_len = strlen(fname); prefix_len = strlen(prefix); new_filename = malloc(prefix_len + 1 + filename_len + 1); memcpy(new_filename, prefix, prefix_len); if (prefix[prefix_len - 1] != '/') new_filename[prefix_len++] = '/'; memcpy(new_filename + prefix_len, fname, filename_len + 1); return new_filename; } static int map_file() { fseek(output_file, 0L, SEEK_END); file_size = ftell(output_file); /* A size of 0 is invalid to `mmap'. Return a fail here, but don't issue an * error message because it should "just work" for the user. */ if (file_size == 0) return -1; write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, fd, 0); if (write_buffer == (void *)-1) { int errnum = errno; fprintf(stderr, "profiling: %s: cannot map: %s\n", filename, strerror(errnum)); return -1; } return 0; } static void unmap_file() { if (msync(write_buffer, file_size, MS_SYNC) == -1) { int errnum = errno; fprintf(stderr, "profiling: %s: cannot msync: %s\n", filename, strerror(errnum)); } /* We explicitly ignore errors from unmapping because at this point the data * is written and we don't care. */ (void)munmap(write_buffer, file_size); write_buffer = NULL; file_size = 0; } /* * --- LLVM line counter API --- */ /* A file in this case is a translation unit. Each .o file built with line * profiling enabled will emit to a different file. Only one file may be * started at a time. */ void llvm_gcda_start_file(const char *orig_filename, const char version[4], uint32_t checksum) { const char *mode = "r+b"; filename = mangle_filename(orig_filename); /* Try just opening the file. */ new_file = 0; fd = open(filename, O_RDWR); if (fd == -1) { /* Try opening the file, creating it if necessary. */ new_file = 1; mode = "w+b"; fd = open(filename, O_RDWR | O_CREAT, 0644); if (fd == -1) { /* Try creating the directories first then opening the file. */ __llvm_profile_recursive_mkdir(filename); fd = open(filename, O_RDWR | O_CREAT, 0644); if (fd == -1) { /* Bah! It's hopeless. */ int errnum = errno; fprintf(stderr, "profiling: %s: cannot open: %s\n", filename, strerror(errnum)); return; } } } /* Try to flock the file to serialize concurrent processes writing out to the * same GCDA. This can fail if the filesystem doesn't support it, but in that * case we'll just carry on with the old racy behaviour and hope for the best. */ flock(fd, LOCK_EX); output_file = fdopen(fd, mode); /* Initialize the write buffer. */ write_buffer = NULL; cur_buffer_size = 0; cur_pos = 0; if (new_file) { resize_write_buffer(WRITE_BUFFER_SIZE); memset(write_buffer, 0, WRITE_BUFFER_SIZE); } else { if (map_file() == -1) { /* mmap failed, try to recover by clobbering */ new_file = 1; write_buffer = NULL; cur_buffer_size = 0; resize_write_buffer(WRITE_BUFFER_SIZE); memset(write_buffer, 0, WRITE_BUFFER_SIZE); } } /* gcda file, version, stamp checksum. */ write_bytes("adcg", 4); write_bytes(version, 4); write_32bit_value(checksum); #ifdef DEBUG_GCDAPROFILING fprintf(stderr, "llvmgcda: [%s]\n", orig_filename); #endif # 324 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" } /* Given an array of pointers to counters (counters), increment the n-th one, * where we're also given a pointer to n (predecessor). */ void llvm_gcda_increment_indirect_counter(uint32_t *predecessor, uint64_t **counters) { uint64_t *counter; uint32_t pred; pred = *predecessor; if (pred == 0xffffffff) return; counter = counters[pred]; /* Don't crash if the pred# is out of sync. This can happen due to threads, or because of a TODO in GCOVProfiling.cpp buildEdgeLookupTable(). */ if (counter) ++*counter; #ifdef DEBUG_GCDAPROFILING else fprintf(stderr, "llvmgcda: increment_indirect_counter counters=%08llx, pred=%u\n", *counter, *predecessor); #endif # 349 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" } void llvm_gcda_emit_function(uint32_t ident, const char *function_name, uint32_t func_checksum, uint8_t use_extra_checksum, uint32_t cfg_checksum) { uint32_t len = 2; if (use_extra_checksum) len++; #ifdef DEBUG_GCDAPROFILING fprintf(stderr, "llvmgcda: function id=0x%08x name=%s\n", ident, function_name ? function_name : "NULL"); #endif # 362 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" if (!output_file) return; /* function tag */ write_bytes("\0\0\0\1", 4); if (function_name) len += 1 + length_of_string(function_name); write_32bit_value(len); write_32bit_value(ident); write_32bit_value(func_checksum); if (use_extra_checksum) write_32bit_value(cfg_checksum); if (function_name) write_string(function_name); } void llvm_gcda_emit_arcs(uint32_t num_counters, uint64_t *counters) { uint32_t i; uint64_t *old_ctrs = NULL; uint32_t val = 0; uint64_t save_cur_pos = cur_pos; if (!output_file) return; val = read_32bit_value(); if (val != (uint32_t)-1) { /* There are counters present in the file. Merge them. */ if (val != 0x01a10000) { fprintf(stderr, "profiling: %s: cannot merge previous GCDA file: " "corrupt arc tag (0x%08x)\n", filename, val); return; } val = read_32bit_value(); if (val == (uint32_t)-1 || val / 2 != num_counters) { fprintf(stderr, "profiling: %s: cannot merge previous GCDA file: " "mismatched number of counters (%d)\n", filename, val); return; } old_ctrs = malloc(sizeof(uint64_t) * num_counters); for (i = 0; i < num_counters; ++i) old_ctrs[i] = read_64bit_value(); } cur_pos = save_cur_pos; /* Counter #1 (arcs) tag */ write_bytes("\0\0\xa1\1", 4); write_32bit_value(num_counters * 2); for (i = 0; i < num_counters; ++i) { counters[i] += (old_ctrs ? old_ctrs[i] : 0); write_64bit_value(counters[i]); } free(old_ctrs); #ifdef DEBUG_GCDAPROFILING fprintf(stderr, "llvmgcda: %u arcs\n", num_counters); for (i = 0; i < num_counters; ++i) fprintf(stderr, "llvmgcda: %llu\n", (unsigned long long)counters[i]); #endif # 426 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" } void llvm_gcda_summary_info() { const uint32_t obj_summary_len = 9; /* Length for gcov compatibility. */ uint32_t i; uint32_t runs = 1; uint32_t val = 0; uint64_t save_cur_pos = cur_pos; if (!output_file) return; val = read_32bit_value(); if (val != (uint32_t)-1) { /* There are counters present in the file. Merge them. */ if (val != 0xa1000000) { fprintf(stderr, "profiling: %s: cannot merge previous run count: " "corrupt object tag (0x%08x)\n", filename, val); return; } val = read_32bit_value(); /* length */ if (val != obj_summary_len) { fprintf(stderr, "profiling: %s: cannot merge previous run count: " "mismatched object length (%d)\n", filename, val); return; } read_32bit_value(); /* checksum, unused */ read_32bit_value(); /* num, unused */ runs += read_32bit_value(); /* Add previous run count to new counter. */ } cur_pos = save_cur_pos; /* Object summary tag */ write_bytes("\0\0\0\xa1", 4); write_32bit_value(obj_summary_len); write_32bit_value(0); /* checksum, unused */ write_32bit_value(0); /* num, unused */ write_32bit_value(runs); for (i = 3; i < obj_summary_len; ++i) write_32bit_value(0); /* Program summary tag */ write_bytes("\0\0\0\xa3", 4); /* tag indicates 1 program */ write_32bit_value(0); /* 0 length */ #ifdef DEBUG_GCDAPROFILING fprintf(stderr, "llvmgcda: %u runs\n", runs); #endif # 479 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" } void llvm_gcda_end_file() { /* Write out EOF record. */ if (output_file) { write_bytes("\0\0\0\0\0\0\0\0", 8); if (new_file) { fwrite(write_buffer, cur_pos, 1, output_file); free(write_buffer); } else { unmap_file(); } fclose(output_file); flock(fd, LOCK_UN); output_file = NULL; write_buffer = NULL; } free(filename); #ifdef DEBUG_GCDAPROFILING fprintf(stderr, "llvmgcda: -----\n"); #endif # 503 "/usr/home/sme/sandbox/usr/src/sys/external/bsd/compiler_rt/dist/lib/profile/GCDAProfiling.c" } void llvm_register_writeout_function(writeout_fn fn) { struct writeout_fn_node *new_node = malloc(sizeof(struct writeout_fn_node)); new_node->fn = fn; new_node->next = NULL; if (!writeout_fn_head) { writeout_fn_head = writeout_fn_tail = new_node; } else { writeout_fn_tail->next = new_node; writeout_fn_tail = new_node; } } void llvm_writeout_files() { struct writeout_fn_node *curr = writeout_fn_head; while (curr) { curr->fn(); curr = curr->next; } } void llvm_delete_writeout_function_list() { while (writeout_fn_head) { struct writeout_fn_node *node = writeout_fn_head; writeout_fn_head = writeout_fn_head->next; free(node); } writeout_fn_head = writeout_fn_tail = NULL; } void llvm_register_flush_function(flush_fn fn) { struct flush_fn_node *new_node = malloc(sizeof(struct flush_fn_node)); new_node->fn = fn; new_node->next = NULL; if (!flush_fn_head) { flush_fn_head = flush_fn_tail = new_node; } else { flush_fn_tail->next = new_node; flush_fn_tail = new_node; } } void __gcov_flush() { struct flush_fn_node *curr = flush_fn_head; while (curr) { curr->fn(); curr = curr->next; } } void llvm_delete_flush_function_list() { while (flush_fn_head) { struct flush_fn_node *node = flush_fn_head; flush_fn_head = flush_fn_head->next; free(node); } flush_fn_head = flush_fn_tail = NULL; } void llvm_gcov_init(writeout_fn wfn, flush_fn ffn) { static int atexit_ran = 0; if (wfn) llvm_register_writeout_function(wfn); if (ffn) llvm_register_flush_function(ffn); if (atexit_ran == 0) { atexit_ran = 1; /* Make sure we write out the data and delete the data structures. */ atexit(llvm_delete_flush_function_list); atexit(llvm_delete_writeout_function_list); atexit(llvm_writeout_files); } }