localsocket: implement SOCK_SEQPACKET and a bunch of SCM_RIGHTS fixes

This commit is contained in:
Matheus
2026-06-04 23:19:01 -03:00
parent 03559bb6b2
commit 1a557b7a20
5 changed files with 212 additions and 65 deletions
+4 -1
View File
@@ -32,7 +32,10 @@ syscallret_t syscall_socket(context_t *, int domain, int type, int protocol) {
socktype = SOCKET_TYPE_UDP;
break;
case AF_LOCAL:
socktype = SOCKET_TYPE_LOCAL;
if (type == SOCK_STREAM)
socktype = SOCKET_TYPE_LOCAL;
if (type == SOCK_SEQPACKET)
socktype = SOCKET_TYPE_LOCAL_SEQPACKET;
}
if (socktype == -1) {