From owner-svn-src-all@freebsd.org Sat Jul 28 21:05:40 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0DA7105E909; Sat, 28 Jul 2018 21:05:40 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f44.google.com (mail-it0-f44.google.com [209.85.214.44]) (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 6AA0281584; Sat, 28 Jul 2018 21:05:40 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f44.google.com with SMTP id s7-v6so12351366itb.4; Sat, 28 Jul 2018 14:05:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=Mc5z/9YPuIjC8NL222/07PnHzkJHYNPRTWZsayRlMSc=; b=Tbe+axQuvI6Gxr5M7WPkeTZHrQAx2GKN5AUpakv2ikngiCLigrDA9L7K1jFwa4jOFd YbwxH7oeJr+yuNVA7felb0kvnMLqpJnw62x6vaNDfEyV2VTxQr+S/FMocioaq/qpfnYL TyogqvnAMz7ASZCGh9my5apVVAAeLra+PVN4lAeFuktU3rPkyRO5rRJ7RQZZhajhq2Y8 svXC4UMJ9RmbyEfslAixIwCIvFxgGbesH5dooFzThKQmcKZ8qWG7WK+0ZD2xPp7rPxZa CWFw8Cdn+TeXo44VFxLUyVvknOMGlJic+vB/eAwjjecSWvySfqtuFDt/jKh1Vw4pcZW8 Du1w== X-Gm-Message-State: AOUpUlEihhOcuZyEVOvI+RJsdDJ6+xFlPdmwc2abCvb60C3ZmvgvKUAK yjZ1Ahv7iMicrwQb1JvtDg+qrKgb X-Google-Smtp-Source: AAOMgpf4PUmwNcJwk6dzMpNiNtHgeOVxdAuO9moUSnLT6v0ZV0/wzosWMyp5lc/6zKbsbIT77R4r/A== X-Received: by 2002:a02:702:: with SMTP id f2-v6mr11277717jaf.70.1532811557273; Sat, 28 Jul 2018 13:59:17 -0700 (PDT) Received: from mail-io0-f169.google.com (mail-io0-f169.google.com. [209.85.223.169]) by smtp.gmail.com with ESMTPSA id b15-v6sm4503803itb.25.2018.07.28.13.59.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 28 Jul 2018 13:59:17 -0700 (PDT) Received: by mail-io0-f169.google.com with SMTP id k16-v6so6885034iom.12; Sat, 28 Jul 2018 13:59:17 -0700 (PDT) X-Received: by 2002:a6b:b0c5:: with SMTP id z188-v6mr9040672ioe.220.1532811557047; Sat, 28 Jul 2018 13:59:17 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 2002:a02:7e0a:0:0:0:0:0 with HTTP; Sat, 28 Jul 2018 13:59:16 -0700 (PDT) In-Reply-To: <20180728203253.GB40119@kib.kiev.ua> References: <201807281908.w6SJ80qo089859@repo.freebsd.org> <20180728200611.GA40119@kib.kiev.ua> <20180728203253.GB40119@kib.kiev.ua> From: Conrad Meyer Date: Sat, 28 Jul 2018 13:59:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r336835 - head/lib/libc/gen To: Konstantin Belousov Cc: src-committers , 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.27 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: Sat, 28 Jul 2018 21:05:41 -0000 On Sat, Jul 28, 2018 at 1:32 PM, Konstantin Belousov wrote: > Our existing practice is to not provide an advise in the man pages > for the userspace code which would harm the portability or the standard > conformance. Perhaps, but you do not have to look beyond this manual page to find that such a practice, if it is even nominally applied, is not followed consistently. The remainder of the document spells the terminating value as plain "NULL." FreeBSD manual pages consistently refer to NULL as a pointer value. The Linux manual page spells the terminating value (char *)NULL and explicitly documents why. That is perhaps both pedantically correct and clear. I am amenable to such a change. > I am not so sure about CheriBSD, for instance. I observe simply that CheriBSD is not FreeBSD and that CHERI is an exotic architecture. Best, Conrad