summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_read.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-01-12 09:28:58 +0000
committerjasone <jasone@FreeBSD.org>2000-01-12 09:28:58 +0000
commit4b4a2e733a2332d82db33d43f90c3e14fb0ff31e (patch)
tree5f61d93336476ecbaf8b9665c656c202589b1e08 /lib/libkse/thread/thr_read.c
parent75903038bc52105bc7479fe5f2b75f22f10c1c50 (diff)
downloadFreeBSD-src-4b4a2e733a2332d82db33d43f90c3e14fb0ff31e.zip
FreeBSD-src-4b4a2e733a2332d82db33d43f90c3e14fb0ff31e.tar.gz
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.
Diffstat (limited to 'lib/libkse/thread/thr_read.c')
-rw-r--r--lib/libkse/thread/thr_read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_read.c b/lib/libkse/thread/thr_read.c
index 8cbb5be..ad66df3 100644
--- a/lib/libkse/thread/thr_read.c
+++ b/lib/libkse/thread/thr_read.c
@@ -42,7 +42,7 @@
#include "pthread_private.h"
ssize_t
-read(int fd, void *buf, size_t nbytes)
+_libc_read(int fd, void *buf, size_t nbytes)
{
int ret;
int type;
@@ -100,4 +100,6 @@ read(int fd, void *buf, size_t nbytes)
_thread_leave_cancellation_point();
return (ret);
}
+
+__weak_reference(_libc_read, read);
#endif
OpenPOWER on IntegriCloud