diff options
-rw-r--r-- | lib/libc/nls/catclose.3 | 4 | ||||
-rw-r--r-- | lib/libc/nls/catgets.3 | 12 | ||||
-rw-r--r-- | lib/libc/nls/catopen.3 | 27 |
3 files changed, 22 insertions, 21 deletions
diff --git a/lib/libc/nls/catclose.3 b/lib/libc/nls/catclose.3 index 0114ae7afc0..29efbb82776 100644 --- a/lib/libc/nls/catclose.3 +++ b/lib/libc/nls/catclose.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: catclose.3,v 1.3 1999/05/16 19:55:07 alex Exp $ +.\" $OpenBSD: catclose.3,v 1.4 1999/07/05 13:23:47 aaron Exp $ .\" .\" Written by J.T. Conklin <jtc@netbsd.org>. .\" Public domain. @@ -16,7 +16,7 @@ .Sh DESCRIPTION The .Fn catclose -function closes the message catalog specified by the argument +function closes the message catalog specified by the argument .Fa catd . .Sh SEE ALSO .Xr catgets 3 , diff --git a/lib/libc/nls/catgets.3 b/lib/libc/nls/catgets.3 index 38435f3e6c9..88146518103 100644 --- a/lib/libc/nls/catgets.3 +++ b/lib/libc/nls/catgets.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: catgets.3,v 1.2 1996/08/19 08:30:06 tholo Exp $ +.\" $OpenBSD: catgets.3,v 1.3 1999/07/05 13:23:47 aaron Exp $ .\" .\" Written by J.T. Conklin <jtc@netbsd.org>. .\" Public domain. @@ -8,26 +8,26 @@ .Os .Sh NAME .Nm catgets -.Nd retrieve string from message catalog +.Nd retrieve string from message catalog .Sh SYNOPSIS .Fd #include <nl_types.h> .Ft char * .Fn catgets "nl_catd catd" "int set_id" "int msg_id" "char *s" .Sh DESCRIPTION -The -.Fn catgets +The +.Fn catgets function attempts to retrieve message .Fa msg_id of set .Fa set_id from the message catalog referenced by the descriptor .Fa catd . -The argument +The argument .Fa s points to a default message which is returned if the function is unable to retrieve the specified message. .Sh RETURN VALUE -If the specified message was retrieved successfully, +If the specified message was retrieved successfully, .Fn catgets returns a pointer to an internal buffer containing the message string; otherwise it returns diff --git a/lib/libc/nls/catopen.3 b/lib/libc/nls/catopen.3 index 5f5efe7cd74..47468d93f0c 100644 --- a/lib/libc/nls/catopen.3 +++ b/lib/libc/nls/catopen.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: catopen.3,v 1.3 1998/11/04 21:58:59 aaron Exp $ +.\" $OpenBSD: catopen.3,v 1.4 1999/07/05 13:23:47 aaron Exp $ .\" .\" Written by J.T. Conklin <jtc@netbsd.org>. .\" Public domain. @@ -8,39 +8,40 @@ .Os .Sh NAME .Nm catopen -.Nd open message catalog +.Nd open message catalog .Sh SYNOPSIS .Fd #include <nl_types.h> .Ft nl_catd .Fn catopen "const char *name" "int oflag" .Sh DESCRIPTION -The +The .Fn catopen function opens the message catalog specified by -.Fa name +.Fa name and returns a message catalog descriptor. If .Fa name contains a -.Sq / -then +.Ql / , +then .Fa name -specifies the full pathname for the message catalog, otherwise the value +specifies the full pathname for the message catalog, otherwise the value of the environment variable -.Ev NLSPATH -is used with +.Ev NLSPATH +is used with .Fa name -substituted for %N. +substituted for +.Ql \&%N . .Pp The .Fa oflag argument is reserved for future use and should be set to zero. .Sh RETURN VALUE -Upon successful completion, +Upon successful completion, .Fn catopen returns a message catalog descriptor. -Otherwise, (nl_catd) -1 is returned and -.Va errno +Otherwise, \-1 is returned and +.Va errno is set to indicate the error. .Sh ERRORS .Bl -tag -width Er |