@zigc/lib 0.17.0-dev.332 → 0.17.0-dev.340
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/libc/include/aarch64-openbsd-none/arm64/cpu.h +7 -1
- package/libc/include/aarch64-openbsd-none/arm64/intr.h +9 -1
- package/libc/include/aarch64-openbsd-none/machine/cpu.h +7 -1
- package/libc/include/aarch64-openbsd-none/machine/intr.h +9 -1
- package/libc/include/generic-openbsd/db.h +1 -7
- package/libc/include/generic-openbsd/ddb/db_interface.h +2 -1
- package/libc/include/generic-openbsd/fnmatch.h +6 -2
- package/libc/include/generic-openbsd/login_cap.h +3 -1
- package/libc/include/generic-openbsd/miscfs/fuse/fusefs_node.h +2 -1
- package/libc/include/generic-openbsd/net/bpf.h +3 -1
- package/libc/include/generic-openbsd/net/hfsc.h +4 -4
- package/libc/include/generic-openbsd/net/if.h +5 -1
- package/libc/include/generic-openbsd/net/if_bridge.h +48 -1
- package/libc/include/generic-openbsd/net/if_etherbridge.h +20 -7
- package/libc/include/generic-openbsd/net/if_media.h +26 -1
- package/libc/include/generic-openbsd/net/if_pflow.h +71 -20
- package/libc/include/generic-openbsd/net/if_pfsync.h +2 -2
- package/libc/include/generic-openbsd/net/if_sppp.h +2 -1
- package/libc/include/generic-openbsd/net/if_trunk.h +3 -2
- package/libc/include/generic-openbsd/net/if_types.h +2 -2
- package/libc/include/generic-openbsd/net/if_var.h +34 -12
- package/libc/include/generic-openbsd/net/netisr.h +1 -3
- package/libc/include/generic-openbsd/net/pfvar.h +154 -1
- package/libc/include/generic-openbsd/net/pfvar_priv.h +256 -1
- package/libc/include/generic-openbsd/net80211/ieee80211.h +76 -4
- package/libc/include/generic-openbsd/net80211/ieee80211_ioctl.h +3 -2
- package/libc/include/generic-openbsd/net80211/ieee80211_node.h +48 -2
- package/libc/include/generic-openbsd/net80211/ieee80211_proto.h +4 -1
- package/libc/include/generic-openbsd/net80211/ieee80211_var.h +18 -2
- package/libc/include/generic-openbsd/netinet/if_ether.h +12 -11
- package/libc/include/generic-openbsd/netinet/igmp_var.h +17 -3
- package/libc/include/generic-openbsd/netinet/in_pcb.h +2 -1
- package/libc/include/generic-openbsd/netinet/in_var.h +17 -59
- package/libc/include/generic-openbsd/netinet/ip.h +3 -2
- package/libc/include/generic-openbsd/netinet/tcp_timer.h +1 -2
- package/libc/include/generic-openbsd/netinet6/in6_var.h +15 -29
- package/libc/include/generic-openbsd/netinet6/ip6_var.h +1 -2
- package/libc/include/generic-openbsd/netinet6/mld6_var.h +17 -4
- package/libc/include/generic-openbsd/netinet6/nd6.h +2 -2
- package/libc/include/generic-openbsd/pthread.h +2 -2
- package/libc/include/generic-openbsd/signal.h +2 -2
- package/libc/include/generic-openbsd/sndio.h +6 -12
- package/libc/include/generic-openbsd/strings.h +5 -1
- package/libc/include/generic-openbsd/sys/device.h +4 -3
- package/libc/include/generic-openbsd/sys/disklabel.h +17 -5
- package/libc/include/generic-openbsd/sys/dkio.h +3 -5
- package/libc/include/generic-openbsd/sys/filedesc.h +3 -2
- package/libc/include/generic-openbsd/sys/mbuf.h +1 -1
- package/libc/include/generic-openbsd/sys/mman.h +7 -2
- package/libc/include/generic-openbsd/sys/mutex.h +10 -7
- package/libc/include/generic-openbsd/sys/namei.h +8 -7
- package/libc/include/generic-openbsd/sys/param.h +1 -1
- package/libc/include/generic-openbsd/sys/pledge.h +1 -3
- package/libc/include/generic-openbsd/sys/protosw.h +8 -1
- package/libc/include/generic-openbsd/sys/ptrace.h +4 -1
- package/libc/include/generic-openbsd/sys/sched.h +8 -1
- package/libc/include/generic-openbsd/sys/signal.h +4 -2
- package/libc/include/generic-openbsd/sys/socketvar.h +2 -1
- package/libc/include/generic-openbsd/sys/sockio.h +11 -1
- package/libc/include/generic-openbsd/sys/syscall.h +5 -3
- package/libc/include/generic-openbsd/sys/syscallargs.h +9 -2
- package/libc/include/generic-openbsd/sys/sysctl.h +7 -4
- package/libc/include/generic-openbsd/sys/types.h +6 -2
- package/libc/include/generic-openbsd/sys/videoio.h +143 -68
- package/libc/include/generic-openbsd/sys/xcall.h +2 -2
- package/libc/include/generic-openbsd/time.h +2 -2
- package/libc/include/generic-openbsd/unistd.h +2 -2
- package/libc/include/generic-openbsd/uvm/uvm_anon.h +2 -3
- package/libc/include/generic-openbsd/uvm/uvm_extern.h +1 -19
- package/libc/include/generic-openbsd/uvm/uvm_pager.h +3 -4
- package/libc/include/generic-openbsd/uvm/uvm_pmemrange.h +1 -2
- package/libc/include/generic-openbsd/uvm/uvm_swap.h +4 -1
- package/libc/include/generic-openbsd/uvm/uvm_vnode.h +3 -4
- package/libc/include/generic-openbsd/uvm/uvmexp.h +41 -35
- package/libc/include/mips64-openbsd-none/machine/octeonvar.h +1 -27
- package/libc/include/mips64-openbsd-none/octeon/octeonvar.h +1 -27
- package/libc/include/mips64el-openbsd-none/loongson/apmvar.h +1 -1
- package/libc/include/mips64el-openbsd-none/loongson/param.h +1 -5
- package/libc/include/mips64el-openbsd-none/machine/apmvar.h +1 -1
- package/libc/include/mips64el-openbsd-none/machine/param.h +1 -5
- package/libc/include/powerpc-openbsd-eabihf/powerpc/intr.h +1 -4
- package/libc/include/powerpc64-openbsd-none/machine/atomic.h +3 -3
- package/libc/include/powerpc64-openbsd-none/powerpc64/atomic.h +3 -3
- package/libc/include/riscv64-openbsd-none/machine/cpu.h +4 -8
- package/libc/include/riscv64-openbsd-none/machine/cpufunc.h +4 -4
- package/libc/include/riscv64-openbsd-none/machine/pmap.h +5 -1
- package/libc/include/riscv64-openbsd-none/machine/pte.h +9 -1
- package/libc/include/riscv64-openbsd-none/riscv64/cpu.h +4 -8
- package/libc/include/riscv64-openbsd-none/riscv64/cpufunc.h +4 -4
- package/libc/include/riscv64-openbsd-none/riscv64/pmap.h +5 -1
- package/libc/include/riscv64-openbsd-none/riscv64/pte.h +9 -1
- package/libc/include/x86-openbsd-none/i386/specialreg.h +3 -1
- package/libc/include/x86-openbsd-none/machine/specialreg.h +3 -1
- package/libc/include/x86_64-openbsd-none/amd64/conf.h +11 -2
- package/libc/include/x86_64-openbsd-none/amd64/cpu.h +14 -4
- package/libc/include/x86_64-openbsd-none/amd64/cpufunc.h +2 -3
- package/libc/include/x86_64-openbsd-none/amd64/ghcb.h +2 -1
- package/libc/include/x86_64-openbsd-none/amd64/i82489var.h +2 -4
- package/libc/include/x86_64-openbsd-none/amd64/i8259.h +1 -53
- package/libc/include/x86_64-openbsd-none/amd64/intr.h +5 -2
- package/libc/include/x86_64-openbsd-none/amd64/intrdefs.h +9 -7
- package/libc/include/x86_64-openbsd-none/amd64/kexec.h +48 -0
- package/libc/include/x86_64-openbsd-none/amd64/specialreg.h +4 -1
- package/libc/include/x86_64-openbsd-none/machine/conf.h +11 -2
- package/libc/include/x86_64-openbsd-none/machine/cpu.h +14 -4
- package/libc/include/x86_64-openbsd-none/machine/cpufunc.h +2 -3
- package/libc/include/x86_64-openbsd-none/machine/ghcb.h +2 -1
- package/libc/include/x86_64-openbsd-none/machine/i82489var.h +2 -4
- package/libc/include/x86_64-openbsd-none/machine/i8259.h +1 -53
- package/libc/include/x86_64-openbsd-none/machine/intr.h +5 -2
- package/libc/include/x86_64-openbsd-none/machine/intrdefs.h +9 -7
- package/libc/include/x86_64-openbsd-none/machine/kexec.h +48 -0
- package/libc/include/x86_64-openbsd-none/machine/specialreg.h +4 -1
- package/libc/openbsd/abilists +0 -0
- package/package.json +1 -1
- package/std/Io/File.zig +6 -0
- package/std/Target.zig +2 -7
- package/std/bit_set.zig +0 -1
- package/std/crypto/ascon.zig +0 -2
- package/std/crypto/salsa20.zig +0 -6
- package/std/crypto/sha3.zig +0 -2
- package/std/debug/cpu_context.zig +0 -21
- package/libc/include/mips64el-openbsd-none/loongson/hibernate.h +0 -33
- package/libc/include/mips64el-openbsd-none/loongson/hibernate_var.h +0 -39
- package/libc/include/mips64el-openbsd-none/machine/hibernate.h +0 -33
- package/libc/include/mips64el-openbsd-none/machine/hibernate_var.h +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: ip6_var.h,v 1.
|
|
1
|
+
/* $OpenBSD: ip6_var.h,v 1.129 2025/12/31 04:10:00 jsg Exp $ */
|
|
2
2
|
/* $KAME: ip6_var.h,v 1.33 2000/06/11 14:59:20 jinmei Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -280,7 +280,6 @@ extern int ip6_defmcasthlim; /* default multicast hop limit */
|
|
|
280
280
|
extern int ip6_forwarding; /* act as router? */
|
|
281
281
|
extern int ip6_mforwarding; /* act as multicast router? */
|
|
282
282
|
extern int ip6_multipath; /* use multipath routes */
|
|
283
|
-
extern int ip6_sendredirect; /* send ICMPv6 redirect? */
|
|
284
283
|
extern int ip6_mcast_pmtu; /* path MTU discovery for multicast */
|
|
285
284
|
extern int ip6_neighborgcthresh; /* Threshold # of NDP entries for GC */
|
|
286
285
|
extern int ip6_maxdynroutes; /* Max # of routes created via redirect */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: mld6_var.h,v 1.
|
|
1
|
+
/* $OpenBSD: mld6_var.h,v 1.10 2026/02/26 00:53:18 bluhm Exp $ */
|
|
2
2
|
/* $KAME: mld6_var.h,v 1.4 2000/03/25 07:23:54 sumikawa Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -43,11 +43,24 @@
|
|
|
43
43
|
#define MLD_OTHERLISTENER 0
|
|
44
44
|
#define MLD_IREPORTEDLAST 1
|
|
45
45
|
|
|
46
|
+
struct mld6_pktinfo {
|
|
47
|
+
STAILQ_ENTRY(mld6_pktinfo) mpi_list;
|
|
48
|
+
struct in6_addr mpi_addr;
|
|
49
|
+
unsigned int mpi_rdomain;
|
|
50
|
+
unsigned int mpi_ifidx;
|
|
51
|
+
int mpi_type;
|
|
52
|
+
};
|
|
53
|
+
STAILQ_HEAD(mld6_pktlist, mld6_pktinfo);
|
|
54
|
+
|
|
46
55
|
void mld6_init(void);
|
|
47
56
|
void mld6_input(struct mbuf *, int);
|
|
48
|
-
void mld6_start_listening(struct in6_multi
|
|
49
|
-
|
|
50
|
-
void
|
|
57
|
+
void mld6_start_listening(struct in6_multi *, struct ifnet *,
|
|
58
|
+
struct mld6_pktinfo *);
|
|
59
|
+
void mld6_stop_listening(struct in6_multi *, struct ifnet *,
|
|
60
|
+
struct mld6_pktinfo *);
|
|
61
|
+
void mld6_fasttimo(void);
|
|
62
|
+
void mld6_sendpkt(const struct mld6_pktinfo *);
|
|
63
|
+
|
|
51
64
|
#endif /* _KERNEL */
|
|
52
65
|
|
|
53
66
|
#endif /* _NETINET6_MLD6_VAR_H_ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: nd6.h,v 1.
|
|
1
|
+
/* $OpenBSD: nd6.h,v 1.106 2026/03/23 13:12:39 jsg Exp $ */
|
|
2
2
|
/* $KAME: nd6.h,v 1.95 2002/06/08 11:31:06 itojun Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -83,7 +83,7 @@ struct llinfo_nd6 {
|
|
|
83
83
|
TAILQ_ENTRY(llinfo_nd6) ln_list; /* [m] global nd6_list */
|
|
84
84
|
struct rtentry *ln_rt; /* [I] backpointer to rtentry */
|
|
85
85
|
/* keep fields above in sync with struct llinfo_nd6_iterator */
|
|
86
|
-
struct refcnt ln_refcnt; /* entry
|
|
86
|
+
struct refcnt ln_refcnt; /* entry referenced by list */
|
|
87
87
|
struct mbuf_queue ln_mq; /* hold packets until resolved */
|
|
88
88
|
struct in6_addr ln_saddr6; /* source of prompting packet */
|
|
89
89
|
long ln_asked; /* number of queries already sent for addr */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: pthread.h,v 1.
|
|
1
|
+
/* $OpenBSD: pthread.h,v 1.5 2025/11/11 18:54:05 semarie Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* Run-time invariant values:
|
|
51
51
|
*/
|
|
52
52
|
#define PTHREAD_DESTRUCTOR_ITERATIONS 4
|
|
53
|
-
#define PTHREAD_KEYS_MAX
|
|
53
|
+
#define PTHREAD_KEYS_MAX 512
|
|
54
54
|
#define PTHREAD_STACK_MIN (1U << _MAX_PAGE_SHIFT)
|
|
55
55
|
#define PTHREAD_THREADS_MAX ULONG_MAX
|
|
56
56
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: signal.h,v 1.
|
|
1
|
+
/* $OpenBSD: signal.h,v 1.27 2026/03/23 21:33:43 daniel Exp $ */
|
|
2
2
|
/* $NetBSD: signal.h,v 1.8 1996/02/29 00:04:57 jtc Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -132,7 +132,7 @@ int thrkill(pid_t _tid, int _signum, void *_tcb);
|
|
|
132
132
|
int sigwait(const sigset_t *__restrict, int *__restrict);
|
|
133
133
|
#endif
|
|
134
134
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
|
|
135
|
-
void psignal(
|
|
135
|
+
void psignal(int, const char *);
|
|
136
136
|
#endif
|
|
137
137
|
#endif /* __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE */
|
|
138
138
|
__END_DECLS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: sndio.h,v 1.
|
|
1
|
+
/* $OpenBSD: sndio.h,v 1.17 2026/01/22 09:31:22 ratchov Exp $ */
|
|
2
2
|
/*
|
|
3
3
|
* Copyright (c) 2008 Alexandre Ratchov <alex@caoua.org>
|
|
4
4
|
*
|
|
@@ -27,17 +27,9 @@
|
|
|
27
27
|
|
|
28
28
|
/*
|
|
29
29
|
* limits
|
|
30
|
-
*
|
|
31
|
-
* For now SIOCTL_DISPLAYMAX is 12 byte only. It nicely fits in the
|
|
32
|
-
* padding of the sioctl_desc structure: this allows any binary linked
|
|
33
|
-
* to the library version with no sioctl_desc->display to work with
|
|
34
|
-
* this library version. Currently, any string reported by the lower
|
|
35
|
-
* layers fits in the 12-byte buffer. Once larger strings start
|
|
36
|
-
* being used (or the ABI changes for any other reason) increase
|
|
37
|
-
* SIOCTL_DISPLAYMAX and properly pad the sioctl_desc structure.
|
|
38
30
|
*/
|
|
39
|
-
#define SIOCTL_NAMEMAX
|
|
40
|
-
#define SIOCTL_DISPLAYMAX
|
|
31
|
+
#define SIOCTL_NAMEMAX 16 /* max name length */
|
|
32
|
+
#define SIOCTL_DISPLAYMAX 32 /* max display string length */
|
|
41
33
|
|
|
42
34
|
/*
|
|
43
35
|
* private ``handle'' structure
|
|
@@ -119,11 +111,12 @@ struct sioctl_desc {
|
|
|
119
111
|
#define SIOCTL_LIST 5 /* switch, element of a list */
|
|
120
112
|
#define SIOCTL_SEL 6 /* element of a selector */
|
|
121
113
|
unsigned int type; /* one of above */
|
|
114
|
+
unsigned int maxval; /* max value */
|
|
115
|
+
int __pad[3]; /* for future use */
|
|
122
116
|
char func[SIOCTL_NAMEMAX]; /* function name, ex. "level" */
|
|
123
117
|
char group[SIOCTL_NAMEMAX]; /* group this control belongs to */
|
|
124
118
|
struct sioctl_node node0; /* affected node */
|
|
125
119
|
struct sioctl_node node1; /* dito for SIOCTL_{VEC,LIST,SEL} */
|
|
126
|
-
unsigned int maxval; /* max value */
|
|
127
120
|
char display[SIOCTL_DISPLAYMAX]; /* free-format hint */
|
|
128
121
|
};
|
|
129
122
|
|
|
@@ -169,6 +162,7 @@ int sio_setpar(struct sio_hdl *, struct sio_par *);
|
|
|
169
162
|
int sio_getpar(struct sio_hdl *, struct sio_par *);
|
|
170
163
|
int sio_getcap(struct sio_hdl *, struct sio_cap *);
|
|
171
164
|
void sio_onmove(struct sio_hdl *, void (*)(void *, int), void *);
|
|
165
|
+
void sio_onxrun(struct sio_hdl *, void (*)(void *), void *);
|
|
172
166
|
size_t sio_write(struct sio_hdl *, const void *, size_t);
|
|
173
167
|
size_t sio_read(struct sio_hdl *, void *, size_t);
|
|
174
168
|
int sio_start(struct sio_hdl *);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: strings.h,v 1.
|
|
1
|
+
/* $OpenBSD: strings.h,v 1.7 2025/10/24 11:30:06 claudio Exp $ */
|
|
2
2
|
|
|
3
3
|
/*-
|
|
4
4
|
* Copyright (c) 1990 The Regents of the University of California.
|
|
@@ -78,6 +78,10 @@ int strncasecmp(const char *, const char *, size_t);
|
|
|
78
78
|
int strcasecmp_l(const char *, const char *, locale_t);
|
|
79
79
|
int strncasecmp_l(const char *, const char *, size_t, locale_t);
|
|
80
80
|
#endif
|
|
81
|
+
#if __POSIX_VISIBLE >= 202405
|
|
82
|
+
int ffsl(long);
|
|
83
|
+
int ffsll(long long);
|
|
84
|
+
#endif
|
|
81
85
|
__END_DECLS
|
|
82
86
|
|
|
83
87
|
#endif /* _STRINGS_H_ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: device.h,v 1.
|
|
1
|
+
/* $OpenBSD: device.h,v 1.71 2026/03/11 16:18:42 kettenis Exp $ */
|
|
2
2
|
/* $NetBSD: device.h,v 1.15 1996/04/09 20:55:24 cgd Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -204,8 +204,9 @@ void config_process_deferred_mountroot(void);
|
|
|
204
204
|
|
|
205
205
|
int request_sleep(int);
|
|
206
206
|
int sleep_state(void *, int);
|
|
207
|
-
#define
|
|
208
|
-
#define
|
|
207
|
+
#define SLEEP_RESUME 0
|
|
208
|
+
#define SLEEP_SUSPEND 1
|
|
209
|
+
#define SLEEP_HIBERNATE 2
|
|
209
210
|
void sleep_mp(void);
|
|
210
211
|
void resume_mp(void);
|
|
211
212
|
int sleep_showstate(void *v, int sleepmode);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: disklabel.h,v 1.
|
|
1
|
+
/* $OpenBSD: disklabel.h,v 1.94 2025/11/13 20:59:14 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: disklabel.h,v 1.41 1996/05/10 23:07:37 mark Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -49,14 +49,26 @@
|
|
|
49
49
|
|
|
50
50
|
#include <sys/uuid.h>
|
|
51
51
|
|
|
52
|
+
/*
|
|
53
|
+
* The dev_t split has 64 partitions, but only 52 are visible
|
|
54
|
+
* and easily useable in userland (a-z and A-Z).
|
|
55
|
+
* The MD variable MAXPARTITIONS remains 52 (or less).
|
|
56
|
+
*/
|
|
57
|
+
#define MAXPARTITIONSUNIT 64
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* Various situations still have structures limited to 16 partitions.
|
|
61
|
+
*/
|
|
62
|
+
#define MAXPARTITIONS16 16
|
|
63
|
+
|
|
52
64
|
/*
|
|
53
65
|
* Translate between device numbers and major/disk unit/disk partition.
|
|
54
66
|
*/
|
|
55
|
-
#define DISKUNIT(dev) (minor(dev) /
|
|
56
|
-
#define DISKPART(dev) (minor(dev) %
|
|
67
|
+
#define DISKUNIT(dev) (minor(dev) / MAXPARTITIONSUNIT)
|
|
68
|
+
#define DISKPART(dev) (minor(dev) % MAXPARTITIONSUNIT)
|
|
57
69
|
#define RAW_PART 2 /* 'c' partition */
|
|
58
70
|
#define DISKMINOR(unit, part) \
|
|
59
|
-
(((unit) *
|
|
71
|
+
(((unit) * MAXPARTITIONSUNIT) + (part))
|
|
60
72
|
#define MAKEDISKDEV(maj, unit, part) \
|
|
61
73
|
(makedev((maj), DISKMINOR((unit), (part))))
|
|
62
74
|
#define DISKLABELDEV(dev) \
|
|
@@ -117,7 +129,7 @@ struct disklabel {
|
|
|
117
129
|
u_int8_t p_fstype; /* filesystem type, see below */
|
|
118
130
|
u_int8_t p_fragblock; /* encoded filesystem frag/block */
|
|
119
131
|
u_int16_t p_cpg; /* UFS: FS cylinders per group */
|
|
120
|
-
} d_partitions[
|
|
132
|
+
} d_partitions[MAXPARTITIONSUNIT]; /* maximum 52 in use */
|
|
121
133
|
};
|
|
122
134
|
#endif /* _LOCORE */
|
|
123
135
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: dkio.h,v 1.
|
|
1
|
+
/* $OpenBSD: dkio.h,v 1.14 2025/11/13 20:59:14 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: dkio.h,v 1.1 1996/01/30 18:21:48 thorpej Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -50,11 +50,9 @@
|
|
|
50
50
|
#define DIOCGPDINFO _IOR('d', 114, struct disklabel)/* get physical */
|
|
51
51
|
#define DIOCRLDINFO _IO('d', 115) /* reload disklabel */
|
|
52
52
|
|
|
53
|
-
#if MAXPARTITIONS != 16
|
|
54
53
|
/* XXX temporary to support the transition to more partitions */
|
|
55
|
-
#define
|
|
56
|
-
#define O_DIOCGDINFO _IOC(IOC_OUT, 'd', 101,
|
|
57
|
-
#endif
|
|
54
|
+
#define O_disklabel offsetof(struct disklabel, d_partitions[MAXPARTITIONS16])
|
|
55
|
+
#define O_DIOCGDINFO _IOC(IOC_OUT, 'd', 101, O_disklabel)
|
|
58
56
|
|
|
59
57
|
struct dk_inquiry {
|
|
60
58
|
char vendor[64];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: filedesc.h,v 1.
|
|
1
|
+
/* $OpenBSD: filedesc.h,v 1.49 2026/03/08 16:41:19 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: filedesc.h,v 1.14 1996/04/09 20:55:28 cgd Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -114,8 +114,9 @@ struct filedesc0 {
|
|
|
114
114
|
* Per-process open flags.
|
|
115
115
|
*/
|
|
116
116
|
#define UF_EXCLOSE 0x01 /* auto-close on exec */
|
|
117
|
-
#define UF_PLEDGED 0x02 /*
|
|
117
|
+
#define UF_PLEDGED 0x02 /* opened after pledge(2) */
|
|
118
118
|
#define UF_FORKCLOSE 0x04 /* auto-close on fork */
|
|
119
|
+
#define UF_PLEDGEOPEN 0x08 /* opened with __pledge_open() */
|
|
119
120
|
|
|
120
121
|
/*
|
|
121
122
|
* Flags on the file descriptor table.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: mman.h,v 1.
|
|
1
|
+
/* $OpenBSD: mman.h,v 1.36 2026/03/26 21:46:24 daniel Exp $ */
|
|
2
2
|
/* $NetBSD: mman.h,v 1.11 1995/03/26 20:24:23 jtc Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -142,6 +142,11 @@ typedef __size_t size_t;
|
|
|
142
142
|
typedef __off_t off_t;
|
|
143
143
|
#endif
|
|
144
144
|
|
|
145
|
+
#ifndef _MODE_T_DEFINED_
|
|
146
|
+
#define _MODE_T_DEFINED_
|
|
147
|
+
typedef __mode_t mode_t;
|
|
148
|
+
#endif
|
|
149
|
+
|
|
145
150
|
__BEGIN_DECLS
|
|
146
151
|
void * mmap(void *, size_t, int, int, int, off_t);
|
|
147
152
|
int mprotect(void *, size_t, int);
|
|
@@ -158,7 +163,7 @@ int mimmutable(void *, size_t);
|
|
|
158
163
|
void * mquery(void *, size_t, int, int, int, off_t);
|
|
159
164
|
#endif
|
|
160
165
|
int posix_madvise(void *, size_t, int);
|
|
161
|
-
int shm_open(const char *, int,
|
|
166
|
+
int shm_open(const char *, int, mode_t);
|
|
162
167
|
int shm_unlink(const char *);
|
|
163
168
|
int shm_mkstemp(char *);
|
|
164
169
|
__END_DECLS
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: mutex.h,v 1.
|
|
1
|
+
/* $OpenBSD: mutex.h,v 1.26 2025/12/11 23:34:44 dlg Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 2004 Artur Grabowski <art@openbsd.org>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
#include <sys/_lock.h>
|
|
55
55
|
|
|
56
56
|
struct mutex {
|
|
57
|
-
|
|
57
|
+
volatile unsigned long mtx_owner;
|
|
58
58
|
int mtx_wantipl;
|
|
59
59
|
int mtx_oldipl;
|
|
60
60
|
#ifdef WITNESS
|
|
@@ -64,23 +64,26 @@ struct mutex {
|
|
|
64
64
|
|
|
65
65
|
#ifdef WITNESS
|
|
66
66
|
#define MUTEX_INITIALIZER_FLAGS(ipl, name, flags) \
|
|
67
|
-
{
|
|
67
|
+
{ 0, __MUTEX_IPL((ipl)), IPL_NONE, MTX_LO_INITIALIZER(name, flags) }
|
|
68
68
|
#else
|
|
69
69
|
#define MUTEX_INITIALIZER_FLAGS(ipl, name, flags) \
|
|
70
|
-
{
|
|
70
|
+
{ 0, __MUTEX_IPL((ipl)), IPL_NONE }
|
|
71
71
|
#endif
|
|
72
72
|
|
|
73
73
|
void __mtx_init(struct mutex *, int);
|
|
74
74
|
#define _mtx_init(mtx, ipl) __mtx_init((mtx), __MUTEX_IPL((ipl)))
|
|
75
75
|
|
|
76
|
+
#define mtx_curcpu() (unsigned long)curcpu()
|
|
77
|
+
#define mtx_owner(mtx) ((mtx)->mtx_owner & ~1UL)
|
|
78
|
+
|
|
76
79
|
#ifdef DIAGNOSTIC
|
|
77
80
|
#define MUTEX_ASSERT_LOCKED(mtx) do { \
|
|
78
|
-
if ((
|
|
81
|
+
if (mtx_owner(mtx) != mtx_curcpu() && !(panicstr || db_active)) \
|
|
79
82
|
panic("mutex %p not held in %s", (mtx), __func__); \
|
|
80
83
|
} while (0)
|
|
81
84
|
|
|
82
85
|
#define MUTEX_ASSERT_UNLOCKED(mtx) do { \
|
|
83
|
-
if ((
|
|
86
|
+
if (mtx_owner(mtx) == mtx_curcpu() && !(panicstr || db_active)) \
|
|
84
87
|
panic("mutex %p held in %s", (mtx), __func__); \
|
|
85
88
|
} while (0)
|
|
86
89
|
#else
|
|
@@ -128,7 +131,7 @@ void mtx_leave(struct mutex *);
|
|
|
128
131
|
#define mtx_init(m, ipl) mtx_init_flags(m, ipl, NULL, 0)
|
|
129
132
|
|
|
130
133
|
#define mtx_owned(mtx) \
|
|
131
|
-
(((mtx)
|
|
134
|
+
((mtx_owner(mtx) == mtx_curcpu()) || panicstr || db_active)
|
|
132
135
|
|
|
133
136
|
#ifdef WITNESS
|
|
134
137
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: namei.h,v 1.
|
|
1
|
+
/* $OpenBSD: namei.h,v 1.51 2026/03/08 16:41:19 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: namei.h,v 1.11 1996/02/09 18:25:20 christos Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -264,11 +264,12 @@ struct nchstats {
|
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
/* Unveil flags for namei */
|
|
267
|
-
#define UNVEIL_READ
|
|
268
|
-
#define UNVEIL_WRITE
|
|
269
|
-
#define UNVEIL_CREATE
|
|
270
|
-
#define UNVEIL_EXEC
|
|
271
|
-
#define UNVEIL_USERSET
|
|
272
|
-
#define
|
|
267
|
+
#define UNVEIL_READ 0x01
|
|
268
|
+
#define UNVEIL_WRITE 0x02
|
|
269
|
+
#define UNVEIL_CREATE 0x04
|
|
270
|
+
#define UNVEIL_EXEC 0x08
|
|
271
|
+
#define UNVEIL_USERSET 0x10
|
|
272
|
+
#define UNVEIL_PLEDGEOPEN 0X20
|
|
273
|
+
#define UNVEIL_MASK 0x0f
|
|
273
274
|
|
|
274
275
|
#endif /* !_SYS_NAMEI_H_ */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: pledge.h,v 1.
|
|
1
|
+
/* $OpenBSD: pledge.h,v 1.53 2026/02/26 07:42:25 deraadt Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
#define PLEDGE_WPATH 0x0000000000000002ULL /* allow open for write */
|
|
29
29
|
#define PLEDGE_CPATH 0x0000000000000004ULL /* allow creat, mkdir, unlink etc */
|
|
30
30
|
#define PLEDGE_STDIO 0x0000000000000008ULL /* operate on own pid */
|
|
31
|
-
#define PLEDGE_TMPPATH 0x0000000000000010ULL /* for mk*temp() */
|
|
32
31
|
#define PLEDGE_DNS 0x0000000000000020ULL /* DNS services */
|
|
33
32
|
#define PLEDGE_INET 0x0000000000000040ULL /* AF_INET/AF_INET6 sockets */
|
|
34
33
|
#define PLEDGE_FLOCK 0x0000000000000080ULL /* file locking */
|
|
@@ -78,7 +77,6 @@ static const struct {
|
|
|
78
77
|
{ PLEDGE_WPATH, "wpath" },
|
|
79
78
|
{ PLEDGE_CPATH, "cpath" },
|
|
80
79
|
{ PLEDGE_DPATH, "dpath" },
|
|
81
|
-
{ PLEDGE_TMPPATH, "tmppath" },
|
|
82
80
|
{ PLEDGE_INET, "inet" },
|
|
83
81
|
{ PLEDGE_MCAST, "mcast" },
|
|
84
82
|
{ PLEDGE_FATTR, "fattr" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: protosw.h,v 1.
|
|
1
|
+
/* $OpenBSD: protosw.h,v 1.73 2025/10/24 15:09:56 bluhm Exp $ */
|
|
2
2
|
/* $NetBSD: protosw.h,v 1.10 1996/04/09 20:55:32 cgd Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -86,6 +86,7 @@ struct pr_usrreqs {
|
|
|
86
86
|
struct mbuf *);
|
|
87
87
|
int (*pru_sockaddr)(struct socket *, struct mbuf *);
|
|
88
88
|
int (*pru_peeraddr)(struct socket *, struct mbuf *);
|
|
89
|
+
int (*pru_flowid)(struct socket *);
|
|
89
90
|
int (*pru_connect2)(struct socket *, struct socket *);
|
|
90
91
|
};
|
|
91
92
|
|
|
@@ -394,6 +395,12 @@ pru_peeraddr(struct socket *so, struct mbuf *addr)
|
|
|
394
395
|
return (*so->so_proto->pr_usrreqs->pru_peeraddr)(so, addr);
|
|
395
396
|
}
|
|
396
397
|
|
|
398
|
+
static inline int
|
|
399
|
+
pru_flowid(struct socket *so)
|
|
400
|
+
{
|
|
401
|
+
return (*so->so_proto->pr_usrreqs->pru_flowid)(so);
|
|
402
|
+
}
|
|
403
|
+
|
|
397
404
|
static inline int
|
|
398
405
|
pru_connect2(struct socket *so1, struct socket *so2)
|
|
399
406
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: ptrace.h,v 1.
|
|
1
|
+
/* $OpenBSD: ptrace.h,v 1.17 2025/12/11 14:13:18 kurt Exp $ */
|
|
2
2
|
/* $NetBSD: ptrace.h,v 1.21 1996/02/09 18:25:26 christos Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -82,8 +82,11 @@ typedef struct ptrace_state {
|
|
|
82
82
|
#define PT_GET_THREAD_FIRST 15
|
|
83
83
|
#define PT_GET_THREAD_NEXT 16
|
|
84
84
|
|
|
85
|
+
#define PT_PTS_NAMELEN 32
|
|
86
|
+
|
|
85
87
|
struct ptrace_thread_state {
|
|
86
88
|
pid_t pts_tid;
|
|
89
|
+
char pts_name[PT_PTS_NAMELEN];
|
|
87
90
|
};
|
|
88
91
|
|
|
89
92
|
#define PT_FIRSTMACH 32 /* for machine-specific requests */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: sched.h,v 1.
|
|
1
|
+
/* $OpenBSD: sched.h,v 1.78 2026/03/31 16:46:21 deraadt Exp $ */
|
|
2
2
|
/* $NetBSD: sched.h,v 1.2 1999/02/28 18:14:58 ross Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -179,8 +179,15 @@ void sched_barrier(struct cpu_info *ci);
|
|
|
179
179
|
int sysctl_hwsetperf(void *, size_t *, void *, size_t);
|
|
180
180
|
int sysctl_hwperfpolicy(void *, size_t *, void *, size_t);
|
|
181
181
|
int sysctl_hwsmt(void *, size_t *, void *, size_t);
|
|
182
|
+
int sysctl_hwblockcpu(void *, size_t *, void *, size_t);
|
|
182
183
|
int sysctl_hwncpuonline(void);
|
|
183
184
|
|
|
185
|
+
#define CPUTYP_SMT 0x01 /* SMT cpu */
|
|
186
|
+
#define CPUTYP_P 0x02 /* Performance core */
|
|
187
|
+
#define CPUTYP_E 0x04 /* Efficiency core */
|
|
188
|
+
#define CPUTYP_L 0x08 /* Lethargic, Low Power Efficiency core */
|
|
189
|
+
extern int sched_blockcpu;
|
|
190
|
+
|
|
184
191
|
#ifdef MULTIPROCESSOR
|
|
185
192
|
void sched_start_secondary_cpus(void);
|
|
186
193
|
void sched_stop_secondary_cpus(void);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: signal.h,v 1.
|
|
1
|
+
/* $OpenBSD: signal.h,v 1.30 2026/03/21 01:56:51 daniel Exp $ */
|
|
2
2
|
/* $NetBSD: signal.h,v 1.21 1996/02/09 18:25:32 christos Exp $ */
|
|
3
3
|
|
|
4
4
|
/*
|
|
@@ -80,8 +80,10 @@
|
|
|
80
80
|
#define SIGXFSZ 25 /* exceeded file size limit */
|
|
81
81
|
#define SIGVTALRM 26 /* virtual time alarm */
|
|
82
82
|
#define SIGPROF 27 /* profiling time alarm */
|
|
83
|
-
#if __BSD_VISIBLE
|
|
83
|
+
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 202405
|
|
84
84
|
#define SIGWINCH 28 /* window size changes */
|
|
85
|
+
#endif
|
|
86
|
+
#if __BSD_VISIBLE
|
|
85
87
|
#define SIGINFO 29 /* information request */
|
|
86
88
|
#endif
|
|
87
89
|
#define SIGUSR1 30 /* user defined signal 1 */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: socketvar.h,v 1.
|
|
1
|
+
/* $OpenBSD: socketvar.h,v 1.160 2025/10/24 15:09:56 bluhm Exp $ */
|
|
2
2
|
/* $NetBSD: socketvar.h,v 1.18 1996/02/09 18:25:38 christos Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -74,6 +74,7 @@ struct sosplice {
|
|
|
74
74
|
struct timeval ssp_idletv; /* [I] idle timeout */
|
|
75
75
|
struct timeout ssp_idleto;
|
|
76
76
|
struct task ssp_task; /* task for somove */
|
|
77
|
+
struct taskq *ssp_queue; /* [I] softnet queue where we add */
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
/*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* $OpenBSD: sockio.h,v 1.
|
|
1
|
+
/* $OpenBSD: sockio.h,v 1.86 2025/11/21 04:44:26 dlg Exp $ */
|
|
2
2
|
/* $NetBSD: sockio.h,v 1.5 1995/08/23 00:40:47 thorpej Exp $ */
|
|
3
3
|
|
|
4
4
|
/*-
|
|
@@ -75,7 +75,11 @@
|
|
|
75
75
|
#define SIOCGLIFPHYADDR _IOWR('i', 75, struct if_laddrreq) /* get gif addrs */
|
|
76
76
|
|
|
77
77
|
#define SIOCBRDGADD _IOW('i', 60, struct ifbreq) /* add bridge ifs */
|
|
78
|
+
#define SIOCBRDGADDPV _IOW('i', 60, struct ifbrpvlan) /* add pvlan */
|
|
79
|
+
#define SIOCBRDGFINDPV _IOWR('i', 60, struct ifbrpvlan) /* find pvlan */
|
|
78
80
|
#define SIOCBRDGDEL _IOW('i', 61, struct ifbreq) /* del bridge ifs */
|
|
81
|
+
#define SIOCBRDGDELPV _IOW('i', 61, struct ifbrpvlan) /* del pvlan */
|
|
82
|
+
#define SIOCBRDGNFINDPV _IOWR('i', 61, struct ifbrpvlan) /* nfind pvlan */
|
|
79
83
|
#define SIOCBRDGGIFFLGS _IOWR('i', 62, struct ifbreq) /* get brdg if flags */
|
|
80
84
|
#define SIOCBRDGSIFFLGS _IOW('i', 63, struct ifbreq) /* set brdg if flags */
|
|
81
85
|
#define SIOCBRDGSCACHE _IOW('i', 64, struct ifbrparam)/* set cache size */
|
|
@@ -85,12 +89,17 @@
|
|
|
85
89
|
#define SIOCBRDGDELS _IOW('i', 66, struct ifbreq) /* del span port */
|
|
86
90
|
#define SIOCBRDGRTS _IOWR('i', 67, struct ifbaconf) /* get addresses */
|
|
87
91
|
#define SIOCBRDGSADDR _IOWR('i', 68, struct ifbareq) /* set addr flags */
|
|
92
|
+
#define SIOCBRDGSVADDR _IOW('i', 68, struct ifbvareq) /* add addr@vid */
|
|
88
93
|
#define SIOCBRDGSTO _IOW('i', 69, struct ifbrparam)/* cache timeout */
|
|
89
94
|
#define SIOCBRDGGTO _IOWR('i', 70, struct ifbrparam)/* cache timeout */
|
|
90
95
|
#define SIOCBRDGDADDR _IOW('i', 71, struct ifbareq) /* delete addr */
|
|
96
|
+
#define SIOCBRDGDVADDR _IOW('i', 71, struct ifbvareq) /* delete addr@vid */
|
|
91
97
|
#define SIOCBRDGFLUSH _IOW('i', 72, struct ifbreq) /* flush addr cache */
|
|
92
98
|
#define SIOCBRDGADDL _IOW('i', 73, struct ifbreq) /* add local port */
|
|
93
99
|
#define SIOCBRDGSIFPROT _IOW('i', 74, struct ifbreq) /* set protected grp */
|
|
100
|
+
#define SIOCBRDGSPVID _IOW('i', 76, struct ifbreq) /* set pvid */
|
|
101
|
+
#define SIOCBRDGSVMAP _IOW('i', 76, struct ifbrvidmap) /* set vid map */
|
|
102
|
+
#define SIOCBRDGGVMAP _IOWR('i', 76, struct ifbrvidmap) /* get vid map */
|
|
94
103
|
|
|
95
104
|
#define SIOCBRDGARL _IOW('i', 77, struct ifbrlreq) /* add bridge rule */
|
|
96
105
|
#define SIOCBRDGFRL _IOW('i', 78, struct ifbrlreq) /* flush brdg rules */
|
|
@@ -105,6 +114,7 @@
|
|
|
105
114
|
#define SIOCBRDGSMA _IOW('i', 83, struct ifbrparam)/* set max age */
|
|
106
115
|
#define SIOCBRDGSIFPRIO _IOW('i', 84, struct ifbreq) /* set if priority */
|
|
107
116
|
#define SIOCBRDGSIFCOST _IOW('i', 85, struct ifbreq) /* set if cost */
|
|
117
|
+
#define SIOCBRDGVRTS _IOWR('i', 86, struct ifbaconf) /* get vaddresses */
|
|
108
118
|
|
|
109
119
|
#define SIOCBRDGGPARAM _IOWR('i', 88, struct ifbropreq)/* get brdg STP parms */
|
|
110
120
|
#define SIOCBRDGSTXHC _IOW('i', 89, struct ifbrparam)/* set tx hold count */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* $OpenBSD: syscall.h,v 1.
|
|
1
|
+
/* $OpenBSD: syscall.h,v 1.284 2026/03/08 16:41:35 deraadt Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* System call numbers.
|
|
5
5
|
*
|
|
6
6
|
* DO NOT EDIT-- this file is automatically generated.
|
|
7
|
-
* created from; OpenBSD: syscalls.master,v 1.
|
|
7
|
+
* created from; OpenBSD: syscalls.master,v 1.271 2026/03/08 16:41:21 deraadt Exp
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
/* syscall: "exit" ret: "void" args: "int" */
|
|
@@ -371,7 +371,9 @@
|
|
|
371
371
|
/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
|
|
372
372
|
#define SYS_fchmod 124
|
|
373
373
|
|
|
374
|
-
|
|
374
|
+
/* syscall: "__pledge_open" ret: "int" args: "const char *" "int" "..." "mode_t" */
|
|
375
|
+
#define SYS___pledge_open 125
|
|
376
|
+
|
|
375
377
|
/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
|
|
376
378
|
#define SYS_setreuid 126
|
|
377
379
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* $OpenBSD: syscallargs.h,v 1.
|
|
1
|
+
/* $OpenBSD: syscallargs.h,v 1.287 2026/03/08 16:41:35 deraadt Exp $ */
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
* System call argument lists.
|
|
5
5
|
*
|
|
6
6
|
* DO NOT EDIT-- this file is automatically generated.
|
|
7
|
-
* created from; OpenBSD: syscalls.master,v 1.
|
|
7
|
+
* created from; OpenBSD: syscalls.master,v 1.271 2026/03/08 16:41:21 deraadt Exp
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
#ifdef syscallarg
|
|
@@ -640,6 +640,12 @@ struct sys_fchmod_args {
|
|
|
640
640
|
syscallarg(mode_t) mode;
|
|
641
641
|
};
|
|
642
642
|
|
|
643
|
+
struct sys___pledge_open_args {
|
|
644
|
+
syscallarg(const char *) path;
|
|
645
|
+
syscallarg(int) flags;
|
|
646
|
+
syscallarg(mode_t) mode;
|
|
647
|
+
};
|
|
648
|
+
|
|
643
649
|
struct sys_setreuid_args {
|
|
644
650
|
syscallarg(uid_t) ruid;
|
|
645
651
|
syscallarg(uid_t) euid;
|
|
@@ -1291,6 +1297,7 @@ int sys_writev(struct proc *, void *, register_t *);
|
|
|
1291
1297
|
int sys_kill(struct proc *, void *, register_t *);
|
|
1292
1298
|
int sys_fchown(struct proc *, void *, register_t *);
|
|
1293
1299
|
int sys_fchmod(struct proc *, void *, register_t *);
|
|
1300
|
+
int sys___pledge_open(struct proc *, void *, register_t *);
|
|
1294
1301
|
int sys_setreuid(struct proc *, void *, register_t *);
|
|
1295
1302
|
int sys_setregid(struct proc *, void *, register_t *);
|
|
1296
1303
|
int sys_rename(struct proc *, void *, register_t *);
|