summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsemarie <semarie@openbsd.org>2015-11-18 13:48:02 +0000
committersemarie <semarie@openbsd.org>2015-11-18 13:48:02 +0000
commitaf6e7bac7ffe2038f3c87bb0b7fb3decfbbfa189 (patch)
tree43faec2ca91b87428929f8252a5c625a33f5fae9 /sys
parentSync the entire xmalloc.[ch] with the other users, but with the addition (diff)
downloadwireguard-openbsd-af6e7bac7ffe2038f3c87bb0b7fb3decfbbfa189.tar.xz
wireguard-openbsd-af6e7bac7ffe2038f3c87bb0b7fb3decfbbfa189.zip
remove pledge_aftersyscall() prototype as the function was been removed.
while here, move pledge_namei() proto with others pledge_* functions used for check promises.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/pledge.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/sys/pledge.h b/sys/sys/pledge.h
index f0bc6e700c0..fa880c27a5c 100644
--- a/sys/sys/pledge.h
+++ b/sys/sys/pledge.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pledge.h,v 1.19 2015/11/18 08:24:22 semarie Exp $ */
+/* $OpenBSD: pledge.h,v 1.20 2015/11/18 13:48:02 semarie Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -92,13 +92,12 @@ static struct {
#ifdef _KERNEL
-struct nameidata;
int pledge_syscall(struct proc *, int, int *);
int pledge_fail(struct proc *, int, int);
-int pledge_namei(struct proc *, struct nameidata *, char *);
-void pledge_aftersyscall(struct proc *, int, int);
struct mbuf;
+struct nameidata;
+int pledge_namei(struct proc *, struct nameidata *, char *);
int pledge_sendfd(struct proc *p, struct file *);
int pledge_recvfd(struct proc *p, struct file *);
int pledge_sysctl(struct proc *p, int namelen, int *name, void *new);