@zigc/lib 0.17.0-dev.607 → 0.17.0-dev.644
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/Maker/PkgConfig.zig +15 -7
- package/compiler/Maker/Step/Compile.zig +7 -9
- package/compiler/Maker/Step/Fmt.zig +1 -1
- package/compiler/Maker/Step/Run.zig +59 -41
- package/compiler/Maker/Step/TranslateC.zig +6 -5
- package/compiler/Maker/Step.zig +47 -16
- package/compiler/Maker.zig +54 -44
- package/libc/include/aarch64-netbsd-none/aarch64/armreg.h +259 -22
- package/libc/include/aarch64-netbsd-none/aarch64/byte_swap.h +3 -2
- package/libc/include/aarch64-netbsd-none/aarch64/cpu.h +26 -1
- package/libc/include/aarch64-netbsd-none/aarch64/lwp_private.h +3 -0
- package/libc/include/aarch64-netbsd-none/aarch64/pmap.h +7 -33
- package/libc/include/aarch64-netbsd-none/aarch64/sljit_machdep.h +1 -1
- package/libc/include/aarch64-netbsd-none/aarch64/vmparam.h +4 -4
- package/libc/include/aarch64-netbsd-none/machine/armreg.h +259 -22
- package/libc/include/aarch64-netbsd-none/machine/byte_swap.h +3 -2
- package/libc/include/aarch64-netbsd-none/machine/cpu.h +26 -1
- package/libc/include/aarch64-netbsd-none/machine/lwp_private.h +3 -0
- package/libc/include/aarch64-netbsd-none/machine/pmap.h +7 -33
- package/libc/include/aarch64-netbsd-none/machine/sljit_machdep.h +1 -1
- package/libc/include/aarch64-netbsd-none/machine/vmparam.h +4 -4
- package/libc/include/arm-netbsd-eabi/float.h +2 -1
- package/libc/include/arm-netbsd-eabi/machine/asm.h +48 -19
- package/libc/include/arm-netbsd-eabi/machine/byte_swap.h +121 -0
- package/libc/include/arm-netbsd-eabi/machine/cpu.h +1 -3
- package/libc/include/arm-netbsd-eabi/machine/float.h +2 -1
- package/libc/include/arm-netbsd-eabi/machine/lwp_private.h +81 -0
- package/libc/include/arm-netbsd-eabi/machine/mcontext.h +5 -51
- package/libc/include/arm-netbsd-eabi/machine/mutex.h +1 -1
- package/libc/include/arm-netbsd-eabi/machine/proc.h +2 -2
- package/libc/include/arm-netbsd-eabi/machine/profile.h +28 -96
- package/libc/include/arm-netbsd-eabi/machine/setjmp.h +7 -6
- package/libc/include/arm-netbsd-eabi/machine/sysarch.h +85 -0
- package/libc/include/generic-netbsd/altq/altq.h +2 -2
- package/libc/include/generic-netbsd/altq/altq_afmap.h +2 -1
- package/libc/include/generic-netbsd/altq/altq_classq.h +8 -6
- package/libc/include/generic-netbsd/altq/altq_jobs.h +37 -37
- package/libc/include/generic-netbsd/altq/altq_rmclass.h +8 -8
- package/libc/include/generic-netbsd/altq/altq_var.h +2 -2
- package/libc/include/generic-netbsd/arm/arm32/pmap.h +8 -32
- package/libc/include/generic-netbsd/arm/arm32/vmparam.h +5 -5
- package/libc/include/generic-netbsd/arm/asm.h +48 -19
- package/libc/include/generic-netbsd/arm/byte_swap.h +2 -2
- package/libc/include/generic-netbsd/arm/cpu.h +1 -3
- package/libc/include/generic-netbsd/arm/cputypes.h +12 -1
- package/libc/include/generic-netbsd/arm/float.h +2 -1
- package/libc/include/generic-netbsd/arm/lwp_private.h +81 -0
- package/libc/include/generic-netbsd/arm/mcontext.h +5 -51
- package/libc/include/generic-netbsd/arm/mutex.h +1 -1
- package/libc/include/generic-netbsd/arm/proc.h +2 -2
- package/libc/include/generic-netbsd/arm/profile.h +28 -96
- package/libc/include/generic-netbsd/arm/setjmp.h +7 -6
- package/libc/include/generic-netbsd/arpa/nameser.h +3 -3
- package/libc/include/generic-netbsd/arpa/nameser_compat.h +3 -3
- package/libc/include/generic-netbsd/assert.h +12 -22
- package/libc/include/generic-netbsd/bitstring.h +5 -5
- package/libc/include/generic-netbsd/cdbw.h +2 -2
- package/libc/include/generic-netbsd/crypto/cryptodev.h +99 -92
- package/libc/include/generic-netbsd/dev/i2c/emcfaninfo.h +234 -0
- package/libc/include/generic-netbsd/dev/i2c/emcfanreg.h +127 -0
- package/libc/include/generic-netbsd/dev/i2o/i2o.h +3 -366
- package/libc/include/generic-netbsd/dev/ic/hd44780var.h +3 -1
- package/libc/include/generic-netbsd/dev/ic/scmdreg.h +2 -2
- package/libc/include/generic-netbsd/dev/ic/stireg.h +777 -0
- package/libc/include/generic-netbsd/dev/ic/summitreg.h +214 -0
- package/libc/include/generic-netbsd/dev/iscsi/iscsi.h +1 -1
- package/libc/include/generic-netbsd/dev/pci/amrreg.h +2 -2
- package/libc/include/generic-netbsd/dev/pci/mlyreg.h +2 -2
- package/libc/include/generic-netbsd/dev/pci/pcidevs.h +177 -22
- package/libc/include/generic-netbsd/dev/pci/pcidevs_data.h +14971 -14588
- package/libc/include/generic-netbsd/dev/pci/pcireg.h +14 -14
- package/libc/include/generic-netbsd/dev/pckbc/pckbdreg.h +2 -1
- package/libc/include/generic-netbsd/dev/pcmcia/if_rayreg.h +2 -2
- package/libc/include/generic-netbsd/dev/raidframe/raidframeio.h +1 -1
- package/libc/include/generic-netbsd/dev/scsipi/scsi_disk.h +42 -7
- package/libc/include/generic-netbsd/dev/scsipi/scsi_spc.h +2 -2
- package/libc/include/generic-netbsd/dev/scsipi/scsipi_all.h +83 -2
- package/libc/include/generic-netbsd/dev/scsipi/scsipiconf.h +3 -1
- package/libc/include/generic-netbsd/dev/tc/sfbreg.h +3 -3
- package/libc/include/generic-netbsd/dev/tc/sticio.h +2 -2
- package/libc/include/generic-netbsd/dev/usb/umcpmio_hid_reports.h +499 -0
- package/libc/include/generic-netbsd/dev/usb/umcpmio_io.h +45 -0
- package/libc/include/generic-netbsd/dev/usb/usb.h +44 -6
- package/libc/include/generic-netbsd/dev/vndvar.h +2 -2
- package/libc/include/generic-netbsd/dev/wscons/wsconsio.h +19 -1
- package/libc/include/generic-netbsd/dev/wscons/wsksymdef.h +2 -2
- package/libc/include/generic-netbsd/dirent.h +1 -1
- package/libc/include/generic-netbsd/dlfcn.h +4 -2
- package/libc/include/generic-netbsd/elf.h +32 -20
- package/libc/include/generic-netbsd/elfdefinitions.h +1 -1
- package/libc/include/generic-netbsd/evbarm/intr.h +1 -1
- package/libc/include/generic-netbsd/evbmips/lwp_private.h +3 -0
- package/libc/include/generic-netbsd/execinfo.h +4 -2
- package/libc/include/generic-netbsd/fcntl.h +26 -2
- package/libc/include/generic-netbsd/float.h +58 -2
- package/libc/include/generic-netbsd/fmtmsg.h +2 -2
- package/libc/include/generic-netbsd/fs/hfs/libhfs.h +1 -1
- package/libc/include/generic-netbsd/fs/nilfs/nilfs_fs.h +2 -2
- package/libc/include/generic-netbsd/gelf.h +2 -2
- package/libc/include/generic-netbsd/i386/asm.h +12 -4
- package/libc/include/generic-netbsd/i386/byte_swap.h +2 -2
- package/libc/include/generic-netbsd/i386/cpu.h +15 -4
- package/libc/include/generic-netbsd/i386/elf_machdep.h +2 -1
- package/libc/include/generic-netbsd/i386/lwp_private.h +3 -0
- package/libc/include/generic-netbsd/i386/mcontext.h +6 -24
- package/libc/include/generic-netbsd/i386/param.h +9 -1
- package/libc/include/generic-netbsd/i386/pcb.h +6 -2
- package/libc/include/generic-netbsd/i386/ptrace.h +2 -2
- package/libc/include/generic-netbsd/i386/types.h +2 -1
- package/libc/include/generic-netbsd/i386/wchar_limits.h +1 -1
- package/libc/include/generic-netbsd/isofs/cd9660/cd9660_extern.h +6 -1
- package/libc/include/generic-netbsd/isofs/cd9660/cd9660_mount.h +7 -1
- package/libc/include/generic-netbsd/langinfo.h +2 -1
- package/libc/include/generic-netbsd/lauxlib.h +1 -1
- package/libc/include/generic-netbsd/libelf.h +6 -15
- package/libc/include/generic-netbsd/limits.h +1 -1
- package/libc/include/generic-netbsd/lua.h +1 -1
- package/libc/include/generic-netbsd/luaconf.h +1 -1
- package/libc/include/generic-netbsd/lualib.h +1 -1
- package/libc/include/generic-netbsd/lwp.h +1 -1
- package/libc/include/generic-netbsd/machine/ansi.h +2 -2
- package/libc/include/generic-netbsd/machine/aout_machdep.h +39 -2
- package/libc/include/generic-netbsd/machine/arm32/pmap.h +8 -32
- package/libc/include/generic-netbsd/machine/arm32/vmparam.h +5 -5
- package/libc/include/generic-netbsd/machine/asm.h +271 -2
- package/libc/include/generic-netbsd/machine/bswap.h +9 -1
- package/libc/include/generic-netbsd/machine/byte_swap.h +42 -64
- package/libc/include/generic-netbsd/machine/cdefs.h +7 -2
- package/libc/include/generic-netbsd/machine/cpu.h +207 -30
- package/libc/include/generic-netbsd/machine/cputypes.h +12 -1
- package/libc/include/generic-netbsd/machine/disklabel.h +41 -42
- package/libc/include/generic-netbsd/machine/elf_machdep.h +143 -2
- package/libc/include/generic-netbsd/machine/endian.h +1 -1
- package/libc/include/generic-netbsd/machine/fenv.h +35 -2
- package/libc/include/generic-netbsd/machine/float.h +58 -2
- package/libc/include/generic-netbsd/machine/frame.h +129 -2
- package/libc/include/generic-netbsd/machine/ieee.h +3 -2
- package/libc/include/generic-netbsd/machine/ieeefp.h +43 -2
- package/libc/include/generic-netbsd/machine/int_const.h +32 -2
- package/libc/include/generic-netbsd/machine/int_fmtio.h +380 -2
- package/libc/include/generic-netbsd/machine/int_limits.h +2 -2
- package/libc/include/generic-netbsd/machine/int_mwgwtypes.h +2 -2
- package/libc/include/generic-netbsd/machine/int_types.h +2 -2
- package/libc/include/generic-netbsd/machine/kcore.h +39 -2
- package/libc/include/generic-netbsd/machine/limits.h +2 -2
- package/libc/include/generic-netbsd/machine/lock.h +2 -2
- package/libc/include/generic-netbsd/machine/lwp_private.h +83 -0
- package/libc/include/generic-netbsd/machine/math.h +3 -2
- package/libc/include/generic-netbsd/machine/mcontext.h +149 -2
- package/libc/include/generic-netbsd/machine/mutex.h +127 -2
- package/libc/include/generic-netbsd/machine/param.h +90 -23
- package/libc/include/generic-netbsd/machine/pcb.h +54 -2
- package/libc/include/generic-netbsd/machine/pmap.h +262 -2
- package/libc/include/generic-netbsd/machine/proc.h +75 -2
- package/libc/include/generic-netbsd/machine/profile.h +116 -2
- package/libc/include/generic-netbsd/machine/psl.h +2 -2
- package/libc/include/generic-netbsd/machine/pte.h +346 -2
- package/libc/include/generic-netbsd/machine/ptrace.h +62 -2
- package/libc/include/generic-netbsd/machine/reg.h +124 -2
- package/libc/include/generic-netbsd/machine/reloc.h +2 -2
- package/libc/include/generic-netbsd/machine/setjmp.h +69 -2
- package/libc/include/generic-netbsd/machine/signal.h +39 -2
- package/libc/include/generic-netbsd/machine/sljit_machdep.h +1 -1
- package/libc/include/generic-netbsd/machine/sysarch.h +2 -84
- package/libc/include/generic-netbsd/machine/sysreg.h +354 -0
- package/libc/include/generic-netbsd/machine/trap.h +2 -2
- package/libc/include/generic-netbsd/machine/types.h +118 -6
- package/libc/include/generic-netbsd/machine/vmparam.h +235 -2
- package/libc/include/generic-netbsd/machine/wchar_limits.h +2 -2
- package/libc/include/generic-netbsd/math.h +19 -6
- package/libc/include/generic-netbsd/md2.h +6 -3
- package/libc/include/generic-netbsd/mips/asm.h +69 -17
- package/libc/include/generic-netbsd/mips/bswap.h +3 -1
- package/libc/include/generic-netbsd/mips/cpu.h +7 -7
- package/libc/include/generic-netbsd/mips/elf_machdep.h +2 -1
- package/libc/include/generic-netbsd/mips/fenv.h +2 -1
- package/libc/include/generic-netbsd/mips/float.h +3 -2
- package/libc/include/generic-netbsd/mips/frame.h +3 -2
- package/libc/include/generic-netbsd/mips/limits.h +4 -13
- package/libc/include/generic-netbsd/mips/lwp_private.h +87 -0
- package/libc/include/generic-netbsd/mips/mcontext.h +2 -53
- package/libc/include/generic-netbsd/mips/mips3_pte.h +2 -2
- package/libc/include/generic-netbsd/mips/mips_param.h +16 -2
- package/libc/include/generic-netbsd/mips/mutex.h +1 -1
- package/libc/include/generic-netbsd/mips/types.h +1 -1
- package/libc/include/generic-netbsd/mips/vmparam.h +1 -1
- package/libc/include/generic-netbsd/miscfs/kernfs/kernfs.h +2 -2
- package/libc/include/generic-netbsd/miscfs/procfs/procfs.h +33 -2
- package/libc/include/generic-netbsd/miscfs/specfs/specdev.h +1 -2
- package/libc/include/generic-netbsd/monetary.h +2 -1
- package/libc/include/generic-netbsd/net/agr/if_agrioctl.h +2 -2
- package/libc/include/generic-netbsd/net/bpf.h +11 -4
- package/libc/include/generic-netbsd/net/bpfdesc.h +1 -1
- package/libc/include/generic-netbsd/net/dlt.h +222 -48
- package/libc/include/generic-netbsd/net/if.h +20 -5
- package/libc/include/generic-netbsd/net/if_bridgevar.h +2 -3
- package/libc/include/generic-netbsd/net/if_ether.h +4 -3
- package/libc/include/generic-netbsd/net/if_lagg.h +2 -2
- package/libc/include/generic-netbsd/net/if_media.h +2 -2
- package/libc/include/generic-netbsd/net/if_ppp.h +1 -3
- package/libc/include/generic-netbsd/net/if_stats.h +19 -5
- package/libc/include/generic-netbsd/net/net_stats.h +13 -6
- package/libc/include/generic-netbsd/net/npf.h +33 -5
- package/libc/include/generic-netbsd/net/pfkeyv2.h +1 -1
- package/libc/include/generic-netbsd/net/route.h +4 -4
- package/libc/include/generic-netbsd/net80211/ieee80211_node.h +3 -2
- package/libc/include/generic-netbsd/net80211/ieee80211_var.h +2 -2
- package/libc/include/generic-netbsd/netbt/hci.h +3 -3
- package/libc/include/generic-netbsd/netdb.h +2 -2
- package/libc/include/generic-netbsd/netinet/icmp6.h +6 -2
- package/libc/include/generic-netbsd/netinet/in.h +17 -17
- package/libc/include/generic-netbsd/netinet/in_var.h +5 -9
- package/libc/include/generic-netbsd/netinet/ip_mroute.h +24 -28
- package/libc/include/generic-netbsd/netinet/ip_var.h +2 -2
- package/libc/include/generic-netbsd/netinet/sctp.h +4 -4
- package/libc/include/generic-netbsd/netinet/tcp_var.h +2 -2
- package/libc/include/generic-netbsd/netinet/tcp_vtw.h +2 -2
- package/libc/include/generic-netbsd/netinet6/in6_var.h +7 -33
- package/libc/include/generic-netbsd/netinet6/ip6_var.h +2 -2
- package/libc/include/generic-netbsd/nfs/krpc.h +9 -4
- package/libc/include/generic-netbsd/nfs/nfs.h +5 -3
- package/libc/include/generic-netbsd/nfs/nfsdiskless.h +37 -20
- package/libc/include/generic-netbsd/nfs/nfsm_subs.h +4 -7
- package/libc/include/generic-netbsd/nfs/nfsmount.h +3 -4
- package/libc/include/generic-netbsd/nfs/nfsnode.h +9 -6
- package/libc/include/generic-netbsd/nfs/nfsproto.h +5 -2
- package/libc/include/generic-netbsd/nfs/nfsrtt.h +8 -4
- package/libc/include/generic-netbsd/nfs/nfsrvcache.h +9 -3
- package/libc/include/generic-netbsd/nfs/rpcv2.h +5 -3
- package/libc/include/generic-netbsd/nfs/xdr_subs.h +6 -5
- package/libc/include/generic-netbsd/nl_types.h +3 -1
- package/libc/include/generic-netbsd/ntfs/ntfs_inode.h +2 -2
- package/libc/include/generic-netbsd/poll.h +8 -2
- package/libc/include/generic-netbsd/prop/prop_object.h +48 -3
- package/libc/include/generic-netbsd/protocols/talkd.h +2 -2
- package/libc/include/generic-netbsd/pthread.h +51 -12
- package/libc/include/generic-netbsd/regex.h +2 -1
- package/libc/include/generic-netbsd/riscv/ansi.h +3 -0
- package/libc/include/generic-netbsd/riscv/aout_machdep.h +40 -0
- package/libc/include/generic-netbsd/riscv/asm.h +272 -0
- package/libc/include/generic-netbsd/riscv/bswap.h +11 -0
- package/libc/include/generic-netbsd/riscv/byte_swap.h +99 -0
- package/libc/include/generic-netbsd/riscv/cdefs.h +8 -0
- package/libc/include/generic-netbsd/riscv/cpu.h +242 -0
- package/libc/include/generic-netbsd/riscv/disklabel.h +68 -0
- package/libc/include/generic-netbsd/riscv/elf_machdep.h +144 -0
- package/libc/include/generic-netbsd/riscv/endian.h +3 -0
- package/libc/include/generic-netbsd/riscv/endian_machdep.h +3 -0
- package/libc/include/generic-netbsd/riscv/fenv.h +36 -0
- package/libc/include/generic-netbsd/riscv/float.h +59 -0
- package/libc/include/generic-netbsd/riscv/ieee.h +4 -0
- package/libc/include/generic-netbsd/riscv/ieeefp.h +44 -0
- package/libc/include/generic-netbsd/riscv/int_const.h +33 -0
- package/libc/include/generic-netbsd/riscv/int_fmtio.h +381 -0
- package/libc/include/generic-netbsd/riscv/int_limits.h +3 -0
- package/libc/include/generic-netbsd/riscv/int_mwgwtypes.h +3 -0
- package/libc/include/generic-netbsd/riscv/int_types.h +3 -0
- package/libc/include/generic-netbsd/riscv/kcore.h +40 -0
- package/libc/include/generic-netbsd/riscv/limits.h +3 -0
- package/libc/include/generic-netbsd/riscv/lock.h +3 -0
- package/libc/include/generic-netbsd/riscv/lwp_private.h +83 -0
- package/libc/include/generic-netbsd/riscv/math.h +4 -0
- package/libc/include/generic-netbsd/riscv/mcontext.h +150 -0
- package/libc/include/generic-netbsd/riscv/mutex.h +128 -0
- package/libc/include/generic-netbsd/riscv/param.h +110 -0
- package/libc/include/generic-netbsd/riscv/pcb.h +55 -0
- package/libc/include/generic-netbsd/riscv/pmap.h +263 -0
- package/libc/include/generic-netbsd/riscv/proc.h +76 -0
- package/libc/include/generic-netbsd/riscv/profile.h +117 -0
- package/libc/include/generic-netbsd/riscv/pte.h +347 -0
- package/libc/include/generic-netbsd/riscv/ptrace.h +63 -0
- package/libc/include/generic-netbsd/riscv/reg.h +125 -0
- package/libc/include/generic-netbsd/riscv/rwlock.h +1 -0
- package/libc/include/generic-netbsd/riscv/setjmp.h +70 -0
- package/libc/include/generic-netbsd/riscv/signal.h +40 -0
- package/libc/include/generic-netbsd/riscv/sysarch.h +3 -0
- package/libc/include/generic-netbsd/riscv/sysreg.h +354 -0
- package/libc/include/generic-netbsd/riscv/types.h +123 -0
- package/libc/include/generic-netbsd/riscv/vmparam.h +236 -0
- package/libc/include/generic-netbsd/riscv/wchar_limits.h +13 -0
- package/libc/include/generic-netbsd/rmd160.h +3 -3
- package/libc/include/generic-netbsd/rpc/xdr.h +3 -3
- package/libc/include/generic-netbsd/rpcsvc/yp_prot.h +3 -2
- package/libc/include/generic-netbsd/rump/rump_namei.h +2 -2
- package/libc/include/generic-netbsd/rump/rump_syscalls.h +4 -4
- package/libc/include/generic-netbsd/rump/rumpuser.h +6 -1
- package/libc/include/generic-netbsd/rump/rumpvnode_if.h +2 -2
- package/libc/include/generic-netbsd/sha1.h +3 -3
- package/libc/include/generic-netbsd/sha2.h +8 -1
- package/libc/include/generic-netbsd/signal.h +4 -4
- package/libc/include/generic-netbsd/sparc/asm.h +10 -1
- package/libc/include/generic-netbsd/sparc/bswap.h +9 -1
- package/libc/include/generic-netbsd/sparc/cgtworeg.h +2 -2
- package/libc/include/generic-netbsd/sparc/cpu.h +1 -1
- package/libc/include/generic-netbsd/sparc/float.h +3 -1
- package/libc/include/generic-netbsd/sparc/limits.h +4 -6
- package/libc/include/generic-netbsd/sparc/lwp_private.h +51 -0
- package/libc/include/generic-netbsd/sparc/mcontext.h +4 -22
- package/libc/include/generic-netbsd/sparc/mutex.h +1 -1
- package/libc/include/generic-netbsd/sparc/param.h +4 -2
- package/libc/include/generic-netbsd/sparc/pmap.h +2 -2
- package/libc/include/generic-netbsd/sparc/psl.h +6 -3
- package/libc/include/generic-netbsd/sparc/types.h +2 -2
- package/libc/include/generic-netbsd/sparc64/bswap.h +9 -1
- package/libc/include/generic-netbsd/sparc64/cpu.h +2 -2
- package/libc/include/generic-netbsd/sparc64/ctlreg.h +8 -7
- package/libc/include/generic-netbsd/sparc64/intr.h +1 -1
- package/libc/include/generic-netbsd/sparc64/lwp_private.h +3 -0
- package/libc/include/generic-netbsd/sparc64/mcontext.h +4 -4
- package/libc/include/generic-netbsd/sparc64/mutex.h +1 -1
- package/libc/include/generic-netbsd/sparc64/param.h +8 -2
- package/libc/include/generic-netbsd/sparc64/psl.h +7 -2
- package/libc/include/generic-netbsd/sparc64/pte.h +2 -2
- package/libc/include/generic-netbsd/sparc64/vmparam.h +1 -1
- package/libc/include/generic-netbsd/ssp/ssp.h +16 -6
- package/libc/include/generic-netbsd/stdalign.h +3 -3
- package/libc/include/generic-netbsd/stdarg.h +2 -2
- package/libc/include/generic-netbsd/stddef.h +90 -12
- package/libc/include/generic-netbsd/stdlib.h +11 -2
- package/libc/include/generic-netbsd/stdnoreturn.h +2 -2
- package/libc/include/generic-netbsd/string.h +66 -39
- package/libc/include/generic-netbsd/strings.h +17 -3
- package/libc/include/generic-netbsd/sys/atomic.h +10 -5
- package/libc/include/generic-netbsd/sys/bitops.h +2 -2
- package/libc/include/generic-netbsd/sys/bootblock.h +13 -2
- package/libc/include/generic-netbsd/sys/bswap.h +46 -20
- package/libc/include/generic-netbsd/sys/buf.h +3 -3
- package/libc/include/generic-netbsd/sys/cdefs.h +44 -6
- package/libc/include/generic-netbsd/sys/cdefs_aout.h +8 -1
- package/libc/include/generic-netbsd/sys/cdefs_elf.h +9 -2
- package/libc/include/generic-netbsd/sys/chio.h +2 -2
- package/libc/include/generic-netbsd/sys/clock.h +5 -1
- package/libc/include/generic-netbsd/sys/common_limits.h +3 -1
- package/libc/include/generic-netbsd/sys/condvar.h +1 -1
- package/libc/include/generic-netbsd/sys/conf.h +4 -3
- package/libc/include/generic-netbsd/sys/container_of.h +75 -0
- package/libc/include/generic-netbsd/sys/device.h +20 -13
- package/libc/include/generic-netbsd/sys/disk.h +8 -1
- package/libc/include/generic-netbsd/sys/disklabel.h +2 -2
- package/libc/include/generic-netbsd/sys/disklabel_gpt.h +7 -1
- package/libc/include/generic-netbsd/sys/efiio.h +1 -1
- package/libc/include/generic-netbsd/sys/elfdefinitions.h +2368 -1591
- package/libc/include/generic-netbsd/sys/endian.h +17 -17
- package/libc/include/generic-netbsd/sys/evcnt.h +15 -2
- package/libc/include/generic-netbsd/sys/event.h +3 -2
- package/libc/include/generic-netbsd/sys/exec.h +2 -2
- package/libc/include/generic-netbsd/sys/exec_elf.h +32 -20
- package/libc/include/generic-netbsd/sys/fcntl.h +26 -2
- package/libc/include/generic-netbsd/sys/fd_set.h +3 -3
- package/libc/include/generic-netbsd/sys/featuretest.h +24 -6
- package/libc/include/generic-netbsd/sys/file.h +18 -6
- package/libc/include/generic-netbsd/sys/filedesc.h +8 -4
- package/libc/include/generic-netbsd/sys/futex.h +11 -11
- package/libc/include/generic-netbsd/sys/ieee754.h +2 -2
- package/libc/include/generic-netbsd/sys/ipc.h +2 -2
- package/libc/include/generic-netbsd/sys/ipmi.h +4 -2
- package/libc/include/generic-netbsd/sys/ksem.h +1 -1
- package/libc/include/generic-netbsd/sys/ktrace.h +6 -4
- package/libc/include/generic-netbsd/sys/lock.h +2 -2
- package/libc/include/generic-netbsd/sys/lua.h +1 -1
- package/libc/include/generic-netbsd/sys/lwp.h +25 -92
- package/libc/include/generic-netbsd/sys/mbuf.h +15 -13
- package/libc/include/generic-netbsd/sys/mman.h +11 -3
- package/libc/include/generic-netbsd/sys/mount.h +1 -2
- package/libc/include/generic-netbsd/sys/msg.h +3 -3
- package/libc/include/generic-netbsd/sys/mutex.h +1 -3
- package/libc/include/generic-netbsd/sys/namei.h +32 -17
- package/libc/include/generic-netbsd/sys/param.h +11 -8
- package/libc/include/generic-netbsd/sys/pipe.h +10 -11
- package/libc/include/generic-netbsd/sys/poll.h +8 -2
- package/libc/include/generic-netbsd/sys/proc.h +15 -15
- package/libc/include/generic-netbsd/sys/ptrace.h +24 -7
- package/libc/include/generic-netbsd/sys/ptree.h +2 -1
- package/libc/include/generic-netbsd/sys/queue.h +37 -37
- package/libc/include/generic-netbsd/sys/rbtree.h +23 -9
- package/libc/include/generic-netbsd/sys/resourcevar.h +2 -2
- package/libc/include/generic-netbsd/sys/rmd160.h +3 -3
- package/libc/include/generic-netbsd/sys/rndio.h +1 -1
- package/libc/include/generic-netbsd/sys/rwlock.h +1 -2
- package/libc/include/generic-netbsd/sys/sched.h +1 -1
- package/libc/include/generic-netbsd/sys/sdt.h +181 -111
- package/libc/include/generic-netbsd/sys/sem.h +7 -2
- package/libc/include/generic-netbsd/sys/sha1.h +3 -3
- package/libc/include/generic-netbsd/sys/sha2.h +8 -1
- package/libc/include/generic-netbsd/sys/shm.h +2 -2
- package/libc/include/generic-netbsd/sys/siginfo.h +5 -5
- package/libc/include/generic-netbsd/sys/signal.h +1 -1
- package/libc/include/generic-netbsd/sys/sigtypes.h +4 -4
- package/libc/include/generic-netbsd/sys/sleepq.h +14 -27
- package/libc/include/generic-netbsd/sys/socket.h +3 -1
- package/libc/include/generic-netbsd/sys/socketvar.h +4 -4
- package/libc/include/generic-netbsd/sys/stat.h +5 -5
- package/libc/include/generic-netbsd/sys/stdalign.h +55 -0
- package/libc/include/generic-netbsd/sys/stdarg.h +2 -2
- package/libc/include/generic-netbsd/sys/stddef.h +156 -0
- package/libc/include/generic-netbsd/sys/swap.h +2 -2
- package/libc/include/generic-netbsd/sys/syncobj.h +9 -6
- package/libc/include/generic-netbsd/sys/syscall.h +29 -8
- package/libc/include/generic-netbsd/sys/syscallargs.h +89 -12
- package/libc/include/generic-netbsd/sys/sysctl.h +94 -86
- package/libc/include/generic-netbsd/sys/syslimits.h +8 -1
- package/libc/include/generic-netbsd/sys/syslog.h +6 -7
- package/libc/include/generic-netbsd/sys/time.h +10 -8
- package/libc/include/generic-netbsd/sys/tree.h +13 -13
- package/libc/include/generic-netbsd/sys/tty.h +2 -2
- package/libc/include/generic-netbsd/sys/ttycom.h +7 -1
- package/libc/include/generic-netbsd/sys/types.h +1 -1
- package/libc/include/generic-netbsd/sys/ucontext.h +46 -49
- package/libc/include/generic-netbsd/sys/un.h +12 -4
- package/libc/include/generic-netbsd/sys/unistd.h +103 -102
- package/libc/include/generic-netbsd/sys/unpcb.h +2 -2
- package/libc/include/generic-netbsd/sys/vmmeter.h +1 -39
- package/libc/include/generic-netbsd/sys/vnode_if.h +2 -2
- package/libc/include/generic-netbsd/sys/vnode_impl.h +6 -3
- package/libc/include/generic-netbsd/sys/wapbl_replay.h +2 -2
- package/libc/include/generic-netbsd/sys/wchan.h +37 -0
- package/libc/include/generic-netbsd/syslog.h +6 -7
- package/libc/include/generic-netbsd/time.h +44 -8
- package/libc/include/generic-netbsd/tzfile.h +11 -6
- package/libc/include/generic-netbsd/uchar.h +1 -1
- package/libc/include/generic-netbsd/ucontext.h +2 -1
- package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs.h +31 -16
- package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_dir.h +1 -1
- package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_extents.h +5 -5
- package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_extern.h +4 -4
- package/libc/include/generic-netbsd/ufs/ffs/ffs_extern.h +1 -1
- package/libc/include/generic-netbsd/ufs/ffs/fs.h +3 -3
- package/libc/include/generic-netbsd/ufs/ufs/quota2.h +2 -2
- package/libc/include/generic-netbsd/unistd.h +11 -5
- package/libc/include/generic-netbsd/unwind.h +1 -1
- package/libc/include/generic-netbsd/util.h +15 -1
- package/libc/include/generic-netbsd/uvm/uvm.h +1 -5
- package/libc/include/generic-netbsd/uvm/uvm_extern.h +3 -4
- package/libc/include/generic-netbsd/uvm/uvm_object.h +2 -2
- package/libc/include/generic-netbsd/uvm/uvm_param.h +1 -1
- package/libc/include/generic-netbsd/uvm/uvm_swap.h +14 -3
- package/libc/include/generic-netbsd/wchar.h +7 -2
- package/libc/include/generic-netbsd/x86/bootinfo.h +4 -1
- package/libc/include/generic-netbsd/x86/cpu.h +18 -1
- package/libc/include/generic-netbsd/x86/cpu_extended_state.h +3 -1
- package/libc/include/generic-netbsd/x86/cpuvar.h +4 -1
- package/libc/include/generic-netbsd/x86/float.h +24 -1
- package/libc/include/generic-netbsd/x86/ieee.h +11 -7
- package/libc/include/generic-netbsd/x86/lwp_private.h +56 -0
- package/libc/include/generic-netbsd/x86/mutex.h +1 -1
- package/libc/include/generic-netbsd/x86/specialreg.h +111 -23
- package/libc/include/m68k-netbsd-none/m68k/asm.h +11 -2
- package/libc/include/m68k-netbsd-none/m68k/bus_dma.h +2 -2
- package/libc/include/m68k-netbsd-none/m68k/byte_swap.h +2 -2
- package/libc/include/m68k-netbsd-none/m68k/cacheops_30.h +2 -2
- package/libc/include/m68k-netbsd-none/m68k/cacheops_40.h +3 -1
- package/libc/include/m68k-netbsd-none/m68k/cacheops_60.h +5 -3
- package/libc/include/m68k-netbsd-none/m68k/cpu.h +86 -59
- package/libc/include/m68k-netbsd-none/m68k/cpuframe.h +5 -5
- package/libc/include/m68k-netbsd-none/m68k/fenv.h +6 -4
- package/libc/include/m68k-netbsd-none/m68k/float.h +26 -1
- package/libc/include/m68k-netbsd-none/m68k/frame.h +31 -19
- package/libc/include/m68k-netbsd-none/m68k/ieee.h +13 -8
- package/libc/include/m68k-netbsd-none/m68k/ieeefp.h +3 -3
- package/libc/include/m68k-netbsd-none/m68k/int_limits.h +2 -2
- package/libc/include/m68k-netbsd-none/m68k/intr.h +211 -0
- package/libc/include/m68k-netbsd-none/m68k/kcore.h +31 -31
- package/libc/include/m68k-netbsd-none/m68k/lwp_private.h +64 -0
- package/libc/include/m68k-netbsd-none/m68k/m68k.h +3 -7
- package/libc/include/m68k-netbsd-none/m68k/mcontext.h +5 -36
- package/libc/include/m68k-netbsd-none/m68k/mmu_30.h +105 -0
- package/libc/include/m68k-netbsd-none/m68k/mmu_40.h +232 -0
- package/libc/include/m68k-netbsd-none/m68k/mmu_51.h +273 -0
- package/libc/include/m68k-netbsd-none/m68k/mutex.h +1 -1
- package/libc/include/m68k-netbsd-none/m68k/pcb.h +2 -2
- package/libc/include/m68k-netbsd-none/m68k/pmap_motorola.h +32 -23
- package/libc/include/m68k-netbsd-none/m68k/psl.h +26 -7
- package/libc/include/m68k-netbsd-none/m68k/pte_motorola.h +37 -26
- package/libc/include/m68k-netbsd-none/m68k/trap.h +7 -7
- package/libc/include/m68k-netbsd-none/mac68k/cpu.h +1 -57
- package/libc/include/m68k-netbsd-none/mac68k/intr.h +3 -2
- package/libc/include/m68k-netbsd-none/mac68k/lwp_private.h +3 -0
- package/libc/include/m68k-netbsd-none/mac68k/pmap.h +20 -2
- package/libc/include/m68k-netbsd-none/mac68k/z8530var.h +2 -2
- package/libc/include/m68k-netbsd-none/machine/cpu.h +1 -57
- package/libc/include/m68k-netbsd-none/machine/intr.h +3 -2
- package/libc/include/m68k-netbsd-none/machine/lwp_private.h +3 -0
- package/libc/include/m68k-netbsd-none/machine/pmap.h +20 -2
- package/libc/include/m68k-netbsd-none/machine/z8530var.h +2 -2
- package/libc/include/mips-netbsd-eabi/machine/lwp_private.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/evbppc/lwp_private.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/float.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/ansi.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/aout_machdep.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/asm.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/cdefs.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/cpu.h +65 -0
- package/libc/include/powerpc-netbsd-eabi/machine/disklabel.h +69 -0
- package/libc/include/powerpc-netbsd-eabi/machine/elf_machdep.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/endian.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/fenv.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/float.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/frame.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/ieee.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/ieeefp.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/int_const.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/int_fmtio.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/int_limits.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/int_mwgwtypes.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/int_types.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/kcore.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/limits.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/lock.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/lwp_private.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/math.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/mcontext.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/mutex.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/param.h +43 -0
- package/libc/include/powerpc-netbsd-eabi/machine/pcb.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/pmap.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/proc.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/profile.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/psl.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/pte.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/ptrace.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/reg.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/reloc.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/setjmp.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/signal.h +3 -0
- package/libc/include/{mips-netbsd-eabi → powerpc-netbsd-eabi}/machine/sljit_machdep.h +1 -1
- package/libc/include/powerpc-netbsd-eabi/machine/trap.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/types.h +11 -0
- package/libc/include/powerpc-netbsd-eabi/machine/vmparam.h +3 -0
- package/libc/include/powerpc-netbsd-eabi/machine/wchar_limits.h +3 -0
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/asm.h +12 -2
- package/libc/include/powerpc-netbsd-eabi/powerpc/bswap.h +14 -0
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/cpu.h +3 -3
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/fenv.h +2 -1
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/pmap.h +3 -3
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ieee.h +7 -2
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/limits.h +4 -13
- package/libc/include/powerpc-netbsd-eabi/powerpc/lwp_private.h +79 -0
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/mcontext.h +6 -50
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/mutex.h +1 -1
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/hid.h +2 -2
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/pmap.h +2 -2
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pmap.h +1 -1
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/psl.h +2 -2
- package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/vmparam.h +1 -1
- package/libc/include/riscv32-netbsd-none/machine/bswap.h +11 -0
- package/libc/include/riscv32-netbsd-none/machine/endian_machdep.h +3 -0
- package/libc/include/riscv32-netbsd-none/machine/rwlock.h +1 -0
- package/libc/include/riscv32-netbsd-none/machine/wchar_limits.h +4 -0
- package/libc/include/riscv64-netbsd-none/machine/bswap.h +11 -0
- package/libc/include/riscv64-netbsd-none/machine/endian_machdep.h +3 -0
- package/libc/include/riscv64-netbsd-none/machine/rwlock.h +1 -0
- package/libc/include/riscv64-netbsd-none/machine/wchar_limits.h +4 -0
- package/libc/include/sparc-netbsd-none/float.h +3 -1
- package/libc/include/sparc-netbsd-none/machine/asm.h +10 -1
- package/libc/include/sparc-netbsd-none/machine/cgtworeg.h +2 -2
- package/libc/include/sparc-netbsd-none/machine/cpu.h +1 -1
- package/libc/include/sparc-netbsd-none/machine/float.h +3 -1
- package/libc/include/sparc-netbsd-none/machine/limits.h +4 -6
- package/libc/include/sparc-netbsd-none/machine/lwp_private.h +51 -0
- package/libc/include/sparc-netbsd-none/machine/mcontext.h +4 -22
- package/libc/include/sparc-netbsd-none/machine/mutex.h +1 -1
- package/libc/include/sparc-netbsd-none/machine/param.h +4 -2
- package/libc/include/sparc-netbsd-none/machine/pmap.h +2 -2
- package/libc/include/sparc-netbsd-none/machine/psl.h +6 -3
- package/libc/include/sparc-netbsd-none/machine/sxreg.h +5 -1
- package/libc/include/sparc-netbsd-none/machine/types.h +2 -2
- package/libc/include/sparc-netbsd-none/sparc/sxreg.h +5 -1
- package/libc/include/sparc64-netbsd-none/machine/cpu.h +2 -2
- package/libc/include/sparc64-netbsd-none/machine/ctlreg.h +8 -7
- package/libc/include/sparc64-netbsd-none/machine/intr.h +1 -1
- package/libc/include/sparc64-netbsd-none/machine/lwp_private.h +3 -0
- package/libc/include/sparc64-netbsd-none/machine/mcontext.h +4 -4
- package/libc/include/sparc64-netbsd-none/machine/mutex.h +1 -1
- package/libc/include/sparc64-netbsd-none/machine/param.h +8 -2
- package/libc/include/sparc64-netbsd-none/machine/psl.h +7 -2
- package/libc/include/sparc64-netbsd-none/machine/pte.h +2 -2
- package/libc/include/sparc64-netbsd-none/machine/vmparam.h +1 -1
- package/libc/include/x86-netbsd-none/machine/asm.h +12 -4
- package/libc/include/x86-netbsd-none/machine/byte_swap.h +2 -2
- package/libc/include/x86-netbsd-none/machine/cpu.h +15 -4
- package/libc/include/x86-netbsd-none/machine/elf_machdep.h +2 -1
- package/libc/include/x86-netbsd-none/machine/lwp_private.h +3 -0
- package/libc/include/x86-netbsd-none/machine/mcontext.h +6 -24
- package/libc/include/x86-netbsd-none/machine/param.h +9 -1
- package/libc/include/x86-netbsd-none/machine/pcb.h +6 -2
- package/libc/include/x86-netbsd-none/machine/ptrace.h +2 -2
- package/libc/include/x86-netbsd-none/machine/types.h +2 -1
- package/libc/include/x86_64-netbsd-none/amd64/asm.h +11 -3
- package/libc/include/x86_64-netbsd-none/amd64/byte_swap.h +2 -2
- package/libc/include/x86_64-netbsd-none/amd64/cpu.h +13 -3
- package/libc/include/x86_64-netbsd-none/amd64/frame.h +2 -2
- package/libc/include/x86_64-netbsd-none/amd64/lwp_private.h +3 -0
- package/libc/include/x86_64-netbsd-none/amd64/mcontext.h +5 -23
- package/libc/include/x86_64-netbsd-none/amd64/param.h +23 -4
- package/libc/include/x86_64-netbsd-none/amd64/pcb.h +14 -3
- package/libc/include/x86_64-netbsd-none/amd64/ptrace.h +2 -2
- package/libc/include/x86_64-netbsd-none/amd64/types.h +2 -1
- package/libc/include/x86_64-netbsd-none/machine/asm.h +11 -3
- package/libc/include/x86_64-netbsd-none/machine/byte_swap.h +2 -2
- package/libc/include/x86_64-netbsd-none/machine/cpu.h +13 -3
- package/libc/include/x86_64-netbsd-none/machine/frame.h +2 -2
- package/libc/include/x86_64-netbsd-none/machine/lwp_private.h +3 -0
- package/libc/include/x86_64-netbsd-none/machine/mcontext.h +5 -23
- package/libc/include/x86_64-netbsd-none/machine/param.h +23 -4
- package/libc/include/x86_64-netbsd-none/machine/pcb.h +14 -3
- package/libc/include/x86_64-netbsd-none/machine/ptrace.h +2 -2
- package/libc/include/x86_64-netbsd-none/machine/types.h +2 -1
- package/libc/netbsd/abilists +0 -0
- package/libc/netbsd/lib/csu/arch/riscv/crt0.S +62 -0
- package/libc/netbsd/lib/csu/common/crt0-common.c +32 -7
- package/libc/netbsd/lib/csu/common/csu-common.h +2 -0
- package/package.json +1 -1
- package/std/Build/Cache/Path.zig +27 -28
- package/std/Build/Cache.zig +1 -0
- package/std/Build/Configuration.zig +69 -29
- package/std/Build/Step/Compile.zig +2 -8
- package/std/Build/Step/ObjCopy.zig +2 -2
- package/std/Build/Step/Options.zig +2 -2
- package/std/Build/Step/Run.zig +0 -33
- package/std/Build.zig +34 -4
- package/std/Io/Kqueue.zig +1 -1
- package/std/Io/Threaded.zig +1 -1
- package/std/Io/Uring.zig +3 -1
- package/std/Target.zig +3 -1
- package/std/debug/Pdb.zig +61 -34
- package/std/debug/SelfInfo/Elf.zig +12 -9
- package/std/debug/SelfInfo/Windows.zig +3 -5
- package/std/debug/cpu_context.zig +62 -14
- package/std/zig/target.zig +2 -1
- package/std/zig.zig +12 -0
- package/libc/include/arm-netbsd-eabi/machine/frame.h +0 -130
- package/libc/include/generic-netbsd/powerpc/bswap.h +0 -8
- package/libc/include/mips-netbsd-eabi/machine/psl.h +0 -3
- package/libc/include/mips-netbsd-eabi/machine/reloc.h +0 -3
- package/libc/include/mips-netbsd-eabi/machine/trap.h +0 -3
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ansi.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/aout_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/asm.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/bswap.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/cdefs.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/cpu.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/disklabel.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/elf_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/endian.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/endian_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/fenv.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/float.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/fpu.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/frame.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ieee.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ieeefp.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_const.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_fmtio.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_limits.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_mwgwtypes.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_types.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/intr.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/kcore.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/limits.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/lock.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/math.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/mcontext.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/mutex.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/param.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pcb.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pmap.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/proc.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/profile.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/psl.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pte.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ptrace.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/reg.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/reloc.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/rwlock.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/setjmp.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/signal.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/sljit_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/trap.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/types.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/vmparam.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/wchar_limits.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/machine/fpu.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/machine/intr.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ansi.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/aout_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/cdefs.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/elf_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/endian.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/endian_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/float.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/fpu.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/frame.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/cpu.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/spr.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/tlb.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ieeefp.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_const.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_fmtio.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_limits.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_mwgwtypes.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_types.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/kcore.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/lock.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/math.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/bat.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/hid_601.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/pte.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/spr.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/sr_601.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/vmparam.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/param.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pcb.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/proc.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/profile.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pte.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ptrace.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/reg.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/reloc.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/rwlock.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/setjmp.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/signal.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/sljit_machdep.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/spr.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/trap.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/types.h +0 -0
- /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/wchar_limits.h +0 -0
|
@@ -1,3 +1,381 @@
|
|
|
1
|
-
/* $NetBSD: int_fmtio.h,v 1.
|
|
1
|
+
/* $NetBSD: int_fmtio.h,v 1.4 2019/04/17 11:01:19 mrg Exp $ */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/*-
|
|
4
|
+
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This code is derived from software contributed to The NetBSD Foundation
|
|
8
|
+
* by Klaus Klein.
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11
|
+
* modification, are permitted provided that the following conditions
|
|
12
|
+
* are met:
|
|
13
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
* notice, this list of conditions and the following disclaimer.
|
|
15
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
17
|
+
* documentation and/or other materials provided with the distribution.
|
|
18
|
+
*
|
|
19
|
+
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
20
|
+
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
21
|
+
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
23
|
+
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
#ifndef _RISCV_INT_FMTIO_H_
|
|
33
|
+
#define _RISCV_INT_FMTIO_H_
|
|
34
|
+
|
|
35
|
+
#ifdef __INTPTR_FMTd__
|
|
36
|
+
#include <sys/common_int_fmtio.h>
|
|
37
|
+
#else
|
|
38
|
+
/*
|
|
39
|
+
* 7.8.1 Macros for format specifiers
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
/* fprintf macros for signed integers */
|
|
43
|
+
#define PRId8 "hhd" /* int8_t */
|
|
44
|
+
#define PRId16 "hd" /* int16_t */
|
|
45
|
+
#define PRId32 "d" /* int32_t */
|
|
46
|
+
#ifdef _LP64
|
|
47
|
+
#define PRId64 "ld" /* int64_t */
|
|
48
|
+
#else
|
|
49
|
+
#define PRId64 "lld" /* int64_t */
|
|
50
|
+
#endif
|
|
51
|
+
#define PRIdLEAST8 "hhd" /* int_least8_t */
|
|
52
|
+
#define PRIdLEAST16 "hd" /* int_least16_t */
|
|
53
|
+
#define PRIdLEAST32 "d" /* int_least32_t */
|
|
54
|
+
#ifdef _LP64
|
|
55
|
+
#define PRIdLEAST64 "ld" /* int_least64_t */
|
|
56
|
+
#define PRIdFAST8 "d" /* int_fast8_t */
|
|
57
|
+
#define PRIdFAST16 "d" /* int_fast16_t */
|
|
58
|
+
#else
|
|
59
|
+
#define PRIdLEAST64 "lld" /* int_least64_t */
|
|
60
|
+
#define PRIdFAST8 "hhd" /* int_fast8_t */
|
|
61
|
+
#define PRIdFAST16 "hd" /* int_fast16_t */
|
|
62
|
+
#endif
|
|
63
|
+
#define PRIdFAST32 "d" /* int_fast32_t */
|
|
64
|
+
#ifdef _LP64
|
|
65
|
+
#define PRIdFAST64 "ld" /* int_fast64_t */
|
|
66
|
+
#define PRIdMAX "ld" /* intmax_t */
|
|
67
|
+
#else
|
|
68
|
+
#define PRIdFAST64 "lld" /* int_fast64_t */
|
|
69
|
+
#define PRIdMAX "lld" /* intmax_t */
|
|
70
|
+
#endif
|
|
71
|
+
#define PRIdPTR "ld" /* intptr_t */
|
|
72
|
+
|
|
73
|
+
#define PRIi8 "hhi" /* int8_t */
|
|
74
|
+
#define PRIi16 "hi" /* int16_t */
|
|
75
|
+
#define PRIi32 "i" /* int32_t */
|
|
76
|
+
#ifdef _LP64
|
|
77
|
+
#define PRIi64 "li" /* int64_t */
|
|
78
|
+
#else
|
|
79
|
+
#define PRIi64 "lli" /* int64_t */
|
|
80
|
+
#endif
|
|
81
|
+
#define PRIiLEAST8 "hhi" /* int_least8_t */
|
|
82
|
+
#define PRIiLEAST16 "hi" /* int_least16_t */
|
|
83
|
+
#define PRIiLEAST32 "i" /* int_least32_t */
|
|
84
|
+
#ifdef _LP64
|
|
85
|
+
#define PRIiLEAST64 "li" /* int_least64_t */
|
|
86
|
+
#define PRIiFAST8 "i" /* int_fast8_t */
|
|
87
|
+
#define PRIiFAST16 "i" /* int_fast16_t */
|
|
88
|
+
#else
|
|
89
|
+
#define PRIiLEAST64 "lli" /* int_least64_t */
|
|
90
|
+
#define PRIiFAST8 "hhi" /* int_fast8_t */
|
|
91
|
+
#define PRIiFAST16 "hi" /* int_fast16_t */
|
|
92
|
+
#endif
|
|
93
|
+
#define PRIiFAST32 "i" /* int_fast32_t */
|
|
94
|
+
#ifdef _LP64
|
|
95
|
+
#define PRIiFAST64 "li" /* int_fast64_t */
|
|
96
|
+
#define PRIiMAX "li" /* intmax_t */
|
|
97
|
+
#else
|
|
98
|
+
#define PRIiFAST64 "lli" /* int_fast64_t */
|
|
99
|
+
#define PRIiMAX "lli" /* intmax_t */
|
|
100
|
+
#endif
|
|
101
|
+
#define PRIiPTR "li" /* intptr_t */
|
|
102
|
+
|
|
103
|
+
/* fprintf macros for unsigned integers */
|
|
104
|
+
|
|
105
|
+
#define PRIo8 "hho" /* uint8_t */
|
|
106
|
+
#define PRIo16 "ho" /* uint16_t */
|
|
107
|
+
#define PRIo32 "o" /* uint32_t */
|
|
108
|
+
#ifdef _LP64
|
|
109
|
+
#define PRIo64 "lo" /* uint64_t */
|
|
110
|
+
#else
|
|
111
|
+
#define PRIo64 "llo" /* uint64_t */
|
|
112
|
+
#endif
|
|
113
|
+
#define PRIoLEAST8 "o" /* uint_least8_t */
|
|
114
|
+
#define PRIoLEAST16 "hho" /* uint_least16_t */
|
|
115
|
+
#define PRIoLEAST32 "ho" /* uint_least32_t */
|
|
116
|
+
#ifdef _LP64
|
|
117
|
+
#define PRIoLEAST64 "lo" /* uint_least64_t */
|
|
118
|
+
#define PRIoFAST8 "o" /* uint_fast8_t */
|
|
119
|
+
#define PRIoFAST16 "o" /* uint_fast16_t */
|
|
120
|
+
#else
|
|
121
|
+
#define PRIoLEAST64 "llo" /* uint_least64_t */
|
|
122
|
+
#define PRIoFAST8 "hho" /* uint_fast8_t */
|
|
123
|
+
#define PRIoFAST16 "ho" /* uint_fast16_t */
|
|
124
|
+
#endif
|
|
125
|
+
#define PRIoFAST32 "o" /* uint_fast32_t */
|
|
126
|
+
#ifdef _LP64
|
|
127
|
+
#define PRIoFAST64 "lo" /* uint_fast64_t */
|
|
128
|
+
#define PRIoMAX "lo" /* uintmax_t */
|
|
129
|
+
#else
|
|
130
|
+
#define PRIoFAST64 "llo" /* uint_fast64_t */
|
|
131
|
+
#define PRIoMAX "llo" /* uintmax_t */
|
|
132
|
+
#endif
|
|
133
|
+
#define PRIoPTR "lo" /* uintptr_t */
|
|
134
|
+
|
|
135
|
+
#define PRIu8 "hhu" /* uint8_t */
|
|
136
|
+
#define PRIu16 "hu" /* uint16_t */
|
|
137
|
+
#define PRIu32 "u" /* uint32_t */
|
|
138
|
+
#ifdef _LP64
|
|
139
|
+
#define PRIu64 "lu" /* uint64_t */
|
|
140
|
+
#else
|
|
141
|
+
#define PRIu64 "llu" /* uint64_t */
|
|
142
|
+
#endif
|
|
143
|
+
#define PRIuLEAST8 "hhu" /* uint_least8_t */
|
|
144
|
+
#define PRIuLEAST16 "hu" /* uint_least16_t */
|
|
145
|
+
#define PRIuLEAST32 "u" /* uint_least32_t */
|
|
146
|
+
#ifdef _LP64
|
|
147
|
+
#define PRIuLEAST64 "lu" /* uint_least64_t */
|
|
148
|
+
#define PRIuFAST8 "u" /* uint_fast8_t */
|
|
149
|
+
#define PRIuFAST16 "u" /* uint_fast16_t */
|
|
150
|
+
#else
|
|
151
|
+
#define PRIuLEAST64 "llu" /* uint_least64_t */
|
|
152
|
+
#define PRIuFAST8 "hhu" /* uint_fast8_t */
|
|
153
|
+
#define PRIuFAST16 "hu" /* uint_fast16_t */
|
|
154
|
+
#endif
|
|
155
|
+
#define PRIuFAST32 "u" /* uint_fast32_t */
|
|
156
|
+
#ifdef _LP64
|
|
157
|
+
#define PRIuFAST64 "lu" /* uint_fast64_t */
|
|
158
|
+
#define PRIuMAX "lu" /* uintmax_t */
|
|
159
|
+
#else
|
|
160
|
+
#define PRIuFAST64 "llu" /* uint_fast64_t */
|
|
161
|
+
#define PRIuMAX "llu" /* uintmax_t */
|
|
162
|
+
#endif
|
|
163
|
+
#define PRIuPTR "lu" /* uintptr_t */
|
|
164
|
+
|
|
165
|
+
#define PRIx8 "hhx" /* uint8_t */
|
|
166
|
+
#define PRIx16 "hx" /* uint16_t */
|
|
167
|
+
#define PRIx32 "x" /* uint32_t */
|
|
168
|
+
#ifdef _LP64
|
|
169
|
+
#define PRIx64 "lx" /* uint64_t */
|
|
170
|
+
#else
|
|
171
|
+
#define PRIx64 "llx" /* uint64_t */
|
|
172
|
+
#endif
|
|
173
|
+
#define PRIxLEAST8 "x" /* uint_least8_t */
|
|
174
|
+
#define PRIxLEAST16 "x" /* uint_least16_t */
|
|
175
|
+
#define PRIxLEAST32 "x" /* uint_least32_t */
|
|
176
|
+
#ifdef _LP64
|
|
177
|
+
#define PRIxLEAST64 "lx" /* uint_least64_t */
|
|
178
|
+
#define PRIxFAST8 "x" /* uint_fast8_t */
|
|
179
|
+
#define PRIxFAST16 "x" /* uint_fast16_t */
|
|
180
|
+
#else
|
|
181
|
+
#define PRIxLEAST64 "llx" /* uint_least64_t */
|
|
182
|
+
#define PRIxFAST8 "hhx" /* uint_fast8_t */
|
|
183
|
+
#define PRIxFAST16 "hx" /* uint_fast16_t */
|
|
184
|
+
#endif
|
|
185
|
+
#define PRIxFAST32 "x" /* uint_fast32_t */
|
|
186
|
+
#ifdef _LP64
|
|
187
|
+
#define PRIxFAST64 "lx" /* uint_fast64_t */
|
|
188
|
+
#define PRIxMAX "lx" /* uintmax_t */
|
|
189
|
+
#else
|
|
190
|
+
#define PRIxFAST64 "llx" /* uint_fast64_t */
|
|
191
|
+
#define PRIxMAX "llx" /* uintmax_t */
|
|
192
|
+
#endif
|
|
193
|
+
#define PRIxPTR "lx" /* uintptr_t */
|
|
194
|
+
|
|
195
|
+
#define PRIX8 "hhX" /* uint8_t */
|
|
196
|
+
#define PRIX16 "hX" /* uint16_t */
|
|
197
|
+
#define PRIX32 "X" /* uint32_t */
|
|
198
|
+
#ifdef _LP64
|
|
199
|
+
#define PRIX64 "lX" /* uint64_t */
|
|
200
|
+
#else
|
|
201
|
+
#define PRIX64 "llX" /* uint64_t */
|
|
202
|
+
#endif
|
|
203
|
+
#define PRIXLEAST8 "X" /* uint_least8_t */
|
|
204
|
+
#define PRIXLEAST16 "X" /* uint_least16_t */
|
|
205
|
+
#define PRIXLEAST32 "X" /* uint_least32_t */
|
|
206
|
+
#ifdef _LP64
|
|
207
|
+
#define PRIXLEAST64 "lX" /* uint_least64_t */
|
|
208
|
+
#define PRIXFAST8 "X" /* uint_fast8_t */
|
|
209
|
+
#define PRIXFAST16 "X" /* uint_fast16_t */
|
|
210
|
+
#else
|
|
211
|
+
#define PRIXLEAST64 "llX" /* uint_least64_t */
|
|
212
|
+
#define PRIXFAST8 "hhX" /* uint_fast8_t */
|
|
213
|
+
#define PRIXFAST16 "hX" /* uint_fast16_t */
|
|
214
|
+
#endif
|
|
215
|
+
#define PRIXFAST32 "X" /* uint_fast32_t */
|
|
216
|
+
#ifdef _LP64
|
|
217
|
+
#define PRIXFAST64 "lX" /* uint_fast64_t */
|
|
218
|
+
#define PRIXMAX "lX" /* uintmax_t */
|
|
219
|
+
#else
|
|
220
|
+
#define PRIXFAST64 "llX" /* uint_fast64_t */
|
|
221
|
+
#define PRIXMAX "llX" /* uintmax_t */
|
|
222
|
+
#endif
|
|
223
|
+
#define PRIXPTR "lX" /* uintptr_t */
|
|
224
|
+
|
|
225
|
+
/* fscanf macros for signed integers */
|
|
226
|
+
|
|
227
|
+
#define SCNd8 "hhd" /* int8_t */
|
|
228
|
+
#define SCNd16 "hd" /* int16_t */
|
|
229
|
+
#define SCNd32 "d" /* int32_t */
|
|
230
|
+
#ifdef _LP64
|
|
231
|
+
#define SCNd64 "ld" /* int64_t */
|
|
232
|
+
#else
|
|
233
|
+
#define SCNd64 "lld" /* int64_t */
|
|
234
|
+
#endif
|
|
235
|
+
#define SCNdLEAST8 "hhd" /* int_least8_t */
|
|
236
|
+
#define SCNdLEAST16 "hd" /* int_least16_t */
|
|
237
|
+
#define SCNdLEAST32 "d" /* int_least32_t */
|
|
238
|
+
#ifdef _LP64
|
|
239
|
+
#define SCNdLEAST64 "ld" /* int_least64_t */
|
|
240
|
+
#define SCNdFAST8 "d" /* int_fast8_t */
|
|
241
|
+
#define SCNdFAST16 "d" /* int_fast16_t */
|
|
242
|
+
#else
|
|
243
|
+
#define SCNdLEAST64 "lld" /* int_least64_t */
|
|
244
|
+
#define SCNdFAST8 "hhd" /* int_fast8_t */
|
|
245
|
+
#define SCNdFAST16 "hd" /* int_fast16_t */
|
|
246
|
+
#endif
|
|
247
|
+
#define SCNdFAST32 "d" /* int_fast32_t */
|
|
248
|
+
#ifdef _LP64
|
|
249
|
+
#define SCNdFAST64 "ld" /* int_fast64_t */
|
|
250
|
+
#define SCNdMAX "ld" /* intmax_t */
|
|
251
|
+
#else
|
|
252
|
+
#define SCNdFAST64 "lld" /* int_fast64_t */
|
|
253
|
+
#define SCNdMAX "lld" /* intmax_t */
|
|
254
|
+
#endif
|
|
255
|
+
#define SCNdPTR "ld" /* intptr_t */
|
|
256
|
+
|
|
257
|
+
#define SCNi8 "hhi" /* int8_t */
|
|
258
|
+
#define SCNi16 "hi" /* int16_t */
|
|
259
|
+
#define SCNi32 "i" /* int32_t */
|
|
260
|
+
#ifdef _LP64
|
|
261
|
+
#define SCNi64 "li" /* int64_t */
|
|
262
|
+
#else
|
|
263
|
+
#define SCNi64 "lli" /* int64_t */
|
|
264
|
+
#endif
|
|
265
|
+
#define SCNiLEAST8 "hhi" /* int_least8_t */
|
|
266
|
+
#define SCNiLEAST16 "hi" /* int_least16_t */
|
|
267
|
+
#define SCNiLEAST32 "i" /* int_least32_t */
|
|
268
|
+
#ifdef _LP64
|
|
269
|
+
#define SCNiLEAST64 "li" /* int_least64_t */
|
|
270
|
+
#define SCNiFAST8 "i" /* int_fast8_t */
|
|
271
|
+
#define SCNiFAST16 "i" /* int_fast16_t */
|
|
272
|
+
#else
|
|
273
|
+
#define SCNiLEAST64 "lli" /* int_least64_t */
|
|
274
|
+
#define SCNiFAST8 "hhi" /* int_fast8_t */
|
|
275
|
+
#define SCNiFAST16 "hi" /* int_fast16_t */
|
|
276
|
+
#endif
|
|
277
|
+
#define SCNiFAST32 "i" /* int_fast32_t */
|
|
278
|
+
#ifdef _LP64
|
|
279
|
+
#define SCNiFAST64 "li" /* int_fast64_t */
|
|
280
|
+
#define SCNiMAX "li" /* intmax_t */
|
|
281
|
+
#else
|
|
282
|
+
#define SCNiFAST64 "lli" /* int_fast64_t */
|
|
283
|
+
#define SCNiMAX "lli" /* intmax_t */
|
|
284
|
+
#endif
|
|
285
|
+
#define SCNiPTR "li" /* intptr_t */
|
|
286
|
+
|
|
287
|
+
/* fscanf macros for unsigned integers */
|
|
288
|
+
|
|
289
|
+
#define SCNo8 "hho" /* uint8_t */
|
|
290
|
+
#define SCNo16 "ho" /* uint16_t */
|
|
291
|
+
#define SCNo32 "o" /* uint32_t */
|
|
292
|
+
#ifdef _LP64
|
|
293
|
+
#define SCNo64 "lo" /* uint64_t */
|
|
294
|
+
#else
|
|
295
|
+
#define SCNo64 "llo" /* uint64_t */
|
|
296
|
+
#endif
|
|
297
|
+
#define SCNoLEAST8 "hho" /* uint_least8_t */
|
|
298
|
+
#define SCNoLEAST16 "ho" /* uint_least16_t */
|
|
299
|
+
#define SCNoLEAST32 "o" /* uint_least32_t */
|
|
300
|
+
#ifdef _LP64
|
|
301
|
+
#define SCNoLEAST64 "lo" /* uint_least64_t */
|
|
302
|
+
#define SCNoFAST8 "o" /* uint_fast8_t */
|
|
303
|
+
#define SCNoFAST16 "o" /* uint_fast16_t */
|
|
304
|
+
#else
|
|
305
|
+
#define SCNoLEAST64 "llo" /* uint_least64_t */
|
|
306
|
+
#define SCNoFAST8 "hho" /* uint_fast8_t */
|
|
307
|
+
#define SCNoFAST16 "ho" /* uint_fast16_t */
|
|
308
|
+
#endif
|
|
309
|
+
#define SCNoFAST32 "o" /* uint_fast32_t */
|
|
310
|
+
#ifdef _LP64
|
|
311
|
+
#define SCNoFAST64 "lo" /* uint_fast64_t */
|
|
312
|
+
#define SCNoMAX "lo" /* uintmax_t */
|
|
313
|
+
#else
|
|
314
|
+
#define SCNoFAST64 "llo" /* uint_fast64_t */
|
|
315
|
+
#define SCNoMAX "llo" /* uintmax_t */
|
|
316
|
+
#endif
|
|
317
|
+
#define SCNoPTR "lo" /* uintptr_t */
|
|
318
|
+
|
|
319
|
+
#define SCNu8 "hhu" /* uint8_t */
|
|
320
|
+
#define SCNu16 "hu" /* uint16_t */
|
|
321
|
+
#define SCNu32 "u" /* uint32_t */
|
|
322
|
+
#ifdef _LP64
|
|
323
|
+
#define SCNu64 "lu" /* uint64_t */
|
|
324
|
+
#else
|
|
325
|
+
#define SCNu64 "llu" /* uint64_t */
|
|
326
|
+
#endif
|
|
327
|
+
#define SCNuLEAST8 "hhu" /* uint_least8_t */
|
|
328
|
+
#define SCNuLEAST16 "hu" /* uint_least16_t */
|
|
329
|
+
#define SCNuLEAST32 "u" /* uint_least32_t */
|
|
330
|
+
#ifdef _LP64
|
|
331
|
+
#define SCNuLEAST64 "lu" /* uint_least64_t */
|
|
332
|
+
#define SCNuFAST8 "u" /* uint_fast8_t */
|
|
333
|
+
#define SCNuFAST16 "u" /* uint_fast16_t */
|
|
334
|
+
#else
|
|
335
|
+
#define SCNuLEAST64 "llu" /* uint_least64_t */
|
|
336
|
+
#define SCNuFAST8 "hhu" /* uint_fast8_t */
|
|
337
|
+
#define SCNuFAST16 "hu" /* uint_fast16_t */
|
|
338
|
+
#endif
|
|
339
|
+
#define SCNuFAST32 "u" /* uint_fast32_t */
|
|
340
|
+
#ifdef _LP64
|
|
341
|
+
#define SCNuFAST64 "lu" /* uint_fast64_t */
|
|
342
|
+
#define SCNuMAX "lu" /* uintmax_t */
|
|
343
|
+
#else
|
|
344
|
+
#define SCNuFAST64 "llu" /* uint_fast64_t */
|
|
345
|
+
#define SCNuMAX "llu" /* uintmax_t */
|
|
346
|
+
#endif
|
|
347
|
+
#define SCNuPTR "lu" /* uintptr_t */
|
|
348
|
+
|
|
349
|
+
#define SCNx8 "hhx" /* uint8_t */
|
|
350
|
+
#define SCNx16 "hx" /* uint16_t */
|
|
351
|
+
#define SCNx32 "x" /* uint32_t */
|
|
352
|
+
#ifdef _LP64
|
|
353
|
+
#define SCNx64 "lx" /* uint64_t */
|
|
354
|
+
#else
|
|
355
|
+
#define SCNx64 "llx" /* uint64_t */
|
|
356
|
+
#endif
|
|
357
|
+
#define SCNxLEAST8 "hhx" /* uint_least8_t */
|
|
358
|
+
#define SCNxLEAST16 "hx" /* uint_least16_t */
|
|
359
|
+
#define SCNxLEAST32 "x" /* uint_least32_t */
|
|
360
|
+
#ifdef _LP64
|
|
361
|
+
#define SCNxLEAST64 "lx" /* uint_least64_t */
|
|
362
|
+
#define SCNxFAST8 "x" /* uint_fast8_t */
|
|
363
|
+
#define SCNxFAST16 "x" /* uint_fast16_t */
|
|
364
|
+
#else
|
|
365
|
+
#define SCNxLEAST64 "llx" /* uint_least64_t */
|
|
366
|
+
#define SCNxFAST8 "hhx" /* uint_fast8_t */
|
|
367
|
+
#define SCNxFAST16 "hx" /* uint_fast16_t */
|
|
368
|
+
#endif
|
|
369
|
+
#define SCNxFAST32 "x" /* uint_fast32_t */
|
|
370
|
+
#ifdef _LP64
|
|
371
|
+
#define SCNxFAST64 "lx" /* uint_fast64_t */
|
|
372
|
+
#define SCNxMAX "lx" /* uintmax_t */
|
|
373
|
+
#else
|
|
374
|
+
#define SCNxFAST64 "llx" /* uint_fast64_t */
|
|
375
|
+
#define SCNxMAX "llx" /* uintmax_t */
|
|
376
|
+
#endif
|
|
377
|
+
#define SCNxPTR "lx" /* uintptr_t */
|
|
378
|
+
|
|
379
|
+
#endif /* !__INTPTR_FMTd__ */
|
|
380
|
+
|
|
381
|
+
#endif /* !_RISCV_INT_FMTIO_H_ */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: int_limits.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
#include <
|
|
3
|
+
#include <sys/common_int_limits.h>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: int_mwgwtypes.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
#include <
|
|
3
|
+
#include <sys/common_int_mwgwtypes.h>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: int_types.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
#include <
|
|
3
|
+
#include <sys/common_int_types.h>
|
|
@@ -1,3 +1,40 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: kcore.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
/*-
|
|
4
|
+
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This code is derived from software contributed to The NetBSD Foundation
|
|
8
|
+
* by Matt Thomas of 3am Software Foundry.
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11
|
+
* modification, are permitted provided that the following conditions
|
|
12
|
+
* are met:
|
|
13
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
* notice, this list of conditions and the following disclaimer.
|
|
15
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
17
|
+
* documentation and/or other materials provided with the distribution.
|
|
18
|
+
*
|
|
19
|
+
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
20
|
+
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
21
|
+
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
23
|
+
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
#ifndef _RISCV_KCORE_H_
|
|
33
|
+
#define _RISCV_KCORE_H_
|
|
34
|
+
|
|
35
|
+
typedef struct cpu_kcore_hdr {
|
|
36
|
+
uint64_t kh_misc[8];
|
|
37
|
+
phys_ram_seg_t kh_ramsegs[0];
|
|
38
|
+
} cpu_kcore_hdr_t;
|
|
39
|
+
|
|
40
|
+
#endif /* _RISCV_KCORE_H_ */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: limits.h,v 1.1 2014/09/19 17:36:26 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
#include <
|
|
3
|
+
#include <sys/common_limits.h>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* $NetBSD: lock.h,v 1.4 2015/06/26 14:27:35 matt Exp $ */
|
|
2
2
|
|
|
3
|
-
#include <
|
|
3
|
+
#include <sys/common_lock.h>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* $NetBSD: lwp_private.h,v 1.1 2024/11/30 01:04:13 christos Exp $ */
|
|
2
|
+
|
|
3
|
+
/*-
|
|
4
|
+
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* This code is derived from software contributed to The NetBSD Foundation
|
|
8
|
+
* by Matt Thomas of 3am Software Foundry.
|
|
9
|
+
*
|
|
10
|
+
* Redistribution and use in source and binary forms, with or without
|
|
11
|
+
* modification, are permitted provided that the following conditions
|
|
12
|
+
* are met:
|
|
13
|
+
* 1. Redistributions of source code must retain the above copyright
|
|
14
|
+
* notice, this list of conditions and the following disclaimer.
|
|
15
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
* notice, this list of conditions and the following disclaimer in the
|
|
17
|
+
* documentation and/or other materials provided with the distribution.
|
|
18
|
+
*
|
|
19
|
+
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
20
|
+
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
21
|
+
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
23
|
+
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
+
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
+
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
+
* POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
*/
|
|
31
|
+
#ifndef _RISCV_LWP_PRIVATE_H_
|
|
32
|
+
#define _RISCV_LWP_PRIVATE_H_
|
|
33
|
+
|
|
34
|
+
#include <sys/cdefs.h>
|
|
35
|
+
#include <sys/tls.h>
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* On RISCV, since displacements are signed 12-bit values, the TCB Pointer
|
|
39
|
+
* is biased by sizeof(tcb) so that first thread datum can be addressed by
|
|
40
|
+
* -sizeof(tcb).
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
#define TLS_TP_OFFSET 0x0
|
|
44
|
+
#define TLS_TCB_ALIGN 16
|
|
45
|
+
#define TLS_DTV_OFFSET 0x800
|
|
46
|
+
__CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x800);
|
|
47
|
+
|
|
48
|
+
__BEGIN_DECLS
|
|
49
|
+
|
|
50
|
+
static __inline void *
|
|
51
|
+
__lwp_getprivate_fast(void)
|
|
52
|
+
{
|
|
53
|
+
void *__tp;
|
|
54
|
+
__asm("mv %0, tp" : "=r"(__tp));
|
|
55
|
+
return __tp;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
static __inline void *
|
|
59
|
+
__lwp_gettcb_fast(void)
|
|
60
|
+
{
|
|
61
|
+
void *__tcb;
|
|
62
|
+
|
|
63
|
+
__asm __volatile(
|
|
64
|
+
"addi %[__tcb], tp, %[__offset]"
|
|
65
|
+
: [__tcb] "=r" (__tcb)
|
|
66
|
+
: [__offset] "n" (-(TLS_TP_OFFSET + sizeof(struct tls_tcb))));
|
|
67
|
+
|
|
68
|
+
return __tcb;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static __inline void
|
|
72
|
+
__lwp_settcb(void *__tcb)
|
|
73
|
+
{
|
|
74
|
+
__asm __volatile(
|
|
75
|
+
"addi tp, %[__tcb], %[__offset]"
|
|
76
|
+
:
|
|
77
|
+
: [__tcb] "r" (__tcb),
|
|
78
|
+
[__offset] "n" (TLS_TP_OFFSET + sizeof(struct tls_tcb)));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
__END_DECLS
|
|
82
|
+
|
|
83
|
+
#endif /* !_RISCV_LWP_PRIVATE_H_ */
|