5 #ifndef __SYS_SOCKET_H__ 6 #define __SYS_SOCKET_H__ 9 #include <net/socket.h> 15 LV2_SYSCALL sysNetAccept(
int socket,
const struct sockaddr *addr,socklen_t *addr_len)
17 lv2syscall3(700,socket,(u64)addr,(u64)addr_len);
18 return_to_user_prog(s32);
21 LV2_SYSCALL sysNetBind(
int socket,
const struct sockaddr *addr,socklen_t addr_len)
23 lv2syscall3(701,socket,(u64)addr,addr_len);
24 return_to_user_prog(s32);
27 LV2_SYSCALL sysNetConnect(
int socket,
const struct sockaddr *addr,socklen_t addr_len)
29 lv2syscall3(702,socket,(u64)addr,addr_len);
30 return_to_user_prog(s32);
33 LV2_SYSCALL sysNetListen(
int socket,
int backlog)
35 lv2syscall2(706,socket,backlog);
36 return_to_user_prog(s32);
39 LV2_SYSCALL sysNetRecvfrom(
int socket,
void *buffer,
size_t len,
int flags,
const struct sockaddr *addr,socklen_t *addr_len)
41 lv2syscall6(707,socket,(u64)buffer,len,flags,(u64)addr,(u64)addr_len);
42 return_to_user_prog(s32);
45 LV2_SYSCALL sysNetSendto(
int socket,
const void *message,
size_t len,
int flags,
const struct sockaddr *addr,socklen_t addr_len)
47 lv2syscall6(710,socket,(u64)message,len,flags,(u64)addr,addr_len);
48 return_to_user_prog(s32);
51 LV2_SYSCALL sysNetShutdown(
int socket,
int how)
53 lv2syscall2(712,socket,how);
54 return_to_user_prog(s32);
57 LV2_SYSCALL sysNetSocket(
int domain,
int type,
int protocol)
59 lv2syscall3(713,domain,type,protocol);
60 return_to_user_prog(s32);
63 LV2_SYSCALL sysNetClose(
int socket)
65 lv2syscall1(714,socket);
66 return_to_user_prog(s32);