Home
last modified time | relevance | path

Searched refs:sun_path (Results 1 – 10 of 10) sorted by relevance

/php-src/sapi/fpm/fpm/
H A Dfpm_sockets.c153 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 Dfpm_unix.c75 size_t socket_length = sizeof(test_socket.sun_path); in fpm_unix_check_listen_address()
/php-src/ext/sockets/
H A Dconversions.c669 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 Dsockets.c78 #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 Dphp_sockets.h96 char sun_path[108]; member
/php-src/main/streams/
H A Dxp_socket.c596 …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 Dnetwork.c648 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 Dfastcgi.c36 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 Dlscriu.c133 #define SUN_PATH_MAX (sizeof(((struct sockaddr_un *)NULL)->sun_path))
H A Dlsapilib.c2602 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