Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: fusl/src/network/getpeername.c

Issue 1730723002: [fusl] Remove socketcall abstraction (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/src/network/connect.c ('k') | fusl/src/network/getsockname.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <sys/socket.h> 1 #include <sys/socket.h>
2 #include "syscall.h" 2 #include "syscall.h"
3 3
4 int getpeername(int fd, 4 int getpeername(int fd,
5 struct sockaddr* restrict addr, 5 struct sockaddr* restrict addr,
6 socklen_t* restrict len) { 6 socklen_t* restrict len) {
7 return socketcall(getpeername, fd, addr, len, 0, 0, 0); 7 return syscall(SYS_getpeername, fd, addr, len, 0, 0, 0);
8 } 8 }
OLDNEW
« no previous file with comments | « fusl/src/network/connect.c ('k') | fusl/src/network/getsockname.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698