From f518dc7e04d240d305ab620ccdc696bbf48bbbdb Mon Sep 17 00:00:00 2001 From: kleink Date: Fri, 22 Aug 2003 14:05:03 +0000 Subject: [PATCH] Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis. --- include/iconv.h | 9 +++++---- lib/libc/iconv/iconv.3 | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/include/iconv.h b/include/iconv.h index 7c30221d523f..87ff431b2689 100644 --- a/include/iconv.h +++ b/include/iconv.h @@ -1,4 +1,4 @@ -/* $NetBSD: iconv.h,v 1.2 2003/07/01 08:54:57 tshiozak Exp $ */ +/* $NetBSD: iconv.h,v 1.3 2003/08/22 14:05:03 kleink Exp $ */ /*- * Copyright (c)2003 Citrus Project, @@ -43,8 +43,9 @@ typedef struct __tag_iconv_t *iconv_t; __BEGIN_DECLS iconv_t iconv_open __P((const char *, const char *)); -size_t iconv __P((iconv_t, const char **, size_t *, char **, - size_t *)); +size_t iconv __P((iconv_t, const char ** __restrict, + size_t * __restrict, char ** __restrict, + size_t * __restrict)); int iconv_close __P((iconv_t)); /* * non-portable interfaces for iconv @@ -56,4 +57,4 @@ size_t __iconv __P((iconv_t, const char **, size_t *, char **, #define __ICONV_F_HIDE_INVALID 0x0001 __END_DECLS -#endif +#endif /* !_ICONV_H_ */ diff --git a/lib/libc/iconv/iconv.3 b/lib/libc/iconv/iconv.3 index 76caa9267869..d4c4ba20e98a 100644 --- a/lib/libc/iconv/iconv.3 +++ b/lib/libc/iconv/iconv.3 @@ -1,4 +1,4 @@ -.\" $NetBSD: iconv.3,v 1.5 2003/07/05 17:34:55 wiz Exp $ +.\" $NetBSD: iconv.3,v 1.6 2003/08/22 14:05:03 kleink Exp $ .\" .\" Copyright (c)2003 Citrus Project, .\" All rights reserved. @@ -24,7 +24,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd July 1, 2003 +.Dd August 22, 2003 .Dt ICONV 3 .Os .\" ---------------------------------------------------------------------- @@ -44,7 +44,7 @@ .Ft int .Fn iconv_close "iconv_t cd" .Ft size_t -.Fn iconv "iconv_t cd" "const char **src" "size_t *srcleft" "char **dst" "size_t dstleft" +.Fn iconv "iconv_t cd" "const char ** restrict src" "size_t * restrict srcleft" "char ** restrict dst" "size_t * restrict dstleft" .\" ---------------------------------------------------------------------- .Sh DESCRIPTION The