URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [connect.c] - Rev 1767
Go to most recent revision | Compare with Previous | Blame | View Log
#include <syscall.h> #include <sys/socket.h> #include <sys/socketcall.h> static inline _syscall2(long,socketcall,int,call,unsigned long *,args); int connect(int sockfd, const struct sockaddr *saddr, int addrlen) { unsigned long args[3]; args[0] = sockfd; args[1] = (unsigned long)saddr; args[2] = addrlen; return socketcall(SYS_CONNECT, args); }
Go to most recent revision | Compare with Previous | Blame | View Log