From: Alan Cox Date: Tue, 12 Jan 2016 23:18:12 +0000 (+0000) Subject: kernel: Finish updating syscall names and fix a wrong error define X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=194ae95ebfdeb70155f812558a794e4840288feb;p=FUZIX.git kernel: Finish updating syscall names and fix a wrong error define --- diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index fb2513b3..402bb4dc 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -573,7 +573,7 @@ struct s_argblk { #define EADDRNOTAVAIL 41 /* Address not available */ #define ENOSYS 42 /* No such system call */ #define EPFNOSUPPORT 43 /* Protocol not supported */ -#define EOPNOTSUPP 43 /* Operation not supported on transport +#define EOPNOTSUPP 44 /* Operation not supported on transport endpoint */ /* * ioctls for kernel internal operations start at 0x8000 and cannot be issued diff --git a/Kernel/include/syscall_name.h b/Kernel/include/syscall_name.h index 58c80408..de0d9ee9 100644 --- a/Kernel/include/syscall_name.h +++ b/Kernel/include/syscall_name.h @@ -95,8 +95,8 @@ char *syscall_name[NR_SYSCALL] = { "_nosys89", "socket", "listen", - "_bind", - "_connect", + "bind", + "connect", "_accept", "_getsockaddrs", "_sendto", @@ -184,4 +184,22 @@ int syscall_args[NR_SYSCALL] = { 2, //setpgid 1, //setsid 1, //getsid + 0, //nosys80 + 0, //nosys81 + 0, //nosys82 + 0, //nosys83 + 0, //nosys84 + 0, //nosys85 + 0, //nosys86 + 0, //nosys87 + 0, //nosys88 + 0, //nosys89 + 3, //socket + 2, //listen + 3, //bind + 3, //connect + 1, //accept + 1, //getsockaddrs + 4, //sendto + 4, //recvfrom };