1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
From: Agathe Porte <gagath@debian.org>
Date: Fri, 3 Oct 2025 17:14:35 +0200
Subject: fix typos in man pages
Some of them are English typos, others are generating troff warnings.
Signed-off-by: Agathe Porte <gagath@debian.org>
---
buffer/buffer_putxlong.3 | 2 +-
fmt/fmt_iso8601.3 | 2 +-
socket/socket_accept4_makenonblocking_setcloseonexec.3 | 2 +-
socket/socket_accept6_makenonblocking_setcloseonexec.3 | 2 +-
str/str_chr.3 | 2 +-
str/str_copy.3 | 2 +-
str/str_equal.3 | 2 +-
str/str_len.3 | 2 +-
str/str_rchr.3 | 4 ++--
textcode/scan_jsonescape.3 | 2 +-
10 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/buffer/buffer_putxlong.3 b/buffer/buffer_putxlong.3
index c39b9f0..0ada5f7 100644
--- a/buffer/buffer_putxlong.3
+++ b/buffer/buffer_putxlong.3
@@ -1,6 +1,6 @@
.TH buffer_putxlong 3
.SH NAME
-buffer_putxlong \- write a hexidecimal ASCII representation of an unsigned
+buffer_putxlong \- write a hexadecimal ASCII representation of an unsigned
long integer to buffer
.SH SYNTAX
.B #include <libowfat/buffer.h>
diff --git a/fmt/fmt_iso8601.3 b/fmt/fmt_iso8601.3
index cc48da0..cd8e81a 100644
--- a/fmt/fmt_iso8601.3
+++ b/fmt/fmt_iso8601.3
@@ -7,7 +7,7 @@ fmt_iso8601 \- write a date in ASCII conforming to ISO-8601
size_t \fBfmt_iso8601\fP(char *\fIdest\fR,time_t \fIsource\fR);
.SH DESCRIPTION
fmt_iso8601 writes a date in ASCII representation as ISO-8601 defines it:
-"2014-05-27T19:22:16Z". ISO-8601 also allows to store a sub-second part
+"2014-05-27T19:22:16Z". ISO-8601 also allows one to store a sub-second part
and a time zone, but fmt_iso8601 does not support that.
fmt_iso8601 does not append \\0.
diff --git a/socket/socket_accept4_makenonblocking_setcloseonexec.3 b/socket/socket_accept4_makenonblocking_setcloseonexec.3
index c4057d1..32678c7 100644
--- a/socket/socket_accept4_makenonblocking_setcloseonexec.3
+++ b/socket/socket_accept4_makenonblocking_setcloseonexec.3
@@ -1,7 +1,7 @@
.TH socket_accept4_makenonblocking_setcloseonexec 3
.SH NAME
socket_accept4_makenonblocking_setcloseonexec \- accept an IPv4 TCP connection on a socket and set it to non-blocking I/O and close-on-exec
-.nSH SYNTAX
+.SH SYNTAX
.B #include <libowfat/socket.h>
int \fBsocket_accept4_makenonblocking_setcloseonexec\fP(int \fIs\fR,char \fIip\fR[4],uint16 *\fIport\fR);
diff --git a/socket/socket_accept6_makenonblocking_setcloseonexec.3 b/socket/socket_accept6_makenonblocking_setcloseonexec.3
index 80656bd..0e24893 100644
--- a/socket/socket_accept6_makenonblocking_setcloseonexec.3
+++ b/socket/socket_accept6_makenonblocking_setcloseonexec.3
@@ -1,7 +1,7 @@
.TH socket_accept6_makenonblocking_setcloseonexec 3
.SH NAME
socket_accept6_makenonblocking_setcloseonexec \- accept an IPv6 TCP connection on a socket and set it to non-blocking I/O and close-on-exec
-.nSH SYNTAX
+.SH SYNTAX
.B #include <libowfat/socket.h>
int \fBsocket_accept6_makenonblocking_setcloseonexec\fP(int \fIs\fR,char \fIip\fR[4],uint16 *\fIport\fR,uint16* \fIscope_id\fR);
diff --git a/str/str_chr.3 b/str/str_chr.3
index 6e346f9..0a86d52 100644
--- a/str/str_chr.3
+++ b/str/str_chr.3
@@ -6,7 +6,7 @@ str_chr \- find character in ASCIIZ string
size_t \fBstr_chr\fP(const char* \fIhaystack\fR,char \fIneedle\fR);
.SH DESCRIPTION
-str_chr returns the index of the first occurrance of \fIneedle\fR or \\0 in
+str_chr returns the index of the first occurrence of \fIneedle\fR or \\0 in
\fIstring\fR.
.SH "SEE ALSO"
strchr(3)
diff --git a/str/str_copy.3 b/str/str_copy.3
index c014e38..2b0f618 100644
--- a/str/str_copy.3
+++ b/str/str_copy.3
@@ -7,7 +7,7 @@ str_copy \- copy an ASCIIZ string
size_t \fBstr_copy\fP(char* \fIout\fR,const char* \fIin\fR);
.SH DESCRIPTION
str_copy copies the leading bytes of \fIin\fR to \fIout\fR up to and
-including the first occurrance of \\0.
+including the first occurrence of \\0.
str_copy returns the number of bytes copied (not including the \\0).
.SH "SEE ALSO"
diff --git a/str/str_equal.3 b/str/str_equal.3
index ab1c642..8236868 100644
--- a/str/str_equal.3
+++ b/str/str_equal.3
@@ -7,7 +7,7 @@ str_equal \- compare two ASCIIZ strings
size_t \fBstr_equal\fP(const char* \fIa\fR,const char* \fIb\fR);
.SH DESCRIPTION
\fBstr_equal\fR returns nonzero if \fIa\fR and \fIb\fR match up to and
-including the first occurrance of \\0.
+including the first occurrence of \\0.
If the strings are different, str_equal does not read bytes past the
first difference.
diff --git a/str/str_len.3 b/str/str_len.3
index 4624071..bb4be6e 100644
--- a/str/str_len.3
+++ b/str/str_len.3
@@ -6,7 +6,7 @@ str_len \- find length of ASCIIZ string
size_t \fBstr_len\fP(const char* \fIstring\fR);
.SH DESCRIPTION
-str_len returns the index of the first occurrance of \\0 in
+str_len returns the index of the first occurrence of \\0 in
\fIstring\fR.
.SH "SEE ALSO"
strlen(3)
diff --git a/str/str_rchr.3 b/str/str_rchr.3
index 347edd0..904955e 100644
--- a/str/str_rchr.3
+++ b/str/str_rchr.3
@@ -6,7 +6,7 @@ str_rchr \- find character in ASCIIZ string
size_t \fBstr_rchr\fP(const char* \fIhaystack\fR,char \fIneedle\fR);
.SH DESCRIPTION
-str_rchr returns the index of the last occurrance of needle or the first
-occurrance of \\0 in \fIstring\fR.
+str_rchr returns the index of the last occurrence of needle or the first
+occurrence of \\0 in \fIstring\fR.
.SH "SEE ALSO"
strchr(3)
diff --git a/textcode/scan_jsonescape.3 b/textcode/scan_jsonescape.3
index 9fc549e..96927f4 100644
--- a/textcode/scan_jsonescape.3
+++ b/textcode/scan_jsonescape.3
@@ -25,7 +25,7 @@ scan_jsonescape returns the number of bytes successfully parsed
from src.
.SH EXAMPLES
-scan_jsonescape("test\n\");",buf,&i) -> return 6, i=5, buf="test\n".
+scan_jsonescape("test\\n\\");",buf,&i) -> return 6, i=5, buf="test\\n".
.SH "SEE ALSO"
fmt_jsonescape(3), scan_cescape(3), scan_ldapescape(3)
|