#include <sys/time.h>
#include <poll.h>
#include <debug.h>
+#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)