2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
9 #pragma ident "%Z%%M% %I% %E% SMI"
12 * This file is in the public domain, so clarified as of
13 * June 5, 1996 by Arthur David Olson (arthur_david_olson@nih.gov).
17 * This header is for use ONLY with the time conversion code.
18 * There is no guarantee that it will remain unchanged,
19 * or that it will remain at all.
20 * Do NOT copy it to any system include directory.
31 #include <sys/types.h> /* for time_t */
35 #include <limits.h> /* for CHAR_BIT */
38 #include <libintl.h> /* for F_OK and R_OK */
42 /* static char privatehid[] = "@(#)private.h 7.55"; */
44 #define GRANDPARENTED "Local time zone must be set--see zic manual page"
46 /* Unlike <ctype.h>'s isdigit, this also works if c < 0 | c > UCHAR_MAX. */
47 #define is_digit(c) ((unsigned)(c) - '0' <= 9)
50 * Private function declarations.
52 char *icatalloc(char *old
, const char *new);
53 char *icpyalloc(const char *string
);
55 void *irealloc(void *pointer
, int size
);
56 void ifree(char *pointer
);
57 const char *scheck(const char *string
, const char *format
);
60 * Finally, some convenience items.
65 #endif /* !defined TRUE */
69 #endif /* !defined FALSE */
72 #define TYPE_BIT(type) (sizeof (type) * CHAR_BIT)
73 #endif /* !defined TYPE_BIT */
76 #define TYPE_SIGNED(type) (((type) -1) < 0)
77 #endif /* !defined TYPE_SIGNED */
85 #endif /* !defined INITIALIZE */
91 #endif /* _PRIVATE_H */