Back to index

cell-binutils  2.17cvs20070401
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 <signal.h>
#include "gettextP.h"
#include "plural-exp.h"
#include "libgnuintl.h"
#include "hash-string.h"
#include "eval-plural.h"

Go to the source code of this file.

Classes

struct  known_translation_t

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 ISSLASH(C)   ((C) == '/')
#define IS_ABSOLUTE_PATH(P)   ISSLASH ((P)[0])
#define IS_PATH_WITH_DIR(P)   (strchr (P, '/') != NULL)
#define INTVARDEF(name)
#define INTUSE(name)   name
#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
size_tlengthp
const char * translation
size_t translation_len
const char * categoryname
const char * src

Class Documentation

struct known_translation_t

Definition at line 217 of file dcigettext.c.

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

Define Documentation

#define __libc_lock_define_initialized (   CLASS,
  NAME 
)

Definition at line 104 of file dcigettext.c.

#define __libc_lock_lock (   NAME)

Definition at line 105 of file dcigettext.c.

#define __libc_lock_unlock (   NAME)

Definition at line 106 of file dcigettext.c.

#define __libc_rwlock_define_initialized (   CLASS,
  NAME 
)

Definition at line 107 of file dcigettext.c.

#define __libc_rwlock_rdlock (   NAME)

Definition at line 108 of file dcigettext.c.

#define __libc_rwlock_unlock (   NAME)

Definition at line 109 of file dcigettext.c.

#define __set_errno (   val)    errno = (val)

Definition at line 59 of file dcigettext.c.

#define _GNU_SOURCE   1

Definition at line 23 of file dcigettext.c.

#define _nl_current_default_domain   libintl_nl_current_default_domain

Definition at line 125 of file dcigettext.c.

#define _nl_default_default_domain   libintl_nl_default_default_domain

Definition at line 124 of file dcigettext.c.

#define _nl_default_dirname   libintl_nl_default_dirname

Definition at line 126 of file dcigettext.c.

#define _nl_domain_bindings   libintl_nl_domain_bindings

Definition at line 127 of file dcigettext.c.

#define _POSIX_PATH_MAX   255

Definition at line 173 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 336 of file dcigettext.c.

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

Definition at line 116 of file dcigettext.c.

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

Definition at line 356 of file dcigettext.c.

#define DCIGETTEXT   libintl_dcigettext

Definition at line 381 of file dcigettext.c.

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

Definition at line 409 of file dcigettext.c.

#define ENABLE_SECURE   (enable_secure == 1)

Definition at line 408 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 346 of file dcigettext.c.

#define freea (   p)    free (p)

Definition at line 357 of file dcigettext.c.

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

Definition at line 149 of file dcigettext.c.

#define getegid ( )    getgid()

Definition at line 405 of file dcigettext.c.

#define geteuid ( )    getuid()

Definition at line 402 of file dcigettext.c.

#define getgid ( )    0

Definition at line 399 of file dcigettext.c.

#define getuid ( )    0

Definition at line 396 of file dcigettext.c.

#define INTUSE (   name)    name

Definition at line 283 of file dcigettext.c.

#define INTVARDEF (   name)

Definition at line 280 of file dcigettext.c.

#define IS_ABSOLUTE_PATH (   P)    ISSLASH ((P)[0])

Definition at line 211 of file dcigettext.c.

#define IS_PATH_WITH_DIR (   P)    (strchr (P, '/') != NULL)

Definition at line 212 of file dcigettext.c.

#define ISSLASH (   C)    ((C) == '/')

Definition at line 210 of file dcigettext.c.

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

Definition at line 132 of file dcigettext.c.

#define PATH_INCR   32

Definition at line 162 of file dcigettext.c.

#define PATH_MAX   _POSIX_PATH_MAX

Definition at line 190 of file dcigettext.c.


Typedef Documentation

typedef unsigned char transmem_block_t

Definition at line 370 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 307 of file dcigettext.c.

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

Variable Documentation

const char _nl_default_dirname[] = LOCALEDIR

Definition at line 298 of file dcigettext.c.

Definition at line 304 of file dcigettext.c.

Definition at line 288 of file dcigettext.c.

Definition at line 433 of file dcigettext.c.

Definition at line 1080 of file dcigettext.c.

Definition at line 729 of file dcigettext.c.

char* const char* domainname

Definition at line 428 of file dcigettext.c.

int enable_secure [static]

Definition at line 407 of file dcigettext.c.

Definition at line 731 of file dcigettext.c.

const char* msgid

Definition at line 730 of file dcigettext.c.

const char* msgid1

Definition at line 429 of file dcigettext.c.

const char* msgid2

Definition at line 430 of file dcigettext.c.

Definition at line 432 of file dcigettext.c.

Definition at line 431 of file dcigettext.c.

const void * src

Definition at line 1184 of file dcigettext.c.

Definition at line 1041 of file dcigettext.c.

Definition at line 1042 of file dcigettext.c.