diff options
author | guenther <> | 2015-10-04 07:17:27 +0000 |
---|---|---|
committer | guenther <> | 2015-10-04 07:17:27 +0000 |
commit | 4e66ceed86c5b06a51213ba0056c600f5c7acea9 (patch) | |
tree | 2942b9ab01e369003ffcc1c84d41dc5882fc0ca7 | |
parent | e68719b0faade6f98ce3f161204fd4d7c9da8edd (diff) | |
download | openbsd-4e66ceed86c5b06a51213ba0056c600f5c7acea9.tar.gz openbsd-4e66ceed86c5b06a51213ba0056c600f5c7acea9.tar.bz2 openbsd-4e66ceed86c5b06a51213ba0056c600f5c7acea9.zip |
recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!)
so wrap them to make internal calls go direct
-rw-r--r-- | src/lib/libc/net/recv.c | 3 | ||||
-rw-r--r-- | src/lib/libc/net/send.c | 3 |
2 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | /* $OpenBSD: recv.c,v 1.5 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: recv.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1988, 1993 | 3 | * Copyright (c) 1988, 1993 |
4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
@@ -38,3 +38,4 @@ recv(int s, void *buf, size_t len, int flags) | |||
38 | { | 38 | { |
39 | return (recvfrom(s, buf, len, flags, NULL, 0)); | 39 | return (recvfrom(s, buf, len, flags, NULL, 0)); |
40 | } | 40 | } |
41 | 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 @@ | |||
1 | /* $OpenBSD: send.c,v 1.5 2005/08/06 20:30:04 espie Exp $ */ | 1 | /* $OpenBSD: send.c,v 1.6 2015/10/04 07:17:27 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1988, 1993 | 3 | * Copyright (c) 1988, 1993 |
4 | * The Regents of the University of California. All rights reserved. | 4 | * 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) | |||
38 | { | 38 | { |
39 | return (sendto(s, msg, len, flags, NULL, 0)); | 39 | return (sendto(s, msg, len, flags, NULL, 0)); |
40 | } | 40 | } |
41 | DEF_WEAK(send); | ||