@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,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: types.h,v 1.
|
|
1
|
+
/* $NetBSD: types.h,v 1.73 2025/05/08 05:31:16 imil Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1990 The Regents of the University of California.
|
|
@@ -101,6 +101,7 @@ typedef unsigned char __cpu_simple_lock_nv_t;
|
|
|
101
101
|
#define __HAVE_MM_MD_DIRECT_MAPPED_PHYS
|
|
102
102
|
#define __HAVE_UCAS_FULL
|
|
103
103
|
#define __HAVE_BUS_SPACE_8
|
|
104
|
+
#define __HAVE_BOOT_DURATION
|
|
104
105
|
|
|
105
106
|
#ifdef _KERNEL_OPT
|
|
106
107
|
#define __HAVE_RAS
|
package/libc/netbsd/abilists
CHANGED
|
Binary file
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* $NetBSD: crt0.S,v 1.3.4.1 2026/03/04 19:27:22 martin 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
|
+
|
|
32
|
+
#include <machine/asm.h>
|
|
33
|
+
|
|
34
|
+
RCSID("$NetBSD: crt0.S,v 1.3.4.1 2026/03/04 19:27:22 martin Exp $")
|
|
35
|
+
|
|
36
|
+
STRONG_ALIAS(_start,__start)
|
|
37
|
+
|
|
38
|
+
_ENTRY(__start)
|
|
39
|
+
/*
|
|
40
|
+
* void ___start(void (*cleanup)(void), struct ps_strings *ps_strings);
|
|
41
|
+
*/
|
|
42
|
+
.option push
|
|
43
|
+
.option norelax
|
|
44
|
+
lla gp, __global_pointer$
|
|
45
|
+
.option pop
|
|
46
|
+
|
|
47
|
+
j ___start
|
|
48
|
+
END(__start)
|
|
49
|
+
|
|
50
|
+
.option push
|
|
51
|
+
.option norelax
|
|
52
|
+
|
|
53
|
+
_ENTRY(_start_setgp)
|
|
54
|
+
lla gp, __global_pointer$
|
|
55
|
+
.option pop
|
|
56
|
+
ret
|
|
57
|
+
END(_start_setgp)
|
|
58
|
+
|
|
59
|
+
.section .preinit_array, "aw"
|
|
60
|
+
.p2align PTR_SCALESHIFT
|
|
61
|
+
PTR_WORD _start_setgp
|
|
62
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: crt0-common.c,v 1.
|
|
1
|
+
/* $NetBSD: crt0-common.c,v 1.30 2025/05/02 23:04:06 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 1998 Christos Zoulas
|
|
@@ -36,13 +36,16 @@
|
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
38
|
#include <sys/cdefs.h>
|
|
39
|
-
__RCSID("$NetBSD: crt0-common.c,v 1.
|
|
39
|
+
__RCSID("$NetBSD: crt0-common.c,v 1.30 2025/05/02 23:04:06 riastradh Exp $");
|
|
40
40
|
|
|
41
41
|
#include <sys/types.h>
|
|
42
42
|
#include <sys/exec.h>
|
|
43
43
|
#include <sys/exec_elf.h>
|
|
44
44
|
#include <sys/syscall.h>
|
|
45
|
+
|
|
45
46
|
#include <machine/profile.h>
|
|
47
|
+
|
|
48
|
+
#include <limits.h>
|
|
46
49
|
#include <stdlib.h>
|
|
47
50
|
#include <unistd.h>
|
|
48
51
|
|
|
@@ -55,7 +58,6 @@ typedef void (*fptr_t)(void);
|
|
|
55
58
|
extern void _init(void);
|
|
56
59
|
extern void _fini(void);
|
|
57
60
|
#endif
|
|
58
|
-
extern void _libc_init(void);
|
|
59
61
|
|
|
60
62
|
/*
|
|
61
63
|
* Arrange for _DYNAMIC to be weak and undefined (and therefore to show up
|
|
@@ -254,11 +256,19 @@ relocate_self(struct ps_strings *ps_strings)
|
|
|
254
256
|
|
|
255
257
|
Elf_Dyn *dynp = (Elf_Dyn *)((uint8_t *)dynphdr->p_vaddr + relocbase);
|
|
256
258
|
|
|
259
|
+
const Elf_Relr *relr = 0, *relrlim;
|
|
257
260
|
const REL_TYPE *relocs = 0, *relocslim;
|
|
258
|
-
Elf_Addr relocssz = 0;
|
|
261
|
+
Elf_Addr relrsz = 0, relocssz = 0;
|
|
259
262
|
|
|
260
263
|
for (; dynp->d_tag != DT_NULL; dynp++) {
|
|
261
264
|
switch (dynp->d_tag) {
|
|
265
|
+
case DT_RELR:
|
|
266
|
+
relr =
|
|
267
|
+
(const Elf_Relr *)(relocbase + dynp->d_un.d_ptr);
|
|
268
|
+
break;
|
|
269
|
+
case DT_RELRSZ:
|
|
270
|
+
relrsz = dynp->d_un.d_val;
|
|
271
|
+
break;
|
|
262
272
|
case REL_TAG:
|
|
263
273
|
relocs =
|
|
264
274
|
(const REL_TYPE *)(relocbase + dynp->d_un.d_ptr);
|
|
@@ -268,7 +278,22 @@ relocate_self(struct ps_strings *ps_strings)
|
|
|
268
278
|
break;
|
|
269
279
|
}
|
|
270
280
|
}
|
|
281
|
+
relrlim = (const Elf_Relr *)((const uint8_t *)relr + relrsz);
|
|
271
282
|
relocslim = (const REL_TYPE *)((const uint8_t *)relocs + relocssz);
|
|
283
|
+
while (relr < relrlim) {
|
|
284
|
+
Elf_Addr *where;
|
|
285
|
+
|
|
286
|
+
where = (Elf_Addr *)(relocbase + *relr);
|
|
287
|
+
*where++ += relocbase;
|
|
288
|
+
while (++relr < relrlim && *relr & 1) {
|
|
289
|
+
unsigned i;
|
|
290
|
+
|
|
291
|
+
for (i = 1; i < CHAR_BIT*sizeof(*relr); i++, where++) {
|
|
292
|
+
if (*relr & ((Elf_Relr)1 << i))
|
|
293
|
+
*where += relocbase;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
272
297
|
for (; relocs < relocslim; ++relocs) {
|
|
273
298
|
Elf_Addr *where;
|
|
274
299
|
|
|
@@ -318,9 +343,6 @@ ___start(void (*cleanup)(void), /* from shared loader */
|
|
|
318
343
|
__progname = empty_string;
|
|
319
344
|
}
|
|
320
345
|
|
|
321
|
-
if (cleanup != NULL)
|
|
322
|
-
atexit(cleanup);
|
|
323
|
-
|
|
324
346
|
_libc_init();
|
|
325
347
|
|
|
326
348
|
if (&rtld_DYNAMIC == NULL) {
|
|
@@ -334,6 +356,9 @@ ___start(void (*cleanup)(void), /* from shared loader */
|
|
|
334
356
|
|
|
335
357
|
_preinit();
|
|
336
358
|
|
|
359
|
+
if (cleanup != NULL)
|
|
360
|
+
atexit(cleanup);
|
|
361
|
+
|
|
337
362
|
#ifdef MCRT0
|
|
338
363
|
atexit(_mcleanup);
|
|
339
364
|
monstartup((u_long)&__eprol, (u_long)&__etext);
|
package/package.json
CHANGED
package/std/Build/Cache/Path.zig
CHANGED
|
@@ -2,7 +2,6 @@ const Path = @This();
|
|
|
2
2
|
|
|
3
3
|
const std = @import("../../std.zig");
|
|
4
4
|
const Io = std.Io;
|
|
5
|
-
const fs = std.fs;
|
|
6
5
|
const assert = std.debug.assert;
|
|
7
6
|
const Allocator = std.mem.Allocator;
|
|
8
7
|
const Cache = std.Build.Cache;
|
|
@@ -33,13 +32,13 @@ pub fn join(p: Path, arena: Allocator, sub_path: []const u8) Allocator.Error!Pat
|
|
|
33
32
|
if (p.sub_path.len == 0) &.{sub_path} else &.{ p.sub_path, sub_path };
|
|
34
33
|
return .{
|
|
35
34
|
.root_dir = p.root_dir,
|
|
36
|
-
.sub_path = try
|
|
35
|
+
.sub_path = try Io.Dir.path.join(arena, parts),
|
|
37
36
|
};
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
pub fn resolvePosix(p: Path, arena: Allocator, sub_path: []const u8) Allocator.Error!Path {
|
|
41
40
|
if (sub_path.len == 0) return p;
|
|
42
|
-
const new_sub_path = try
|
|
41
|
+
const new_sub_path = try Io.Dir.path.resolvePosix(arena, &.{ p.sub_path, sub_path });
|
|
43
42
|
return .{
|
|
44
43
|
.root_dir = p.root_dir,
|
|
45
44
|
// Use "" instead of "." to represent `root_dir` itself.
|
|
@@ -60,9 +59,9 @@ pub fn joinStringZ(p: Path, gpa: Allocator, sub_path: []const u8) Allocator.Erro
|
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
pub fn openFile(p: Path, io: Io, sub_path: []const u8, flags: Io.Dir.OpenFileOptions) !Io.File {
|
|
63
|
-
var buf: [
|
|
62
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
64
63
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
65
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
64
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
66
65
|
p.sub_path, sub_path,
|
|
67
66
|
}) catch return error.NameTooLong;
|
|
68
67
|
};
|
|
@@ -75,19 +74,19 @@ pub fn openDir(
|
|
|
75
74
|
sub_path: []const u8,
|
|
76
75
|
args: Io.Dir.OpenOptions,
|
|
77
76
|
) Io.Dir.OpenError!Io.Dir {
|
|
78
|
-
var buf: [
|
|
77
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
79
78
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
80
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
79
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
81
80
|
p.sub_path, sub_path,
|
|
82
81
|
}) catch return error.NameTooLong;
|
|
83
82
|
};
|
|
84
83
|
return p.root_dir.handle.openDir(io, joined_path, args);
|
|
85
84
|
}
|
|
86
85
|
|
|
87
|
-
pub fn createDirPathOpen(p: Path, io: Io, sub_path: []const u8, opts: Io.Dir.
|
|
88
|
-
var buf: [
|
|
86
|
+
pub fn createDirPathOpen(p: Path, io: Io, sub_path: []const u8, opts: Io.Dir.CreateDirPathOpenOptions) !Io.Dir {
|
|
87
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
89
88
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
90
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
89
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
91
90
|
p.sub_path, sub_path,
|
|
92
91
|
}) catch return error.NameTooLong;
|
|
93
92
|
};
|
|
@@ -95,9 +94,9 @@ pub fn createDirPathOpen(p: Path, io: Io, sub_path: []const u8, opts: Io.Dir.Ope
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
pub fn statFile(p: Path, io: Io, sub_path: []const u8) !Io.Dir.Stat {
|
|
98
|
-
var buf: [
|
|
97
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
99
98
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
100
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
99
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
101
100
|
p.sub_path, sub_path,
|
|
102
101
|
}) catch return error.NameTooLong;
|
|
103
102
|
};
|
|
@@ -108,21 +107,21 @@ pub fn atomicFile(
|
|
|
108
107
|
p: Path,
|
|
109
108
|
io: Io,
|
|
110
109
|
sub_path: []const u8,
|
|
111
|
-
options: Io.Dir.
|
|
112
|
-
buf: *[
|
|
113
|
-
) !
|
|
110
|
+
options: Io.Dir.CreateFileAtomicOptions,
|
|
111
|
+
buf: *[Io.Dir.max_path_bytes]u8,
|
|
112
|
+
) !Io.File.Atomic {
|
|
114
113
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
115
|
-
break :p std.fmt.bufPrint(buf, "{s}" ++
|
|
114
|
+
break :p std.fmt.bufPrint(buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
116
115
|
p.sub_path, sub_path,
|
|
117
116
|
}) catch return error.NameTooLong;
|
|
118
117
|
};
|
|
119
|
-
return p.root_dir.handle.
|
|
118
|
+
return p.root_dir.handle.createFileAtomic(io, joined_path, options);
|
|
120
119
|
}
|
|
121
120
|
|
|
122
121
|
pub fn access(p: Path, io: Io, sub_path: []const u8, flags: Io.Dir.AccessOptions) !void {
|
|
123
|
-
var buf: [
|
|
122
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
124
123
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
125
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
124
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
126
125
|
p.sub_path, sub_path,
|
|
127
126
|
}) catch return error.NameTooLong;
|
|
128
127
|
};
|
|
@@ -130,9 +129,9 @@ pub fn access(p: Path, io: Io, sub_path: []const u8, flags: Io.Dir.AccessOptions
|
|
|
130
129
|
}
|
|
131
130
|
|
|
132
131
|
pub fn createDirPath(p: Path, io: Io, sub_path: []const u8) !void {
|
|
133
|
-
var buf: [
|
|
132
|
+
var buf: [Io.Dir.max_path_bytes]u8 = undefined;
|
|
134
133
|
const joined_path = if (p.sub_path.len == 0) sub_path else p: {
|
|
135
|
-
break :p std.fmt.bufPrint(&buf, "{s}" ++
|
|
134
|
+
break :p std.fmt.bufPrint(&buf, "{s}" ++ Io.Dir.path.sep_str ++ "{s}", .{
|
|
136
135
|
p.sub_path, sub_path,
|
|
137
136
|
}) catch return error.NameTooLong;
|
|
138
137
|
};
|
|
@@ -154,7 +153,7 @@ pub fn fmtEscapeString(path: Path) std.fmt.Alt(Path, formatEscapeString) {
|
|
|
154
153
|
pub fn formatEscapeString(path: Path, writer: *Io.Writer) Io.Writer.Error!void {
|
|
155
154
|
if (path.root_dir.path) |p| {
|
|
156
155
|
try std.zig.stringEscape(p, writer);
|
|
157
|
-
if (path.sub_path.len > 0) try std.zig.stringEscape(
|
|
156
|
+
if (path.sub_path.len > 0) try std.zig.stringEscape(Io.Dir.path.sep_str, writer);
|
|
158
157
|
}
|
|
159
158
|
if (path.sub_path.len > 0) {
|
|
160
159
|
try std.zig.stringEscape(path.sub_path, writer);
|
|
@@ -170,7 +169,7 @@ pub fn fmtEscapeChar(path: Path) std.fmt.Alt(Path, formatEscapeChar) {
|
|
|
170
169
|
pub fn formatEscapeChar(path: Path, writer: *Io.Writer) Io.Writer.Error!void {
|
|
171
170
|
if (path.root_dir.path) |p| {
|
|
172
171
|
for (p) |byte| try std.zig.charEscape(byte, writer);
|
|
173
|
-
if (path.sub_path.len > 0) try writer.writeByte(
|
|
172
|
+
if (path.sub_path.len > 0) try writer.writeByte(Io.Dir.path.sep);
|
|
174
173
|
}
|
|
175
174
|
if (path.sub_path.len > 0) {
|
|
176
175
|
for (path.sub_path) |byte| try std.zig.charEscape(byte, writer);
|
|
@@ -178,14 +177,14 @@ pub fn formatEscapeChar(path: Path, writer: *Io.Writer) Io.Writer.Error!void {
|
|
|
178
177
|
}
|
|
179
178
|
|
|
180
179
|
pub fn format(self: Path, writer: *Io.Writer) Io.Writer.Error!void {
|
|
181
|
-
if (
|
|
180
|
+
if (Io.Dir.path.isAbsolute(self.sub_path)) {
|
|
182
181
|
try writer.writeAll(self.sub_path);
|
|
183
182
|
return;
|
|
184
183
|
}
|
|
185
184
|
if (self.root_dir.path) |p| {
|
|
186
185
|
try writer.writeAll(p);
|
|
187
186
|
if (self.sub_path.len > 0) {
|
|
188
|
-
try writer.writeAll(
|
|
187
|
+
try writer.writeAll(Io.Dir.path.sep_str);
|
|
189
188
|
try writer.writeAll(self.sub_path);
|
|
190
189
|
}
|
|
191
190
|
return;
|
|
@@ -210,18 +209,18 @@ pub fn subPathOrDot(self: Path) []const u8 {
|
|
|
210
209
|
}
|
|
211
210
|
|
|
212
211
|
pub fn stem(p: Path) []const u8 {
|
|
213
|
-
return
|
|
212
|
+
return Io.Dir.path.stem(p.sub_path);
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
pub fn dirname(p: Path) ?Path {
|
|
217
216
|
return .{
|
|
218
217
|
.root_dir = p.root_dir,
|
|
219
|
-
.sub_path =
|
|
218
|
+
.sub_path = Io.Dir.path.dirname(p.subPathOpt() orelse return null) orelse "",
|
|
220
219
|
};
|
|
221
220
|
}
|
|
222
221
|
|
|
223
222
|
pub fn basename(p: Path) []const u8 {
|
|
224
|
-
return
|
|
223
|
+
return Io.Dir.path.basename(p.sub_path);
|
|
225
224
|
}
|
|
226
225
|
|
|
227
226
|
/// Useful to make `Path` a key in `std.ArrayHashMap`.
|
package/std/Build/Cache.zig
CHANGED
|
@@ -2144,6 +2144,33 @@ pub const ResolvedTarget = struct {
|
|
|
2144
2144
|
return (unwrap(this) orelse return null).get(c);
|
|
2145
2145
|
}
|
|
2146
2146
|
};
|
|
2147
|
+
|
|
2148
|
+
pub fn unwrapQuery(rt: *const ResolvedTarget, c: *const Configuration) ?std.Target.Query {
|
|
2149
|
+
const tq = rt.query.get(c) orelse return null;
|
|
2150
|
+
const cpu_arch = tq.flags.cpu_arch.unwrap() orelse rt.result.get(c).flags.cpu_arch.unwrap().?;
|
|
2151
|
+
return .{
|
|
2152
|
+
.cpu_arch = cpu_arch,
|
|
2153
|
+
.cpu_model = switch (tq.flags.cpu_model) {
|
|
2154
|
+
.native => .native,
|
|
2155
|
+
.baseline => .baseline,
|
|
2156
|
+
.determined_by_arch_os => .determined_by_arch_os,
|
|
2157
|
+
.explicit => .{ .explicit = cpu_arch.parseCpuModel(tq.cpu_name.value.?.slice(c)).? },
|
|
2158
|
+
},
|
|
2159
|
+
.cpu_features_add = tq.cpu_features_add.value orelse .empty,
|
|
2160
|
+
.cpu_features_sub = tq.cpu_features_sub.value orelse .empty,
|
|
2161
|
+
.os_tag = tq.flags.os_tag.unwrap(),
|
|
2162
|
+
.os_version_min = tq.os_version_min.u.unwrap(c),
|
|
2163
|
+
.os_version_max = tq.os_version_max.u.unwrap(c),
|
|
2164
|
+
.glibc_version = if (tq.glibc_version.value) |s|
|
|
2165
|
+
std.SemanticVersion.parse(s.slice(c)) catch unreachable
|
|
2166
|
+
else
|
|
2167
|
+
null,
|
|
2168
|
+
.android_api_level = tq.android_api_level.value,
|
|
2169
|
+
.abi = tq.flags.abi.unwrap(),
|
|
2170
|
+
.dynamic_linker = if (tq.dynamic_linker.value) |s| .init(s.slice(c)) else null,
|
|
2171
|
+
.ofmt = tq.flags.object_format.unwrap(),
|
|
2172
|
+
};
|
|
2173
|
+
}
|
|
2147
2174
|
};
|
|
2148
2175
|
|
|
2149
2176
|
pub const TargetQuery = struct {
|
|
@@ -2219,14 +2246,6 @@ pub const TargetQuery = struct {
|
|
|
2219
2246
|
windows: std.Target.Os.WindowsVersion,
|
|
2220
2247
|
default: void,
|
|
2221
2248
|
|
|
2222
|
-
pub fn init(x: ?std.Target.Query.OsVersion) @This() {
|
|
2223
|
-
return switch (x orelse return .default) {
|
|
2224
|
-
.none => .none,
|
|
2225
|
-
.semver => .semver,
|
|
2226
|
-
.windows => .windows,
|
|
2227
|
-
};
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
2249
|
pub fn unwrap(this: @This(), c: *const Configuration) ?std.Target.Query.OsVersion {
|
|
2231
2250
|
return switch (this) {
|
|
2232
2251
|
.none => .none,
|
|
@@ -2739,29 +2758,50 @@ pub const TargetQuery = struct {
|
|
|
2739
2758
|
dynamic_linker: bool,
|
|
2740
2759
|
};
|
|
2741
2760
|
|
|
2742
|
-
pub fn
|
|
2743
|
-
const cpu_arch = tq.flags.cpu_arch.unwrap()
|
|
2761
|
+
pub fn unwrapTarget(tq: *const TargetQuery, c: *const Configuration) std.Target {
|
|
2762
|
+
const cpu_arch = tq.flags.cpu_arch.unwrap().?;
|
|
2763
|
+
const os_tag = tq.flags.os_tag.unwrap().?;
|
|
2744
2764
|
return .{
|
|
2745
|
-
.
|
|
2746
|
-
|
|
2747
|
-
.
|
|
2748
|
-
.
|
|
2749
|
-
.determined_by_arch_os => .determined_by_arch_os,
|
|
2750
|
-
.explicit => .{ .explicit = cpu_arch.?.parseCpuModel(tq.cpu_name.value.?.slice(c)).? },
|
|
2765
|
+
.cpu = .{
|
|
2766
|
+
.arch = cpu_arch,
|
|
2767
|
+
.model = cpu_arch.parseCpuModel(tq.cpu_name.value.?.slice(c)).?,
|
|
2768
|
+
.features = tq.cpu_features_add.value.?,
|
|
2751
2769
|
},
|
|
2752
|
-
.
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2770
|
+
.os = .{
|
|
2771
|
+
.tag = os_tag,
|
|
2772
|
+
.version_range = switch (os_tag) {
|
|
2773
|
+
.linux => .{ .linux = .{
|
|
2774
|
+
.range = .{
|
|
2775
|
+
.min = tq.os_version_min.u.unwrap(c).?.semver,
|
|
2776
|
+
.max = tq.os_version_max.u.unwrap(c).?.semver,
|
|
2777
|
+
},
|
|
2778
|
+
.glibc = std.SemanticVersion.parse(tq.glibc_version.value.?.slice(c)) catch unreachable,
|
|
2779
|
+
.android = tq.android_api_level.value.?,
|
|
2780
|
+
} },
|
|
2781
|
+
.hurd => .{ .hurd = .{
|
|
2782
|
+
.range = .{
|
|
2783
|
+
.min = tq.os_version_min.u.unwrap(c).?.semver,
|
|
2784
|
+
.max = tq.os_version_max.u.unwrap(c).?.semver,
|
|
2785
|
+
},
|
|
2786
|
+
.glibc = std.SemanticVersion.parse(tq.glibc_version.value.?.slice(c)) catch unreachable,
|
|
2787
|
+
} },
|
|
2788
|
+
.windows => .{ .windows = .{
|
|
2789
|
+
.min = tq.os_version_min.u.unwrap(c).?.windows,
|
|
2790
|
+
.max = tq.os_version_max.u.unwrap(c).?.windows,
|
|
2791
|
+
} },
|
|
2792
|
+
else => switch (tq.os_version_min.u.unwrap(c).?) {
|
|
2793
|
+
.none => .{ .none = {} },
|
|
2794
|
+
.semver => |min| .{ .semver = .{
|
|
2795
|
+
.min = min,
|
|
2796
|
+
.max = tq.os_version_max.u.unwrap(c).?.semver,
|
|
2797
|
+
} },
|
|
2798
|
+
.windows => unreachable,
|
|
2799
|
+
},
|
|
2800
|
+
},
|
|
2801
|
+
},
|
|
2802
|
+
.abi = tq.flags.abi.unwrap().?,
|
|
2803
|
+
.ofmt = tq.flags.object_format.unwrap().?,
|
|
2804
|
+
.dynamic_linker = .init(if (tq.dynamic_linker.value) |s| s.slice(c) else null),
|
|
2765
2805
|
};
|
|
2766
2806
|
}
|
|
2767
2807
|
};
|
|
@@ -573,7 +573,7 @@ pub fn setVersionScript(compile: *Compile, source: LazyPath) void {
|
|
|
573
573
|
|
|
574
574
|
pub fn forceUndefinedSymbol(compile: *Compile, symbol_name: []const u8) void {
|
|
575
575
|
const graph = compile.step.owner.graph;
|
|
576
|
-
const arena = graph.
|
|
576
|
+
const arena = graph.arena;
|
|
577
577
|
compile.force_undefined_symbols.put(arena, graph.dupeString(symbol_name), {}) catch @panic("OOM");
|
|
578
578
|
}
|
|
579
579
|
|
|
@@ -710,12 +710,6 @@ pub fn getEmittedPdb(compile: *Compile) LazyPath {
|
|
|
710
710
|
return compile.getEmittedFileGeneric(&compile.generated_pdb);
|
|
711
711
|
}
|
|
712
712
|
|
|
713
|
-
/// Returns the generated compiler_rt dynamic library.
|
|
714
|
-
/// This is a hack for stage2_x86_64 + coff.
|
|
715
|
-
pub fn getEmittedCompilerRtDynLib(compile: *Compile) ?LazyPath {
|
|
716
|
-
return compile.getEmittedFileGeneric(&compile.generated_compiler_rt_dyn_lib);
|
|
717
|
-
}
|
|
718
|
-
|
|
719
713
|
/// Returns the path to the generated documentation directory.
|
|
720
714
|
pub fn getEmittedDocs(compile: *Compile) LazyPath {
|
|
721
715
|
return compile.getEmittedFileGeneric(&compile.generated_docs);
|
|
@@ -740,7 +734,7 @@ pub fn setExecCmd(compile: *Compile, args: []const ?[]const u8) void {
|
|
|
740
734
|
const graph = compile.step.owner.graph;
|
|
741
735
|
const arena = graph.arena;
|
|
742
736
|
assert(compile.kind == .@"test");
|
|
743
|
-
const duped_args = arena.alloc(?[]u8, args.len) catch @panic("OOM");
|
|
737
|
+
const duped_args = arena.alloc(?[]const u8, args.len) catch @panic("OOM");
|
|
744
738
|
for (args, 0..) |arg, i| {
|
|
745
739
|
duped_args[i] = if (arg) |a| graph.dupeString(a) else null;
|
|
746
740
|
}
|
|
@@ -89,7 +89,7 @@ pub const UpdateSectionOptions = struct {
|
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
pub fn updateSection(oc: *ObjCopy, section_name: []const u8, options: UpdateSectionOptions) void {
|
|
92
|
-
const graph = oc.owner.graph;
|
|
92
|
+
const graph = oc.step.owner.graph;
|
|
93
93
|
const arena = graph.arena;
|
|
94
94
|
const wc = &graph.wip_configuration;
|
|
95
95
|
oc.update_sections.append(arena, .{
|
|
@@ -106,7 +106,7 @@ pub const AddSectionOptions = struct {
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
pub fn addSection(oc: *ObjCopy, section_name: []const u8, options: AddSectionOptions) void {
|
|
109
|
-
const graph = oc.owner.graph;
|
|
109
|
+
const graph = oc.step.owner.graph;
|
|
110
110
|
const arena = graph.arena;
|
|
111
111
|
const wc = &graph.wip_configuration;
|
|
112
112
|
oc.add_sections.append(arena, .{
|
|
@@ -421,8 +421,8 @@ pub fn addOptionPath(options: *Options, name: []const u8, path: LazyPath) void {
|
|
|
421
421
|
const wc = &graph.wip_configuration;
|
|
422
422
|
|
|
423
423
|
options.args.append(arena, .{
|
|
424
|
-
.name =
|
|
425
|
-
.path = path.dupe(options.step.owner),
|
|
424
|
+
.name = wc.addString(name) catch @panic("OOM"),
|
|
425
|
+
.path = path.dupe(options.step.owner.graph),
|
|
426
426
|
}) catch @panic("OOM");
|
|
427
427
|
path.addStepDependencies(&options.step);
|
|
428
428
|
}
|
package/std/Build/Step/Run.zig
CHANGED
|
@@ -556,39 +556,6 @@ pub fn clearEnvironment(run: *Run) void {
|
|
|
556
556
|
run.environ_map = new_env_map;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
pub fn addPathDir(run: *Run, search_path: []const u8) void {
|
|
560
|
-
const b = run.step.owner;
|
|
561
|
-
const environ_map = getEnvMapInternal(run);
|
|
562
|
-
|
|
563
|
-
const use_wine = b.enable_wine and b.graph.host.result.os.tag != .windows and use_wine: switch (run.argv.items[0]) {
|
|
564
|
-
.artifact => |p| p.artifact.rootModuleTarget().os.tag == .windows,
|
|
565
|
-
.lazy_path => |p| {
|
|
566
|
-
switch (p.lazy_path) {
|
|
567
|
-
.generated => |g| if (g.file.step.cast(Step.Compile)) |cs| break :use_wine cs.rootModuleTarget().os.tag == .windows,
|
|
568
|
-
else => {},
|
|
569
|
-
}
|
|
570
|
-
break :use_wine std.mem.endsWith(u8, p.lazy_path.basename(b, &run.step), ".exe");
|
|
571
|
-
},
|
|
572
|
-
.decorated_directory => false,
|
|
573
|
-
.file_content => unreachable, // not allowed as first arg
|
|
574
|
-
.bytes => |bytes| std.mem.endsWith(u8, bytes, ".exe"),
|
|
575
|
-
.output_file, .output_file_dep, .output_directory => false,
|
|
576
|
-
};
|
|
577
|
-
const key = if (use_wine) "WINEPATH" else "PATH";
|
|
578
|
-
const prev_path = environ_map.get(key);
|
|
579
|
-
|
|
580
|
-
if (prev_path) |pp| {
|
|
581
|
-
const new_path = b.fmt("{s}{c}{s}", .{
|
|
582
|
-
pp,
|
|
583
|
-
if (use_wine) Dir.path.delimiter_windows else Dir.path.delimiter,
|
|
584
|
-
search_path,
|
|
585
|
-
});
|
|
586
|
-
environ_map.put(key, new_path) catch @panic("OOM");
|
|
587
|
-
} else {
|
|
588
|
-
environ_map.put(key, b.dupePath(search_path)) catch @panic("OOM");
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
559
|
pub fn getEnvMap(run: *Run) *EnvMap {
|
|
593
560
|
return getEnvMapInternal(run);
|
|
594
561
|
}
|
package/std/Build.zig
CHANGED
|
@@ -830,7 +830,17 @@ pub fn addModule(b: *Build, name: []const u8, options: Module.CreateOptions) *Mo
|
|
|
830
830
|
const graph = b.graph;
|
|
831
831
|
const arena = graph.arena;
|
|
832
832
|
const module = Module.create(b, options);
|
|
833
|
-
b.modules.
|
|
833
|
+
const gop = b.modules.getOrPutValue(
|
|
834
|
+
arena,
|
|
835
|
+
graph.dupeString(name),
|
|
836
|
+
module,
|
|
837
|
+
) catch @panic("OOM");
|
|
838
|
+
if (gop.found_existing) {
|
|
839
|
+
panic(
|
|
840
|
+
"A module with the name '{s}' has already been added to the package. Consider creating a private module with std.Build.createModule",
|
|
841
|
+
.{name},
|
|
842
|
+
);
|
|
843
|
+
}
|
|
834
844
|
return module;
|
|
835
845
|
}
|
|
836
846
|
|
|
@@ -945,7 +955,7 @@ pub fn addRunArtifact(b: *Build, exe: *Step.Compile) *Step.Run {
|
|
|
945
955
|
/// * `addSystemCommand`
|
|
946
956
|
/// * `addRunArtifact`
|
|
947
957
|
pub fn addRunFile(b: *Build, executable: LazyPath) *Step.Run {
|
|
948
|
-
const run_step = Step.Run.create(b, b.fmt("run {f}", .{executable
|
|
958
|
+
const run_step = Step.Run.create(b, b.fmt("run {f}", .{executable}));
|
|
949
959
|
run_step.addFileArg(executable);
|
|
950
960
|
return run_step;
|
|
951
961
|
}
|
|
@@ -992,13 +1002,33 @@ pub fn addWriteFile(b: *Build, file_path: []const u8, data: []const u8) *Step.Wr
|
|
|
992
1002
|
pub fn addNamedWriteFiles(b: *Build, name: []const u8) *Step.WriteFile {
|
|
993
1003
|
const graph = b.graph;
|
|
994
1004
|
const wf = Step.WriteFile.create(b);
|
|
995
|
-
b.named_writefiles.
|
|
1005
|
+
const gop = b.named_writefiles.getOrPutValue(
|
|
1006
|
+
graph.arena,
|
|
1007
|
+
graph.dupeString(name),
|
|
1008
|
+
wf,
|
|
1009
|
+
) catch @panic("OOM");
|
|
1010
|
+
if (gop.found_existing) {
|
|
1011
|
+
panic(
|
|
1012
|
+
"A WriteFile step with the name '{s}' has already been added to the package. Consider creating a private WriteFile step with std.Build.addWriteFiles",
|
|
1013
|
+
.{name},
|
|
1014
|
+
);
|
|
1015
|
+
}
|
|
996
1016
|
return wf;
|
|
997
1017
|
}
|
|
998
1018
|
|
|
999
1019
|
pub fn addNamedLazyPath(b: *Build, name: []const u8, lp: LazyPath) void {
|
|
1000
1020
|
const graph = b.graph;
|
|
1001
|
-
b.named_lazy_paths.
|
|
1021
|
+
const gop = b.named_lazy_paths.getOrPutValue(
|
|
1022
|
+
graph.arena,
|
|
1023
|
+
graph.dupeString(name),
|
|
1024
|
+
lp.dupe(graph),
|
|
1025
|
+
) catch @panic("OOM");
|
|
1026
|
+
if (gop.found_existing) {
|
|
1027
|
+
panic(
|
|
1028
|
+
"A LazyPath with the name '{s}' has already been added to the package.",
|
|
1029
|
+
.{name},
|
|
1030
|
+
);
|
|
1031
|
+
}
|
|
1002
1032
|
}
|
|
1003
1033
|
|
|
1004
1034
|
/// Creates a step for mutating files inside a temporary directory created lazily
|
package/std/Io/Kqueue.zig
CHANGED
|
@@ -1403,7 +1403,7 @@ fn openSocketPosix(
|
|
|
1403
1403
|
|
|
1404
1404
|
if (options.ip6_only) {
|
|
1405
1405
|
if (posix.IPV6 == void) return error.OptionUnsupported;
|
|
1406
|
-
try setSocketOption(k, socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY,
|
|
1406
|
+
try setSocketOption(k, socket_fd, posix.IPPROTO.IPV6, posix.IPV6.V6ONLY, 1);
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
1409
|
return socket_fd;
|