OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [connect.c] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <syscall.h>
2
#include <sys/socket.h>
3
#include <sys/socketcall.h>
4
 
5
static inline
6
_syscall2(long,socketcall,int,call,unsigned long *,args);
7
 
8
int
9
connect(int sockfd, const struct sockaddr *saddr, int addrlen)
10
{
11
        unsigned long args[3];
12
 
13
        args[0] = sockfd;
14
        args[1] = (unsigned long)saddr;
15
        args[2] = addrlen;
16
        return socketcall(SYS_CONNECT, args);
17
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.