can't find source code of nanosleep.

Carlos O'Donell carlos@codesourcery.com
Tue Jun 3 20:42:00 GMT 2008


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



More information about the Libc-help mailing list