Home
last modified time | relevance | path

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

/PHP-8.1/ext/sockets/
H A Dconversions.c546 struct sockaddr_in saddr = {0}; in from_zval_write_sin_addr() local
552 memcpy(inaddr, &saddr.sin_addr, sizeof saddr.sin_addr); in from_zval_write_sin_addr()
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()
669 saddr->sun_path[ZSTR_LEN(path_str)] = '\0'; in from_zval_write_sun_path()
674 struct sockaddr_un *saddr = (struct sockaddr_un*)data; in to_zval_read_sun_path() local
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()
799 if (saddr->sa_family == 0) { in to_zval_read_sockaddr_aux()
806 switch (saddr->sa_family) { in to_zval_read_sockaddr_aux()
[all …]

Completed in 17 milliseconds