Searched refs:sun_path (Results 1 – 11 of 11) sorted by relevance
/PHP-7.2/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 133 key = alloca(strlen(sa_un->sun_path) + 1); in fpm_sockets_hash_op() 134 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op() 204 …R, "An another FPM instance seems to already listen on %s", ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 208 unlink( ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 222 char *path = ((struct sockaddr_un *) sa)->sun_path; in fpm_sockets_new_listening_socket() 367 strlcpy(sa_un.sun_path, wp->config->listen_address, sizeof(sa_un.sun_path)); in fpm_socket_af_unix_listening_socket()
|
/PHP-7.2/ext/sockets/ |
H A D | php_sockets.h | 70 char sun_path[108]; member
|
H A D | conversions.c | 657 if (ZSTR_LEN(path_str) >= sizeof(saddr->sun_path)) { in from_zval_write_sun_path() 659 "length is %zd", sizeof(saddr->sun_path) - 1); in from_zval_write_sun_path() 663 memcpy(&saddr->sun_path, ZSTR_VAL(path_str), ZSTR_LEN(path_str)); in from_zval_write_sun_path() 664 saddr->sun_path[ZSTR_LEN(path_str)] = '\0'; in from_zval_write_sun_path() 672 nul_pos = memchr(&saddr->sun_path, '\0', sizeof(saddr->sun_path)); in to_zval_read_sun_path() 678 ZVAL_STRINGL(zv, saddr->sun_path, nul_pos - (char*)&saddr->sun_path); in to_zval_read_sun_path() 768 *sockaddr_len = offsetof(struct sockaddr_un, sun_path) + in from_zval_write_sockaddr_aux() 769 (sock_un->sun_path[0] == '\0' in from_zval_write_sockaddr_aux() 770 ? (1 + strlen(&sock_un->sun_path[1])) in from_zval_write_sockaddr_aux() 771 : strlen(sock_un->sun_path)); in from_zval_write_sockaddr_aux()
|
H A D | sockets.c | 87 #define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 1340 ZVAL_STRING(addr, s_un->sun_path); 1421 ZVAL_STRING(arg2, s_un->sun_path); 1540 if (addr_len >= sizeof(s_un.sun_path)) { 1546 memcpy(&s_un.sun_path, addr, addr_len); 1608 if (addr_len >= sizeof(sa->sun_path)) { 1611 (int)sizeof(sa->sun_path) - 1); 1614 memcpy(&sa->sun_path, addr, addr_len); 1617 offsetof(struct sockaddr_un, sun_path) + addr_len); 1800 ZVAL_STRING(arg5, s_un.sun_path); [all …]
|
/PHP-7.2/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 355 …if (strlcpy(local.sun_path, PHPDBG_G(socket_path), sizeof(local.sun_path)) > sizeof(local.sun_path… in PHPDBG_COMMAND() 359 len = strlen(local.sun_path) + sizeof(local.sun_family); in PHPDBG_COMMAND()
|
H A D | phpdbg_rinit_hook.c | 63 strcpy(sock.sun_path, PHPDBG_WG(path)); in PHP_RINIT_FUNCTION()
|
/PHP-7.2/main/streams/ |
H A D | xp_socket.c | 550 if (xparam->inputs.namelen >= sizeof(unix_addr->sun_path)) { in parse_unix_address() 556 xparam->inputs.namelen = sizeof(unix_addr->sun_path) - 1; in parse_unix_address() 559 "and was truncated", (unsigned long)sizeof(unix_addr->sun_path)); in parse_unix_address() 562 memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen); in parse_unix_address() 638 (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam->inputs.namelen); in php_tcp_sockop_bind() 717 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
|
/PHP-7.2/main/ |
H A D | network.c | 652 if (ua->sun_path[0] == '\0') { 655 *textaddr = zend_string_init((char*)ua->sun_path, len, 0); 657 int len = strlen(ua->sun_path); 658 *textaddr = zend_string_init((char*)ua->sun_path, len, 0);
|
H A D | fastcgi.c | 42 char sun_path[MAXPATHLEN]; member 744 if (path_len >= (int)sizeof(sa.sa_unix.sun_path)) { in fcgi_listen() 751 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen() 752 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len; in fcgi_listen()
|
/PHP-7.2/sapi/litespeed/ |
H A D | lscriu.c | 136 #define SUN_PATH_MAX (sizeof(((struct sockaddr_un *)NULL)->sun_path))
|
H A D | lsapilib.c | 2579 unlink( ((struct sockaddr_un *)pServerAddr)->sun_path ); in LSAPI_CreateListenSock2() 2631 strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p, in LSAPI_ParseSockAddr() 2632 sizeof(((struct sockaddr_un *)pAddr)->sun_path) ); in LSAPI_ParseSockAddr()
|
Completed in 81 milliseconds