Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2018 13:59:16 -0700
From:      Conrad Meyer <cem@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r336835 - head/lib/libc/gen
Message-ID:  <CAG6CVpV78tghDqgE-nGp0WeGZAxOpVp_y%2BpyZLob0DuRuHq_ug@mail.gmail.com>
In-Reply-To: <20180728203253.GB40119@kib.kiev.ua>
References:  <201807281908.w6SJ80qo089859@repo.freebsd.org> <20180728200611.GA40119@kib.kiev.ua> <CAG6CVpVEhyutDe7DL7ECVbKi=JpbD%2BAD8d633=eLX6-VbD4i9g@mail.gmail.com> <20180728203253.GB40119@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 28, 2018 at 1:32 PM, Konstantin Belousov
<kostikbel@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpV78tghDqgE-nGp0WeGZAxOpVp_y%2BpyZLob0DuRuHq_ug>