summaryrefslogtreecommitdiff
path: root/src/network/getsockopt.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-02-15 04:40:40 -0500
committerRich Felker <dalias@aerifal.cx>2011-02-15 04:40:40 -0500
commit03a2f3e48caec15b1a9cebccc85328e9b8169df0 (patch)
tree58db0d85a26142b4ec2b8334f7e898a7b49e90dd /src/network/getsockopt.c
parentcfe373146d232d7c89a60920f77b9451bcfee96b (diff)
downloadmusl-03a2f3e48caec15b1a9cebccc85328e9b8169df0.tar.gz
cleanup socketcall syscall interface to ease porting to sane(r) archs
Diffstat (limited to 'src/network/getsockopt.c')
-rw-r--r--src/network/getsockopt.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/network/getsockopt.c b/src/network/getsockopt.c
index 8c818863..a9e0a72d 100644
--- a/src/network/getsockopt.c
+++ b/src/network/getsockopt.c
@@ -1,13 +1,7 @@
#include <sys/socket.h>
#include "syscall.h"
-#include "socketcall.h"
int getsockopt(int fd, int level, int optname, void *optval, socklen_t *optlen)
{
- unsigned long args[] = {
- fd, level, optname,
- (unsigned long)optval,
- (unsigned long)optlen
- };
- return syscall2(__NR_socketcall, SYS_GETSOCKOPT, (long)args);
+ return socketcall(getsockopt, fd, level, optname, optval, optlen, 0);
}