summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_write.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-01-12 09:28:58 +0000
committerJason Evans <jasone@FreeBSD.org>2000-01-12 09:28:58 +0000
commitf560c4e709d6f3b1edb5349d928670577918afb8 (patch)
treed979bd2ea9814f01e82a7f04298d08346e265a2d /lib/libpthread/thread/thr_write.c
parent929273386f6e688c008b15fd24932df2ed7e7172 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_write.c')
-rw-r--r--lib/libpthread/thread/thr_write.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_write.c b/lib/libpthread/thread/thr_write.c
index 40c4cc574241..f25c6065b911 100644
--- a/lib/libpthread/thread/thr_write.c
+++ b/lib/libpthread/thread/thr_write.c
@@ -42,7 +42,7 @@
#include "pthread_private.h"
ssize_t
-write(int fd, const void *buf, size_t nbytes)
+_libc_write(int fd, const void *buf, size_t nbytes)
{
int blocking;
int type;
@@ -136,4 +136,6 @@ write(int fd, const void *buf, size_t nbytes)
_thread_leave_cancellation_point();
return (ret);
}
+
+__weak_reference(_libc_write, write);
#endif