[riot-notifications] [RIOT-OS/RIOT] POSIX sockets + lwIP: bad file descriptor (#11212)

Martine Lenders notifications at github.com
Fri May 24 15:27:02 CEST 2019


So, now for the question, why `write()` returns `EBADF` in the first place.

As you may have noticed, that `socket()` uses the `vfs` module to create the file descriptor for the socket

https://github.com/RIOT-OS/RIOT/blob/f6ee0ace8ed2953f8ba6c13a4858076ffbbe8fc5/sys/posix/sockets/posix_sockets.c#L346

For write it basically just wraps around `send()`.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11212#issuecomment-495627528
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190524/4eb473c5/attachment.html>


More information about the notifications mailing list