aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/kern/socket_accept.c
Commit message (Collapse)AuthorAgeFilesLines
* sockets: don't malloc/free sockaddr memory on accept(2)Gleb Smirnoff2023-11-301-3/+0
| | | | | | | | | | | | | | Let the accept functions provide stack memory for protocols to fill it in. Generic code should provide sockaddr_storage, specialized code may provide smaller structure. While rewriting accept(2) make 'addrlen' a true in/out parameter, reporting required length in case if provided length was insufficient. Our manual page accept(2) and POSIX don't explicitly require that, but one can read the text as they do. Linux also does that. Update tests accordingly. Reviewed by: rscheff, tuexen, zlei, dchagin Differential Revision: https://reviews.freebsd.org/D42635
* socket tests: add socket_acceptGleb Smirnoff2023-11-161-0/+130
Start with most basic functionality on a TCP socket.