From aafc7e1ab02281f44c93e0945418dd3ae235b316 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sat, 17 Sep 2016 16:50:37 +0200 Subject: [PATCH] Clean up the cryb_strl*(3) man pages. --- lib/core/cryb_strlcat.3 | 29 ++++++++++++++--------------- lib/core/cryb_strlcpy.3 | 29 ++++++++++++++--------------- 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/lib/core/cryb_strlcat.3 b/lib/core/cryb_strlcat.3 index 4c07f39..e3a077d 100644 --- a/lib/core/cryb_strlcat.3 +++ b/lib/core/cryb_strlcat.3 @@ -1,5 +1,6 @@ .\"- .\" Copyright (c) 2015 Universitetet i Oslo +.\" Copyright (c) 2016 Dag-Erling Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -26,22 +27,22 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 5, 2015 -.Dt tsd_strlcat 3 +.Dd Septmber 17, 2016 +.Dt cryb_strlcat 3 .Os .Sh NAME -.Nm tsd_strlcat +.Nm cryb_strlcat .Nd safely append a string to a buffer .Sh LIBRARY -.Lb libtsd +.Lb libcryb .Sh SYNOPSIS -.In stdint.h -.In tsd/strutil.h +.In stddef.h +.In cryb/strlcat.h .Ft size_t -.Fn tsd_strlcat "char *dst" "const char *src" "size_t size" +.Fn cryb_strlcat "char *dst" "const char *src" "size_t size" .Sh DESCRIPTION The -.Nm tsd_strlcat +.Nm cryb_strlcat function appends the NUL-terminated string pointed to by .Va src to the NUL-terminated string stored in the buffer pointed to by @@ -56,7 +57,7 @@ the result is truncated. In all cases, the destination buffer is properly NUL-terminated. .Sh RETURN VALUES The -.Fn tsd_strlcat +.Fn cryb_strlcat function returns the sum of the lengths of the original strings. If this number is equal to or greater than the value of the .Va size @@ -65,18 +66,16 @@ argument, the string was too long to fit in the buffer. If the .Dv HAVE_STRLCAT preprocessor macro is defined to 0 or undefined, the -.In tsd/sha1.h +.In cryb/strlcat.h header provides a .Fn strlcat macro as an alias to -.Fn tsd_strlcat . +.Fn cryb_strlcat . .Sh SEE ALSO -.Xr strlcat 3 , -.Xr strlcpy 3 , -.Xr tsd_strlcpy 3 +.Xr cryb_strlcpy 3 .Sh AUTHORS The -.Fn tsd_strlcat +.Fn cryb_strlcat function and this manual page were written for the University of Oslo by .An Dag-Erling Sm\(/orgrav Aq Mt d.e.smorgrav@usit.uio.no . diff --git a/lib/core/cryb_strlcpy.3 b/lib/core/cryb_strlcpy.3 index ec2aab6..4e639d5 100644 --- a/lib/core/cryb_strlcpy.3 +++ b/lib/core/cryb_strlcpy.3 @@ -1,5 +1,6 @@ .\"- .\" Copyright (c) 2015 Universitetet i Oslo +.\" Copyright (c) 2016 Dag-Erling Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without @@ -26,22 +27,22 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd February 5, 2015 -.Dt tsd_strlcpy 3 +.Dd September 17, 2016 +.Dt cryb_strlcpy 3 .Os .Sh NAME -.Nm tsd_strlcpy +.Nm cryb_strlcpy .Nd safely copy a string into a buffer .Sh LIBRARY -.Lb libtsd +.Lb libcryb .Sh SYNOPSIS -.In stdint.h -.In tsd/strutil.h +.In stddef.h +.In cryb/strlcpy.h .Ft size_t -.Fn tsd_strlcpy "char *dst" "const char *src" "size_t size" +.Fn cryb_strlcpy "char *dst" "const char *src" "size_t size" .Sh DESCRIPTION The -.Nm tsd_strlcpy +.Nm cryb_strlcpy function copies the NUL-terminated string pointed to by .Va src into the buffer pointed to by @@ -55,7 +56,7 @@ truncated. In all cases, the destination buffer is properly NUL-terminated. .Sh RETURN VALUES The -.Fn tsd_strlcpy +.Fn cryb_strlcpy function returns the length of the original string. If this number is equal to or greater than the value of the .Va size @@ -64,18 +65,16 @@ argument, the string was too long to fit in the buffer. If the .Dv HAVE_STRLCPY preprocessor macro is defined to 0 or undefined, the -.In tsd/sha1.h +.In cryb/strlcpy.h header provides a .Fn strlcpy macro as an alias to -.Fn tsd_strlcpy . +.Fn cryb_strlcpy . .Sh SEE ALSO -.Xr strlcat 3 , -.Xr strlcpy 3 , -.Xr tsd_strlcat 3 +.Xr cryb_strlcat 3 .Sh AUTHORS The -.Fn tsd_strlcpy +.Fn cryb_strlcpy function and this manual page were written for the University of Oslo by .An Dag-Erling Sm\(/orgrav Aq Mt d.e.smorgrav@usit.uio.no .