[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT/NEWLIB PATCH 2/3] Add gethost* and getservr* stubs
Signed-off-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx> --- Makefile.uk | 1 + network.c | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 network.c diff --git a/Makefile.uk b/Makefile.uk index 5450ed2..ccb7f13 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -116,6 +116,7 @@ LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/locale.c LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/dev.c LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/signal.c LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/proto.c +LIBNEWLIBGLUE_SRCS-y += $(LIBNEWLIBC_BASE)/network.c ################################################################################ # Newlib/libc code -- argz diff --git a/network.c b/network.c new file mode 100644 index 0000000..5d7823b --- /dev/null +++ b/network.c @@ -0,0 +1,28 @@ +#include <string.h> +#include <unistd.h> +#include <netdb.h> + +int gethostname(char *name, size_t len) +{ + return 0; +} + +struct hostent *gethostbyname(const char *name) +{ + return NULL; +} + +struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type) +{ + return NULL; +} + +struct servent *getservbyname(const char *name, const char *proto) +{ + return NULL; +} + +struct servent *getservbyport(int port, const char *proto) +{ + return NULL; +} -- 2.21.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |