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

Re: [Minios-devel] [UNIKRAFT/LWIP PATCH 4/5] sockets: Add socketpair() stub


  • To: Costin Lupu <costin.lupu@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 9 Sep 2019 14:31:22 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AEoAbbVO0CWdOv5VHe6qaSqVddgXRkiOnQRFNlVbbGc=; b=nlMQT9tS3UXcZdar1SL+ALryyK4H8F2NKEy9glHLZhWCCGlz8orScwAehdhDvi3N5wnT8nb27G7hroy9qUW++Uhz0bCVSgmc44koBeyGh1w5hREYm+pZhO5lmtLdxGhhlgewD6D4mX3uqXO5g/Da9+5FpzS+mjXvzFODboHuy85DxVUtSUSGgMMlWoXCxKErKgILn9LzpUbZjHikf9sFz5x1meK+cjcRGMUzudoc+P11fEuNCAC/ZVJ7SDTHbUfoy91QN4BCIcAdi0T8CTR4V1jKBk/Kjpg5e8fD3NwvTR0GhLaSZD2NmZzBvgspEblLMDX0+AtUU15TBZLrjIOb1Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QidO8bOBKLCERFgqv/vAuYkJskM+WFtGTqk1s19XNN2CVpUvuUKqmJ/nwrztof4ZhKKEnQLYkhaptBCbkdj9sTBqAuqWnCAAKJwqgAdgpWrOwIN1xQFOPjzKwFPJFCl5MPCfWfowuUmLcID31qy6iQz1vAPN/BZG0IqruUWaIqv7duym2NCu9MJQxKY81Z+J0gGAwhEXXhmwOYJjTisHTWfR8iwY0GjC8Z5rLU1Sm76sM2zKn6xtBqObef1qHP00KgEoLTvFqLngfZ+mXgY7BMgeUAE5oQyxOSeWNk8USntyLEsazM12nGl2egoQxs0J4fAhZDGnxp8Wk4omLV//jw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>
  • Delivery-date: Mon, 09 Sep 2019 14:31:27 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVY1RCpOarhfTfkUGEicR5iHC66acjb9UA
  • Thread-topic: [UNIKRAFT/LWIP PATCH 4/5] sockets: Add socketpair() stub

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>

On 04.09.2019 22:09, Costin Lupu wrote:
> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
> ---
>   exportsyms.uk        | 1 +
>   include/sys/socket.h | 1 +
>   sockets.c            | 6 ++++++
>   3 files changed, 8 insertions(+)
>
> diff --git a/exportsyms.uk b/exportsyms.uk
> index 2f9f4f6..0d6c7e9 100644
> --- a/exportsyms.uk
> +++ b/exportsyms.uk
> @@ -47,6 +47,7 @@ setprotoent
>   setsockopt
>   shutdown
>   socket
> +socketpair
>   sys_check_timeouts
>   tcp_abort
>   tcp_accept
> diff --git a/include/sys/socket.h b/include/sys/socket.h
> index 7e027b9..991ae3e 100644
> --- a/include/sys/socket.h
> +++ b/include/sys/socket.h
> @@ -75,5 +75,6 @@ int send(int s, const void *dataptr, size_t size, int 
> flags);
>   int sendmsg(int s, const struct msghdr *message, int flags);
>   int sendto(int s, const void *dataptr, size_t size, int flags,
>          const struct sockaddr *to, socklen_t tolen);
> +int socketpair(int domain, int type, int protocol, int sv[2]);
>   
>   #endif /* _UK_LWIP_SOCKET_H_ */
> diff --git a/sockets.c b/sockets.c
> index 1806846..f4f7d40 100644
> --- a/sockets.c
> +++ b/sockets.c
> @@ -831,3 +831,9 @@ int sendto(int s, const void *dataptr, size_t size, int 
> flags,
>   EXIT:
>       return ret;
>   }
> +
> +int socketpair(int domain, int type, int protocol, int sv[2])
> +{
> +     errno = ENOTSUP;
> +     return -1;
> +}
_______________________________________________
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®.