php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
lscriu.c File Reference
#include "lsapilib.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <semaphore.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <dlfcn.h>
#include <errno.h>
#include <string.h>
#include <stdarg.h>
#include <signal.h>
#include <time.h>
#include <sys/timeb.h>
#include <unistd.h>
#include "lscriu.h"
#include <Zend/zend_portability.h>

Go to the source code of this file.

Data Structures

struct  criu_native_dump_t
 

Macros

#define HAVE_MSGHDR_MSG_CONTROL
 
#define LSCRIU_PATH   256
 
#define lscriu_dbg(...)
 
#define lscriu_err(...)
 
#define SUN_PATH_MAX   (sizeof(((struct sockaddr_un *)NULL)->sun_path))
 

Typedefs

typedef void(* sighandler_t) (int)
 
typedef sem_t *(* psem_open_t) (const char *__name, int __oflag,...)
 
typedef int(* psem_post_t) (sem_t *__sem)
 
typedef int(* psem_close_t) (sem_t *__sem)
 

Enumerations

enum  GlobalCounterType_t { CRIU_GCOUNTER_SHM , CRIU_GCOUNTER_SIG , CRIU_GCOUNTER_PIPE }
 

Functions

void lsapi_perror (const char *pMessage, int err_no)
 
void LSAPI_reset_server_state (void)
 
int LSAPI_Get_ppid (void)
 
void LSCRIU_inc_req_processed ()
 
int LSCRIU_Init (void)
 

Variables

psem_open_t psem_open = NULL
 
psem_post_t psem_post = NULL
 
psem_close_t psem_close = NULL
 

Macro Definition Documentation

◆ HAVE_MSGHDR_MSG_CONTROL

#define HAVE_MSGHDR_MSG_CONTROL

Definition at line 48 of file lscriu.c.

◆ lscriu_dbg

#define lscriu_dbg ( ...)

Definition at line 127 of file lscriu.c.

◆ lscriu_err

#define lscriu_err ( ...)
Value:
fprintf(stderr, __VA_ARGS__)
fprintf($stream, string $format, mixed ... $values)

Definition at line 130 of file lscriu.c.

◆ LSCRIU_PATH

#define LSCRIU_PATH   256

Definition at line 89 of file lscriu.c.

◆ SUN_PATH_MAX

#define SUN_PATH_MAX   (sizeof(((struct sockaddr_un *)NULL)->sun_path))

Definition at line 133 of file lscriu.c.

Typedef Documentation

◆ psem_close_t

typedef int(* psem_close_t) (sem_t *__sem)

Definition at line 145 of file lscriu.c.

◆ psem_open_t

typedef sem_t *(* psem_open_t) (const char *__name, int __oflag,...)

Definition at line 143 of file lscriu.c.

◆ psem_post_t

typedef int(* psem_post_t) (sem_t *__sem)

Definition at line 144 of file lscriu.c.

◆ sighandler_t

typedef void(* sighandler_t) (int)

Definition at line 116 of file lscriu.c.

Enumeration Type Documentation

◆ GlobalCounterType_t

Enumerator
CRIU_GCOUNTER_SHM 
CRIU_GCOUNTER_SIG 
CRIU_GCOUNTER_PIPE 

Definition at line 107 of file lscriu.c.

Function Documentation

◆ LSAPI_Get_ppid()

int LSAPI_Get_ppid ( void )

Definition at line 3800 of file lsapilib.c.

◆ lsapi_perror()

void lsapi_perror ( const char * pMessage,
int err_no )

Definition at line 299 of file lsapilib.c.

◆ LSAPI_reset_server_state()

void LSAPI_reset_server_state ( void )

Definition at line 2874 of file lsapilib.c.

◆ LSCRIU_inc_req_processed()

void LSCRIU_inc_req_processed ( void )

Definition at line 663 of file lscriu.c.

◆ LSCRIU_Init()

int LSCRIU_Init ( void )

Definition at line 700 of file lscriu.c.

Variable Documentation

◆ psem_close

psem_close_t psem_close = NULL

Definition at line 149 of file lscriu.c.

◆ psem_open

psem_open_t psem_open = NULL

Definition at line 147 of file lscriu.c.

◆ psem_post

psem_post_t psem_post = NULL

Definition at line 148 of file lscriu.c.