Back to index

glibc  2.9
Classes | Defines | Typedefs | Functions | Variables
dcigettext.c File Reference
#include <sys/types.h>
#include <errno.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include "gettextP.h"
#include "plural-exp.h"
#include "libgnuintl.h"
#include "hash-string.h"
#include "plural-eval.c"

Go to the source code of this file.

Classes

struct  known_translation_t
union  known_translation_t.msgid

Defines

#define _GNU_SOURCE   1
#define __set_errno(val)   errno = (val)
#define __libc_lock_define_initialized(CLASS, NAME)
#define __libc_lock_lock(NAME)
#define __libc_lock_unlock(NAME)
#define __libc_rwlock_define_initialized(CLASS, NAME)
#define __libc_rwlock_rdlock(NAME)
#define __libc_rwlock_unlock(NAME)
#define alignof(TYPE)   ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)
#define _nl_default_default_domain   libintl_nl_default_default_domain
#define _nl_current_default_domain   libintl_nl_current_default_domain
#define _nl_default_dirname   libintl_nl_default_dirname
#define _nl_domain_bindings   libintl_nl_domain_bindings
#define offsetof(type, ident)   ((size_t)&(((type*)0)->ident))
#define getcwd(buf, max)   getwd (buf)
#define PATH_INCR   32
#define _POSIX_PATH_MAX   255
#define PATH_MAX   _POSIX_PATH_MAX
#define ADD_BLOCK(list, addr)
#define FREE_BLOCKS(list)
#define alloca(size)   (malloc (size))
#define freea(p)   free (p)
#define DCIGETTEXT   libintl_dcigettext
#define getuid()   0
#define getgid()   0
#define geteuid()   getuid()
#define getegid()   getgid()
#define ENABLE_SECURE   (enable_secure == 1)
#define DETERMINE_SECURE

Typedefs

typedef unsigned char transmem_block_t

Functions

char * alloca ()
char * getwd ()
static char *stpcpy PARAMS ((char *dest, const char *src))
static void *mempcpy PARAMS ((void *dest, const void *src, size_t n))
static char *plural_lookup PARAMS ((struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len))

Variables

int errno
const char
_nl_default_default_domain[] 
attribute_hidden = "messages"
const char _nl_default_dirname [] = LOCALEDIR
struct binding_nl_domain_bindings
static int enable_secure
char *const char * domainname
const char * msgid1
const char * msgid2
int plural
unsigned long int n
int category
struct bindingdomainbinding
const char * msgid
int convert
size_tlengthp
const char * translation
size_t translation_len
const char * categoryname
const char * src

Class Documentation

struct known_translation_t

Definition at line 183 of file dcigettext.c.

Collaboration diagram for known_translation_t:
Class Members
int category
int counter
struct loaded_l10nfile * domain
const char * domainname
union known_translation_t msgid
const char * translation
size_t translation_length
union known_translation_t.msgid

Definition at line 207 of file dcigettext.c.

Class Members
char appended
const char * ptr

Define Documentation

#define __libc_lock_define_initialized (   CLASS,
  NAME 
)

Definition at line 87 of file dcigettext.c.

#define __libc_lock_lock (   NAME)

Definition at line 88 of file dcigettext.c.

#define __libc_lock_unlock (   NAME)

Definition at line 89 of file dcigettext.c.

#define __libc_rwlock_define_initialized (   CLASS,
  NAME 
)

Definition at line 90 of file dcigettext.c.

#define __libc_rwlock_rdlock (   NAME)

Definition at line 91 of file dcigettext.c.

#define __libc_rwlock_unlock (   NAME)

Definition at line 92 of file dcigettext.c.

#define __set_errno (   val)    errno = (val)

Definition at line 56 of file dcigettext.c.

#define _GNU_SOURCE   1

Definition at line 25 of file dcigettext.c.

#define _nl_current_default_domain   libintl_nl_current_default_domain

Definition at line 108 of file dcigettext.c.

#define _nl_default_default_domain   libintl_nl_default_default_domain

Definition at line 107 of file dcigettext.c.

#define _nl_default_dirname   libintl_nl_default_dirname

Definition at line 109 of file dcigettext.c.

#define _nl_domain_bindings   libintl_nl_domain_bindings

