[riot-notifications] [RIOT] Posix sockets (#226)

Oleg Hahm notifications at github.com
Thu Nov 28 01:03:38 CET 2013


> +
> +
> +#define sock_func_wrapper(func, sockfd, ...) \
> +    ((fd_get(sockfd)) ? \
> +        func(fd_get(sockfd)->fd, __VA_ARGS__) : \
> +        (errno = EBADF, -1))
> +
> +int accept(int socket, struct sockaddr *restrict address,
> +           socklen_t *restrict address_len)
> +{
> +    int res = sock_func_wrapper(destiny_socket_accept, socket,
> +                                (sockaddr6_t *)address,
> +                                (socklen_t *)address_len);
> +
> +    if (res < 0) {
> +        // destiny needs more granular error hndling

Typo.

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/226/files#r7973771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20131127/d93e2875/attachment.html>


More information about the notifications mailing list