catopen

Opens a message catalog and returns a catalog descriptor.

Library:LibC
Classification:Single UNIX
Service:Message Catalogs

Syntax

  #include <nl_types.h> 
   
  nl_catd catopen (
     const char   *name,
     int           oflag);
  

Parameters

name

(IN) Not currently used on NetWare. Set it to NULL.

oflag

(IN) Not currently used on NetWare. Set it to 0.

Return Values

If successful, returns a catalog descriptor. Otherwise, returns -1 and sets errno to the following:

Decimal

Constant

Description

5

ENOMEM

The requested message is not in the table.

105

ENOCONTEXT

No thread context is present.

Remarks

On NetWare, the catopen function does not allow you to specify which catalog to open. It is implemented on top of NetWare OS calls, and from the calling thread, it determines the calling NLM and opens its default catalog.

See Also