From: Matthias Kruk Date: Thu, 3 Oct 2019 09:41:38 +0000 (+0900) Subject: Call socreate() function from sys_socket() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=072e2e624c667144e47be230c9d25c1526ea451c;p=corax Call socreate() function from sys_socket() --- diff --git a/kernel/core/cxnet.c b/kernel/core/cxnet.c index 48104bc..4dca679 100644 --- a/kernel/core/cxnet.c +++ b/kernel/core/cxnet.c @@ -8,10 +8,21 @@ #include #include #include +#include "socket.h" int sys_socket(int domain, int type, int protocol) { - return(-ENOSYS); + int ret_val; + + /* + * The Corax network stack isn't as complicated as the + * BSD or Linux network stacks, so this is all we have + * to do here. + */ + ret_val = socreate(domain, type, protocol); + dbg_printf("socreate(0x%08x, 0x%08x, 0x%08x) = 0x%08x\n", domain, type, protocol, ret_val); + + return(ret_val); } int sys_close(int sockfd)