Re: writev(2) and IOV_MAX confusion

From: David Schultz (das_at_FreeBSD.ORG)
Date: 02/16/04

  • Next message: FreeBSD Tinderbox: "[current tinderbox] failure on i386/i386"
    Date: Mon, 16 Feb 2004 02:32:54 -0800
    To: Andre Oppermann <andre@FreeBSD.ORG>
    
    

    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.
    _______________________________________________
    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: FreeBSD Tinderbox: "[current tinderbox] failure on i386/i386"

    Relevant Pages

    • writev(2) and IOV_MAX confusion
      ... The is a big confusion over the correct definition of IOV_MAX in relation ... still define it in but NetBSD only for compatibility. ... To unsubscribe, ...
      (freebsd-current)
    • Re: Godels Incompleteness theorem
      ... Childish. ... Give the correct definition then, genius! ... It also has the tendency to make people's head swim in confusion. ...
      (sci.math)