From owner-svn-src-head@freebsd.org Mon Jul 20 11:29:31 2015 Return-Path: Delivered-To: svn-src-head@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 ED2B29A5DDB for ; Mon, 20 Jul 2015 11:29:31 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) (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 B9DC51AAA for ; Mon, 20 Jul 2015 11:29:30 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by oibn4 with SMTP id n4so106513320oib.3 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=bhPa5ULnlsT7z6zu7rrb7FJr+7VdD3UNGF3R2Yl7AuF+Rx6Aklqxlw05zc//PKh11s Jbyyny8nPH7ZrC07ko/hMBERvPhAdKf+qRg+cwcJOjyPJkCeorWMvjfpteDjrHimbGQM UfYvsgPYFRLNoUF6S8+tYyEATmK9hyeI69d/yAs2xscb3jXiz8UJlf57JK9twj/lu97R sKwyaVhoDbNBHJWdaT65uK5jN3gj80N16ERAaYN9emrtiIknIUvRMR16DKTYAdT7CW9F oSZrd5nlFdtOgzfpYWd/CZ2i+jSOPspvC2DRZdLiGloJwKT3RLcPOEVdGupCdbbQ69UN FfPw== X-Gm-Message-State: ALoCoQn5XamJW4fRFbHpUsUWsOrobRYmPXQbNeBoBBxGvRuGs+GnsKIGMKc1FBXP7feiqfgYNH95 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current 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