Re: writev(2) and IOV_MAX confusion

From: Andre Oppermann (andre_at_freebsd.org)
Date: 02/16/04

  • Next message: Pawel Jakub Dawidek: "Re: Jails that keep hanging around"
    Date: Mon, 16 Feb 2004 16:40:02 +0100
    To: David Schultz <das@FreeBSD.ORG>
    
    

    David Schultz wrote:
    >
    > On Mon, Feb 16, 2004, Andre Oppermann wrote:
    > > The is a big confusion over the correct definition of IOV_MAX in relation
    > > to writev(2). The man page for write(2)/writev(2) says you only have to
    > > include <sys/uio.h> to get everything. Unfortunatly IOV_MAX is not (no
    > > longer?) defined there but in <sys/syslimits.h>. Both Net- and OpenBSD
    > > still define it in <sys/uio.h> but NetBSD only for compatibility. For
    > > them the correct place seems to be <sys/syslimits.h> too but only when
    > > _XOPEN_SOURCE is defined.
    > >
    > > What is the correct place for IOV_MAX? And what has to be adjusted, the
    > > man page or the .h files?
    >
    > In POSIX, you get IOV_MAX only by including <limits.h>, and
    > FreeBSD's <limits.h> includes <sys/syslimits.h>, so the code is
    > correct here. As far as I can tell, the man page doesn't say
    > anything about what you have to include to get IOV_MAX, but I
    > suppose it could be more clear.

    Yes, the write(2) man page is missing any reference to <limits.h>.
    I'd say the man page should mention that.

    -- 
    Andre
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
    

  • Next message: Pawel Jakub Dawidek: "Re: Jails that keep hanging around"

    Relevant Pages

    • Re: m_tag leak?
      ... >> Doesn't this mean an m_tag attached to the mbuf to be freed, if any,>> will remain without any reference? ... Perhaps I'm missing something very>> trivial. ... freebsd-net@xxxxxxxxxxx mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, ...
      (freebsd-net)
    • Re: ATF says rocket had "explosive charges"
      ... David Schultz wrote: ... packages of A3-4's. ... Me thinks you're missing the point... ... Ziploc bags containing a large quantity of methamphetamine concealed ...
      (rec.models.rockets)
    • Re: Load Cell test stand
      ... David Schultz fired this volley in ... thus doubling the reference ...
      (rec.pyrotechnics)
    • Re: ATF says rocket had "explosive charges"
      ... David Schultz wrote: ... packages of A3-4's. ... Me thinks you're missing the point... ... Ziploc bags containing a large quantity of methamphetamine concealed ...
      (rec.models.rockets)
    • Re: unionfs related patch
      ... On Wed, 10 Sep 2003, David Schultz wrote: ... > link to the patch for -STABLE, I thought I must have missed it. ... fifo issue that I put a ticket into GNaTs for last week, ... To unsubscribe, ...
      (freebsd-stable)