This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: can't find source code of nanosleep.
- From: Carlos O'Donell <carlos at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-help at sourceware dot org, Michal <rabbit50 at tenbit dot pl>
- Date: Tue, 03 Jun 2008 16:42:11 -0400
- Subject: Re: can't find source code of nanosleep.
- Organization: CodeSourcery
- References: <m2wsl6pgeo.fsf@tenbit.pl> <200806031552.19845.vapier@gentoo.org>
Mike Frysinger wrote:
On Tuesday 03 June 2008, Michal wrote:
Sorry for stupid question, but I really can't find it.
there isnt one. it's created automatically based on
sysdeps/linux/sysv/linux/syscalls.list.
-mike
The automatic generation for nanosleep uses the template in
sysdep-cancel.h for your target machine. The "-cancel" version of
sysdep.h is used because nanosleep is a cancellable syscall.
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@codesourcery.com
(650) 331-3385 x716