[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/NEWLIB PATCH 2/3] Add gethost* and getservr* stubs



Hi,

This is the patch that was superseeded by
'[UNIKRAFT/LWIP PATCH v2] Provide gethostbyname and gethostbyname_r'
which was sent by Mihai.

Vlad, please prepare a new series for lwip glue code with the remaining
functions.

Cheers,
Costin

On 6/11/19 4:44 AM, Vlad-Andrei BĂDOIU (78692) wrote:
> 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;
> +}
> 

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.