mirror of
https://github.com/apache/nuttx.git
synced 2026-08-15 01:13:29 +00:00
fix usrsock getsockname fail
nsh> usrsocktest
...
Testing group "basic_getsockname" =>
[TEST ASSERT FAILED!]
In function "basic_getsockname_open":
line 170: Assertion `(ssize_t)((ret)) == (ssize_t)((0))' failed.
got value: -1
should be: 0
Group "basic_getsockname": [FAILED]
...
Reference:
GETSOCKNAME(2)
NAME
getsockname - get socket name
...
DESCRIPTION
...
The returned address is truncated if the buffer provided is too small;
in this case, addrlen will return a value greater than was supplied to the call.
Signed-off-by: chao an <anchao@xiaomi.com>
|
||
|---|---|---|
| .. | ||
| accept.c | ||
| bind.c | ||
| connect.c | ||
| getpeername.c | ||
| getsockname.c | ||
| getsockopt.c | ||
| Kconfig | ||
| listen.c | ||
| Make.defs | ||
| net_close.c | ||
| net_dup2.c | ||
| net_fstat.c | ||
| net_poll.c | ||
| net_sendfile.c | ||
| net_sockif.c | ||
| net_timeo.c | ||
| recv.c | ||
| recvfrom.c | ||
| recvmsg.c | ||
| send.c | ||
| sendmsg.c | ||
| sendto.c | ||
| setsockopt.c | ||
| socket.c | ||
| socket.h | ||
| socketpair.c | ||