w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

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"
Include dependency graph for private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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_LINK   1
 
#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 HAVE_INTTYPES_H   HAVE_STDINT_H
 
#define INT_FAST64_MIN   LONG_MIN
 
#define INT_FAST64_MAX   LONG_MAX
 
#define SCNdFAST64   "ld"
 
#define strtoimax   strtol
 
#define PRIdMAX   "ld"
 
#define INTMAX_MAX   LONG_MAX
 
#define INTMAX_MIN   LONG_MIN
 
#define PRIuMAX   "lu"
 
#define INT32_MAX   0x7fffffff
 
#define INT32_MIN   (-1 - INT32_MAX)
 
#define SIZE_MAX   ((size_t) -1)
 
#define ATTRIBUTE_CONST   /* empty */
 
#define ATTRIBUTE_PURE   /* empty */
 
#define ATTRIBUTE_FORMAT(spec)   /* empty */
 
#define _Noreturn
 
#define restrict   /* empty */
 
#define TYPE_BIT(type)   (sizeof (type) * CHAR_BIT)
 
#define TYPE_SIGNED(type)   (((type) -1) < 0)
 
#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)) */
 

Typedefs

typedef long int_fast32_t
 
typedef long intmax_t
 
typedef unsigned long uintmax_t
 

Functions

Please use a compiler that supports a bit integer type (or wider)
 
char * asctime_r (struct tm const *, char *)
 
char * icatalloc (char *old, const char *new)
 
char * icpyalloc (const char *string)
 
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 time_t const time_t_min
 
static time_t const time_t_max
 

Macro Definition Documentation

◆ _

#define _ (   msgid)    msgid

Definition at line 384 of file private.h.

◆ _Noreturn

#define _Noreturn

Definition at line 226 of file private.h.

◆ ATTRIBUTE_CONST

#define ATTRIBUTE_CONST   /* empty */

Definition at line 217 of file private.h.

◆ ATTRIBUTE_FORMAT

#define ATTRIBUTE_FORMAT (   spec)    /* empty */

Definition at line 219 of file private.h.

◆ ATTRIBUTE_PURE

#define ATTRIBUTE_PURE   /* empty */

Definition at line 218 of file private.h.

◆ AVGSECSPERYEAR

#define AVGSECSPERYEAR   31556952L

Definition at line 408 of file private.h.

◆ F_OK

#define F_OK   0

Definition at line 106 of file private.h.

◆ GRANDPARENTED

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

Definition at line 18 of file private.h.

◆ HAVE_ADJTIME

#define HAVE_ADJTIME   1

Definition at line 26 of file private.h.

◆ HAVE_GETTEXT

#define HAVE_GETTEXT   0

Definition at line 30 of file private.h.

◆ HAVE_INCOMPATIBLE_CTIME_R

#define HAVE_INCOMPATIBLE_CTIME_R   0

Definition at line 34 of file private.h.

◆ HAVE_INTTYPES_H

#define HAVE_INTTYPES_H   HAVE_STDINT_H

Definition at line 132 of file private.h.

◆ HAVE_LINK

#define HAVE_LINK   1

Definition at line 38 of file private.h.

◆ HAVE_SETTIMEOFDAY

#define HAVE_SETTIMEOFDAY   3

Definition at line 42 of file private.h.

◆ HAVE_STDINT_H

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

Definition at line 122 of file private.h.

◆ HAVE_SYMLINK

#define HAVE_SYMLINK   1

Definition at line 46 of file private.h.

◆ HAVE_SYS_STAT_H

#define HAVE_SYS_STAT_H   1

Definition at line 50 of file private.h.

◆ HAVE_SYS_WAIT_H

#define HAVE_SYS_WAIT_H   1

Definition at line 54 of file private.h.

◆ HAVE_UNISTD_H

#define HAVE_UNISTD_H   1

Definition at line 58 of file private.h.

◆ HAVE_UTMPX_H

#define HAVE_UTMPX_H   0

Definition at line 62 of file private.h.

◆ INITIALIZE

#define INITIALIZE (   x)

Definition at line 370 of file private.h.

◆ INT32_MAX

#define INT32_MAX   0x7fffffff

Definition at line 202 of file private.h.

◆ INT32_MIN

#define INT32_MIN   (-1 - INT32_MAX)

Definition at line 205 of file private.h.

◆ INT_FAST64_MAX

