Undefined symbol timer_delete()?
sgk at troutmask.apl.washington.edu
Sun Jun 17 01:38:28 UTC 2007
On Sat, Jun 16, 2007 at 05:55:06PM -0400, Craig Rodrigues wrote:
> On Sat, Jun 16, 2007 at 01:54:34PM -0700, Steve Kargl wrote:
> > mobile:kargl cc -o z j.c -lrt
> > It appears that the manpage is wrong
> > LIBRARY
> > Standard C Library (libc, -lc)
> Thanks, yes the man page is wrong, timer_delete() and friends
> are in librt not in libc.
> It looks like similarly the man pages for
> mq_open() and friends are wrong, because mq_* exist in librt, not
> in libc.
> Do the aio_* functions in this library augment or replace those
> in libc?
I'm not sure. I know the timer_delete function is defined as
a weak symbol
mobile:kargl find . -type f | xargs grep timer_delete
./librt/timer.c:extern int __sys_ktimer_delete(int);
which I believe means it can be overridden. Looking at librt/aio.c
David Xu can probably answer your question, but I haven't
seen a recent email from him.
More information about the freebsd-current