home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Il CD di internet
/
CD.iso
/
SOURCE
/
D
/
LIBC
/
LIBC-4.6
/
LIBC-4
/
libc-linux
/
sysdeps
/
linux
/
socket.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1993-01-08
|
318 b
|
18 lines
#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);
}