projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use explicit visibility to optimize a few hot-path function calls
[musl]
/
src
/
network
/
shutdown.c
diff --git
a/src/network/shutdown.c
b/src/network/shutdown.c
index
91950c8
..
10ca21a
100644
(file)
--- a/
src/network/shutdown.c
+++ b/
src/network/shutdown.c
@@
-1,9
+1,7
@@
#include <sys/socket.h>
#include "syscall.h"
#include <sys/socket.h>
#include "syscall.h"
-#include "socketcall.h"
int shutdown(int fd, int how)
{
int shutdown(int fd, int how)
{
- unsigned long args[] = { fd, how };
- return syscall2(__NR_socketcall, SYS_SHUTDOWN, (long)args);
+ return socketcall(shutdown, fd, how, 0, 0, 0, 0);
}
}