while improving the sctp manpages, i noticed that sctp_recvmsg is declared like this in the manpage: ssize_t sctp_recvmsg(int s, void *msg, size_t len, struct sockaddr * restrict from, socklen_t * restrict fromlen, struct sctp_sndrcvinfo *sinfo, int *flags); however, in <netinet/net_uio.h> it's declared like this: ssize_t sctp_recvmsg(int, void *, size_t, struct sockaddr *, socklen_t *, struct sctp_sndrcvinfo *, int *); either restrict should be removed from the manpage, or it should be added to the header. i can submit a patch for either of those options (as i'm working on the manpages anyway) but i'm not sure which is correct. RFC 6458 doesn't include restrict in the declaration.
that should be <netinet/sctp_uio.h>, not <netinet/net_uio.h>.
related pull request: https://github.com/freebsd/freebsd-src/pull/965
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=eee88ef45f78d7f9996a740c2a554bc6e8496114 commit eee88ef45f78d7f9996a740c2a554bc6e8496114 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2024-05-02 13:17:43 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2024-05-02 13:17:43 +0000 sctp: document sctp_recvmsg as implemented PR: 275990 MFC after: 3 days lib/libc/net/sctp_recvmsg.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)