diff options
| author | 2011-12-14 08:33:18 +0000 | |
|---|---|---|
| committer | 2011-12-14 08:33:18 +0000 | |
| commit | d367e7f4c22908915ddc487dde1e67743eff2c23 (patch) | |
| tree | 4fff8dbd406d50d458c53934778b5faac91901e0 /sys/compat/linux/linux_misc.h | |
| parent | Handle rthreads consistently in ktrace by moving the flags and vnode into (diff) | |
| download | wireguard-openbsd-d367e7f4c22908915ddc487dde1e67743eff2c23.tar.xz wireguard-openbsd-d367e7f4c22908915ddc487dde1e67743eff2c23.zip | |
implement prctl() for COMPAT_LINUX
ok pirofti@
Diffstat (limited to 'sys/compat/linux/linux_misc.h')
| -rw-r--r-- | sys/compat/linux/linux_misc.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.h b/sys/compat/linux/linux_misc.h index a4fd5c17baa..a556cba3159 100644 --- a/sys/compat/linux/linux_misc.h +++ b/sys/compat/linux/linux_misc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_misc.h,v 1.5 2011/04/05 22:54:30 pirofti Exp $ */ +/* $OpenBSD: linux_misc.h,v 1.6 2011/12/14 08:33:18 robert Exp $ */ /* $NetBSD: linux_misc.h,v 1.3 1999/05/13 00:31:57 thorpej Exp $ */ /*- @@ -33,6 +33,19 @@ #ifndef _LINUX_MISC_H_ #define _LINUX_MISC_H_ +/* defined for prctl(2) */ +#define LINUX_PR_SET_PDEATHSIG 1 /* Second arg is signal. */ +#define LINUX_PR_GET_PDEATHSIG 2 /* + * Second arg is a ptr to return the + * signal. + */ +#define LINUX_PR_GET_KEEPCAPS 7 /* Get drop capabilities on setuid */ +#define LINUX_PR_SET_KEEPCAPS 8 /* Set drop capabilities on setuid */ +#define LINUX_PR_SET_NAME 15 /* Set process name. */ +#define LINUX_PR_GET_NAME 16 /* Get process name. */ + +#define LINUX_MAX_COMM_LEN 16 /* Maximum length of process name. */ + /* This looks very unportable to me, but this is how Linux defines it. */ struct linux_sysinfo { long uptime; |
