* gettid(2)
@ 2008-03-21 14:34 Sam Varshavchik
[not found] ` <cone.1206110097.469414.10945.500-lO+bjgoT4TKm14v+eVDVcBDJ/jce7dRH@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Sam Varshavchik @ 2008-03-21 14:34 UTC (permalink / raw)
To: Michael Kerrisk; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 227 bytes --]
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);
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread[parent not found: <cone.1206110097.469414.10945.500-lO+bjgoT4TKm14v+eVDVcBDJ/jce7dRH@public.gmane.org>]
* Re: gettid(2) [not found] ` <cone.1206110097.469414.10945.500-lO+bjgoT4TKm14v+eVDVcBDJ/jce7dRH@public.gmane.org> @ 2008-03-22 6:02 ` Michael Kerrisk 0 siblings, 0 replies; 2+ messages in thread From: Michael Kerrisk @ 2008-03-22 6:02 UTC (permalink / raw) To: Sam Varshavchik; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA On Fri, Mar 21, 2008 at 3:34 PM, Sam Varshavchik <mrsam-W1w4QoW4mIDgLSHwZvcCBg@public.gmane.org> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-22 6:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 14:34 gettid(2) Sam Varshavchik
[not found] ` <cone.1206110097.469414.10945.500-lO+bjgoT4TKm14v+eVDVcBDJ/jce7dRH@public.gmane.org>
2008-03-22 6:02 ` gettid(2) Michael Kerrisk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox