From 0bce36fac7288efce881d655bc607fabfcbb7d88 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Thu, 25 Sep 2025 10:55:10 +0200 Subject: [PATCH] man/: ffix (escape dashes) Most of these have been reported by 'make lint-man-dash'. A couple of them were found manually. Signed-off-by: Alejandro Colomar --- man/man3/ctime.3 | 2 +- man/man3/fmod.3 | 8 ++++---- man/man3/pthread_getattr_np.3 | 6 +++--- man/man3/strverscmp.3 | 2 +- man/man3attr/gnu::format.3attr | 4 ++-- man/man5/nscd.conf.5 | 4 ++-- man/man7/man-pages.7 | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/man/man3/ctime.3 b/man/man3/ctime.3 index d5f2fc103..7d69dd83c 100644 --- a/man/man3/ctime.3 +++ b/man/man3/ctime.3 @@ -503,7 +503,7 @@ The following shell session shows sample runs of the program: $ .RB $\~ "export TZ=Europe/Madrid" ; $ -.RB $\~ "./a.out 2147483647 2147483647 00 00 00 00 -1" ; +.RB $\~ "./a.out 2147483647 2147483647 00 00 00 00 \-1" ; a.out: mktime: Value too large for defined data type $ .RB $\~ "./a.out 2024 08 23 00 17 53 \-1" ; diff --git a/man/man3/fmod.3 b/man/man3/fmod.3 index c0cbaa5bd..b6d8f92c4 100644 --- a/man/man3/fmod.3 +++ b/man/man3/fmod.3 @@ -166,11 +166,11 @@ The call returns 12. .P The call -.I fmod(-372, 360) -returns -12. +.I fmod(\-372, 360) +returns \-12. .P The call -.I fmod(-372, -360) -also returns -12. +.I fmod(\-372, \-360) +also returns \-12. .SH SEE ALSO .BR remainder (3) diff --git a/man/man3/pthread_getattr_np.3 b/man/man3/pthread_getattr_np.3 index c8bcb2a35..a879e45a8 100644 --- a/man/man3/pthread_getattr_np.3 +++ b/man/man3/pthread_getattr_np.3 @@ -271,7 +271,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], if (argc > optind) usage(argv[0], "Extraneous command\-line arguments\[rs]n"); \& - if (stack_size != -1 || guard_size > 0) { + if (stack_size != \-1 || guard_size > 0) { ret_attrp = attrp; \& s = pthread_attr_init(attrp); @@ -279,7 +279,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], errc(EXIT_FAILURE, s, "pthread_attr_init"); } \& - if (stack_size != -1) { + if (stack_size != \-1) { if (!allocate_stack) { s = pthread_attr_setstacksize(attrp, stack_size); if (s != 0) @@ -297,7 +297,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], } } \& - if (guard_size != -1) { + if (guard_size != \-1) { s = pthread_attr_setguardsize(attrp, guard_size); if (s != 0) errc(EXIT_FAILURE, s, "pthread_attr_setstacksize"); diff --git a/man/man3/strverscmp.3 b/man/man3/strverscmp.3 index 46747ac01..fab8bc984 100644 --- a/man/man3/strverscmp.3 +++ b/man/man3/strverscmp.3 @@ -34,7 +34,7 @@ so is meant mostly for situations where the strings are expected to be in ASCII. This is different from the ordering produced by .BR sort (1) -.BR -V . +.BR \-V . .\" sort -V sorts a-1.0a < a-1.0.1a; strverscmp() does not .P What this function does is the following. diff --git a/man/man3attr/gnu::format.3attr b/man/man3attr/gnu::format.3attr index e48670ad7..92ea4ef74 100644 --- a/man/man3attr/gnu::format.3attr +++ b/man/man3attr/gnu::format.3attr @@ -124,13 +124,13 @@ vstprintf(int size; \& if (size == 0) { errno = EOVERFLOW; - return -1; + return \-1; } \& len = vsnprintf(buf, size, fmt, args); if (len >= size) { errno = E2BIG; - return -1; + return \-1; } \& return len; diff --git a/man/man5/nscd.conf.5 b/man/man5/nscd.conf.5 index ec6eb8a76..62392b8aa 100644 --- a/man/man5/nscd.conf.5 +++ b/man/man5/nscd.conf.5 @@ -286,7 +286,7 @@ and only then will it actually be removed from the cache. A request from a client which hits the entry will reset the reload counter on the entry. Purging the cache using -.I nscd\~-i +.I nscd\~\-i overrides the reload logic and removes the entry. .P Reloading has the effect of extending cache entry TTLs @@ -337,7 +337,7 @@ Some distributions have an init script for with a .I reload command which uses -.I nscd\~-i +.I nscd\~\-i to purge the cache. That use of the word "reload" is entirely different from the "reloading" described here. diff --git a/man/man7/man-pages.7 b/man/man7/man-pages.7 index 0ce9a174f..f5315e37d 100644 --- a/man/man7/man-pages.7 +++ b/man/man7/man-pages.7 @@ -1003,7 +1003,7 @@ when rendering a page with, say: .P .in +4n .EX -BROWSER=firefox man -H pagename +BROWSER=firefox man \-H pagename .EE .in .SS Use of e.g., i.e., etc., a.k.a., and similar -- 2.47.3