php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fpm_conf.c File Reference
#include "fpm_config.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <stdlib.h>
#include <stddef.h>
#include <inttypes.h>
#include <stdio.h>
#include <unistd.h>
#include "php.h"
#include "zend_ini_scanner.h"
#include "zend_globals.h"
#include "zend_stream.h"
#include "php_syslog.h"
#include "fpm.h"
#include "fpm_conf.h"
#include "fpm_stdio.h"
#include "fpm_worker_pool.h"
#include "fpm_cleanup.h"
#include "fpm_php.h"
#include "fpm_sockets.h"
#include "fpm_shm.h"
#include "fpm_status.h"
#include "fpm_log.h"
#include "fpm_events.h"
#include "fpm_unix.h"
#include "zlog.h"

Go to the source code of this file.

Macros

#define STR2STR(a)
 
#define BOOL2STR(a)
 
#define GO(field)
 
#define WPO(field)
 
#define FPM_WPC_STR_CP_EX(_cfg, _scfg, _sf, _df)
 
#define FPM_WPC_STR_CP(_cfg, _scfg, _field)
 

Functions

int fpm_worker_pool_config_free (struct fpm_worker_pool_config_s *wpc)
 
int fpm_conf_unlink_pid (void)
 
int fpm_conf_write_pid (void)
 
int fpm_conf_init_main (int test_conf, int force_daemon)
 

Variables

struct fpm_global_config_s fpm_global_config
 

Macro Definition Documentation

◆ BOOL2STR

#define BOOL2STR ( a)
Value:
(a ? "yes" : "no")
$obj a
Definition test.php:84

Definition at line 45 of file fpm_conf.c.

◆ FPM_WPC_STR_CP

#define FPM_WPC_STR_CP ( _cfg,
_scfg,
_field )
Value:
FPM_WPC_STR_CP_EX(_cfg, _scfg, _field, _field)
#define FPM_WPC_STR_CP_EX(_cfg, _scfg, _sf, _df)
Definition fpm_conf.c:716

Definition at line 722 of file fpm_conf.c.

◆ FPM_WPC_STR_CP_EX

#define FPM_WPC_STR_CP_EX ( _cfg,
_scfg,
_sf,
_df )
Value:
do { \
if (_scfg->_df && !(_cfg->_sf = strdup(_scfg->_df))) { \
return -1; \
} \
} while (0)

Definition at line 716 of file fpm_conf.c.

◆ GO

#define GO ( field)
Value:
#define offsetof(STRUCTURE, FIELD)

Definition at line 46 of file fpm_conf.c.

◆ STR2STR

#define STR2STR ( a)
Value:
(a ? a : "undefined")

Definition at line 44 of file fpm_conf.c.

◆ WPO

#define WPO ( field)
Value:

Definition at line 47 of file fpm_conf.c.

Function Documentation

◆ fpm_conf_init_main()

int fpm_conf_init_main ( int test_conf,
int force_daemon )

Definition at line 1836 of file fpm_conf.c.

◆ fpm_conf_unlink_pid()

int fpm_conf_unlink_pid ( void )

Definition at line 1240 of file fpm_conf.c.

◆ fpm_conf_write_pid()

int fpm_conf_write_pid ( void )

Definition at line 1251 of file fpm_conf.c.

◆ fpm_worker_pool_config_free()

int fpm_worker_pool_config_free ( struct fpm_worker_pool_config_s * wpc)

Definition at line 662 of file fpm_conf.c.

Variable Documentation

◆ fpm_global_config

struct fpm_global_config_s fpm_global_config
Initial value:
= {
.daemonize = 1,
.process_max = 0,
.process_priority = 64,
.log_buffering = ZLOG_DEFAULT_BUFFERING,
.log_limit = ZLOG_DEFAULT_LIMIT
}
#define ZLOG_DEFAULT_LIMIT
Definition zlog.h:116
#define ZLOG_DEFAULT_BUFFERING
Definition zlog.h:120

Definition at line 64 of file fpm_conf.c.