summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_emuldata.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-05-24 01:19:16 +0000
committerguenther <guenther@openbsd.org>2012-05-24 01:19:16 +0000
commitb7f883556878a94e68e7ac6f877d584dfe11e4fe (patch)
treebb306473d1216a7dd14aae4487065d7f4c4575f9 /sys/compat/linux/linux_emuldata.h
parent- introduce temp_inet_net_pton_ipv6() temporarily until we have AF_INET6 (diff)
downloadwireguard-openbsd-b7f883556878a94e68e7ac6f877d584dfe11e4fe.tar.xz
wireguard-openbsd-b7f883556878a94e68e7ac6f877d584dfe11e4fe.zip
If LINUX_CLONE_SETTLS isn't set, then the clone()d child should inherit
the TCB value from the parent instead of having it zeroed. ok pirofti@
Diffstat (limited to 'sys/compat/linux/linux_emuldata.h')
-rw-r--r--sys/compat/linux/linux_emuldata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_emuldata.h b/sys/compat/linux/linux_emuldata.h
index 783327715cb..1235db308ae 100644
--- a/sys/compat/linux/linux_emuldata.h
+++ b/sys/compat/linux/linux_emuldata.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_emuldata.h,v 1.8 2011/12/14 08:33:18 robert Exp $ */
+/* $OpenBSD: linux_emuldata.h,v 1.9 2012/05/24 01:19:16 guenther Exp $ */
/* $NetBSD: linux_emuldata.h,v 1.4 2002/02/15 16:48:02 christos Exp $ */
/*-
* Copyright (c) 1998,2002 The NetBSD Foundation, Inc.
@@ -43,6 +43,7 @@ struct linux_emuldata {
void *child_set_tid; /* Let the child set the thread ID at start */
void *child_clear_tid; /* Let the child clear the thread ID on exit */
unsigned child_tls_base;/* Set the Thread Local Storage on clone */
+ int set_tls_base; /* boolean: should my_tls_base be used? */
/* Same as above, passed by the parent when forking. */
void *my_set_tid;