On Fri, Mar 21, 2008 at 3:34 PM, Sam Varshavchik <mrsam@xxxxxxxxxxxxxxx> wrote: > 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); Sam, Raed the NOTES section: Glibc does not provide a wrapper for this system call; call it using syscall(2). Cheers, Michael -- 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 majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html