linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: linux-man@vger.kernel.org, Seth McDonald <sethmcmail@pm.me>,
	 Eugene Syromyatnikov <evgsyr@gmail.com>,
	Ingo Schwarze <schwarze@openbsd.org>, DJ Delorie <dj@redhat.com>,
	 Paul Floyd <pjfloyd@wanadoo.fr>, John Scott <jscott@posteo.net>,
	misc@openbsd.org
Subject: Re: [PATCH v4 1/1] man/man3/aligned_alloc.3: HISTORY: Document bogus specification from C11
Date: Tue, 23 Dec 2025 01:35:18 +0100	[thread overview]
Message-ID: <aUnjliwquUfEXp31@devuan> (raw)
In-Reply-To: <20251223001524.fkzuimnouq4537rd@illithid>

[-- Attachment #1: Type: text/plain, Size: 3923 bytes --]

Hi Branden,

On Mon, Dec 22, 2025 at 06:15:24PM -0600, G. Branden Robinson wrote:
> Hi Alex,
> 
> Content looks great; as you've likely guessed, I have commentary only on
> man(7) markup.
> 
> At 2025-12-22T22:33:09+0100, Alejandro Colomar wrote:
> > I've rewritten the entire subsection from scratch, similar to the
> > email I wrote detailing the history of the specification.  I think
> > this is explains the turbulent history of this API better, and allows
> > programmers to decide if they want to trust this API or not.
> > 
> > Does this look good?
> 
> At 2025-12-22T22:33:13+0100, Alejandro Colomar wrote:
> > Document the turbulent past of aligned_alloc(), and how libraries have
> > actually implemented it.
> 
> Nice summary!

Thanks! :-)

