@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: string.h,v 1.
|
|
1
|
+
/* $NetBSD: string.h,v 1.58 2024/12/09 12:09:02 nros Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1990, 1993
|
|
@@ -45,83 +45,110 @@ typedef _BSD_SIZE_T_ size_t;
|
|
|
45
45
|
#include <sys/cdefs.h>
|
|
46
46
|
#include <sys/featuretest.h>
|
|
47
47
|
|
|
48
|
+
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
|
|
49
|
+
# ifndef __LOCALE_T_DECLARED
|
|
50
|
+
typedef struct _locale *locale_t;
|
|
51
|
+
# define __LOCALE_T_DECLARED
|
|
52
|
+
# endif
|
|
53
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
54
|
+
|
|
48
55
|
__BEGIN_DECLS
|
|
56
|
+
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE) || \
|
|
57
|
+
(__STDC_VERSION__ - 0 >= 202311L) || defined(_ISOC23_SOURCE)
|
|
58
|
+
void *memccpy(void *, const void *, int, size_t);
|
|
59
|
+
#endif /* _XOPEN_SOURCE || _NETBSD_SOURCE || _ISOC23_SOURCE */
|
|
49
60
|
void *memchr(const void *, int, size_t);
|
|
50
61
|
int memcmp(const void *, const void *, size_t);
|
|
51
62
|
void *memcpy(void * __restrict, const void * __restrict, size_t);
|
|
63
|
+
#if (_POSIX_C_SOURCE - 0 >= 202405L) || defined(_NETBSD_SOURCE)
|
|
64
|
+
void *memmem(const void *, size_t, const void *, size_t);
|
|
65
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
52
66
|
void *memmove(void *, const void *, size_t);
|
|
53
67
|
void *memset(void *, int, size_t);
|
|
68
|
+
#if (__STDC_VERSION__ - 0 >= 202311L) || defined(_ISOC23_SOURCE) || \
|
|
69
|
+
defined(_NETBSD_SOURCE)
|
|
70
|
+
void *memset_explicit(void *, int, size_t);
|
|
71
|
+
#endif
|
|
72
|
+
#if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
|
|
73
|
+
char *stpcpy(char * __restrict, const char * __restrict);
|
|
74
|
+
char *stpncpy(char * __restrict, const char * __restrict, size_t);
|
|
75
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
54
76
|
char *strcat(char * __restrict, const char * __restrict);
|
|
55
77
|
char *strchr(const char *, int);
|
|
56
78
|
int strcmp(const char *, const char *);
|
|
57
79
|
int strcoll(const char *, const char *);
|
|
80
|
+
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
|
|
81
|
+
int strcoll_l(const char *, const char *, locale_t);
|
|
82
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
58
83
|
char *strcpy(char * __restrict, const char * __restrict);
|
|
59
84
|
size_t strcspn(const char *, const char *);
|
|
85
|
+
#if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_XOPEN_SOURCE) || \
|
|
86
|
+
defined(_NETBSD_SOURCE) || (__STDC_VERSION__ - 0 >= 202311L) || \
|
|
87
|
+
defined(_ISOC23_SOURCE)
|
|
88
|
+
char *strdup(const char *);
|
|
89
|
+
#endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE ||
|
|
90
|
+
* _ISOC23_SOURCE
|
|
91
|
+
*/
|
|
60
92
|
__aconst char *strerror(int);
|
|
93
|
+
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
|
|
94
|
+
__aconst char *strerror_l(int, locale_t);
|
|
95
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
96
|
+
#if (_POSIX_C_SOURCE - 0 >= 200112L) || \
|
|
97
|
+
defined(_REENTRANT) || defined(_NETBSD_SOURCE)
|
|
98
|
+
int strerror_r(int, char *, size_t);
|
|
99
|
+
#endif /* _POSIX_C_SOURCE || _REENTRANT || _NETBSD_SOURCE */
|
|
100
|
+
#if (_POSIX_C_SOURCE - 0 >= 202405L) || defined(_NETBSD_SOURCE)
|
|
101
|
+
size_t strlcat(char * __restrict, const char * __restrict, size_t);
|
|
102
|
+
size_t strlcpy(char * __restrict, const char * __restrict, size_t);
|
|
103
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
61
104
|
size_t strlen(const char *);
|
|
62
105
|
char *strncat(char * __restrict, const char * __restrict, size_t);
|
|
63
106
|
int strncmp(const char *, const char *, size_t);
|
|
64
107
|
char *strncpy(char * __restrict, const char * __restrict, size_t);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
size_t strspn(const char *, const char *);
|
|
68
|
-
char *strstr(const char *, const char *);
|
|
69
|
-
char *strtok(char * __restrict, const char * __restrict);
|
|
70
|
-
#if (_POSIX_C_SOURCE - 0 >= 199506L) || (_XOPEN_SOURCE - 0 >= 500) || \
|
|
71
|
-
defined(_REENTRANT) || defined(_NETBSD_SOURCE)
|
|
72
|
-
char *strtok_r(char *, const char *, char **);
|
|
73
|
-
int strerror_r(int, char *, size_t);
|
|
74
|
-
#endif /* _POSIX_C_SOURCE >= 199506 || XOPEN_SOURCE >= 500 || ... */
|
|
75
|
-
size_t strxfrm(char * __restrict, const char * __restrict, size_t);
|
|
76
|
-
|
|
77
|
-
#if (_POSIX_C_SOURCE - 0 >= 200112L) || defined(_XOPEN_SOURCE) || \
|
|
78
|
-
defined(_NETBSD_SOURCE)
|
|
79
|
-
void *memccpy(void *, const void *, int, size_t);
|
|
80
|
-
char *strdup(const char *);
|
|
81
|
-
#endif
|
|
82
|
-
|
|
83
|
-
#if (_POSIX_C_SOURCE - 0 >= 200809L) || (_XOPEN_SOURCE - 0 >= 700) || \
|
|
84
|
-
defined(_NETBSD_SOURCE)
|
|
85
|
-
char *stpcpy(char * __restrict, const char * __restrict);
|
|
86
|
-
char *stpncpy(char * __restrict, const char * __restrict, size_t);
|
|
108
|
+
#if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE) || \
|
|
109
|
+
(__STDC_VERSION__ - 0 >= 202311L) || defined(_ISOC23_SOURCE)
|
|
87
110
|
char *strndup(const char *, size_t);
|
|
111
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE || _ISOC23_SOURCE */
|
|
112
|
+
#if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
|
|
88
113
|
size_t strnlen(const char *, size_t);
|
|
114
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
115
|
+
char *strpbrk(const char *, const char *);
|
|
116
|
+
char *strrchr(const char *, int);
|
|
117
|
+
#if (_POSIX_C_SOURCE - 0 >= 200809L) || defined(_NETBSD_SOURCE)
|
|
89
118
|
#ifndef __STRSIGNAL_DECLARED
|
|
90
119
|
#define __STRSIGNAL_DECLARED
|
|
91
120
|
/* also in unistd.h */
|
|
92
121
|
__aconst char *strsignal(int);
|
|
93
122
|
#endif /* __STRSIGNAL_DECLARED */
|
|
94
123
|
#endif
|
|
124
|
+
size_t strspn(const char *, const char *);
|
|
125
|
+
char *strstr(const char *, const char *);
|
|
126
|
+
char *strtok(char * __restrict, const char * __restrict);
|
|
127
|
+
#if (_POSIX_C_SOURCE - 0 >= 200112L) || \
|
|
128
|
+
defined(_REENTRANT) || defined(_NETBSD_SOURCE)
|
|
129
|
+
char *strtok_r(char *, const char *, char **);
|
|
130
|
+
#endif /* _POSIX_C_SOURCE || _REENTRANT || _NETBSD_SOURCE */
|
|
131
|
+
size_t strxfrm(char * __restrict, const char * __restrict, size_t);
|
|
132
|
+
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
|
|
133
|
+
size_t strxfrm_l(char * __restrict, const char * __restrict, size_t,
|
|
134
|
+
locale_t);
|
|
135
|
+
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
95
136
|
__END_DECLS
|
|
96
137
|
|
|
97
138
|
#if defined(_NETBSD_SOURCE)
|
|
98
139
|
#include <strings.h> /* for backwards-compatibility */
|
|
99
140
|
__BEGIN_DECLS
|
|
100
|
-
void *memmem(const void *, size_t, const void *, size_t);
|
|
101
141
|
char *strcasestr(const char *, const char *);
|
|
102
142
|
char *strchrnul(const char *, int);
|
|
103
|
-
size_t strlcat(char *, const char *, size_t);
|
|
104
|
-
size_t strlcpy(char *, const char *, size_t);
|
|
105
143
|
char *strsep(char **, const char *);
|
|
106
144
|
char *stresep(char **, const char *, int);
|
|
107
145
|
char *strnstr(const char *, const char *, size_t);
|
|
108
146
|
void *memrchr(const void *, int, size_t);
|
|
147
|
+
void *mempcpy(void * __restrict, const void * __restrict, size_t);
|
|
109
148
|
void *explicit_memset(void *, int, size_t);
|
|
110
149
|
int consttime_memequal(const void *, const void *, size_t);
|
|
111
150
|
__END_DECLS
|
|
112
|
-
#endif
|
|
113
|
-
|
|
114
|
-
#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
|
|
115
|
-
# ifndef __LOCALE_T_DECLARED
|
|
116
|
-
typedef struct _locale *locale_t;
|
|
117
|
-
# define __LOCALE_T_DECLARED
|
|
118
|
-
# endif
|
|
119
|
-
__BEGIN_DECLS
|
|
120
|
-
int strcoll_l(const char *, const char *, locale_t);
|
|
121
|
-
size_t strxfrm_l(char * __restrict, const char * __restrict, size_t, locale_t);
|
|
122
|
-
__aconst char *strerror_l(int, locale_t);
|
|
123
|
-
__END_DECLS
|
|
124
|
-
#endif /* _POSIX_C_SOURCE || _NETBSD_SOURCE */
|
|
151
|
+
#endif /* _NETBSD_SOURCE */
|
|
125
152
|
|
|
126
153
|
#if _FORTIFY_SOURCE > 0
|
|
127
154
|
#include <ssp/string.h>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: strings.h,v 1.
|
|
1
|
+
/* $NetBSD: strings.h,v 1.21 2024/11/01 18:52:29 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
|
@@ -49,17 +49,31 @@ typedef _BSD_SIZE_T_ size_t;
|
|
|
49
49
|
#include <machine/int_types.h>
|
|
50
50
|
|
|
51
51
|
__BEGIN_DECLS
|
|
52
|
+
#if defined(_NETBSD_SOURCE) || \
|
|
53
|
+
(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE - 0 < 700)
|
|
52
54
|
int bcmp(const void *, const void *, size_t);
|
|
53
55
|
void bcopy(const void *, void *, size_t);
|
|
54
56
|
void bzero(void *, size_t);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
#endif
|
|
58
|
+
#if defined(_NETBSD_SOURCE) || _XOPEN_SOURCE - 0 >= 600
|
|
59
|
+
int ffs(int) __constfunc;
|
|
60
|
+
#endif
|
|
61
|
+
#if defined(_NETBSD_SOURCE) || _XOPEN_SOURCE - 0 >= 800
|
|
62
|
+
int ffsl(long) __constfunc;
|
|
63
|
+
int ffsll(long long) __constfunc;
|
|
64
|
+
#endif
|
|
65
|
+
#ifdef _NETBSD_SOURCE
|
|
57
66
|
unsigned int popcount(unsigned int) __constfunc;
|
|
58
67
|
unsigned int popcountl(unsigned long) __constfunc;
|
|
59
68
|
unsigned int popcountll(unsigned long long) __constfunc;
|
|
60
69
|
unsigned int popcount32(__uint32_t) __constfunc;
|
|
61
70
|
unsigned int popcount64(__uint64_t) __constfunc;
|
|
71
|
+
#endif
|
|
72
|
+
#if defined(_NETBSD_SOURCE) || \
|
|
73
|
+
(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE - 0 < 700)
|
|
74
|
+
char *index(const char *, int);
|
|
62
75
|
char *rindex(const char *, int);
|
|
76
|
+
#endif
|
|
63
77
|
int strcasecmp(const char *, const char *);
|
|
64
78
|
int strncasecmp(const char *, const char *, size_t);
|
|
65
79
|
__END_DECLS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: atomic.h,v 1.
|
|
1
|
+
/* $NetBSD: atomic.h,v 1.27 2025/04/22 01:34:38 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
|
|
@@ -489,31 +489,36 @@ void kcsan_atomic_store(volatile void *, const void *, int);
|
|
|
489
489
|
static __inline __always_inline void
|
|
490
490
|
__do_atomic_store(volatile void *p, const void *q, size_t size)
|
|
491
491
|
{
|
|
492
|
+
volatile uint32_t *p32 = (volatile uint32_t *)((uintptr_t)p & ~3);
|
|
493
|
+
|
|
492
494
|
switch (size) {
|
|
493
495
|
case 1: {
|
|
494
496
|
uint8_t v;
|
|
495
497
|
unsigned s = 8 * ((uintptr_t)p & 3);
|
|
496
498
|
uint32_t o, n, m = ~(0xffU << s);
|
|
499
|
+
|
|
497
500
|
memcpy(&v, q, 1);
|
|
498
501
|
do {
|
|
499
|
-
o = atomic_load_relaxed(
|
|
502
|
+
o = atomic_load_relaxed(p32);
|
|
500
503
|
n = (o & m) | ((uint32_t)v << s);
|
|
501
|
-
} while (atomic_cas_32(
|
|
504
|
+
} while (atomic_cas_32(p32, o, n) != o);
|
|
502
505
|
break;
|
|
503
506
|
}
|
|
504
507
|
case 2: {
|
|
505
508
|
uint16_t v;
|
|
506
509
|
unsigned s = 8 * (((uintptr_t)p & 2) >> 1);
|
|
507
510
|
uint32_t o, n, m = ~(0xffffU << s);
|
|
511
|
+
|
|
508
512
|
memcpy(&v, q, 2);
|
|
509
513
|
do {
|
|
510
|
-
o = atomic_load_relaxed(
|
|
514
|
+
o = atomic_load_relaxed(p32);
|
|
511
515
|
n = (o & m) | ((uint32_t)v << s);
|
|
512
|
-
} while (atomic_cas_32(
|
|
516
|
+
} while (atomic_cas_32(p32, o, n) != o);
|
|
513
517
|
break;
|
|
514
518
|
}
|
|
515
519
|
case 4: {
|
|
516
520
|
uint32_t v;
|
|
521
|
+
|
|
517
522
|
memcpy(&v, q, 4);
|
|
518
523
|
(void)atomic_swap_32(p, v);
|
|
519
524
|
break;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: bitops.h,v 1.
|
|
1
|
+
/* $NetBSD: bitops.h,v 1.16 2024/05/12 10:34:56 rillig Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 2007, 2010 The NetBSD Foundation, Inc.
|
|
@@ -323,7 +323,7 @@ fast_remainder32(uint32_t _v, uint32_t _div, uint32_t _m, uint8_t _s1,
|
|
|
323
323
|
size_t __i; \
|
|
324
324
|
for (__i = 0; __i < __arraycount((__v)->_b); __i++) \
|
|
325
325
|
(__v)->_b[__i] = 0; \
|
|
326
|
-
} while (
|
|
326
|
+
} while (0)
|
|
327
327
|
#endif /* GCC 2.95 */
|
|
328
328
|
|
|
329
329
|
#endif /* _SYS_BITOPS_H_ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: bootblock.h,v 1.
|
|
1
|
+
/* $NetBSD: bootblock.h,v 1.61 2025/04/05 19:57:47 tsutsui Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 2002-2004 The NetBSD Foundation, Inc.
|
|
@@ -800,7 +800,7 @@ struct alpha_boot_block {
|
|
|
800
800
|
_i++) \
|
|
801
801
|
_cksum += le64toh(_bb->bb_data[_i]); \
|
|
802
802
|
*(cksum) = htole64(_cksum); \
|
|
803
|
-
} while (
|
|
803
|
+
} while (0)
|
|
804
804
|
|
|
805
805
|
/* ------------------------------------------
|
|
806
806
|
* apple --
|
|
@@ -986,6 +986,17 @@ struct hp300_load {
|
|
|
986
986
|
#define HP300_DIR_FLAG 0x8001 /* don't ask me! */
|
|
987
987
|
#define HP300_SECTSIZE 256
|
|
988
988
|
|
|
989
|
+
#define HP300_LIF_NUMDIR 8
|
|
990
|
+
|
|
991
|
+
#define HP300_LIF_VOLSTART 0
|
|
992
|
+
#define HP300_LIF_VOLSIZE sizeof(struct hp300_lifvol)
|
|
993
|
+
#define HP300_LIF_DIRSTART 512
|
|
994
|
+
#define HP300_LIF_DIRSIZE (HP300_LIF_NUMDIR * sizeof(struct hp300_lifdir))
|
|
995
|
+
#define HP300_LIF_FILESTART 8192
|
|
996
|
+
|
|
997
|
+
#define hp300_btolifs(b) (((b) + (HP300_SECTSIZE - 1)) / HP300_SECTSIZE)
|
|
998
|
+
#define hp300_lifstob(s) ((s) * HP300_SECTSIZE)
|
|
999
|
+
|
|
989
1000
|
|
|
990
1001
|
/* ------------------------------------------
|
|
991
1002
|
* hppa
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: bswap.h,v 1.19
|
|
1
|
+
/* $NetBSD: bswap.h,v 1.19.56.1 2025/11/28 10:58:02 martin Exp $ */
|
|
2
2
|
|
|
3
3
|
/* Written by Manuel Bouyer. Public domain */
|
|
4
4
|
|
|
@@ -24,20 +24,7 @@ __END_DECLS
|
|
|
24
24
|
|
|
25
25
|
#if defined(__GNUC__) && !defined(__lint__)
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
#ifndef __BYTE_SWAP_U64_VARIABLE
|
|
29
|
-
#define __BYTE_SWAP_U64_VARIABLE bswap64
|
|
30
|
-
#endif
|
|
31
|
-
|
|
32
|
-
#ifndef __BYTE_SWAP_U32_VARIABLE
|
|
33
|
-
#define __BYTE_SWAP_U32_VARIABLE bswap32
|
|
34
|
-
#endif
|
|
35
|
-
|
|
36
|
-
#ifndef __BYTE_SWAP_U16_VARIABLE
|
|
37
|
-
#define __BYTE_SWAP_U16_VARIABLE bswap16
|
|
38
|
-
#endif
|
|
39
|
-
|
|
40
|
-
#define __byte_swap_u64_constant(x) \
|
|
27
|
+
#define __byte_swap_u64_constexpr(x) \
|
|
41
28
|
(__CAST(uint64_t, \
|
|
42
29
|
((((x) & 0xff00000000000000ull) >> 56) | \
|
|
43
30
|
(((x) & 0x00ff000000000000ull) >> 40) | \
|
|
@@ -48,29 +35,68 @@ __END_DECLS
|
|
|
48
35
|
(((x) & 0x000000000000ff00ull) << 40) | \
|
|
49
36
|
(((x) & 0x00000000000000ffull) << 56))))
|
|
50
37
|
|
|
51
|
-
#define
|
|
38
|
+
#define __byte_swap_u32_constexpr(x) \
|
|
52
39
|
(__CAST(uint32_t, \
|
|
53
40
|
((((x) & 0xff000000) >> 24) | \
|
|
54
41
|
(((x) & 0x00ff0000) >> 8) | \
|
|
55
42
|
(((x) & 0x0000ff00) << 8) | \
|
|
56
43
|
(((x) & 0x000000ff) << 24))))
|
|
57
44
|
|
|
58
|
-
#define
|
|
45
|
+
#define __byte_swap_u16_constexpr(x) \
|
|
59
46
|
(__CAST(uint16_t, \
|
|
60
47
|
((((x) & 0xff00) >> 8) | \
|
|
61
48
|
(((x) & 0x00ff) << 8))))
|
|
62
49
|
|
|
50
|
+
/*
|
|
51
|
+
* The compiler always generates an expensive function call to bswap
|
|
52
|
+
* on some architectures, we want the inline versions there.
|
|
53
|
+
*/
|
|
54
|
+
#ifdef __HAVE_SLOW_BSWAP_BUILTIN
|
|
55
|
+
|
|
56
|
+
static __inline uint64_t __byte_swap_u64_inline(uint64_t x) {
|
|
57
|
+
return __byte_swap_u64_constexpr(x);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
static __inline uint32_t __byte_swap_u32_inline(uint32_t x) {
|
|
61
|
+
return __byte_swap_u32_constexpr(x);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static __inline uint16_t __byte_swap_u16_inline(uint16_t x) {
|
|
65
|
+
return __byte_swap_u16_constexpr(x);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#define __BYTE_SWAP_U64_VARIABLE __byte_swap_u64_inline
|
|
69
|
+
#define __BYTE_SWAP_U32_VARIABLE __byte_swap_u32_inline
|
|
70
|
+
#define __BYTE_SWAP_U16_VARIABLE __byte_swap_u16_inline
|
|
71
|
+
|
|
72
|
+
#else /* !__HAVE_SLOW_BSWAP_BUILTIN */
|
|
73
|
+
|
|
74
|
+
/* allow machine/bswap.h to override these with inline versions */
|
|
75
|
+
#ifndef __BYTE_SWAP_U64_VARIABLE
|
|
76
|
+
#define __BYTE_SWAP_U64_VARIABLE bswap64
|
|
77
|
+
#endif
|
|
78
|
+
|
|
79
|
+
#ifndef __BYTE_SWAP_U32_VARIABLE
|
|
80
|
+
#define __BYTE_SWAP_U32_VARIABLE bswap32
|
|
81
|
+
#endif
|
|
82
|
+
|
|
83
|
+
#ifndef __BYTE_SWAP_U16_VARIABLE
|
|
84
|
+
#define __BYTE_SWAP_U16_VARIABLE bswap16
|
|
85
|
+
#endif
|
|
86
|
+
|
|
87
|
+
#endif /* __HAVE_SLOW_BSWAP_BUILTIN */
|
|
88
|
+
|
|
63
89
|
#define bswap64(x) \
|
|
64
90
|
__CAST(uint64_t, __builtin_constant_p((x)) ? \
|
|
65
|
-
|
|
91
|
+
__byte_swap_u64_constexpr(x) : __BYTE_SWAP_U64_VARIABLE(x))
|
|
66
92
|
|
|
67
93
|
#define bswap32(x) \
|
|
68
94
|
__CAST(uint32_t, __builtin_constant_p((x)) ? \
|
|
69
|
-
|
|
95
|
+
__byte_swap_u32_constexpr(x) : __BYTE_SWAP_U32_VARIABLE(x))
|
|
70
96
|
|
|
71
97
|
#define bswap16(x) \
|
|
72
98
|
__CAST(uint16_t, __builtin_constant_p((x)) ? \
|
|
73
|
-
|
|
99
|
+
__byte_swap_u16_constexpr(x) : __BYTE_SWAP_U16_VARIABLE(x))
|
|
74
100
|
|
|
75
101
|
#endif /* __GNUC__ && !__lint__ */
|
|
76
102
|
#endif /* !_LOCORE */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: buf.h,v 1.
|
|
1
|
+
/* $NetBSD: buf.h,v 1.135.4.1 2026/04/03 12:38:34 martin Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1999, 2000, 2007, 2008 The NetBSD Foundation, Inc.
|
|
@@ -149,7 +149,7 @@ struct buf {
|
|
|
149
149
|
off_t b_dcookie; /* NFS: Offset cookie if dir block */
|
|
150
150
|
|
|
151
151
|
kcondvar_t b_busy; /* c: threads waiting on buf */
|
|
152
|
-
void *
|
|
152
|
+
void *b_private2; /* : private data for owner */
|
|
153
153
|
LIST_ENTRY(buf) b_hash; /* c: hash chain */
|
|
154
154
|
LIST_ENTRY(buf) b_vnbufs; /* c: associated vnode */
|
|
155
155
|
TAILQ_ENTRY(buf) b_freelist; /* c: position if not active */
|
|
@@ -234,7 +234,7 @@ struct cluster_save {
|
|
|
234
234
|
do { \
|
|
235
235
|
memset((bp)->b_data, 0, (u_int)(bp)->b_bcount); \
|
|
236
236
|
(bp)->b_resid = 0; \
|
|
237
|
-
} while (
|
|
237
|
+
} while (0)
|
|
238
238
|
|
|
239
239
|
/* Flags to low-level allocation routines. */
|
|
240
240
|
#define B_CLRBUF 0x01 /* Request allocated buffer be cleared. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: cdefs.h,v 1.
|
|
1
|
+
/* $NetBSD: cdefs.h,v 1.166 2025/04/06 22:43:08 rillig Exp $ */
|
|
2
2
|
|
|
3
3
|
/* * Copyright (c) 1991, 1993
|
|
4
4
|
* The Regents of the University of California. All rights reserved.
|
|
@@ -340,7 +340,7 @@
|
|
|
340
340
|
#if __GNUC_PREREQ__(4, 6) || defined(__clang__) || defined(__lint__)
|
|
341
341
|
#define __unreachable() __builtin_unreachable()
|
|
342
342
|
#else
|
|
343
|
-
#define __unreachable() do {} while (
|
|
343
|
+
#define __unreachable() do {} while (0)
|
|
344
344
|
#endif
|
|
345
345
|
|
|
346
346
|
#if defined(_KERNEL) || defined(_RUMPKERNEL)
|
|
@@ -451,7 +451,7 @@
|
|
|
451
451
|
#if defined(__lint__)
|
|
452
452
|
#define __thread /* delete */
|
|
453
453
|
#define __packed __packed
|
|
454
|
-
#define __aligned(x)
|
|
454
|
+
#define __aligned(x) _Alignas((x))
|
|
455
455
|
#define __section(x) /* delete */
|
|
456
456
|
#elif __GNUC_PREREQ__(2, 7) || defined(__PCC__) || defined(__lint__)
|
|
457
457
|
#define __packed __attribute__((__packed__))
|
|
@@ -546,10 +546,17 @@
|
|
|
546
546
|
* seldomly (e.g. at subsystem initialization time) as the
|
|
547
547
|
* basic block reordering that this affects can often generate
|
|
548
548
|
* larger code.
|
|
549
|
+
*
|
|
550
|
+
* We use an explicit ternary operator to map any value to exactly 0 or
|
|
551
|
+
* 1 so that (a) we can specify one value to expect, and (b) the given
|
|
552
|
+
* expression occurs only in the position of a conditional so that C++
|
|
553
|
+
* classes with conversion to bool work as if this were a conditional.
|
|
554
|
+
* In contrast, say, `(exp) != 0' would require the type of exp to
|
|
555
|
+
* support conversion to integer as well.
|
|
549
556
|
*/
|
|
550
557
|
#if __GNUC_PREREQ__(2, 96) || defined(__lint__)
|
|
551
|
-
#define __predict_true(exp) __builtin_expect((exp)
|
|
552
|
-
#define __predict_false(exp) __builtin_expect((exp)
|
|
558
|
+
#define __predict_true(exp) __builtin_expect((exp) ? 1 : 0, 1)
|
|
559
|
+
#define __predict_false(exp) __builtin_expect((exp) ? 1 : 0, 0)
|
|
553
560
|
#else
|
|
554
561
|
#define __predict_true(exp) (exp)
|
|
555
562
|
#define __predict_false(exp) (exp)
|
|
@@ -690,7 +697,38 @@
|
|
|
690
697
|
#define __CASTV(__dt, __st) __CAST(__dt, __CAST(void *, __st))
|
|
691
698
|
#define __CASTCV(__dt, __st) __CAST(__dt, __CAST(const void *, __st))
|
|
692
699
|
|
|
693
|
-
|
|
700
|
+
/*
|
|
701
|
+
* Suppresses `variable set but not used' warnings.
|
|
702
|
+
*
|
|
703
|
+
* Typically for #ifdefs, where one branch of the #ifdef uses a
|
|
704
|
+
* variable but the other does not. Useful in patching external code
|
|
705
|
+
* to keep the patches narrowly scoped.
|
|
706
|
+
*
|
|
707
|
+
* Limitation: Only for variables, and only non-volatile variables.
|
|
708
|
+
*
|
|
709
|
+
* (Abusing this for anything else may lead to side effects. Pointers
|
|
710
|
+
* to volatile objects are OK, as in `volatile int *a', as long as the
|
|
711
|
+
* pointer itself is not volatile, as in `int *volatile a'.)
|
|
712
|
+
*/
|
|
713
|
+
#define __USE(a) (/*LINTED*/(void)(a))
|
|
714
|
+
|
|
715
|
+
/*
|
|
716
|
+
* Verifies the expression e compiles, but does not evaluate it. Safe
|
|
717
|
+
* when e has side effects.
|
|
718
|
+
*
|
|
719
|
+
* Typically used for the arguments to macros with conditional
|
|
720
|
+
* definitions like DIAGNOSTIC or KDTRACE_HOOKS: when enabled, the
|
|
721
|
+
* macro uses the argument; when disabled, the macro passes the
|
|
722
|
+
* argument to __MACROUSE but doesn't otherwise use it. Cast to long
|
|
723
|
+
* in case the argument is a bit field, which is forbidden in sizeof.
|
|
724
|
+
*
|
|
725
|
+
* Limitation: Doesn't work for expressions of aggregate (struct/union)
|
|
726
|
+
* types.
|
|
727
|
+
*
|
|
728
|
+
* (If you find a way to handle both bit fields and aggregate types,
|
|
729
|
+
* you could unify __USE and __MACROUSE.)
|
|
730
|
+
*/
|
|
731
|
+
#define __MACROUSE(e) (/*LINTED*/(void)sizeof((long)(e)))
|
|
694
732
|
|
|
695
733
|
#define __type_mask(t) (/*LINTED*/sizeof(t) < sizeof(__INTMAX_TYPE__) ? \
|
|
696
734
|
(~((1ULL << (sizeof(t) * __CHAR_BIT__)) - 1)) : 0ULL)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: cdefs_aout.h,v 1.
|
|
1
|
+
/* $NetBSD: cdefs_aout.h,v 1.21 2024/05/29 02:06:46 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Written by J.T. Conklin <jtc@wimsey.com> 01/17/95.
|
|
@@ -77,7 +77,14 @@
|
|
|
77
77
|
|
|
78
78
|
#undef __KERNEL_RCSID
|
|
79
79
|
|
|
80
|
+
#ifdef _NETBSD_REVISIONID
|
|
81
|
+
#define __RCSID(_s) \
|
|
82
|
+
__IDSTRING(rcsid,_s); \
|
|
83
|
+
__IDSTRING(revisionid, \
|
|
84
|
+
"$" "NetBSD: " __FILE__ " " _NETBSD_REVISIONID " $")
|
|
85
|
+
#else
|
|
80
86
|
#define __RCSID(_s) __IDSTRING(rcsid,_s)
|
|
87
|
+
#endif
|
|
81
88
|
#define __SCCSID(_s)
|
|
82
89
|
#define __SCCSID2(_s)
|
|
83
90
|
#if 0 /* XXX userland __COPYRIGHTs have \ns in them */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: cdefs_elf.h,v 1.
|
|
1
|
+
/* $NetBSD: cdefs_elf.h,v 1.59 2024/05/29 02:06:46 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
|
@@ -162,7 +162,14 @@
|
|
|
162
162
|
|
|
163
163
|
#define __IDSTRING(_n,_s) __SECTIONSTRING(.ident,_s)
|
|
164
164
|
|
|
165
|
-
#
|
|
165
|
+
#ifdef _NETBSD_REVISIONID
|
|
166
|
+
#define __RCSID(_s) \
|
|
167
|
+
__IDSTRING(rcsid,_s); \
|
|
168
|
+
__IDSTRING(revisionid, \
|
|
169
|
+
"$" "NetBSD: " __FILE__ " " _NETBSD_REVISIONID " $")
|
|
170
|
+
#else
|
|
171
|
+
#define __RCSID(_s) __IDSTRING(rcsid,_s)
|
|
172
|
+
#endif
|
|
166
173
|
#define __SCCSID(_s)
|
|
167
174
|
#define __SCCSID2(_s)
|
|
168
175
|
#define __COPYRIGHT(_s) __SECTIONSTRING(.copyright,_s)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: chio.h,v 1.
|
|
1
|
+
/* $NetBSD: chio.h,v 1.14 2025/07/01 21:07:30 andvar Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1996, 1999 The NetBSD Foundation, Inc.
|
|
@@ -142,7 +142,7 @@ struct changer_element_status {
|
|
|
142
142
|
char ces_xname[16]; /* external name of drive device */
|
|
143
143
|
|
|
144
144
|
/*
|
|
145
|
-
* The following
|
|
145
|
+
* The following fields indicate the element the medium was
|
|
146
146
|
* moved from in order to arrive in this element.
|
|
147
147
|
*/
|
|
148
148
|
int ces_from_type; /* type of element */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: clock.h,v 1.
|
|
1
|
+
/* $NetBSD: clock.h,v 1.7 2023/10/27 14:34:58 jschauma Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
#ifndef _SYS_CLOCK_H_
|
|
33
33
|
#define _SYS_CLOCK_H_
|
|
34
34
|
|
|
35
|
+
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
|
36
|
+
#include <stdint.h>
|
|
37
|
+
#endif
|
|
38
|
+
|
|
35
39
|
/* Some handy constants. */
|
|
36
40
|
#define SECS_PER_MINUTE 60
|
|
37
41
|
#define SECS_PER_HOUR 3600
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: common_limits.h,v 1.
|
|
1
|
+
/* $NetBSD: common_limits.h,v 1.4 2024/10/30 15:56:12 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 2014 The NetBSD Foundation, Inc.
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
#ifndef _SYS_COMMON_LIMITS_H_
|
|
33
33
|
#define _SYS_COMMON_LIMITS_H_
|
|
34
34
|
|
|
35
|
+
#include <sys/featuretest.h>
|
|
36
|
+
|
|
35
37
|
#define CHAR_BIT __CHAR_BIT__ /* number of bits in a char */
|
|
36
38
|
|
|
37
39
|
#define SCHAR_MIN (-__SCHAR_MAX__-1) /* min value for a signed char */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $NetBSD: conf.h,v 1.
|
|
1
|
+
/* $NetBSD: conf.h,v 1.162 2024/04/17 18:01:29 riastradh Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1990, 1993
|
|
@@ -43,8 +43,9 @@
|
|
|
43
43
|
* Definitions of device driver entry switches
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
|
-
#include <sys/queue.h>
|
|
47
46
|
#include <sys/device_if.h>
|
|
47
|
+
#include <sys/queue.h>
|
|
48
|
+
#include <sys/types.h>
|
|
48
49
|
|
|
49
50
|
struct buf;
|
|
50
51
|
struct knote;
|
|
@@ -109,7 +110,7 @@ struct cdevsw {
|
|
|
109
110
|
extern kmutex_t device_lock;
|
|
110
111
|
|
|
111
112
|
int devsw_attach(const char *, const struct bdevsw *, devmajor_t *,
|
|
112
|
-
|
|
113
|
+
const struct cdevsw *, devmajor_t *);
|
|
113
114
|
void devsw_detach(const struct bdevsw *, const struct cdevsw *);
|
|
114
115
|
const struct bdevsw *bdevsw_lookup(dev_t);
|
|
115
116
|
const struct cdevsw *cdevsw_lookup(dev_t);
|