Back to index

glibc  2.9
Defines | Functions | Variables
private.h File Reference
#include "sys/types.h"
#include "stdio.h"
#include "errno.h"
#include "string.h"
#include "limits.h"
#include "time.h"
#include "stdlib.h"
#include <sys/wait.h>
#include "unistd.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define GRANDPARENTED   "Local time zone must be set--see zic manual page"
#define HAVE_ADJTIME   1
#define HAVE_GETTEXT   0
#define HAVE_INCOMPATIBLE_CTIME_R   0
#define HAVE_SETTIMEOFDAY   3
#define HAVE_SYMLINK   1
#define HAVE_SYS_STAT_H   1
#define HAVE_SYS_WAIT_H   1
#define HAVE_UNISTD_H   1
#define HAVE_UTMPX_H   0
#define LOCALE_HOME   "/usr/lib/locale"
#define WIFEXITED(status)   (((status) & 0xff) == 0)
#define WEXITSTATUS(status)   (((status) >> 8) & 0xff)
#define F_OK   0
#define R_OK   4
#define is_digit(c)   ((unsigned)(c) - '0' <= 9)
#define HAVE_STDINT_H
#define INT32_MAX   0x7fffffff
#define INT32_MIN   (-1 - INT32_MAX)
#define TRUE   1
#define FALSE   0
#define TYPE_BIT(type)   (sizeof (type) * CHAR_BIT)
#define TYPE_SIGNED(type)   (((type) -1) < 0)
#define TYPE_INTEGRAL(type)   (((type) 0.5) != 0.5)
#define INT_STRLEN_MAXIMUM(type)
#define INITIALIZE(x)
#define _(msgid)   msgid
#define TZ_DOMAIN   "tz"
#define YEARSPERREPEAT   400 /* years before a Gregorian repeat */
#define AVGSECSPERYEAR   31556952L
#define SECSPERREPEAT   ((int_fast64_t) YEARSPERREPEAT * (int_fast64_t) AVGSECSPERYEAR)
#define SECSPERREPEAT_BITS   34 /* ceil(log2(SECSPERREPEAT)) */

Functions

Please use a compiler that
supports a bit integer 
type (or wider)
char * asctime_r (struct tm const *, char *)
char * icalloc (int nelem, int elsize)
char * icatalloc (char *old, const char *new)
char * icpyalloc (const char *string)
char * imalloc (int n)
void * irealloc (void *pointer, int size)
void icfree (char *pointer)
void ifree (char *pointer)
const char * scheck (const char *string, const char *format)

Variables

you may need to compile with
DHAVE_STDINT_H typedef long 
int_fast64_t
static char privatehid [] = "@(#)private.h 8.6"

Define Documentation

#define _ (   msgid)    msgid

Definition at line 259 of file private.h.

#define AVGSECSPERYEAR   31556952L

Definition at line 283 of file private.h.

#define F_OK   0

Definition at line 112 of file private.h.

#define FALSE   0

Definition at line 193 of file private.h.

#define GRANDPARENTED   "Local time zone must be set--see zic manual page"

Definition at line 28 of file private.h.

#define HAVE_ADJTIME   1

Definition at line 36 of file private.h.

#define HAVE_GETTEXT   0

Definition at line 40 of file private.h.

#define HAVE_INCOMPATIBLE_CTIME_R   0

Definition at line 44 of file private.h.

#define HAVE_SETTIMEOFDAY   3

Definition at line 48 of file private.h.

#define HAVE_STDINT_H
Value:
(199901 <= __STDC_VERSION__ || \
       2 < (__GLIBC__ + (0 < __GLIBC_MINOR__)))

Definition at line 128 of file private.h.

#define HAVE_SYMLINK   1

Definition at line 52 of file private.h.

#define HAVE_SYS_STAT_H   1

Definition at line 56 of file private.h.

#define HAVE_SYS_WAIT_H   1

