projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add more of the locale_t interfaces, all dummied out to ignore the locale
[musl]
/
src
/
network
/
getsockopt.c
diff --git
a/src/network/getsockopt.c
b/src/network/getsockopt.c
index
8c81886
..
a9e0a72
100644
(file)
--- a/
src/network/getsockopt.c
+++ b/
src/network/getsockopt.c
@@
-1,13
+1,7
@@
#include <sys/socket.h>
#include "syscall.h"
#include <sys/socket.h>
#include "syscall.h"
-#include "socketcall.h"
int getsockopt(int fd, int level, int optname, void *optval, socklen_t *optlen)
{
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);
}
}