Searched refs:sun_path (Results 1 – 10 of 10) sorted by relevance
/PHP-7.0/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 111 key = alloca(strlen(sa_un->sun_path) + 1); in fpm_sockets_hash_op() 112 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op() 182 …R, "An another FPM instance seems to already listen on %s", ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 186 unlink( ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 200 char *path = ((struct sockaddr_un *) sa)->sun_path; in fpm_sockets_new_listening_socket() 317 strlcpy(sa_un.sun_path, wp->config->listen_address, sizeof(sa_un.sun_path)); in fpm_socket_af_unix_listening_socket()
|
/PHP-7.0/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 %ld", 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)) 1271 ZVAL_STRING(addr, s_un->sun_path); 1352 ZVAL_STRING(arg2, s_un->sun_path); 1471 if (addr_len >= sizeof(s_un.sun_path)) { 1477 memcpy(&s_un.sun_path, addr, addr_len); 1539 if (addr_len >= sizeof(sa->sun_path)) { 1542 (int)sizeof(sa->sun_path) - 1); 1545 memcpy(&sa->sun_path, addr, addr_len); 1548 offsetof(struct sockaddr_un, sun_path) + addr_len); 1724 ZVAL_STRING(arg5, s_un.sun_path); [all …]
|
/PHP-7.0/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.0/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.0/main/ |
H A D | network.c | 657 if (ua->sun_path[0] == '\0') { 660 *textaddr = zend_string_init((char*)ua->sun_path, len, 0); 662 int len = strlen(ua->sun_path); 663 *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 >= 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.0/sapi/litespeed/ |
H A D | lsapilib.c | 2313 unlink( ((struct sockaddr_un *)pServerAddr)->sun_path ); in LSAPI_CreateListenSock2() 2365 strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p, in LSAPI_ParseSockAddr() 2366 sizeof(((struct sockaddr_un *)pAddr)->sun_path) ); in LSAPI_ParseSockAddr()
|
Completed in 79 milliseconds