From owner-svn-src-all@freebsd.org Mon Jul 20 11:29:31 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECEC99A5DDA for ; Mon, 20 Jul 2015 11:29:31 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B40441AA9 for ; Mon, 20 Jul 2015 11:29:30 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by oigd21 with SMTP id d21so64003173oig.1 for ; Mon, 20 Jul 2015 04:29:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=vXJvEOP4ZJ+i9Kg454YsSx8y69Z7v6DMid/CyLDLoaE=; b=I2Kg++pfNoH/wvJvxwOwd9x3gXbRkreMjDlj0QtGHX3jVqNSz6/D5T975YUzoF9sj6 6pRAq5LDzpN/8Xhj2SP1Uf5D3JJ4NcGC5/B3VwCTggzdNQ6QFt2NX1/QvFsyAs0znQo3 EdZMs1WTqaeYqwfrerR4ALZHBkctDGib1RYUVV7wH1Sxo8tFedqifcL5dzJPmJXzoa5F OJ7BMzxi1j12u3ajdETn6VDt+EXFx0ngGSmm1L04YjTPsLDbKj9kuzVRTFHTz2AkhxOY 9TWAkyrZGr6XxAIqMKL6V5RDipAs/0vVyEJyFOolAKLntaghZubWx7kZ6OQTYoAqgKhb 5Uyg== X-Gm-Message-State: ALoCoQk9zrGlphR8Ft5el0T83u7cZopBezhVBqqy+Z6y53wkGFFHorD/ijpVnPC/anvxPCSSeC8R MIME-Version: 1.0 X-Received: by 10.202.48.22 with SMTP id w22mr24320470oiw.95.1437391764332; Mon, 20 Jul 2015 04:29:24 -0700 (PDT) Received: by 10.76.0.46 with HTTP; Mon, 20 Jul 2015 04:29:24 -0700 (PDT) X-Originating-IP: [84.27.222.46] In-Reply-To: <20150717114153.GA93168@stack.nl> References: <201507141433.t6EEXLkn035058@repo.freebsd.org> <20150717114153.GA93168@stack.nl> Date: Mon, 20 Jul 2015 13:29:24 +0200 Message-ID: Subject: Re: svn commit: r285539 - head/sys/compat/cloudabi64 From: Ed Schouten To: Jilles Tjoelker Cc: Ed Schouten , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 11:29:32 -0000 Hi Jilles, 2015-07-17 13:41 GMT+02:00 Jilles Tjoelker : > The maximum number of iovecs is part of the ABI and should therefore > probably have a CLOUDABI_* constant. > > It turns out that both FreeBSD and Linux report 1024 for getconf > IOV_MAX, so there is little practical effect. That's a good observation. What cloudlibc does is that it leaves IOV_MAX undefined, as there is no compile-time maximum. It is therefore perfectly legal to use UIO_MAXIOV in this specific piece of code, as long as it is consistent with sysconf(_SC_IOV_MAX). If my interpretation of POSIX is correct, this should be allowed. Many of the definitions in may be omitted if the actual limit is unspecified. Best regards, -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK/VAT number: 62051717