[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is nanosleep?



Hi,

I tried the following with two Linux systems:
> od -s /lib/libc.so.5.2.18 | grep nano

> od -s /lib/libc.so.5.3.12 | grep nano
0152072 __libc_nanosleep
0152113 __nanosleep
0152127 nanosleep
2475401 __libc_nanosleep
2505602 nanosleep
2512322 __nanosleep

So it looks like that at least libc 5.3.12 has it.

> I have a manual page for the nanosleep function in my Debian-1.1 system 
> and according to it the timespec structure should be declared in time.h. 
> It isn't... It is specified in linux/time.h. And when I tried to use that 
> function in my program I got: 'undefined reference to nanosleep'. It 
> seems there is no such function in libc.so.5.2.18. So what library should I 
> link to my program?

// Heikki


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: