Implement ipc_netsockdelete() syscall and automatic dangling socket cleanup
This commit is contained in:
@ -154,3 +154,7 @@ int32_t ipc_netsocklisten(uint64_t netsock, size_t maxlisteners) {
|
||||
int32_t ipc_netsockpollev(uint64_t netsock) {
|
||||
return syscall(SYS_IPC_NETSOCKPOLLEV, (uint64_t)netsock, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
int32_t ipc_netsockdelete(uint64_t netsock) {
|
||||
return syscall(SYS_IPC_NETSOCKDELETE, (uint64_t)netsock, 0, 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
@ -47,5 +47,6 @@ int32_t time(Time *time);
|
||||
int32_t ipc_netsockmake(uint16_t net, uint16_t proto, uint16_t port);
|
||||
int32_t ipc_netsocklisten(uint64_t netsock, size_t maxlisteners);
|
||||
int32_t ipc_netsockpollev(uint64_t netsock);
|
||||
int32_t ipc_netsockdelete(uint64_t netsock);
|
||||
|
||||
#endif // ULIB_SYSTEM_SYSTEM_H_
|
||||
|
||||
Reference in New Issue
Block a user