diff options
author | guenther <> | 2024-08-03 20:13:23 +0000 |
---|---|---|
committer | guenther <> | 2024-08-03 20:13:23 +0000 |
commit | 172e3add77ca1afbcd9a209b8820a29ab2081c89 (patch) | |
tree | dd110aae5fa80e2f190ec575ab37ce40f1774a8b /src/lib/libc/string/strlcpy.3 | |
parent | ae839ab833fa589a30c08d882a2c96e7bedec358 (diff) | |
download | openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.tar.gz openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.tar.bz2 openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.zip |
The improbable occurred: strlcpy(3) and strlcat(3) are in POSIX-2024.
memmem(3) was also added. Update #include visibility and manpages
and add restrict qualifiers.
"never thought I'd see this day" millert@
Diffstat (limited to 'src/lib/libc/string/strlcpy.3')
-rw-r--r-- | src/lib/libc/string/strlcpy.3 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/libc/string/strlcpy.3 b/src/lib/libc/string/strlcpy.3 index a14145e199..4607289883 100644 --- a/src/lib/libc/string/strlcpy.3 +++ b/src/lib/libc/string/strlcpy.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: strlcpy.3,v 1.27 2019/01/25 00:19:25 millert Exp $ | 1 | .\" $OpenBSD: strlcpy.3,v 1.28 2024/08/03 20:13:23 guenther Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1998, 2000 Todd C. Miller <millert@openbsd.org> | 3 | .\" Copyright (c) 1998, 2000 Todd C. Miller <millert@openbsd.org> |
4 | .\" | 4 | .\" |
@@ -14,7 +14,7 @@ | |||
14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | .\" | 16 | .\" |
17 | .Dd $Mdocdate: January 25 2019 $ | 17 | .Dd $Mdocdate: August 3 2024 $ |
18 | .Dt STRLCPY 3 | 18 | .Dt STRLCPY 3 |
19 | .Os | 19 | .Os |
20 | .Sh NAME | 20 | .Sh NAME |
@@ -24,9 +24,9 @@ | |||
24 | .Sh SYNOPSIS | 24 | .Sh SYNOPSIS |
25 | .In string.h | 25 | .In string.h |
26 | .Ft size_t | 26 | .Ft size_t |
27 | .Fn strlcpy "char *dst" "const char *src" "size_t dstsize" | 27 | .Fn strlcpy "char * restrict dst" "const char * restrict src" "size_t dstsize" |
28 | .Ft size_t | 28 | .Ft size_t |
29 | .Fn strlcat "char *dst" "const char *src" "size_t dstsize" | 29 | .Fn strlcat "char * restrict dst" "const char * restrict src" "size_t dstsize" |
30 | .Sh DESCRIPTION | 30 | .Sh DESCRIPTION |
31 | The | 31 | The |
32 | .Fn strlcpy | 32 | .Fn strlcpy |
@@ -174,6 +174,13 @@ As a matter of fact, the first version of this manual page got it wrong. | |||
174 | .Xr strncat 3 , | 174 | .Xr strncat 3 , |
175 | .Xr strncpy 3 , | 175 | .Xr strncpy 3 , |
176 | .Xr wcslcpy 3 | 176 | .Xr wcslcpy 3 |
177 | .Sh STANDARDS | ||
178 | The | ||
179 | .Fn strlcat | ||
180 | and | ||
181 | .Fn strlcpy | ||
182 | functions conform to | ||
183 | .St -p1003.1-2024 . | ||
177 | .Sh HISTORY | 184 | .Sh HISTORY |
178 | .Fn strlcpy | 185 | .Fn strlcpy |
179 | and | 186 | and |