Definition at line 110 of file dcigettext.c.

#define _POSIX_PATH_MAX   255

Definition at line 156 of file dcigettext.c.

#define ADD_BLOCK (   list,
  addr 
)
Value:
do {                                                                 \
    struct block_list *newp = (struct block_list *) malloc (sizeof (*newp));  \
    /* If we cannot get a free block we cannot add the new element to       \
       the list.  */                                                 \
    if (newp != NULL) {                                                     \
      newp->address = (addr);                                               \
      newp->next = (list);                                           \
      (list) = newp;                                                 \
    }                                                                \
  } while (0)

Definition at line 316 of file dcigettext.c.

#define alignof (   TYPE)    ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2)

Definition at line 99 of file dcigettext.c.

#define alloca (   size)    (malloc (size))

Definition at line 336 of file dcigettext.c.

#define DCIGETTEXT   libintl_dcigettext

Definition at line 365 of file dcigettext.c.

Value:
if (enable_secure == 0)                                              \
    {                                                                \
      if (getuid () != geteuid () || getgid () != getegid ())               \
       enable_secure = 1;                                            \
      else                                                           \
       enable_secure = -1;                                           \
    }

Definition at line 393 of file dcigettext.c.

#define ENABLE_SECURE   (enable_secure == 1)

Definition at line 392 of file dcigettext.c.

#define FREE_BLOCKS (   list)
Value:
do {                                                                 \
    while (list != NULL) {                                           \
      struct block_list *old = list;                                        \
      list = list->next;                                             \
      free (old->address);                                           \
      free (old);                                                    \
    }                                                                \
  } while (0)

Definition at line 326 of file dcigettext.c.

#define freea (   p)    free (p)

Definition at line 337 of file dcigettext.c.

#define getcwd (   buf,
  max 
)    getwd (buf)

Definition at line 132 of file dcigettext.c.

#define getegid (   void)    getgid()

Definition at line 389 of file dcigettext.c.

#define geteuid (   void)    getuid()

Definition at line 386 of file dcigettext.c.

#define getgid (   void)    0

Definition at line 383 of file dcigettext.c.

#define getuid (   void)    0

Definition at line 380 of file dcigettext.c.

#define offsetof (   type,
  ident 
)    ((size_t)&(((type*)0)->ident))

Definition at line 115 of file dcigettext.c.

#define PATH_INCR   32

Definition at line 145 of file dcigettext.c.

#define PATH_MAX   _POSIX_PATH_MAX

Definition at line 173 of file dcigettext.c.


Typedef Documentation

typedef unsigned char transmem_block_t

Definition at line 350 of file dcigettext.c.


Function Documentation

char* alloca ( )
char* getwd ( )

Here is the caller graph for this function:

static char* stpcpy PARAMS ( (char *dest, const char *src ) [static]
static void* mempcpy PARAMS ( (void *dest, const void *src, size_t n ) [static]
static char* plural_lookup PARAMS ( (struct loaded_l10nfile *domain,unsigned long int n,const char *translation,size_t translation_len ) [static]

Definition at line 286 of file dcigettext.c.

{
  void *address;
  struct block_list *next;
};

Variable Documentation

const char _nl_default_dirname[] = LOCALEDIR

Definition at line 276 of file dcigettext.c.

Definition at line 283 of file dcigettext.c.

Definition at line 264 of file dcigettext.c.

Definition at line 417 of file dcigettext.c.

Definition at line 1284 of file dcigettext.c.

static void convert

Definition at line 757 of file dcigettext.c.

Definition at line 755 of file dcigettext.c.

char* const char* domainname

Definition at line 412 of file dcigettext.c.

int enable_secure [static]

Definition at line 391 of file dcigettext.c.

Definition at line 22 of file sysdep.c.

Definition at line 758 of file dcigettext.c.

const char* msgid

Definition at line 756 of file dcigettext.c.

const char* msgid1

Definition at line 413 of file dcigettext.c.

const char* msgid2

Definition at line 414 of file dcigettext.c.

Definition at line 416 of file dcigettext.c.

Definition at line 415 of file dcigettext.c.

Definition at line 1434 of file dcigettext.c.

Definition at line 1245 of file dcigettext.c.

Definition at line 1246 of file dcigettext.c.