Definition at line 60 of file private.h.

#define HAVE_UNISTD_H   1

Definition at line 64 of file private.h.

#define HAVE_UTMPX_H   0

Definition at line 68 of file private.h.

#define INITIALIZE (   x)

Definition at line 245 of file private.h.

#define INT32_MAX   0x7fffffff

Definition at line 151 of file private.h.

#define INT32_MIN   (-1 - INT32_MAX)

Definition at line 154 of file private.h.

#define INT_STRLEN_MAXIMUM (   type)
Value:
((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \
       1 + TYPE_SIGNED(type))

Definition at line 220 of file private.h.

#define is_digit (   c)    ((unsigned)(c) - '0' <= 9)

Definition at line 119 of file private.h.

#define LOCALE_HOME   "/usr/lib/locale"

Definition at line 72 of file private.h.

#define R_OK   4

Definition at line 115 of file private.h.

Definition at line 287 of file private.h.

#define SECSPERREPEAT_BITS   34 /* ceil(log2(SECSPERREPEAT)) */

Definition at line 291 of file private.h.

#define TRUE   1

Definition at line 189 of file private.h.

#define TYPE_BIT (   type)    (sizeof (type) * CHAR_BIT)

Definition at line 197 of file private.h.

#define TYPE_INTEGRAL (   type)    (((type) 0.5) != 0.5)

Definition at line 210 of file private.h.

#define TYPE_SIGNED (   type)    (((type) -1) < 0)

Definition at line 201 of file private.h.

#define TZ_DOMAIN   "tz"

Definition at line 264 of file private.h.

#define WEXITSTATUS (   status)    (((status) >> 8) & 0xff)

Definition at line 104 of file private.h.

#define WIFEXITED (   status)    (((status) & 0xff) == 0)

Definition at line 101 of file private.h.

#define YEARSPERREPEAT   400 /* years before a Gregorian repeat */

Definition at line 275 of file private.h.


Function Documentation

char* asctime_r ( struct tm const ,
char *   
)

Here is the caller graph for this function:

char* icalloc ( int  nelem,
int  elsize 
)

Definition at line 26 of file ialloc.c.

{
       if (nelem == 0 || elsize == 0)
              nelem = elsize = 1;
       return calloc((size_t) nelem, (size_t) elsize);
}

Here is the call graph for this function:

char* icatalloc ( char *  old,
const char *  new 
)

Definition at line 46 of file ialloc.c.

{
       register char *      result;
       register int  oldsize, newsize;

       newsize = (new == NULL) ? 0 : strlen(new);
       if (old == NULL)
              oldsize = 0;
       else if (newsize == 0)
              return old;
       else   oldsize = strlen(old);
       if ((result = irealloc(old, oldsize + newsize + 1)) != NULL)
              if (new != NULL)
                     (void) strcpy(result + oldsize, new);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void icfree ( char *  pointer)

Definition at line 81 of file ialloc.c.

{
       if (p != NULL)
              (void) free(p);
}
char* icpyalloc ( const char *  string)
void ifree ( char *  pointer)

Definition at line 73 of file ialloc.c.

{
       if (p != NULL)
              (void) free(p);
}

Here is the caller graph for this function:

char* imalloc ( int  n)
void* irealloc ( void *  pointer,
int  size 
)

Definition at line 36 of file ialloc.c.

{
       if (pointer == NULL)
              return imalloc(size);
       return realloc((void *) pointer, (size_t) nonzero(size));
}

Here is the call graph for this function:

Here is the caller graph for this function:

const char* scheck ( const char *  string,
const char *  format 
)

Here is the caller graph for this function:

Please use a compiler that supports a bit integer type ( or  wider)

Variable Documentation

you may need to compile with DHAVE_STDINT_H typedef long int_fast64_t

Definition at line 146 of file private.h.

char privatehid[] = "@(#)private.h 8.6" [static]

Definition at line 24 of file private.h.