Back to index

glibc  2.9
Defines | Typedefs | Functions | Variables
nl_types.h File Reference
#include <features.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define NL_SETD   1
#define NL_CAT_LOCALE   1


typedef int nl_item


nl_catd catopen (__const char *__cat_name, int __flag) __nonnull((1))
char * catgets (nl_catd __catalog, int __set, int __number, __const char *__string) __THROW __nonnull((1))
int catclose (nl_catd __catalog) __THROW __nonnull((1))


__BEGIN_DECLS typedef void * nl_catd

Define Documentation

#define NL_CAT_LOCALE   1

Definition at line 28 of file nl_types.h.

#define NL_SETD   1

Definition at line 25 of file nl_types.h.

Typedef Documentation

typedef int nl_item

Definition at line 37 of file nl_types.h.

Function Documentation

int catclose ( nl_catd  __catalog)

Definition at line 116 of file catgets.c.

  __nl_catd catalog;

  /* Be generous if catalog which failed to be open is used.  */
  if (catalog_desc == (nl_catd) -1)
      __set_errno (EBADF);
      return -1;

  catalog = (__nl_catd) catalog_desc;

  if (catalog->status == mmapped)
    __munmap ((void *) catalog->file_ptr, catalog->file_size);
#endif /* _POSIX_MAPPED_FILES */
    if (catalog->status == malloced)
      free ((void *) catalog->file_ptr);
       __set_errno (EBADF);
       return -1;

  free ((void *) catalog);

  return 0;

Here is the call graph for this function:

Here is the caller graph for this function:

char* catgets ( nl_catd  __catalog,
int  __set,
int  __number,
__const char *  __string 
nl_catd catopen ( __const char *  __cat_name,
int  __flag 

Variable Documentation

__BEGIN_DECLS typedef void* nl_catd

Definition at line 34 of file nl_types.h.