From 867c8588faf5fba418fc7c3a85aa2bd4c3327e01 Mon Sep 17 00:00:00 2001 From: Philip Guenthe Date: Thu, 21 Jun 2012 00:57:00 +0000 Subject: __tfork() needs to set the stack address of the new thread in the kernel, so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@ --- include/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/unistd.h b/include/unistd.h index 61b10f06ff3..c4a2fa92775 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: unistd.h,v 1.72 2012/05/30 19:34:30 matthew Exp $ */ +/* $OpenBSD: unistd.h,v 1.73 2012/06/21 00:56:59 guenther Exp $ */ /* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */ /*- @@ -501,6 +501,8 @@ void setusershell(void); int strtofflags(char **, u_int32_t *, u_int32_t *); int swapctl(int cmd, const void *arg, int misc); int syscall(int, ...); +pid_t __tfork_thread(const struct __tfork *, size_t, void (*)(void *), + void *); #endif /* __BSD_VISIBLE */ __END_DECLS -- cgit v1.2.3