mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-31 22:48:21 +00:00
syscalls: fix compilation
This commit is contained in:
@@ -46,7 +46,7 @@ syscallret_t syscall_bind(context_t *, int fd, void *uaddr, size_t addrlen) {
|
|||||||
|
|
||||||
socket_t *socket = SOCKFS_SOCKET_FROM_NODE(file->vnode);
|
socket_t *socket = SOCKFS_SOCKET_FROM_NODE(file->vnode);
|
||||||
|
|
||||||
ret.errno = socket->ops->bind(socket, &sockaddr);
|
ret.errno = socket->ops->bind(socket, &sockaddr, &_cpu()->thread->proc->cred);
|
||||||
ret.ret = ret.errno ? -1 : 0;
|
ret.ret = ret.errno ? -1 : 0;
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ syscallret_t syscall_setsockopt(context_t *, int fd, int level, int optname, voi
|
|||||||
if (val == NULL)
|
if (val == NULL)
|
||||||
ret.errno = EFAULT;
|
ret.errno = EFAULT;
|
||||||
else
|
else
|
||||||
ret.errno = socket->ops->setopt ? socket->ops->setopt(socket, optname, buffer, len) : ENOPROTOOPT;
|
ret.errno = socket->ops->setopt ? socket->ops->setopt(socket, optname, buffer, len, &_cpu()->thread->proc->cred) : ENOPROTOOPT;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user