Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #include <sys/socket.h> | 1 #include <sys/socket.h> |
| 2 #include "syscall.h" | 2 #include "syscall.h" |
| 3 | 3 |
| 4 int getsockopt(int fd, | 4 int getsockopt(int fd, |
| 5 int level, | 5 int level, |
| 6 int optname, | 6 int optname, |
| 7 void* restrict optval, | 7 void* restrict optval, |
| 8 socklen_t* restrict optlen) { | 8 socklen_t* restrict optlen) { |
| 9 return socketcall(getsockopt, fd, level, optname, optval, optlen, 0); | 9 return syscall(SYS_getsockopt, fd, level, optname, optval, optlen, 0); |
| 10 } | 10 } |
| OLD | NEW |