mirror of https://github.com/mkerrisk/man-pages
set_tid_address.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
ba4d34a16d
commit
18e21e1e4c
|
@ -27,13 +27,17 @@
|
||||||
set_tid_address \- set pointer to thread ID
|
set_tid_address \- set pointer to thread ID
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <linux/unistd.h>
|
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||||
|
.B #include <unistd.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "pid_t set_tid_address(int *" tidptr );
|
.BI "pid_t syscall(SYS_set_tid_address, int *" tidptr );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
.IR Note :
|
.IR Note :
|
||||||
There is no glibc wrapper for this system call; see NOTES.
|
glibc provides no wrapper for
|
||||||
|
.BR set_tid_address (),
|
||||||
|
necessitating the use of
|
||||||
|
.BR syscall (2).
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
For each thread, the kernel maintains two attributes (addresses) called
|
For each thread, the kernel maintains two attributes (addresses) called
|
||||||
.I set_child_tid
|
.I set_child_tid
|
||||||
|
@ -99,9 +103,6 @@ This call is present since Linux 2.5.48.
|
||||||
Details as given here are valid since Linux 2.5.49.
|
Details as given here are valid since Linux 2.5.49.
|
||||||
.SH CONFORMING TO
|
.SH CONFORMING TO
|
||||||
This system call is Linux-specific.
|
This system call is Linux-specific.
|
||||||
.SH NOTES
|
|
||||||
Glibc does not provide a wrapper for this system call; call it using
|
|
||||||
.BR syscall (2).
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR clone (2),
|
.BR clone (2),
|
||||||
.BR futex (2),
|
.BR futex (2),
|
||||||
|
|
Loading…
Reference in New Issue