gettid(2)
gettid() is not defined in my copy of sys/types.h, and it does not appear to be a glibc wrapper for it.
The only way to access this syscall, it seems:
#include <sys/types.h>
#include <sys/syscalls.h>
syscall(SYS_gettid);
A message that is not in the archive (sent off-list or not yet received): cone.1206110097.469414.10945.500-lO+bjgoT4TKm14v+eVDVcBDJ/[email protected]
Quoted 9 lines · Sam Varshavchik
gettid()is not defined in my copy ofsys/types.h, and it does not appear to be a glibc wrapper for it.The only way to access this syscall, it seems:
#include <
sys/types.h>
#include <sys/syscalls.h>
syscall(SYS_gettid);
Sam,
Raed the NOTES section:
Glibc does not provide a wrapper for this system call; call it using syscall(2).
Cheers,
Michael
Signature · 9 lines
Michael Kerrisk Maintainer of the Linux man-pages project http://www.kernel.org/doc/man-pages/ Want to report a man-pages bug? Look here: http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html