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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [socket.c] - Blame information for rev 194

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

Line No. Rev Author Line
1 148 jeremybenn
/* libc/sys/linux/socket.c - socket system calls */
2
 
3
/* Copyright 2002, Red Hat Inc. */
4
 
5
#define __KERNEL_PROTOTYPES
6
 
7
#include <stdarg.h>
8
#include <unistd.h>
9
#include <sys/types.h>
10
#include <sys/socket.h>
11
#include <machine/socketcall.h>
12
 
13
_sockcall3(int,accept,int,fd,struct sockaddr *,addr,socklen_t *,addr_len)
14
_sockcall3(int,bind,int,fd,const struct sockaddr *,addr,socklen_t,len)
15
_sockcall3(int,connect,int,fd,const struct sockaddr *,addr,socklen_t,len)
16
_sockcall3(int,getpeername,int,fd,struct sockaddr *,addr,socklen_t *,len)
17
_sockcall3(int,getsockname,int,fd,struct sockaddr *,addr,socklen_t *,len)
18
_sockcall5(int,getsockopt,int,fd,int,level,int,opt,void *,optval,socklen_t *,optlen)
19
_sockcall2(int,listen,int,fd,int,n)
20
_sockcall4(ssize_t,recv,int,fd,void *,buf,size_t,n,int,flags)
21
_sockcall6(ssize_t,recvfrom,int,fd,void *,buf,size_t,n,int,flags,struct sockaddr *,addr,socklen_t *,addr_len)
22
_sockcall3(ssize_t,recvmsg,int,fd,struct msghdr *,message,int,flags)
23
_sockcall4(ssize_t,send,int,fd,const void *,buf,size_t,n,int,flags)
24
_sockcall6(ssize_t,sendto,int,fd,const void *,buf,size_t,n,int,flags,const struct sockaddr *,addr,socklen_t,addr_len)
25
_sockcall5(int,setsockopt,int,fd,int,level,int,opt,const void *,optval,socklen_t,optlen)
26
_sockcall2(int,shutdown,int,fd,int,how)
27
_sockcall3(int,socket,int,domain,int,type,int,protocol)
28
_sockcall4(int,socketpair,int,domain,int,type,int,protocol,int,fds[2])
29
_sockcall3(ssize_t,sendmsg,int,fd,const struct msghdr *,message,int,flags)
30
 
31
weak_alias(__libc_connect,__connect);
32
weak_alias(__libc_send,__send);

powered by: WebSVN 2.1.0

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