> [...]
> > +the specification of this function had
> > +.UR https://port70.net/~nsz/c/c11/n1570.html#7.22.3.1p2
> > +several issues
> > +.UE .
> [...]
> > +.UR https://www.open-std.org/jtc1/sc22/wg14/www/docs/summary.htm#dr_460
> > +DR460
> > +.UE
> [...]
> > +.UR https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2072.htm
> > +N2072
> > +.UE
> 
> I'd put hyphenless break points after each sequence of slashes in these
> URLs, and before each dot.
> 
> I`d spell these `-`s as `\-` so that they appear as hyphen-minuses when
> printed, not as hyphens.

Yup; thanks for the reminder!  Also fixed the \[ti].


Have a lovely night!
Alex

> 
> groff_man_style(7):
>    Hyperlink macros
> ...
>      Prepare arguments to MR, MT, and UR for typesetting; they can
>      appear in the output.  Use special character escape sequences to
>      encode Unicode basic Latin characters where necessary, particularly
>      the hyphen‐minus.  (See subsection “Portability” below.)  URIs can
>      be lengthy; rendering them can result in jarring adjustment or
>      variations in line length, or troff warnings when one is longer
>      than an output line.  The application of non‐printing break point
>      escape sequences \: after each slash (or series thereof), and
>      before each dot (or series thereof) is recommended as a rule of
>      thumb.  The former practice avoids forcing a trailing slash in a
>      URI onto a separate output line, and the latter helps the reader to
>      avoid mistakenly interpreting a dot at the end of a line as a
>      period (or multiple dots as an ellipsis).  Thus,
>             .UR http://\:example\:.com/\:fb8afcfbaebc74e\:.cc
>      has several potential break points in the URI shown.  Consider
>      adding break points before or after at signs in email addresses,
>      and question marks, ampersands, and number signs in HTTP(S) URIs.
> ...
> Portability
> ...
>      \-     Minus sign.  \- produces the basic Latin hyphen‐minus
>             (U+002D) specifying Unix command‐line options and frequently
>             used in file names.  “-” is a hyphen in roff; some output
>             devices format it as U+2010 (hyphen).
> 
> I recently noticed someone on StackExchange opining that "man" (they
> weren't clear on whether they meant the man(1) librarian or the man(7)
> macro language) doesn't support URLS: "unlike man, at least [lynx(1)]
> supports links!".
> 
> That claim is a combination of falsehood, misleading implication, and
> out-of-dateness.  It's not man(1) that needs to support hyperlinks in a
> terminal, but the pager[1], and less(1) does, since version 661 (June
> 2024).  grotty(1) has offered OSC 8 links since groff 1.23.0, July 2023.
> 
> Regards,
> Branden
> 
> [1] ...or the terminal emulator, in the event one uses cat(1) as the
>     pager or runs "nroff -man" directly, like a hard-bitten,
>     two-fisted-drinking, shirtless veteran of the Unix Wars.
> 
>     (You can leave Australia, but 'Straya never truly leaves you.)



-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2025-12-23  0:35 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-10 12:39 [PATCH v1 00/12] man/man3/posix_memalign.3: Several fixes, and split the page Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 01/12] man/man3/posix_memalign.3: Remove confusing exception Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 02/12] man/man3/posix_memalign.3: wfix Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 03/12] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() conforms to ISO C17, not C11 Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 04/12] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() conforms to C23 Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 05/12] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() and posix_memalign() conform to POSIX.1-2024 Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 06/12] man/man3/{posix_,}memalign.3: Split memalign() from posix_memalign(3) Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 07/12] man/man3/{posix_memalign,pvalloc}.3: Split pvalloc() " Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 08/12] man/man3/{posix_memalign,valloc}.3: Split valloc() " Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 09/12] man/man3/{aligned_alloc,posix_memalign}.3: Split aligned_alloc() " Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 10/12] man/man3/posix_memalign.3: CAVEATS: Add section, and move paragraph to it Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 11/12] man/man3/posix_memalign.3: Remove redundant text Alejandro Colomar
2025-12-10 12:40 ` [PATCH v1 12/12] man/man3/posix_memalign.3: NOTES: Remove superfluous section Alejandro Colomar
2025-12-10 16:29 ` [PATCH v1 00/12] man/man3/posix_memalign.3: Several fixes, and split the page Eugene Syromyatnikov
2025-12-10 17:12   ` Alejandro Colomar
2025-12-10 22:50     ` Eugene Syromyatnikov
2025-12-11  0:04       ` Alejandro Colomar
2025-12-11  3:46         ` Eugene Syromyatnikov
2025-12-11 10:39           ` Alejandro Colomar
2025-12-15 14:41 ` [PATCH v2 00/14] " Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 01/14] man/man3/posix_memalign.3: Remove confusing exception Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 02/14] man/man3/posix_memalign.3: wfix Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 03/14] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() conforms to C17, not C11 Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 04/14] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() conforms to C23 Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 05/14] man/man3/posix_memalign.3: STANDARDS: aligned_alloc() and posix_memalign() conform to POSIX.1-2024 Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 06/14] man/man3/{posix_,}memalign.3: Split memalign() from posix_memalign(3) Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 07/14] man/man3/{posix_memalign,pvalloc}.3: Split pvalloc() " Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 08/14] man/man3/{posix_memalign,valloc}.3: Split valloc() " Alejandro Colomar
2025-12-15 14:41   ` [PATCH v2 09/14] man/man3/{aligned_alloc,posix_memalign}.3: Split aligned_alloc() " Alejandro Colomar
2025-12-15 14:42   ` [PATCH v2 10/14] man/man3/posix_memalign.3: CAVEATS: Add section, and move paragraph to it Alejandro Colomar
2025-12-15 14:42   ` [PATCH v2 11/14] man/man3/posix_memalign.3: Remove redundant text Alejandro Colomar
2025-12-15 14:42   ` [PATCH v2 12/14] man/man3/posix_memalign.3: NOTES: Remove superfluous section Alejandro Colomar
2025-12-15 14:42   ` [PATCH v2 13/14] man/man3/memalign.3: wfix Alejandro Colomar
2025-12-15 14:42   ` [PATCH v2 14/14] man/man3/aligned_alloc.3: HISTORY: Document bogus specification from C11 Alejandro Colomar
2025-12-17 13:03   ` [PATCH v2 00/14] man/man3/posix_memalign.3: Several fixes, and split the page Seth McDonald
2025-12-17 13:28     ` Alejandro Colomar
2025-12-17 13:51 ` [PATCH v3 0/1] man/man3/aligned_alloc.3: HISTORY: Document bogus specification from C11 Alejandro Colomar
2025-12-17 13:51   ` [PATCH v3 1/1] " Alejandro Colomar
2025-12-17 13:53     ` Alejandro Colomar
2025-12-17 14:42     ` Eugene Syromyatnikov
2025-12-17 15:37       ` Eugene Syromyatnikov
2025-12-17 17:05         ` Alejandro Colomar
2025-12-17 20:40           ` Alejandro Colomar
2025-12-17 16:46       ` Alejandro Colomar
2025-12-22 21:33 ` [PATCH v4 0/1] " Alejandro Colomar
2025-12-22 21:33   ` [PATCH v4 1/1] " Alejandro Colomar
2025-12-22 21:36     ` Alejandro Colomar
2025-12-23  0:15   ` G. Branden Robinson
2025-12-23  0:35     ` Alejandro Colomar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aUnjliwquUfEXp31@devuan \
    --to=alx@kernel.org \
    --cc=dj@redhat.com \
    --cc=evgsyr@gmail.com \
    --cc=g.branden.robinson@gmail.com \
    --cc=jscott@posteo.net \
    --cc=linux-man@vger.kernel.org \
    --cc=misc@openbsd.org \
    --cc=pjfloyd@wanadoo.fr \
    --cc=schwarze@openbsd.org \
    --cc=sethmcmail@pm.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).