Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2023 01:09:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275990] sctp: restrict mismatch between manpages and headers
Message-ID:  <bug-275990-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275990

            Bug ID: 275990
           Summary: sctp: restrict mismatch between manpages and headers
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: lexi.freebsd@le-fay.org

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=20
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 worki=
ng
on the manpages anyway) but i'm not sure which is correct.

RFC 6458 doesn't include restrict in the declaration.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275990-227>