From: "Michael Kerrisk" Subject: Re: gettid(2) Date: Sat, 22 Mar 2008 07:02:55 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Sam Varshavchik Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.org On Fri, Mar 21, 2008 at 3:34 PM, Sam Varshavchik 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 > #include > > 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