manual: Extract the @manpageurl{func,sec} macro

From the existing @manpagefunctionstub{func,sec} macro,
so that URLs can be included in the manual without the
stub text.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer 2024-09-11 10:05:08 +02:00
parent 8ecb477ea1
commit 298bc488fd

View File

@ -282,10 +282,13 @@ cwd\comments\
@macro standardsx {element, standard, header}
@end macro
@macro manpageurl {func, sec}
@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}
@end macro
@macro manpagefunctionstub {func,sec}
This documentation is a stub. For additional information on this
function, consult the manual page
@url{https://man7.org/linux/man-pages/man\sec\/\func\.\sec\.html}.
function, consult the manual page @manpageurl{\func\,\sec\}.
@xref{Linux Kernel}.
@end macro