aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/nls
diff options
context:
space:
mode:
authorAlexey Zelkin <phantom@FreeBSD.org>2005-02-27 16:30:16 +0000
committerAlexey Zelkin <phantom@FreeBSD.org>2005-02-27 16:30:16 +0000
commitefefbdc6d63a9a547919bc4ced244f0f6003a91a (patch)
treee582ea288f20e7994c845978b2d0513e60514d81 /lib/libc/nls
parentfd5cf7c0135beea2f09af7957f73a4366104abed (diff)
downloadsrc-efefbdc6d63a9a547919bc4ced244f0f6003a91a.tar.gz
src-efefbdc6d63a9a547919bc4ced244f0f6003a91a.zip
. Bump .Dd's
. Note POSIX 1003.1-2001 conformation . Add ERRORS section for catgets(3) . Note what catopen(3) returns EINVAL, if catalog is corrupt
Notes
Notes: svn path=/head/; revision=142665
Diffstat (limited to 'lib/libc/nls')
-rw-r--r--lib/libc/nls/catclose.34
-rw-r--r--lib/libc/nls/catgets.317
-rw-r--r--lib/libc/nls/catopen.36
3 files changed, 20 insertions, 7 deletions
diff --git a/lib/libc/nls/catclose.3 b/lib/libc/nls/catclose.3
index 733face81fc6..ed0f639d2393 100644
--- a/lib/libc/nls/catclose.3
+++ b/lib/libc/nls/catclose.3
@@ -27,7 +27,7 @@
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
-.Dd May 29, 1994
+.Dd February 12, 2005
.Dt CATCLOSE 3
.Os
.Sh NAME
@@ -61,4 +61,4 @@ argument.
The
.Fn catclose
function conforms to
-.St -xpg4 .
+.St -p1003.1-2001 .
diff --git a/lib/libc/nls/catgets.3 b/lib/libc/nls/catgets.3
index 592f57cca28a..fe78211188d2 100644
--- a/lib/libc/nls/catgets.3
+++ b/lib/libc/nls/catgets.3
@@ -27,7 +27,7 @@
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
-.Dd May 29, 1994
+.Dd February 12, 2005
.Dt CATGETS 3
.Os
.Sh NAME
@@ -58,6 +58,19 @@ If the specified message was retrieved successfully,
returns a pointer to an internal buffer containing the message string;
otherwise it returns
.Fa s .
+.Sh ERRORS
+.Bl -tag -width Er
+.It Bq Er EBADF
+The
+.Fa catd
+argument is not valid message catalog descriptor.
+.It Bq Er EBADMSG
+The message identified by
+.Fa set_id
+and
+.Fa msg_id
+is not in the message catalog.
+.El
.Sh SEE ALSO
.Xr gencat 1 ,
.Xr catclose 3 ,
@@ -66,4 +79,4 @@ otherwise it returns
The
.Fn catgets
function conforms to
-.St -xpg4 .
+.St -p1003.1-2001 .
diff --git a/lib/libc/nls/catopen.3 b/lib/libc/nls/catopen.3
index 9fd8b826f9f4..7a16ee50408a 100644
--- a/lib/libc/nls/catopen.3
+++ b/lib/libc/nls/catopen.3
@@ -27,7 +27,7 @@
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
-.Dd May 29, 1994
+.Dd February 12, 2005
.Dt CATOPEN 3
.Os
.Sh NAME
@@ -135,7 +135,7 @@ is set to indicate the error.
.It Bq Er EINVAL
Argument
.Fa name
-does not point to a valid message catalog.
+does not point to a valid message catalog, or catalog is corrupt.
.It Bq Er ENAMETOOLONG
An entire path to the message catalog exceeded 1024 characters.
.It Bq Er ENOENT
@@ -154,4 +154,4 @@ Insufficient memory is available.
The
.Fn catopen
function conforms to
-.St -xpg4 .
+.St -p1003.1-2001 .