diff options
| author | guenther <> | 2024-08-07 04:59:45 +0000 |
|---|---|---|
| committer | guenther <> | 2024-08-07 04:59:45 +0000 |
| commit | 8631652dedeb431622c6717e8a4f77d04eb99b70 (patch) | |
| tree | c34d23fbbd0ea92c86b45459f598a5906a29ae4d /src/lib/libc | |
| parent | a6a88f9bd8328ce2e9ea13e316379f5f3ab485ea (diff) | |
| download | openbsd-8631652dedeb431622c6717e8a4f77d04eb99b70.tar.gz openbsd-8631652dedeb431622c6717e8a4f77d04eb99b70.tar.bz2 openbsd-8631652dedeb431622c6717e8a4f77d04eb99b70.zip | |
wcslcpy() and wcslcat() are in POSIX-2024. Update #include visibility
and manpages and add restrict qualifiers.
ok millert@
Diffstat (limited to 'src/lib/libc')
| -rw-r--r-- | src/lib/libc/string/wcslcpy.3 | 15 |
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 |
| 31 | The | 31 | The |
| 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 | ||
| 141 | The | ||
| 142 | .Fn wcslcpy | ||
| 143 | and | ||
| 144 | .Fn wcslcat | ||
| 145 | functions conform to | ||
| 146 | .St -p1003.1-2024 . | ||
| 140 | .Sh HISTORY | 147 | .Sh HISTORY |
| 141 | The | 148 | The |
| 142 | .Fn wcslcpy | 149 | .Fn wcslcpy |
