17#ifndef PHP_REENTRANCY_H
18#define PHP_REENTRANCY_H
31#define HAVE_LOCALTIME 1
36#if defined(PHP_IRIX_TIME_R)
41#if defined(PHP_HPUX_TIME_R)
42#undef HAVE_LOCALTIME_R
50#if !defined(HAVE_LOCALTIME_R) && defined(HAVE_LOCALTIME)
51#define PHP_NEED_REENTRANCY 1
54#define php_localtime_r localtime_r
55#ifdef MISSING_LOCALTIME_R_DECL
56struct tm *localtime_r(
const time_t *
const timep,
struct tm *p_tm);
61#if !defined(HAVE_CTIME_R) && defined(HAVE_CTIME)
62#define PHP_NEED_REENTRANCY 1
65#define php_ctime_r ctime_r
66#ifdef MISSING_CTIME_R_DECL
72#if !defined(HAVE_ASCTIME_R) && defined(HAVE_ASCTIME)
73#define PHP_NEED_REENTRANCY 1
76#define php_asctime_r asctime_r
77#ifdef MISSING_ASCTIME_R_DECL
83#if !defined(HAVE_GMTIME_R) && defined(HAVE_GMTIME)
84#define PHP_NEED_REENTRANCY 1
87#define php_gmtime_r gmtime_r
88#ifdef MISSING_GMTIME_R_DECL
89struct tm *
php_gmtime_r(
const time_t *
const timep,
struct tm *p_tm);
93#if !defined(HAVE_STRTOK_R)
96#define php_strtok_r strtok_r
97#ifdef MISSING_STRTOK_R_DECL
105#undef PHP_NEED_REENTRANCY
108#if defined(PHP_NEED_REENTRANCY)
112#define reentrancy_startup()
113#define reentrancy_shutdown()
zend_ffi_ctype_name_buf buf
char * asctime_r(const struct tm *, char *)
char * ctime_r(const time_t *, char *)
char * strtok_r(char *s, const char *delim, char **last)
#define reentrancy_shutdown()
#define reentrancy_startup()
PHPAPI struct tm * php_localtime_r(const time_t *const timep, struct tm *p_tm)
PHPAPI struct tm * php_gmtime_r(const time_t *const timep, struct tm *p_tm)
PHPAPI char * php_strtok_r(char *s, const char *delim, char **last)
PHPAPI char * php_ctime_r(const time_t *clock, char *buf)
PHPAPI char * php_asctime_r(const struct tm *tm, char *buf)