summaryrefslogtreecommitdiff
path: root/xserver
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-08-07 20:16:13 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-08-07 20:16:13 +0000
commit69a0b05bbb7e81a4850b3a1f673488a1ef86b034 (patch)
treedcdc82293348e3f7824e3874c798ac3cee6d4217 /xserver
parentf90090613ea760cfa6c769306a1253537568d6cf (diff)
Add privsep prototypes to osdep.h
Diffstat (limited to 'xserver')
-rw-r--r--xserver/os/osdep.h7
-rw-r--r--xserver/os/privsep.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/xserver/os/osdep.h b/xserver/os/osdep.h
index fff088701..2e5a22907 100644
--- a/xserver/os/osdep.h
+++ b/xserver/os/osdep.h
@@ -269,4 +269,11 @@ extern void XdmcpRegisterBroadcastAddress(const struct sockaddr_in *addr);
extern void XdmAuthenticationInit(const char *cookie, int cookie_length);
#endif
+#ifdef X_PRIVSEP
+extern int priv_init(uid_t, gid_t);
+extern int priv_open_device(const char *);
+extern void priv_init_parent_process(pid_t);
+extern void priv_signal_parent(void);
+#endif
+
#endif /* _OSDEP_H_ */
diff --git a/xserver/os/privsep.c b/xserver/os/privsep.c
index 2da3078be..6cc8cda47 100644
--- a/xserver/os/privsep.c
+++ b/xserver/os/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.22 2012/08/07 20:15:23 matthieu Exp $ */
+/* $OpenBSD: privsep.c,v 1.23 2012/08/07 20:16:12 matthieu Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -49,6 +49,7 @@
#include <unistd.h>
#include "os.h"
+#include "osdep.h"
enum cmd_types {
PRIV_OPEN_DEVICE,