php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
reentrancy.c File Reference
#include <sys/types.h>
#include <string.h>
#include <errno.h>
#include "php_reentrancy.h"
#include <stddef.h>

Go to the source code of this file.

Macros

#define local_lock(x)
 
#define local_unlock(x)
 

Enumerations

enum  {
  LOCALTIME_R , CTIME_R , ASCTIME_R , GMTIME_R ,
  NUMBER_OF_LOCKS
}
 

Functions

PHPAPI struct tm * php_localtime_r (const time_t *const timep, struct tm *p_tm)
 
PHPAPI char * php_ctime_r (const time_t *clock, char *buf)
 
PHPAPI char * php_asctime_r (const struct tm *tm, char *buf)
 
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)
 

Macro Definition Documentation

◆ local_lock

#define local_lock ( x)

Definition at line 45 of file reentrancy.c.

◆ local_unlock

#define local_unlock ( x)

Definition at line 46 of file reentrancy.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LOCALTIME_R 
CTIME_R 
ASCTIME_R 
GMTIME_R 
NUMBER_OF_LOCKS 

Definition at line 26 of file reentrancy.c.

Function Documentation

◆ php_asctime_r()

PHPAPI char * php_asctime_r ( const struct tm * tm,
char * buf )

Definition at line 152 of file reentrancy.c.

◆ php_ctime_r()

PHPAPI char * php_ctime_r ( const time_t * clock,
char * buf )

Definition at line 131 of file reentrancy.c.

◆ php_gmtime_r()

PHPAPI struct tm * php_gmtime_r ( const time_t *const timep,
struct tm * p_tm )

Definition at line 173 of file reentrancy.c.

◆ php_localtime_r()

PHPAPI struct tm * php_localtime_r ( const time_t *const timep,
struct tm * p_tm )

Definition at line 110 of file reentrancy.c.

◆ php_strtok_r()

PHPAPI char * php_strtok_r ( char * s,
const char * delim,
char ** last )

Definition at line 263 of file reentrancy.c.