summaryrefslogtreecommitdiffstats
path: root/man2/set_thread_area.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/set_thread_area.2')
-rw-r--r--man2/set_thread_area.218
1 files changed, 9 insertions, 9 deletions
diff --git a/man2/set_thread_area.2 b/man2/set_thread_area.2
index feef67c4c..28f87e128 100644
--- a/man2/set_thread_area.2
+++ b/man2/set_thread_area.2
@@ -36,7 +36,7 @@ Standard C library
.IR Note :
glibc provides no wrappers for these system calls,
necessitating the use of
-.BR syscall (2).
+.MR syscall 2 .
.SH DESCRIPTION
These calls provide architecture-specific support for a thread-local storage
implementation.
@@ -176,15 +176,15 @@ Linux 2.5.32.
.SH NOTES
These system calls are generally intended for use only by threading libraries.
.P
-.BR arch_prctl (2)
+.MR arch_prctl 2
can interfere with
.BR set_thread_area ()
on x86.
See
-.BR arch_prctl (2)
+.MR arch_prctl 2
for more details.
This is not normally a problem, as
-.BR arch_prctl (2)
+.MR arch_prctl 2
is normally used only by 64-bit programs.
.P
On MIPS, the current value of the thread area pointer can be obtained
@@ -203,9 +203,9 @@ On 64-bit kernels before Linux 3.19,
one of the padding bits in
.IR user_desc ,
if set, would prevent the descriptor from being considered empty (see
-.BR modify_ldt (2)).
+.MR modify_ldt 2 ).
As a result, the only reliable way to clear a TLS entry is to use
-.BR memset (3)
+.MR memset 3
to zero the entire
.I user_desc
structure, including padding bits, and then to set the
@@ -223,7 +223,7 @@ behaved differently on older kernels.
Prior to Linux 3.19, the DS and ES segment registers must not reference
TLS entries.
.SH SEE ALSO
-.BR arch_prctl (2),
-.BR modify_ldt (2),
-.BR ptrace (2)
+.MR arch_prctl 2 ,
+.MR modify_ldt 2 ,
+.MR ptrace 2
.RB ( PTRACE_GET_THREAD_AREA " and " PTRACE_SET_THREAD_AREA )