From 4e66ceed86c5b06a51213ba0056c600f5c7acea9 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 4 Oct 2015 07:17:27 +0000 Subject: recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) so wrap them to make internal calls go direct --- src/lib/libc/net/recv.c | 3 ++- src/lib/libc/net/send.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/net/recv.c b/src/lib/libc/net/recv.c index 6241cc6b12..365d0e2e19 100644 --- a/src/lib/libc/net/recv.c +++ b/src/lib/libc/net/recv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: recv.c,v 1.5 2005/08/06 20:30:03 espie Exp $ */ +/* $OpenBSD: recv.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -38,3 +38,4 @@ recv(int s, void *buf, size_t len, int flags) { return (recvfrom(s, buf, len, flags, NULL, 0)); } +DEF_WEAK(recv); diff --git a/src/lib/libc/net/send.c b/src/lib/libc/net/send.c index 1bfc80b87a..1fad3bd171 100644 --- a/src/lib/libc/net/send.c +++ b/src/lib/libc/net/send.c @@ -1,4 +1,4 @@ -/* $OpenBSD: send.c,v 1.5 2005/08/06 20:30:04 espie Exp $ */ +/* $OpenBSD: send.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ /* * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -38,3 +38,4 @@ send(int s, const void *msg, size_t len, int flags) { return (sendto(s, msg, len, flags, NULL, 0)); } +DEF_WEAK(send); -- cgit v1.2.3-55-g6feb