blob: 0e7b8755c86fa45dbc419dc903c9c557a821adfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <linuxnet.h>
#include <sys/socket.h>
extern int socketcall(int callno,long* args);
int __libc_shutdown(int s, int how);
int __libc_shutdown(int s, int how) {
unsigned long args[] = { s, (long) how, 0 };
return socketcall(SYS_SHUTDOWN, args);
}
int shutdown(int s, int how) __attribute__((weak,alias("__libc_shutdown")));
|