On Tue, Dec 05 2017, Jan Stary <h...@stare.cz> wrote:
> All annotated occurences of "errno" in intro(2) are .Va,
> except this one which is .Dv - is that intended?
>
> The others talk about the "varible" errno, this one is
> an "identifier which expands to an addressable location",
> whatever that means.

FWIW, I think it makes sense to speak about errno as a variable (.Va),
but to describe that it is actually a preprocessor #define (.Dv) under
the hood.

>       Jan
>
>
> Index: intro.2
> ===================================================================
> RCS file: /cvs/src/lib/libc/sys/intro.2,v
> retrieving revision 1.65
> diff -u -p -r1.65 intro.2
> --- intro.2   5 Sep 2017 03:06:26 -0000       1.65
> +++ intro.2   5 Dec 2017 22:01:26 -0000
> @@ -51,7 +51,7 @@ Programs may be restricted to a subset o
>  .\"<more later...>
>  .Sh DIAGNOSTICS
>  Nearly all of the system calls provide an error number via the identifier
> -.Dv errno ,
> +.Va errno ,
>  which expands to an addressable location of type
>  .Vt int .
>  The address of
>

-- 
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply via email to