Sprinkle some restrict, repair a minor nit in iconv(3)'s synopsis.

This commit is contained in:
kleink 2003-08-22 14:05:03 +00:00
parent 3538d2653b
commit f518dc7e04
2 changed files with 8 additions and 7 deletions

View File

@ -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_ */

View File

@ -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