Searched refs:sun_path (Results 1 – 10 of 10) sorted by relevance
/php-src/sapi/fpm/fpm/ |
H A D | fpm_sockets.c | 153 key = alloca(strlen(sa_un->sun_path) + 1); in fpm_sockets_hash_op() 154 strcpy(key, sa_un->sun_path); in fpm_sockets_hash_op() 224 …RROR, "Another FPM instance seems to already listen on %s", ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 228 unlink( ((struct sockaddr_un *) sa)->sun_path); in fpm_sockets_new_listening_socket() 242 char *path = ((struct sockaddr_un *) sa)->sun_path; in fpm_sockets_new_listening_socket() 400 size_t socket_length = sizeof(sa_un.sun_path); in fpm_socket_af_unix_listening_socket() 404 strlcpy(sa_un.sun_path, wp->config->listen_address, socket_length); in fpm_socket_af_unix_listening_socket() 415 sa_un.sun_path in fpm_socket_af_unix_listening_socket()
|
H A D | fpm_unix.c | 75 size_t socket_length = sizeof(test_socket.sun_path); in fpm_unix_check_listen_address()
|
/php-src/ext/sockets/ |
H A D | conversions.c | 669 if (ZSTR_LEN(path_str) >= sizeof(saddr->sun_path)) { in from_zval_write_sun_path() 671 "length is %zd", sizeof(saddr->sun_path) - 1); in from_zval_write_sun_path() 676 memcpy(&saddr->sun_path, ZSTR_VAL(path_str), ZSTR_LEN(path_str)); in from_zval_write_sun_path() 677 saddr->sun_path[ZSTR_LEN(path_str)] = '\0'; in from_zval_write_sun_path() 685 nul_pos = memchr(&saddr->sun_path, '\0', sizeof(saddr->sun_path)); in to_zval_read_sun_path() 691 ZVAL_STRINGL(zv, saddr->sun_path, nul_pos - (char*)&saddr->sun_path); in to_zval_read_sun_path() 789 *sockaddr_len = offsetof(struct sockaddr_un, sun_path) + in from_zval_write_sockaddr_aux() 790 (sock_un->sun_path[0] == '\0' in from_zval_write_sockaddr_aux() 791 ? (1 + strlen(&sock_un->sun_path[1])) in from_zval_write_sockaddr_aux() 792 : strlen(sock_un->sun_path)); in from_zval_write_sockaddr_aux()
|
H A D | sockets.c | 78 #define SUN_LEN_NO_UB(su) (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 1011 ZEND_TRY_ASSIGN_REF_STRING(addr, s_un->sun_path); 1085 ZEND_TRY_ASSIGN_REF_STRING(arg2, s_un->sun_path); 1216 if (addr_len >= sizeof(s_un.sun_path)) { 1222 memcpy(&s_un.sun_path, addr, addr_len); 1224 (socklen_t)(XtOffsetOf(struct sockaddr_un, sun_path) + addr_len)); 1289 if (addr_len >= sizeof(sa->sun_path)) { 1293 memcpy(&sa->sun_path, addr, addr_len); 1296 offsetof(struct sockaddr_un, sun_path) + addr_len); 1479 ZEND_TRY_ASSIGN_REF_STRING(arg5, s_un.sun_path); [all …]
|
H A D | php_sockets.h | 96 char sun_path[108]; member
|
/php-src/main/streams/ |
H A D | xp_socket.c | 596 …ned long max_length = is_abstract_ns ? sizeof(unix_addr->sun_path) : sizeof(unix_addr->sun_path) -… in parse_unix_address() 612 memcpy(unix_addr->sun_path, xparam->inputs.name, xparam->inputs.namelen); in parse_unix_address() 688 (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam->inputs.namelen); in php_tcp_sockop_bind() 767 …(const struct sockaddr *)&unix_addr, (socklen_t) XtOffsetOf(struct sockaddr_un, sun_path) + xparam… in php_tcp_sockop_connect()
|
/php-src/main/ |
H A D | network.c | 648 if (ua->sun_path[0] == '\0') { 651 *textaddr = zend_string_init((char*)ua->sun_path, len, 0); 653 int len = strlen(ua->sun_path); 654 *textaddr = zend_string_init((char*)ua->sun_path, len, 0);
|
H A D | fastcgi.c | 36 char sun_path[MAXPATHLEN]; member 732 if (path_len >= sizeof(sa.sa_unix.sun_path)) { in fcgi_listen() 739 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen() 740 sock_len = XtOffsetOf(struct sockaddr_un, sun_path) + path_len; in fcgi_listen()
|
/php-src/sapi/litespeed/ |
H A D | lscriu.c | 133 #define SUN_PATH_MAX (sizeof(((struct sockaddr_un *)NULL)->sun_path))
|
H A D | lsapilib.c | 2602 unlink( ((struct sockaddr_un *)pServerAddr)->sun_path ); in LSAPI_CreateListenSock2() 2655 strncpy( ((struct sockaddr_un *)pAddr)->sun_path, p, in LSAPI_ParseSockAddr() 2656 sizeof(((struct sockaddr_un *)pAddr)->sun_path) ); in LSAPI_ParseSockAddr()
|
Completed in 53 milliseconds