From ce718b3ac29d5ce354e0a071587d268be7be5651 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Mon, 14 May 2018 12:32:07 -0400 Subject: [PATCH] Set h_errno and errno for the socket.c 'Unimplementable functions'. --- nx/source/runtime/devices/socket.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index 0cc28784..4dc048e7 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -1568,16 +1568,16 @@ cleanup: } // Unimplementable functions, left for compliance: -struct hostent *gethostent(void) { return NULL; } -struct netent *getnetbyaddr(uint32_t a, int b) { (void)a; (void)b; return NULL; } -struct netent *getnetbyname(const char *s) { (void)s; return NULL; } -struct netent *getnetent(void) { return NULL; } -struct protoent *getprotobyname(const char *s) { (void)s; return NULL; } -struct protoent *getprotobynumber(int a) { (void)a; return NULL; } -struct protoent *getprotoent(void) { return NULL; } -struct servent *getservbyname(const char *s1, const char *s2) { (void)s1; (void)s2; return NULL; } -struct servent *getservbyport(int a, const char *s) { (void)a; (void)s; return NULL; } -struct servent *getservent(void) { return NULL; } +struct hostent *gethostent(void) { h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct netent *getnetbyaddr(uint32_t a, int b) { (void)a; (void)b; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct netent *getnetbyname(const char *s) { (void)s; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct netent *getnetent(void) { h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct protoent *getprotobyname(const char *s) { (void)s; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct protoent *getprotobynumber(int a) { (void)a; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct protoent *getprotoent(void) { h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct servent *getservbyname(const char *s1, const char *s2) { (void)s1; (void)s2; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct servent *getservbyport(int a, const char *s) { (void)a; (void)s; h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } +struct servent *getservent(void) { h_errno = NO_RECOVERY; errno = ENOSYS; return NULL; } void sethostent(int a) { (void)a;} void setnetent(int a) { (void)a;} void setprotoent(int a) { (void)a; }