@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
|
@@ -2,6 +2,7 @@ const std = @import("std");
|
|
|
2
2
|
const Io = std.Io;
|
|
3
3
|
const mem = std.mem;
|
|
4
4
|
const assert = std.debug.assert;
|
|
5
|
+
const Allocator = std.mem.Allocator;
|
|
5
6
|
|
|
6
7
|
const Maker = @import("../Maker.zig");
|
|
7
8
|
const Step = @import("Step.zig");
|
|
@@ -23,6 +24,7 @@ pub const Result = std.zig.PkgConfig.Parsed;
|
|
|
23
24
|
pub fn run(
|
|
24
25
|
maker: *Maker,
|
|
25
26
|
step: *Step,
|
|
27
|
+
arena: Allocator,
|
|
26
28
|
progress_node: std.Progress.Node,
|
|
27
29
|
lib_name: []const u8,
|
|
28
30
|
/// If true, reports failure error messages on step rather than returning
|
|
@@ -31,7 +33,6 @@ pub fn run(
|
|
|
31
33
|
) RunError!Result {
|
|
32
34
|
const pc = &maker.pkg_config;
|
|
33
35
|
const graph = maker.graph;
|
|
34
|
-
const arena = graph.arena; // TODO don't leak into process arena
|
|
35
36
|
|
|
36
37
|
const pkg_config_exe = getExe(graph);
|
|
37
38
|
const pkgs = try getPkgs(maker, step, progress_node, force);
|
|
@@ -41,7 +42,7 @@ pub fn run(
|
|
|
41
42
|
};
|
|
42
43
|
const pkg = pkgs.all[found_index];
|
|
43
44
|
|
|
44
|
-
const stdout = try captureChildProcess(maker, step, .{
|
|
45
|
+
const stdout = try captureChildProcess(maker, step, arena, .{
|
|
45
46
|
.argv = &.{ pkg_config_exe, pkg.name, "--cflags", "--libs" },
|
|
46
47
|
.progress_node = progress_node,
|
|
47
48
|
.allow_failure = !force,
|
|
@@ -69,11 +70,16 @@ fn getExe(graph: *const Graph) []const u8 {
|
|
|
69
70
|
return std.zig.PkgConfig.exe(&graph.environ_map);
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
fn getPkgs(
|
|
73
|
+
fn getPkgs(
|
|
74
|
+
maker: *Maker,
|
|
75
|
+
step: *Step,
|
|
76
|
+
progress_node: std.Progress.Node,
|
|
77
|
+
force: bool,
|
|
78
|
+
) RunError!std.zig.PkgConfig {
|
|
73
79
|
const graph = maker.graph;
|
|
74
|
-
const arena = graph.arena; // TODO don't leak into process arena
|
|
75
80
|
const io = graph.io;
|
|
76
81
|
const pc = &maker.pkg_config;
|
|
82
|
+
const arena = graph.arena;
|
|
77
83
|
|
|
78
84
|
try pc.mutex.lock(io);
|
|
79
85
|
defer pc.mutex.unlock(io);
|
|
@@ -81,7 +87,7 @@ fn getPkgs(maker: *Maker, step: *Step, progress_node: std.Progress.Node, force:
|
|
|
81
87
|
if (pc.pkgs) |pkgs| return pkgs;
|
|
82
88
|
|
|
83
89
|
const pkg_config_exe = getExe(graph);
|
|
84
|
-
const stdout = try captureChildProcess(maker, step, .{
|
|
90
|
+
const stdout = try captureChildProcess(maker, step, arena, .{
|
|
85
91
|
.argv = &.{ pkg_config_exe, "--list-all" },
|
|
86
92
|
.progress_node = progress_node,
|
|
87
93
|
.allow_failure = !force,
|
|
@@ -98,15 +104,17 @@ fn getPkgs(maker: *Maker, step: *Step, progress_node: std.Progress.Node, force:
|
|
|
98
104
|
else => |e| return e,
|
|
99
105
|
};
|
|
100
106
|
|
|
107
|
+
step.clearFailedCommand(maker.gpa);
|
|
101
108
|
pc.pkgs = result;
|
|
102
109
|
return result;
|
|
103
110
|
}
|
|
104
111
|
|
|
105
|
-
fn captureChildProcess(maker: *Maker, step: *Step, options: Step.CaptureChildProcessOptions) ![]const u8 {
|
|
106
|
-
const captured = step.captureChildProcess(maker, options) catch |err| switch (err) {
|
|
112
|
+
fn captureChildProcess(maker: *Maker, step: *Step, arena: Allocator, options: Step.CaptureChildProcessOptions) ![]const u8 {
|
|
113
|
+
const captured = step.captureChildProcess(maker, arena, options) catch |err| switch (err) {
|
|
107
114
|
error.FileNotFound => return error.PkgConfigUnavailable,
|
|
108
115
|
else => |e| return e,
|
|
109
116
|
};
|
|
117
|
+
if (captured.stderr.len != 0) try step.setResultStderr(maker.gpa, captured.stderr);
|
|
110
118
|
assert(step.result_failed_command != null);
|
|
111
119
|
if (captured.term.success()) return captured.stdout;
|
|
112
120
|
if (!options.allow_failure) return step.fail(maker, "{s} {f}", .{ options.argv[0], captured.term });
|
|
@@ -328,10 +328,10 @@ fn lowerZigArgs(
|
|
|
328
328
|
const pkg_conf_node = progress_node.start("pkg-config", 0);
|
|
329
329
|
defer pkg_conf_node.end();
|
|
330
330
|
|
|
331
|
-
if (PkgConfig.run(maker, step, pkg_conf_node, system_lib_name, force)) |
|
|
332
|
-
try zig_args.appendSlice(gpa,
|
|
333
|
-
try zig_args.appendSlice(gpa,
|
|
334
|
-
try seen_system_libs.put(arena, system_lib.name,
|
|
331
|
+
if (PkgConfig.run(maker, step, arena, pkg_conf_node, system_lib_name, force)) |pc| {
|
|
332
|
+
try zig_args.appendSlice(gpa, pc.cflags);
|
|
333
|
+
try zig_args.appendSlice(gpa, pc.libs);
|
|
334
|
+
try seen_system_libs.put(arena, system_lib.name, pc.cflags);
|
|
335
335
|
break :l;
|
|
336
336
|
} else |err| switch (err) {
|
|
337
337
|
error.PkgConfigUnavailable,
|
|
@@ -960,8 +960,8 @@ pub fn rebuildInFuzzMode(
|
|
|
960
960
|
const arena = arena_allocator.allocator();
|
|
961
961
|
|
|
962
962
|
step.result_error_msgs.clearRetainingCapacity();
|
|
963
|
-
step.
|
|
964
|
-
|
|
963
|
+
step.clearResultStderr(gpa);
|
|
964
|
+
step.clearErrorBundle(gpa);
|
|
965
965
|
step.result_error_bundle.deinit(gpa);
|
|
966
966
|
step.result_error_bundle = std.zig.ErrorBundle.empty;
|
|
967
967
|
|
|
@@ -1291,11 +1291,9 @@ fn appendModuleFlags(
|
|
|
1291
1291
|
|
|
1292
1292
|
if (m.resolved_target.get(conf)) |resolved_target| {
|
|
1293
1293
|
// Communicate the query via CLI since it's more compact.
|
|
1294
|
-
if (resolved_target.
|
|
1294
|
+
if (resolved_target.unwrapQuery(conf)) |query| {
|
|
1295
1295
|
try zig_args.ensureUnusedCapacity(gpa, 6);
|
|
1296
1296
|
|
|
1297
|
-
const query = compact_query.unwrap(conf);
|
|
1298
|
-
|
|
1299
1297
|
zig_args.appendAssumeCapacity("-target");
|
|
1300
1298
|
zig_args.appendAssumeCapacity(try query.zigTriple(arena));
|
|
1301
1299
|
|
|
@@ -43,7 +43,7 @@ pub fn make(
|
|
|
43
43
|
argv.appendAssumeCapacity(try maker.resolveLazyPathIndexAbs(arena, lp, step_index));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const run_result = step.captureChildProcess(maker, .{
|
|
46
|
+
const run_result = step.captureChildProcess(maker, arena, .{
|
|
47
47
|
.progress_node = progress_node,
|
|
48
48
|
.argv = argv.items,
|
|
49
49
|
.allow_failure = false,
|
|
@@ -332,6 +332,12 @@ pub fn make(
|
|
|
332
332
|
|
|
333
333
|
try populateGeneratedStdIo(maker, &conf_run, cache_root, &digest);
|
|
334
334
|
try populateGeneratedPaths(maker, output_placeholders.items, cache_root, &digest);
|
|
335
|
+
|
|
336
|
+
// The utility functions that spawn the child process must unconditionally allocate
|
|
337
|
+
// the failed command because at that point it is not known whether the step will
|
|
338
|
+
// pass or fail based on the process termination. Here we free the memory since
|
|
339
|
+
// the step has succeeded.
|
|
340
|
+
step.clearFailedCommand(gpa);
|
|
335
341
|
}
|
|
336
342
|
|
|
337
343
|
/// Reads stdout of a Zig test process until a termination condition is reached:
|
|
@@ -713,7 +719,7 @@ const FuzzTestRunner = struct {
|
|
|
713
719
|
}
|
|
714
720
|
}
|
|
715
721
|
|
|
716
|
-
fn listen(f: *FuzzTestRunner
|
|
722
|
+
fn listen(f: *FuzzTestRunner) !void {
|
|
717
723
|
const maker = f.ctx.fuzz.maker;
|
|
718
724
|
const graph = maker.graph;
|
|
719
725
|
const io = graph.io;
|
|
@@ -737,7 +743,7 @@ const FuzzTestRunner = struct {
|
|
|
737
743
|
else => |read_e| return read_e,
|
|
738
744
|
}),
|
|
739
745
|
2 => try f.completeStderrRead(id, result.file_read_streaming catch |e| switch (e) {
|
|
740
|
-
error.EndOfStream => return f.instanceEos(
|
|
746
|
+
error.EndOfStream => return f.instanceEos(id),
|
|
741
747
|
else => |read_e| return read_e,
|
|
742
748
|
}),
|
|
743
749
|
else => unreachable,
|
|
@@ -899,8 +905,9 @@ const FuzzTestRunner = struct {
|
|
|
899
905
|
} });
|
|
900
906
|
}
|
|
901
907
|
|
|
902
|
-
fn instanceEos(f: *FuzzTestRunner,
|
|
908
|
+
fn instanceEos(f: *FuzzTestRunner, id: u32) !void {
|
|
903
909
|
const maker = f.ctx.fuzz.maker;
|
|
910
|
+
const gpa = maker.gpa;
|
|
904
911
|
const instance = &f.instances[id];
|
|
905
912
|
const run_index = f.run_index;
|
|
906
913
|
|
|
@@ -912,7 +919,7 @@ const FuzzTestRunner = struct {
|
|
|
912
919
|
instance.child.stdin = null;
|
|
913
920
|
const term = try instance.child.wait(io);
|
|
914
921
|
if (!termMatches(.{ .exited = 0 }, term)) {
|
|
915
|
-
step.
|
|
922
|
+
step.takeResultStderr(gpa, try f.mergedStderr(gpa));
|
|
916
923
|
try f.saveCrash(id, term);
|
|
917
924
|
return step.fail(maker, "test process unexpectedly {f}", .{fmtTerm(term)});
|
|
918
925
|
}
|
|
@@ -1055,7 +1062,7 @@ const FuzzTestRunner = struct {
|
|
|
1055
1062
|
}
|
|
1056
1063
|
}
|
|
1057
1064
|
|
|
1058
|
-
fn mergedStderr(f: *FuzzTestRunner,
|
|
1065
|
+
fn mergedStderr(f: *FuzzTestRunner, gpa: Allocator) Allocator.Error![]const u8 {
|
|
1059
1066
|
// Collect any available stderr
|
|
1060
1067
|
while (f.batch.next()) |completion| {
|
|
1061
1068
|
if (completion.index % 3 != 2) continue;
|
|
@@ -1065,7 +1072,7 @@ const FuzzTestRunner = struct {
|
|
|
1065
1072
|
|
|
1066
1073
|
var stderr_len: usize = 0;
|
|
1067
1074
|
for (f.instances) |*instance| stderr_len += instance.stderr.items.len;
|
|
1068
|
-
const stderr = try
|
|
1075
|
+
const stderr = try gpa.alloc(u8, stderr_len);
|
|
1069
1076
|
|
|
1070
1077
|
stderr_len = 0;
|
|
1071
1078
|
for (f.instances) |*instance| {
|
|
@@ -1086,13 +1093,12 @@ fn evalFuzzTest(
|
|
|
1086
1093
|
var f: FuzzTestRunner = try .init(run, run_index, fuzz_context, progress_node, spawn_options);
|
|
1087
1094
|
defer f.deinit();
|
|
1088
1095
|
try f.startInstances();
|
|
1089
|
-
try f.listen(
|
|
1096
|
+
try f.listen();
|
|
1090
1097
|
}
|
|
1091
1098
|
|
|
1092
1099
|
const StdioPollEnum = enum { stdout, stderr };
|
|
1093
1100
|
|
|
1094
1101
|
fn evalZigTest(
|
|
1095
|
-
arena: Allocator,
|
|
1096
1102
|
run: *Run,
|
|
1097
1103
|
run_index: Configuration.Step.Index,
|
|
1098
1104
|
maker: *Maker,
|
|
@@ -1140,7 +1146,7 @@ fn evalZigTest(
|
|
|
1140
1146
|
};
|
|
1141
1147
|
|
|
1142
1148
|
switch (try waitZigTest(
|
|
1143
|
-
arena,
|
|
1149
|
+
graph.arena,
|
|
1144
1150
|
run,
|
|
1145
1151
|
run_index,
|
|
1146
1152
|
maker,
|
|
@@ -1158,7 +1164,7 @@ fn evalZigTest(
|
|
|
1158
1164
|
error.ReadFailed => return stderr_fr.err.?,
|
|
1159
1165
|
error.EndOfStream => {},
|
|
1160
1166
|
}
|
|
1161
|
-
step.
|
|
1167
|
+
step.takeResultStderr(gpa, try multi_reader.toOwnedSlice(1));
|
|
1162
1168
|
|
|
1163
1169
|
// Clean up everything and wait for the child to exit.
|
|
1164
1170
|
child.stdin.?.close(io);
|
|
@@ -1180,8 +1186,9 @@ fn evalZigTest(
|
|
|
1180
1186
|
.no_poll => |no_poll| {
|
|
1181
1187
|
// This might be a success (we requested exit and the child dutifully closed stdout) or
|
|
1182
1188
|
// a crash of some kind. Either way, the child will terminate by itself -- wait for it.
|
|
1183
|
-
const
|
|
1184
|
-
|
|
1189
|
+
const stderr_owned = try multi_reader.toOwnedSlice(1);
|
|
1190
|
+
var keep_stderr_owned = false;
|
|
1191
|
+
defer if (!keep_stderr_owned) gpa.free(stderr_owned);
|
|
1185
1192
|
|
|
1186
1193
|
// Clean up everything and wait for the child to exit.
|
|
1187
1194
|
child.stdin.?.close(io);
|
|
@@ -1209,7 +1216,9 @@ fn evalZigTest(
|
|
|
1209
1216
|
}
|
|
1210
1217
|
|
|
1211
1218
|
// Report an error if the child terminated uncleanly or if we were still trying to run more tests.
|
|
1212
|
-
step.
|
|
1219
|
+
step.takeResultStderr(gpa, stderr_owned);
|
|
1220
|
+
keep_stderr_owned = true;
|
|
1221
|
+
|
|
1213
1222
|
const tests_done = test_metadata != null and test_metadata.?.next_index == std.math.maxInt(u32);
|
|
1214
1223
|
if (!tests_done or !termMatches(.{ .exited = 0 }, term)) {
|
|
1215
1224
|
// The individual unit test results are irrelevant: the test runner itself broke!
|
|
@@ -1234,9 +1243,10 @@ fn evalZigTest(
|
|
|
1234
1243
|
return;
|
|
1235
1244
|
},
|
|
1236
1245
|
.timeout => |timeout| {
|
|
1237
|
-
const
|
|
1238
|
-
|
|
1239
|
-
|
|
1246
|
+
const stderr_owned = try multi_reader.toOwnedSlice(1);
|
|
1247
|
+
var keep_stderr_owned = false;
|
|
1248
|
+
defer if (!keep_stderr_owned) gpa.free(stderr_owned);
|
|
1249
|
+
|
|
1240
1250
|
if (timeout.active_test_index) |test_index| {
|
|
1241
1251
|
// A test was running. Report the timeout against that test, and continue on to
|
|
1242
1252
|
// the next test.
|
|
@@ -1245,16 +1255,20 @@ fn evalZigTest(
|
|
|
1245
1255
|
try step.addError(maker, "'{s}' timed out after {f}{s}{s}", .{
|
|
1246
1256
|
test_metadata.?.testName(test_index),
|
|
1247
1257
|
Io.Duration{ .nanoseconds = timeout.ns_elapsed },
|
|
1248
|
-
if (
|
|
1249
|
-
std.mem.trim(u8,
|
|
1258
|
+
if (stderr_owned.len != 0) " with stderr:\n" else "",
|
|
1259
|
+
std.mem.trim(u8, stderr_owned, "\n"),
|
|
1250
1260
|
});
|
|
1251
1261
|
continue;
|
|
1252
1262
|
}
|
|
1253
1263
|
// Just log an error and let the child be killed.
|
|
1254
|
-
step.
|
|
1264
|
+
step.takeResultStderr(gpa, stderr_owned);
|
|
1265
|
+
keep_stderr_owned = true;
|
|
1266
|
+
|
|
1255
1267
|
// The individual unit test results in `results` are irrelevant: the test runner
|
|
1256
1268
|
// is broken! Fail immediately without populating `s.test_results`.
|
|
1257
|
-
return step.fail(maker, "test runner failed to respond for {f}", .{
|
|
1269
|
+
return step.fail(maker, "test runner failed to respond for {f}", .{
|
|
1270
|
+
Io.Duration{ .nanoseconds = timeout.ns_elapsed },
|
|
1271
|
+
});
|
|
1258
1272
|
},
|
|
1259
1273
|
}
|
|
1260
1274
|
comptime unreachable;
|
|
@@ -1456,8 +1470,8 @@ fn evalGeneric(
|
|
|
1456
1470
|
|
|
1457
1471
|
try multi_reader.checkAnyError();
|
|
1458
1472
|
|
|
1459
|
-
stdout_bytes =
|
|
1460
|
-
stderr_bytes =
|
|
1473
|
+
stdout_bytes = multi_reader.reader(0).buffered();
|
|
1474
|
+
stderr_bytes = multi_reader.reader(1).buffered();
|
|
1461
1475
|
} else {
|
|
1462
1476
|
var stdout_reader = stdout.readerStreaming(io, &.{});
|
|
1463
1477
|
const stdio_limit: Io.Limit = if (conf_run.stdio_limit.value) |x| .limited64(x) else .unlimited;
|
|
@@ -1484,7 +1498,7 @@ fn evalGeneric(
|
|
|
1484
1498
|
else => true,
|
|
1485
1499
|
};
|
|
1486
1500
|
if (stderr_is_diagnostic) {
|
|
1487
|
-
step.
|
|
1501
|
+
try step.setResultStderr(maker.gpa, bytes);
|
|
1488
1502
|
}
|
|
1489
1503
|
};
|
|
1490
1504
|
|
|
@@ -1815,8 +1829,7 @@ fn runCommand(
|
|
|
1815
1829
|
}
|
|
1816
1830
|
const root_module = producer.root_module.get(conf);
|
|
1817
1831
|
const root_module_target = root_module.resolved_target.get(conf).?.result.get(conf);
|
|
1818
|
-
const
|
|
1819
|
-
const root_target = std.zig.system.resolveTargetQuery(io, other_target_query) catch unreachable;
|
|
1832
|
+
const root_target = root_module_target.unwrapTarget(conf);
|
|
1820
1833
|
const link_libc = maker.stepByIndex(producer_index).extended.compile.is_linking_libc;
|
|
1821
1834
|
|
|
1822
1835
|
const host: std.Target = std.zig.system.resolveTargetQuery(io, .{}) catch |he| switch (he) {
|
|
@@ -1900,6 +1913,12 @@ fn runCommand(
|
|
|
1900
1913
|
// by default. '-S inherit-env' was added in Wasmtime version 20.
|
|
1901
1914
|
interp_argv.appendAssumeCapacity("-Sinherit-env");
|
|
1902
1915
|
interp_argv.appendSliceAssumeCapacity(argv);
|
|
1916
|
+
|
|
1917
|
+
// Enable more detailed backtraces by default, but allow the user to override this (e.g.
|
|
1918
|
+
// with `WASMTIME_BACKTRACE_DETAILS=0`) if desired.
|
|
1919
|
+
if (environ_map.get("WASMTIME_BACKTRACE_DETAILS") == null) {
|
|
1920
|
+
try environ_map.put("WASMTIME_BACKTRACE_DETAILS", "1");
|
|
1921
|
+
}
|
|
1903
1922
|
} else {
|
|
1904
1923
|
return failForeign(arena, &conf_run, maker, run_index, "-fwasmtime", argv[0], &root_target, &host);
|
|
1905
1924
|
}
|
|
@@ -2084,16 +2103,11 @@ fn runCommand(
|
|
|
2084
2103
|
},
|
|
2085
2104
|
else => {
|
|
2086
2105
|
// On failure, report captured stderr like normal standard error output.
|
|
2087
|
-
|
|
2088
|
-
.exited => |code| code != 0,
|
|
2089
|
-
.signal, .stopped, .unknown => true,
|
|
2090
|
-
};
|
|
2091
|
-
if (bad_exit) {
|
|
2106
|
+
if (!generic_result.term.success()) {
|
|
2092
2107
|
if (generic_result.stderr) |bytes| {
|
|
2093
|
-
step.
|
|
2108
|
+
try step.setResultStderr(gpa, bytes);
|
|
2094
2109
|
}
|
|
2095
2110
|
}
|
|
2096
|
-
|
|
2097
2111
|
try step.handleChildProcessTerm(maker, generic_result.term);
|
|
2098
2112
|
},
|
|
2099
2113
|
}
|
|
@@ -2135,13 +2149,17 @@ fn spawnChildAndCollect(
|
|
|
2135
2149
|
.inherit;
|
|
2136
2150
|
|
|
2137
2151
|
// If an error occurs, it's caused by this command:
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
.
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2152
|
+
const cwd_string = switch (child_cwd) {
|
|
2153
|
+
.path => |p| p,
|
|
2154
|
+
.dir => unreachable,
|
|
2155
|
+
.inherit => null,
|
|
2156
|
+
};
|
|
2157
|
+
// We have to set the failed command here regardless of whether this
|
|
2158
|
+
// function returns an error because only after this function returns
|
|
2159
|
+
// does the logic determine whether the child process termination was
|
|
2160
|
+
// success or failure.
|
|
2161
|
+
step.setFailedCommand(gpa, argv, .{
|
|
2162
|
+
.cwd = cwd_string,
|
|
2145
2163
|
.child_env = environ_map,
|
|
2146
2164
|
.parent_env = &graph.environ_map,
|
|
2147
2165
|
});
|
|
@@ -2178,7 +2196,7 @@ fn spawnChildAndCollect(
|
|
|
2178
2196
|
|
|
2179
2197
|
if (conf_run.flags.stdio == .zig_test) {
|
|
2180
2198
|
const started: Io.Clock.Timestamp = .now(io, .awake);
|
|
2181
|
-
const result = evalZigTest(
|
|
2199
|
+
const result = evalZigTest(run, run_index, maker, progress_node, spawn_options, fuzz_context) catch |err| switch (err) {
|
|
2182
2200
|
error.Canceled => |e| return e,
|
|
2183
2201
|
else => |e| e,
|
|
2184
2202
|
};
|
|
@@ -2198,7 +2216,7 @@ fn spawnChildAndCollect(
|
|
|
2198
2216
|
try setColorEnvironmentVariables(&conf_run, environ_map, terminal_mode);
|
|
2199
2217
|
|
|
2200
2218
|
const started: Io.Clock.Timestamp = .now(io, .awake);
|
|
2201
|
-
const result = evalGeneric(
|
|
2219
|
+
const result = evalGeneric(arena, run_index, maker, spawn_options) catch |err| switch (err) {
|
|
2202
2220
|
error.Canceled => |e| return e,
|
|
2203
2221
|
else => |e| e,
|
|
2204
2222
|
};
|
|
@@ -40,10 +40,11 @@ pub fn make(
|
|
|
40
40
|
argv.appendAssumeCapacity("--global-cache-dir");
|
|
41
41
|
argv.appendAssumeCapacity(graph.global_cache_root.path orelse ".");
|
|
42
42
|
|
|
43
|
-
if (conf_tc.target.get(conf)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
if (conf_tc.target.get(conf)) |resolved_target| {
|
|
44
|
+
if (resolved_target.unwrapQuery(conf)) |query| {
|
|
45
|
+
argv.appendAssumeCapacity("-target");
|
|
46
|
+
argv.appendAssumeCapacity(try query.zigTriple(arena));
|
|
47
|
+
}
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
switch (conf_tc.flags.optimize) {
|
|
@@ -112,7 +113,7 @@ pub fn make(
|
|
|
112
113
|
const pkg_conf_node = progress_node.start("pkg-config", 0);
|
|
113
114
|
defer pkg_conf_node.end();
|
|
114
115
|
|
|
115
|
-
if (PkgConfig.run(maker, step, pkg_conf_node, system_lib_name, force)) |result| {
|
|
116
|
+
if (PkgConfig.run(maker, step, arena, pkg_conf_node, system_lib_name, force)) |result| {
|
|
116
117
|
try argv.appendSlice(arena, result.cflags);
|
|
117
118
|
try argv.appendSlice(arena, result.libs);
|
|
118
119
|
try seen_system_libs.put(arena, system_lib.name, result.cflags);
|
package/compiler/Maker/Step.zig
CHANGED
|
@@ -54,8 +54,10 @@ dependants: std.ArrayList(Configuration.Step.Index) = .empty,
|
|
|
54
54
|
inputs: Inputs = .init,
|
|
55
55
|
pending_deps: u32 = undefined,
|
|
56
56
|
|
|
57
|
+
/// Array list and internal memory owned by process arena.
|
|
57
58
|
result_error_msgs: std.ArrayList([]const u8) = .empty,
|
|
58
59
|
result_error_bundle: std.zig.ErrorBundle = .empty,
|
|
60
|
+
/// Owned by `Maker.gpa`.
|
|
59
61
|
result_stderr: []const u8 = "",
|
|
60
62
|
result_cached: bool = false,
|
|
61
63
|
/// Indicates error information is missing due to allocation failure.
|
|
@@ -310,9 +312,8 @@ pub fn reset(step: *Step, maker: *Maker) void {
|
|
|
310
312
|
const gpa = maker.gpa;
|
|
311
313
|
|
|
312
314
|
clearFailedCommand(step, gpa);
|
|
313
|
-
|
|
315
|
+
clearResultStderr(step, gpa);
|
|
314
316
|
step.result_error_msgs.clearRetainingCapacity();
|
|
315
|
-
step.result_stderr = "";
|
|
316
317
|
step.result_cached = false;
|
|
317
318
|
step.result_duration_ns = null;
|
|
318
319
|
step.result_peak_rss = 0;
|
|
@@ -332,20 +333,23 @@ pub const CaptureChildProcessOptions = struct {
|
|
|
332
333
|
allow_failure: bool = false,
|
|
333
334
|
};
|
|
334
335
|
|
|
335
|
-
/// Populates `s.result_failed_command
|
|
336
|
-
pub fn captureChildProcess(
|
|
336
|
+
/// Populates `s.result_failed_command` unconditionally.
|
|
337
|
+
pub fn captureChildProcess(
|
|
338
|
+
s: *Step,
|
|
339
|
+
maker: *Maker,
|
|
340
|
+
allocator: Allocator,
|
|
341
|
+
options: CaptureChildProcessOptions,
|
|
342
|
+
) !std.process.RunResult {
|
|
337
343
|
const gpa = maker.gpa;
|
|
338
344
|
const graph = maker.graph;
|
|
339
|
-
const arena = graph.arena; // TODO stop leaking into process arena
|
|
340
345
|
const io = graph.io;
|
|
341
346
|
|
|
342
|
-
|
|
343
|
-
s.result_failed_command = try std.zig.allocPrintCmd(gpa, options.argv, .{});
|
|
347
|
+
s.setFailedCommand(gpa, options.argv, .{});
|
|
344
348
|
|
|
345
349
|
try handleChildProcUnsupported(s, maker);
|
|
346
350
|
try graph.handleVerbose(null, null, options.argv);
|
|
347
351
|
|
|
348
|
-
const result = std.process.run(
|
|
352
|
+
const result = std.process.run(allocator, io, .{
|
|
349
353
|
.argv = options.argv,
|
|
350
354
|
.environ_map = options.environ_map orelse &graph.environ_map,
|
|
351
355
|
.progress_node = options.progress_node,
|
|
@@ -358,7 +362,7 @@ pub fn captureChildProcess(s: *Step, maker: *Maker, options: CaptureChildProcess
|
|
|
358
362
|
return s.fail(maker, "failed to run {s}: {t}", .{ options.argv[0], err });
|
|
359
363
|
};
|
|
360
364
|
|
|
361
|
-
if (result.stderr.len > 0) try s.result_error_msgs.append(arena, result.stderr);
|
|
365
|
+
if (result.stderr.len > 0) try s.result_error_msgs.append(graph.arena, result.stderr);
|
|
362
366
|
|
|
363
367
|
return result;
|
|
364
368
|
}
|
|
@@ -375,6 +379,21 @@ pub fn clearFailedCommand(s: *Step, gpa: Allocator) void {
|
|
|
375
379
|
}
|
|
376
380
|
}
|
|
377
381
|
|
|
382
|
+
pub fn setFailedCommand(
|
|
383
|
+
s: *Step,
|
|
384
|
+
gpa: Allocator,
|
|
385
|
+
argv: []const []const u8,
|
|
386
|
+
options: std.zig.AllocPrintCmdOptions,
|
|
387
|
+
) void {
|
|
388
|
+
s.clearFailedCommand(gpa);
|
|
389
|
+
s.result_failed_command = std.zig.allocPrintCmd(gpa, argv, options) catch |err| switch (err) {
|
|
390
|
+
error.OutOfMemory => {
|
|
391
|
+
s.result_oom = true;
|
|
392
|
+
return;
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
}
|
|
396
|
+
|
|
378
397
|
pub const FailError = error{ OutOfMemory, MakeFailed };
|
|
379
398
|
|
|
380
399
|
pub fn fail(step: *Step, maker: *const Maker, comptime fmt: []const u8, args: anytype) FailError {
|
|
@@ -410,7 +429,8 @@ pub const ZigProcess = struct {
|
|
|
410
429
|
|
|
411
430
|
/// Assumes that argv contains `--listen=-` and that the process being spawned
|
|
412
431
|
/// is the zig compiler - the same version that compiled the build runner.
|
|
413
|
-
///
|
|
432
|
+
///
|
|
433
|
+
/// Populates `s.result_failed_command` on failure.
|
|
414
434
|
pub fn evalZigProcess(
|
|
415
435
|
step_index: Configuration.Step.Index,
|
|
416
436
|
maker: *Maker,
|
|
@@ -424,8 +444,7 @@ pub fn evalZigProcess(
|
|
|
424
444
|
const io = graph.io;
|
|
425
445
|
|
|
426
446
|
// If an error occurs, it's happened in this command:
|
|
427
|
-
|
|
428
|
-
s.result_failed_command = try std.zig.allocPrintCmd(gpa, argv, .{});
|
|
447
|
+
errdefer s.setFailedCommand(gpa, argv, .{});
|
|
429
448
|
|
|
430
449
|
if (s.getZigProcess()) |zp| update: {
|
|
431
450
|
assert(watch);
|
|
@@ -683,16 +702,12 @@ fn sendMessage(io: Io, file: Io.File, tag: std.zig.Client.Message.Tag) !void {
|
|
|
683
702
|
};
|
|
684
703
|
}
|
|
685
704
|
|
|
686
|
-
/// Asserts that the caller has already populated `s.result_failed_command`.
|
|
687
705
|
pub inline fn handleChildProcUnsupported(s: *Step, maker: *Maker) FailError!void {
|
|
688
|
-
assert(s.result_failed_command != null);
|
|
689
706
|
if (!std.process.can_spawn)
|
|
690
707
|
return s.fail(maker, "unable to spawn process: host cannot spawn child processes", .{});
|
|
691
708
|
}
|
|
692
709
|
|
|
693
|
-
/// Asserts that the caller has already populated `s.result_failed_command`.
|
|
694
710
|
pub fn handleChildProcessTerm(s: *Step, maker: *Maker, term: std.process.Child.Term) FailError!void {
|
|
695
|
-
assert(s.result_failed_command != null);
|
|
696
711
|
if (!term.success()) return s.fail(maker, "process {f}", .{term});
|
|
697
712
|
}
|
|
698
713
|
|
|
@@ -861,3 +876,19 @@ fn oomWrap(s: *Step, result: error{OutOfMemory}!void) void {
|
|
|
861
876
|
s.result_oom = true;
|
|
862
877
|
};
|
|
863
878
|
}
|
|
879
|
+
|
|
880
|
+
pub fn clearResultStderr(step: *Step, gpa: Allocator) void {
|
|
881
|
+
if (step.result_stderr.len != 0) {
|
|
882
|
+
gpa.free(step.result_stderr);
|
|
883
|
+
step.result_stderr = "";
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
pub fn setResultStderr(step: *Step, gpa: Allocator, bytes: []const u8) Allocator.Error!void {
|
|
888
|
+
takeResultStderr(step, gpa, try gpa.dupe(u8, bytes));
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
pub fn takeResultStderr(step: *Step, gpa: Allocator, owned: []const u8) void {
|
|
892
|
+
clearResultStderr(step, gpa);
|
|
893
|
+
step.result_stderr = owned;
|
|
894
|
+
}
|