summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorguenther <>2024-08-07 04:59:45 +0000
committerguenther <>2024-08-07 04:59:45 +0000
commitac42bf92b33cba3038e65d42993f4b346657a65f (patch)
treec34d23fbbd0ea92c86b45459f598a5906a29ae4d /src
parent9d394c7780687b920ba0b1d0c64ec49d7a5a1772 (diff)
downloadopenbsd-ac42bf92b33cba3038e65d42993f4b346657a65f.tar.gz
openbsd-ac42bf92b33cba3038e65d42993f4b346657a65f.tar.bz2
openbsd-ac42bf92b33cba3038e65d42993f4b346657a65f.zip
wcslcpy() and wcslcat() are in POSIX-2024. Update #include visibility
and manpages and add restrict qualifiers. ok millert@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/string/wcslcpy.315
1 files changed, 11 insertions, 4 deletions
diff --git a/src/lib/libc/string/wcslcpy.3 b/src/lib/libc/string/wcslcpy.3
index 5d8721c35a..d279038079 100644
--- a/src/lib/libc/string/wcslcpy.3
+++ b/src/lib/libc/string/wcslcpy.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: wcslcpy.3,v 1.7 2019/01/25 00:19:25 millert Exp $ 1.\" $OpenBSD: wcslcpy.3,v 1.8 2024/08/07 04:59:45 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 7 2024 $
18.Dt WCSLCPY 3 18.Dt WCSLCPY 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -24,9 +24,9 @@
24.Sh SYNOPSIS 24.Sh SYNOPSIS
25.In wchar.h 25.In wchar.h
26.Ft size_t 26.Ft size_t
27.Fn wcslcpy "wchar_t *dst" "const wchar_t *src" "size_t size" 27.Fn wcslcpy "wchar_t * restrict dst" "const wchar_t * restrict src" "size_t size"
28.Ft size_t 28.Ft size_t
29.Fn wcslcat "wchar_t *dst" "const wchar_t *src" "size_t size" 29.Fn wcslcat "wchar_t * restrict dst" "const wchar_t * restrict src" "size_t size"
30.Sh DESCRIPTION 30.Sh DESCRIPTION
31The 31The
32.Fn wcslcpy 32.Fn wcslcpy
@@ -137,6 +137,13 @@ The check exists to prevent potential security problems in incorrect code.
137.Xr swprintf 3 , 137.Xr swprintf 3 ,
138.Xr wcsncat 3 , 138.Xr wcsncat 3 ,
139.Xr wcsncpy 3 139.Xr wcsncpy 3
140.Sh STANDARDS
141The
142.Fn wcslcpy
143and
144.Fn wcslcat
145functions conform to
146.St -p1003.1-2024 .
140.Sh HISTORY 147.Sh HISTORY
141The 148The
142.Fn wcslcpy 149.Fn wcslcpy