Home
last modified time | relevance | path

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

/PHP-7.0/sapi/fpm/fpm/
H A Dfpm_sockets.c111 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 Dphp_sockets.h70 char sun_path[108]; member
H A Dconversions.c657 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 Dsockets.c87 #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 Dphpdbg_wait.c355 …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 Dphpdbg_rinit_hook.c63 strcpy(sock.sun_path, PHPDBG_WG(path)); in PHP_RINIT_FUNCTION()
/PHP-7.0/main/streams/
H A Dxp_socket.c550 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 Dnetwork.c657 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 Dfastcgi.c42 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 Dlsapilib.c2313 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