From 4b4a2e733a2332d82db33d43f90c3e14fb0ff31e Mon Sep 17 00:00:00 2001 From: jasone Date: Wed, 12 Jan 2000 09:28:58 +0000 Subject: Track libc's three-tier symbol naming. libc_r must currently implement the _libc_*() entry points and add *() weak aliases. This will all change for the better when libc_r becomes libpthread. --- lib/libkse/thread/thr_nanosleep.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/libkse/thread/thr_nanosleep.c') diff --git a/lib/libkse/thread/thr_nanosleep.c b/lib/libkse/thread/thr_nanosleep.c index e4772b4..e9052f9 100644 --- a/lib/libkse/thread/thr_nanosleep.c +++ b/lib/libkse/thread/thr_nanosleep.c @@ -38,8 +38,8 @@ #include "pthread_private.h" int -nanosleep(const struct timespec * time_to_sleep, - struct timespec * time_remaining) +_libc_nanosleep(const struct timespec * time_to_sleep, + struct timespec * time_remaining) { int ret = 0; struct timespec current_time; @@ -120,4 +120,6 @@ nanosleep(const struct timespec * time_to_sleep, _thread_leave_cancellation_point(); return (ret); } + +__weak_reference(_libc_nanosleep, nanosleep); #endif -- cgit v1.1