Searched refs:sun_path (Results 1 – 11 of 11) sorted by relevance
/PHP-8.0/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 148 key = alloca(strlen(sa_un->sun_path) + 1); in fpm_sockets_hash_op() 149 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op() 219 …RROR, "Another FPM instance seems to already listen on %s", ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 223 unlink( ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 237 char *path = ((struct sockaddr_un *) sa)->sun_path; in fpm_sockets_new_listening_socket() 383 strlcpy(sa_un.sun_path, wp->config->listen_address, sizeof(sa_un.sun_path)); in fpm_socket_af_unix_listening_socket()
|
/PHP-8.0/sapi/phpdbg/ |
H A D | phpdbg_wait.c | 351 …if (strlcpy(local.sun_path, PHPDBG_G(socket_path), sizeof(local.sun_path)) > sizeof(local.sun_path… in PHPDBG_COMMAND() 355 len = strlen(local.sun_path) + sizeof(local.sun_family); in PHPDBG_COMMAND()
|
H A D | phpdbg_rinit_hook.c | 61 strcpy(sock.sun_path, PHPDBG_WG(path)); in PHP_RINIT_FUNCTION()
|
/PHP-8.0/ext/sockets/ |
H A D | php_sockets.h | 96 char sun_path[108]; member
|
H A D | conversions.c | 661 if (ZSTR_LEN(path_str) >= sizeof(saddr->sun_path)) { in from_zval_write_sun_path() 663 "length is %zd", sizeof(saddr->sun_path) - 1); in from_zval_write_sun_path() 668 memcpy(&saddr->sun_path, ZSTR_VAL(path_str), ZSTR_LEN(path_str)); in from_zval_write_sun_path() 669 saddr->sun_path[ZSTR_LEN(path_str)] = '\0'; in from_zval_write_sun_path() 677 nul_pos = memchr(&saddr->sun_path, '\0', sizeof(saddr->sun_path)); in to_zval_read_sun_path() 683 ZVAL_STRINGL(zv, saddr->sun_path, nul_pos - (char*)&saddr->sun_path); in to_zval_read_sun_path() 776 *sockaddr_len = offsetof(struct sockaddr_un, sun_path) + in from_zval_write_sockaddr_aux() 777 (sock_un->sun_path[0] == '\0' in from_zval_write_sockaddr_aux() 778 ? (1 + strlen(&sock_un->sun_path[1])) in from_zval_write_sockaddr_aux() 779 : strlen(sock_un->sun_path)); in from_zval_write_sockaddr_aux()
|
H A D | sockets.c | 85 #define SUN_LEN(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 1140 ZEND_TRY_ASSIGN_REF_STRING(addr, s_un->sun_path); 1215 ZEND_TRY_ASSIGN_REF_STRING(arg2, s_un->sun_path); 1332 if (addr_len >= sizeof(s_un.sun_path)) { 1338 memcpy(&s_un.sun_path, addr, addr_len); 1340 (socklen_t)(XtOffsetOf(struct sockaddr_un, sun_path) + addr_len)); 1397 if (addr_len >= sizeof(sa->sun_path)) { 1401 memcpy(&sa->sun_path, addr, addr_len); 1404 offsetof(struct sockaddr_un, sun_path) + addr_len); 1574 ZEND_TRY_ASSIGN_REF_STRING(arg5, s_un.sun_path); [all …]
|
/PHP-8.0/main/streams/ |
H A D | xp_socket.c | 560 if (xparam->inputs.namelen >= sizeof(unix_addr->sun_path)) { in parse_unix_address() 566 xparam->inputs.namelen = sizeof(unix_addr->sun_path) - 1; in parse_unix_address() 569 "and was truncated", (unsigned long)sizeof(unix_addr->sun_path)); in parse_unix_address() 572 memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen); in parse_unix_address() 648 (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam->inputs.namelen); in php_tcp_sockop_bind() 727 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
|
/PHP-8.0/main/ |
H A D | network.c | 651 if (ua->sun_path[0] == '\0') { 654 *textaddr = zend_string_init((char*)ua->sun_path, len, 0); 656 int len = strlen(ua->sun_path); 657 *textaddr = zend_string_init((char*)ua->sun_path, len, 0);
|
H A D | fastcgi.c | 38 char sun_path[MAXPATHLEN]; member 740 if (path_len >= sizeof(sa.sa_unix.sun_path)) { in fcgi_listen() 747 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen() 748 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len; in fcgi_listen()
|
/PHP-8.0/sapi/litespeed/ |
H A D | lscriu.c | 133 #define SUN_PATH_MAX (sizeof(((struct sockaddr_un *)NULL)->sun_path))
|
H A D | lsapilib.c | 2587 unlink( ((struct sockaddr_un *)pServerAddr)->sun_path ); in LSAPI_CreateListenSock2() 2640 strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p, in LSAPI_ParseSockAddr() 2641 sizeof(((struct sockaddr_un *)pAddr)->sun_path) ); in LSAPI_ParseSockAddr()
|
Completed in 51 milliseconds