#define INT_FAST64_MAX   LONG_MAX

Definition at line 157 of file private.h.

◆ INT_FAST64_MIN

#define INT_FAST64_MIN   LONG_MIN

Definition at line 156 of file private.h.

◆ INT_STRLEN_MAXIMUM

#define INT_STRLEN_MAXIMUM (   type)
Value:
((TYPE_BIT(type) - TYPE_SIGNED(type)) * 302 / 1000 + \
Please use a compiler that supports a bit integer type(or wider)
#define TYPE_BIT(type)
Definition: private.h:321
#define TYPE_SIGNED(type)
Definition: private.h:325

Definition at line 345 of file private.h.

◆ INTMAX_MAX

#define INTMAX_MAX   LONG_MAX

Definition at line 186 of file private.h.

◆ INTMAX_MIN

#define INTMAX_MIN   LONG_MIN

Definition at line 187 of file private.h.

◆ is_digit

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

Definition at line 113 of file private.h.

◆ LOCALE_HOME

#define LOCALE_HOME   "/usr/lib/locale"

Definition at line 66 of file private.h.

◆ PRIdMAX

#define PRIdMAX   "ld"

Definition at line 185 of file private.h.

◆ PRIuMAX

#define PRIuMAX   "lu"

Definition at line 197 of file private.h.

◆ R_OK

#define R_OK   4

Definition at line 109 of file private.h.

◆ restrict

#define restrict   /* empty */

Definition at line 231 of file private.h.

◆ SCNdFAST64

#define SCNdFAST64   "ld"

Definition at line 158 of file private.h.

◆ SECSPERREPEAT

Definition at line 412 of file private.h.

◆ SECSPERREPEAT_BITS

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

Definition at line 416 of file private.h.

◆ SIZE_MAX

#define SIZE_MAX   ((size_t) -1)

Definition at line 209 of file private.h.

◆ strtoimax

#define strtoimax   strtol

Definition at line 184 of file private.h.

◆ TYPE_BIT

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

Definition at line 321 of file private.h.

◆ TYPE_SIGNED

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

Definition at line 325 of file private.h.

◆ TZ_DOMAIN

#define TZ_DOMAIN   "tz"

Definition at line 389 of file private.h.

◆ WEXITSTATUS

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

Definition at line 98 of file private.h.

◆ WIFEXITED

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

Definition at line 95 of file private.h.

◆ YEARSPERREPEAT

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

Definition at line 400 of file private.h.

Typedef Documentation

◆ int_fast32_t

typedef long int_fast32_t

Definition at line 164 of file private.h.

◆ intmax_t

typedef long intmax_t

Definition at line 183 of file private.h.

◆ uintmax_t

typedef unsigned long uintmax_t

Definition at line 196 of file private.h.

Function Documentation

◆ asctime_r()

char* asctime_r ( struct tm const ,
char *   
)

◆ icatalloc()

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

Definition at line 11 of file ialloc.c.

References NULL, realloc, check-static-inits::result, strcpy(), strlen(), and void.

Referenced by icpyalloc().

◆ icpyalloc()

char* icpyalloc ( const char *  string)

Definition at line 29 of file ialloc.c.

References icatalloc(), and NULL.

◆ scheck()

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

Definition at line 11 of file scheck.c.

References c, dummy, f, format, fp, free, is_digit, malloc, NULL, check-static-inits::result, sscanf(), strlen(), t, and tp.

Referenced by gethms(), inleap(), and rulesub().

◆ type()

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

Variable Documentation

◆ int_fast64_t

you may need to compile with DHAVE_STDINT_H typedef long int_fast64_t

Definition at line 155 of file private.h.

◆ time_t_max

time_t const time_t_max
static
Initial value:
=
(((( time_t ) -1) < 0)
? - (~ 0 < 0) - ((time_t) -1 << ( 8 * sizeof (time_t) - 1))
: -1)
long time_t
Definition: types.h:18
#define time_t
Definition: includes.h:70

Definition at line 333 of file private.h.

Referenced by increment_overflow_time(), time2sub(), and tzload().

◆ time_t_min

time_t const time_t_min
static
Initial value:
=
(((( time_t ) -1) < 0)
? (time_t) -1 << ( 8 * sizeof (time_t) - 1)
: 0)

Definition at line 329 of file private.h.

Referenced by increment_overflow_time(), time2sub(), and tzload().