diff options
Diffstat (limited to 'lib/libc/nls')
-rw-r--r-- | lib/libc/nls/catclose.3 | 2 | ||||
-rw-r--r-- | lib/libc/nls/catgets.3 | 10 | ||||
-rw-r--r-- | lib/libc/nls/catopen.3 | 22 |
3 files changed, 17 insertions, 17 deletions
diff --git a/lib/libc/nls/catclose.3 b/lib/libc/nls/catclose.3 index 0fcbfe9..c29b45d 100644 --- a/lib/libc/nls/catclose.3 +++ b/lib/libc/nls/catclose.3 @@ -42,7 +42,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 RETURN VALUES .Rv -std catclose diff --git a/lib/libc/nls/catgets.3 b/lib/libc/nls/catgets.3 index fda5f36..f566abb 100644 --- a/lib/libc/nls/catgets.3 +++ b/lib/libc/nls/catgets.3 @@ -32,7 +32,7 @@ .Os .Sh NAME .Nm catgets -.Nd retrieve string from message catalog +.Nd retrieve string from message catalog .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -40,20 +40,20 @@ .Ft char * .Fn catgets "nl_catd catd" "int set_id" "int msg_id" "const 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 VALUES -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 68cf893..4c0dccc 100644 --- a/lib/libc/nls/catopen.3 +++ b/lib/libc/nls/catopen.3 @@ -32,7 +32,7 @@ .Os .Sh NAME .Nm catopen -.Nd open message catalog +.Nd open message catalog .Sh LIBRARY .Lb libc .Sh SYNOPSIS @@ -40,21 +40,21 @@ .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 +.Sq / +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 the following substitutions: .Bl -tag -width XXX .It \&%N @@ -86,7 +86,7 @@ environment variable or from the .Dv LC_MESSAGES category. .It \&%% -A single % character. +A single % character. .El .Pp An empty string is substituted for undefined values. @@ -124,11 +124,11 @@ until a successful call to one of the .Xr exec 3 function. .Sh RETURN VALUES -Upon successful completion, +Upon successful completion, .Fn catopen returns a message catalog descriptor. Otherwise, (nl_catd) -1 is returned and -.Va errno +.Va errno is set to indicate the error. .Sh ERRORS .Bl -tag -width Er |