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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [socket.c] - Rev 1765

Compare with Previous | Blame | View Log

#include <sys/socket.h>
#include <syscall.h>
#include <sys/socketcall.h>
 
static inline
_syscall2(long,socketcall,int,call,unsigned long *,args);
 
int
socket(int family, int type, int protocol)
{
	unsigned long args[3];
 
	args[0] = family;
	args[1] = type;
	args[2] = protocol;
	return socketcall(SYS_SOCKET, args);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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