From owner-freebsd-standards@FreeBSD.ORG Fri Jul 4 07:05:53 2014 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5FFCD7BC for ; Fri, 4 Jul 2014 07:05:53 +0000 (UTC) Received: from mail-la0-x230.google.com (mail-la0-x230.google.com [IPv6:2a00:1450:4010:c03::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA2B3271D for ; Fri, 4 Jul 2014 07:05:52 +0000 (UTC) Received: by mail-la0-f48.google.com with SMTP id el20so868982lab.7 for ; Fri, 04 Jul 2014 00:05:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=2cWdL76uICr4AzbLLeNd65ADOQnqpWmGPCZNSYl3VY0=; b=sgDU5YaMmAYfYCKTMuVKwnQY5RSQWVkIYBqYlZ+pzi8bHRDrl8Z9d5L9FlzE9N2q4M AbhZHSyuydhVHzFC+kMBAEE4cnul1miuWC+JN6cHmP3O3HVogM4c++FkASAGVdgOYroQ non2NewyHqIpfnhNBkEJoCsMPoxcXDF4aWS72RBtxuQKNZx+SjG6osz1ebpx2+hrI49u nG6EllCTqe/QS7GlcVJ9bJU8XJqJGoWQI2cLpqNgGuvDEfdLcH8zrtyEQLas0dlOCGj+ xKzENQy5syXsuyC/o89KTDHSfoe1Tpo0XPuKAEEhOTxyIKxFRRsciA0POREcHvbNwVNF j7jg== X-Received: by 10.152.87.164 with SMTP id az4mr203087lab.74.1404457550646; Fri, 04 Jul 2014 00:05:50 -0700 (PDT) Received: from [10.0.1.2] (ip-95-220-95-94.bb.netbynet.ru. [95.220.95.94]) by mx.google.com with ESMTPSA id kw10sm14508517lac.24.2014.07.04.00.05.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Jul 2014 00:05:48 -0700 (PDT) From: Dmitry Sivachenko Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: About sysconf(_SC_GETPW_R_SIZE_MAX) Message-Id: Date: Fri, 4 Jul 2014 11:05:46 +0400 To: freebsd-standards@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) X-Mailer: Apple Mail (2.1878.2) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2014 07:05:53 -0000 Hello! (FreeBSD-10/stable). According to sysconf(3), _SC_GETPW_R_SIZE_MAX is the valid argument to = sysconf(): _SC_GETPW_R_SIZE_MAX Suggested initial value for the size of the password entry buffer. But the following test program fails: #include #include #include #include int main() { int buf_sz; errno=3D0; buf_sz =3D sysconf(_SC_GETPW_R_SIZE_MAX); printf("%d\n", buf_sz); warn("sysconf: "); return 0; } % ./a.out=20 -1 a.out: sysconf: : Invalid argument What is wrong? Thanks!=