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

Subversion Repositories or1k

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

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
/* [sg]etsockoptions by bir7@leland.stanford.edu */
9
 
10
int
11
setsockopt (int fd, int level, int optname, const void *optval,
12
        int optlen)
13
{
14
        unsigned long args[5];
15
        args[0]=fd;
16
        args[1]=level;
17
        args[2]=optname;
18
        args[3]=(unsigned long)optval;
19
        args[4]=optlen;
20
        return (socketcall (SYS_SETSOCKOPT, args));
21
}

powered by: WebSVN 2.1.0

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