socklen_t 167 ext/socket/addrinfo.h socklen_t salen, socklen_t 169 ext/socket/addrinfo.h socklen_t hostlen, socklen_t 171 ext/socket/addrinfo.h socklen_t servlen, socklen_t 609 ext/socket/ancdata.c v_addr = rsock_addrinfo_new((struct sockaddr *)&sa, (socklen_t)sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil); socklen_t 637 ext/socket/ancdata.c return rsock_addrinfo_new((struct sockaddr *)&sa, (socklen_t)sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil); socklen_t 784 ext/socket/ancdata.c if (inet_ntop(AF_INET, &addr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 837 ext/socket/ancdata.c if (inet_ntop(AF_INET6, &addr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 1202 ext/socket/ancdata.c cmh.cmsg_len = (socklen_t)CMSG_LEN(RSTRING_LEN(cdata)); socklen_t 1332 ext/socket/ancdata.c socklen_t len0; socklen_t 1502 ext/socket/ancdata.c socklen_t optlen = (socklen_t)sizeof(socktype); socklen_t 1530 ext/socket/ancdata.c mh.msg_namelen = (socklen_t)sizeof(namebuf); socklen_t 1539 ext/socket/ancdata.c mh.msg_controllen = (socklen_t)maxctllen; socklen_t 1597 ext/socket/ancdata.c (socklen_t)mh.msg_controllen < (socklen_t)(maxctllen - BIG_ENOUGH_SPACE)) { socklen_t 307 ext/socket/basicsocket.c socklen_t len; socklen_t 344 ext/socket/basicsocket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 345 ext/socket/basicsocket.c socklen_t len0 = len; socklen_t 375 ext/socket/basicsocket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 376 ext/socket/basicsocket.c socklen_t len0 = len; socklen_t 423 ext/socket/basicsocket.c socklen_t len = sizeof(cred); socklen_t 465 ext/socket/basicsocket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 466 ext/socket/basicsocket.c socklen_t len0 = len; socklen_t 499 ext/socket/basicsocket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 500 ext/socket/basicsocket.c socklen_t len0 = len; socklen_t 139 ext/socket/getnameinfo.c getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags) socklen_t 102 ext/socket/init.c socklen_t alen; socklen_t 110 ext/socket/init.c socklen_t len0 = arg->alen; socklen_t 167 ext/socket/init.c arg.alen = (socklen_t)sizeof(arg.buf); socklen_t 214 ext/socket/init.c socklen_t alen = (socklen_t)sizeof buf; socklen_t 219 ext/socket/init.c socklen_t len0; socklen_t 377 ext/socket/init.c socklen_t sockerrlen; socklen_t 380 ext/socket/init.c sockerrlen = (socklen_t)sizeof(sockerr); socklen_t 397 ext/socket/init.c sockerrlen = (socklen_t)sizeof(sockerr); socklen_t 433 ext/socket/init.c socklen_t len; socklen_t 503 ext/socket/init.c cloexec_accept(int socket, struct sockaddr *address, socklen_t *address_len, socklen_t 507 ext/socket/init.c socklen_t len0 = 0; socklen_t 554 ext/socket/init.c struct sockaddr *sockaddr, socklen_t *len) socklen_t 584 ext/socket/init.c socklen_t *len; socklen_t 595 ext/socket/init.c rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len) socklen_t 633 ext/socket/init.c socklen_t sslen = (socklen_t)sizeof(ss); socklen_t 95 ext/socket/ipsocket.c (char*)&status, (socklen_t)sizeof(status)); socklen_t 220 ext/socket/ipsocket.c socklen_t len = (socklen_t)sizeof addr; socklen_t 261 ext/socket/ipsocket.c socklen_t len = (socklen_t)sizeof addr; socklen_t 315 ext/socket/ipsocket.c socklen_t len = res->ai->ai_addrlen; socklen_t 695 ext/socket/option.c if (inet_ntop(AF_INET, &s.imr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 699 ext/socket/option.c if (inet_ntop(AF_INET, &s.imr_interface, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 719 ext/socket/option.c if (inet_ntop(AF_INET, &s.imr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 723 ext/socket/option.c if (inet_ntop(AF_INET, &s.imr_address, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 760 ext/socket/option.c if (inet_ntop(AF_INET, &s, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 801 ext/socket/option.c if (inet_ntop(AF_INET6, &s.ipv6mr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL) socklen_t 343 ext/socket/raddrinfo.c socklen_t salen; socklen_t 356 ext/socket/raddrinfo.c ptr->host, (socklen_t)ptr->hostlen, socklen_t 357 ext/socket/raddrinfo.c ptr->serv, (socklen_t)ptr->servlen, socklen_t 363 ext/socket/raddrinfo.c rb_getnameinfo(const struct sockaddr *sa, socklen_t salen, socklen_t 385 ext/socket/raddrinfo.c make_ipaddr0(struct sockaddr *addr, socklen_t addrlen, char *buf, size_t buflen) socklen_t 396 ext/socket/raddrinfo.c rsock_make_ipaddr(struct sockaddr *addr, socklen_t addrlen) socklen_t 537 ext/socket/raddrinfo.c socklen_t sa_len = sizeof(sa); socklen_t 559 ext/socket/raddrinfo.c rsock_ipaddr(struct sockaddr *sockaddr, socklen_t sockaddrlen, int norevlookup) socklen_t 601 ext/socket/raddrinfo.c rsock_unixpath_str(struct sockaddr_un *sockaddr, socklen_t len) socklen_t 615 ext/socket/raddrinfo.c rsock_unixaddr(struct sockaddr_un *sockaddr, socklen_t len) socklen_t 621 ext/socket/raddrinfo.c socklen_t socklen_t 627 ext/socket/raddrinfo.c return (socklen_t) sizeof(sa_family_t); socklen_t 633 ext/socket/raddrinfo.c return (socklen_t) offsetof(struct sockaddr_un, sun_path) + socklen_t 638 ext/socket/raddrinfo.c return (socklen_t) sizeof(struct sockaddr_un); socklen_t 648 ext/socket/raddrinfo.c VALUE (*ipaddr)(struct sockaddr*, socklen_t); socklen_t 656 ext/socket/raddrinfo.c VALUE (*ipaddr)(struct sockaddr*, socklen_t) = arg->ipaddr; socklen_t 704 ext/socket/raddrinfo.c rsock_make_hostent(VALUE host, struct rb_addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, socklen_t)) socklen_t 721 ext/socket/raddrinfo.c socklen_t sockaddr_len; socklen_t 783 ext/socket/raddrinfo.c init_addrinfo(rb_addrinfo_t *rai, struct sockaddr *sa, socklen_t len, socklen_t 787 ext/socket/raddrinfo.c if ((socklen_t)sizeof(rai->addr) < len) socklen_t 800 ext/socket/raddrinfo.c rsock_addrinfo_new(struct sockaddr *addr, socklen_t len, socklen_t 974 ext/socket/raddrinfo.c socklen_t len; socklen_t 1045 ext/socket/raddrinfo.c socklen_t sockaddr_len; socklen_t 1119 ext/socket/raddrinfo.c get_afamily(struct sockaddr *addr, socklen_t len) socklen_t 1121 ext/socket/raddrinfo.c if ((socklen_t)((char*)&addr->sa_family + sizeof(addr->sa_family) - (char*)addr) <= len) socklen_t 1138 ext/socket/raddrinfo.c socklen_t socklen = rai->sockaddr_len; socklen_t 1143 ext/socket/raddrinfo.c rsock_inspect_sockaddr(struct sockaddr *sockaddr_arg, socklen_t socklen, VALUE ret) socklen_t 1164 ext/socket/raddrinfo.c if ((socklen_t)(((char*)&addr->sin_addr)-(char*)addr+0+1) <= socklen) socklen_t 1168 ext/socket/raddrinfo.c if ((socklen_t)(((char*)&addr->sin_addr)-(char*)addr+1+1) <= socklen) socklen_t 1172 ext/socket/raddrinfo.c if ((socklen_t)(((char*)&addr->sin_addr)-(char*)addr+2+1) <= socklen) socklen_t 1176 ext/socket/raddrinfo.c if ((socklen_t)(((char*)&addr->sin_addr)-(char*)addr+3+1) <= socklen) socklen_t 1181 ext/socket/raddrinfo.c if ((socklen_t)(((char*)&addr->sin_port)-(char*)addr+(int)sizeof(addr->sin_port)) < socklen) { socklen_t 1189 ext/socket/raddrinfo.c if ((socklen_t)sizeof(struct sockaddr_in) != socklen) socklen_t 1203 ext/socket/raddrinfo.c if (socklen < (socklen_t)sizeof(struct sockaddr_in6)) { socklen_t 1213 ext/socket/raddrinfo.c hbuf, (socklen_t)sizeof(hbuf), NULL, 0, socklen_t 1225 ext/socket/raddrinfo.c if ((socklen_t)sizeof(struct sockaddr_in6) < socklen) socklen_t 1310 ext/socket/raddrinfo.c if (socklen != (socklen_t)(offsetof(struct sockaddr_ll, sll_addr) + addr->sll_halen)) { socklen_t 1317 ext/socket/raddrinfo.c socklen_t len, i; socklen_t 1329 ext/socket/raddrinfo.c if (socklen < (socklen_t)(offsetof(struct sockaddr_ll, sll_halen) + sizeof(addr->sll_halen)) || socklen_t 1330 ext/socket/raddrinfo.c (socklen_t)(offsetof(struct sockaddr_ll, sll_addr) + addr->sll_halen) != socklen) { socklen_t 1396 ext/socket/raddrinfo.c if (socklen < (socklen_t)(offsetof(struct sockaddr_dl, sdl_nlen) + sizeof(addr->sdl_nlen)) || socklen_t 1397 ext/socket/raddrinfo.c socklen < (socklen_t)(offsetof(struct sockaddr_dl, sdl_alen) + sizeof(addr->sdl_alen)) || socklen_t 1398 ext/socket/raddrinfo.c socklen < (socklen_t)(offsetof(struct sockaddr_dl, sdl_slen) + sizeof(addr->sdl_slen)) || socklen_t 1401 ext/socket/raddrinfo.c socklen < (socklen_t)(offsetof(struct sockaddr_dl, sdl_data) + addr->sdl_nlen + addr->sdl_alen + addr->sdl_slen)) { socklen_t 1588 ext/socket/raddrinfo.c hbuf, (socklen_t)sizeof(hbuf), pbuf, (socklen_t)sizeof(pbuf), socklen_t 1609 ext/socket/raddrinfo.c socklen_t len; socklen_t 1680 ext/socket/raddrinfo.c len = (socklen_t)sizeof(uaddr); socklen_t 1935 ext/socket/raddrinfo.c hbuf, (socklen_t)sizeof(hbuf), pbuf, (socklen_t)sizeof(pbuf), socklen_t 2286 ext/socket/raddrinfo.c return rsock_addrinfo_new((struct sockaddr *)&sin4, (socklen_t)sizeof(sin4), socklen_t 2517 ext/socket/raddrinfo.c rsock_fd_socket_addrinfo(int fd, struct sockaddr *addr, socklen_t len) socklen_t 2522 ext/socket/raddrinfo.c socklen_t optlen = (socklen_t)sizeof(socktype); socklen_t 2536 ext/socket/raddrinfo.c rsock_io_socket_addrinfo(VALUE io, struct sockaddr *addr, socklen_t len) socklen_t 119 ext/socket/rubysocket.h (0 < (socklen_t)-1 ? \ socklen_t 120 ext/socket/rubysocket.h ~(socklen_t)0 : \ socklen_t 121 ext/socket/rubysocket.h (((((socklen_t)1) << (sizeof(socklen_t) * CHAR_BIT - 2)) - 1) * 2 + 1)) socklen_t 124 ext/socket/rubysocket.h # define RSTRING_SOCKLEN (socklen_t)RSTRING_LENINT socklen_t 291 ext/socket/rubysocket.h int rb_getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags); socklen_t 295 ext/socket/rubysocket.h VALUE rsock_fd_socket_addrinfo(int fd, struct sockaddr *addr, socklen_t len); socklen_t 296 ext/socket/rubysocket.h VALUE rsock_io_socket_addrinfo(VALUE io, struct sockaddr *addr, socklen_t len); socklen_t 298 ext/socket/rubysocket.h VALUE rsock_addrinfo_new(struct sockaddr *addr, socklen_t len, int family, int socktype, int protocol, VALUE canonname, VALUE inspectname); socklen_t 301 ext/socket/rubysocket.h VALUE rsock_make_ipaddr(struct sockaddr *addr, socklen_t addrlen); socklen_t 302 ext/socket/rubysocket.h VALUE rsock_ipaddr(struct sockaddr *sockaddr, socklen_t sockaddrlen, int norevlookup); socklen_t 303 ext/socket/rubysocket.h VALUE rsock_make_hostent(VALUE host, struct rb_addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, socklen_t)); socklen_t 304 ext/socket/rubysocket.h VALUE rsock_inspect_sockaddr(struct sockaddr *addr, socklen_t socklen, VALUE ret); socklen_t 305 ext/socket/rubysocket.h socklen_t rsock_sockaddr_len(struct sockaddr *addr); socklen_t 306 ext/socket/rubysocket.h VALUE rsock_sockaddr_obj(struct sockaddr *addr, socklen_t len); socklen_t 311 ext/socket/rubysocket.h VALUE rsock_unixpath_str(struct sockaddr_un *sockaddr, socklen_t len); socklen_t 312 ext/socket/rubysocket.h VALUE rsock_unixaddr(struct sockaddr_un *sockaddr, socklen_t len); socklen_t 313 ext/socket/rubysocket.h socklen_t rsock_unix_sockaddr_len(VALUE path); socklen_t 327 ext/socket/rubysocket.h socklen_t tolen; socklen_t 347 ext/socket/rubysocket.h VALUE rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len); socklen_t 349 ext/socket/rubysocket.h struct sockaddr *sockaddr, socklen_t *len); socklen_t 396 ext/socket/rubysocket.h NORETURN(void rsock_syserr_fail_sockaddr(int err, const char *mesg, struct sockaddr *addr, socklen_t len)); socklen_t 402 ext/socket/rubysocket.h NORETURN(void rsock_sys_fail_sockaddr(const char *, struct sockaddr *addr, socklen_t len)); socklen_t 55 ext/socket/socket.c rsock_sys_fail_sockaddr(const char *mesg, struct sockaddr *addr, socklen_t len) socklen_t 61 ext/socket/socket.c rsock_syserr_fail_sockaddr(int err, const char *mesg, struct sockaddr *addr, socklen_t len) socklen_t 101 ext/socket/socket.c (socklen_t)RSTRING_LEN(addr)); /* overflow should be checked already */ socklen_t 795 ext/socket/socket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 811 ext/socket/socket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 865 ext/socket/socket.c socklen_t len = (socklen_t)sizeof buf; socklen_t 960 ext/socket/socket.c sock_sockaddr(struct sockaddr *addr, socklen_t len) socklen_t 967 ext/socket/socket.c len = (socklen_t)sizeof(((struct sockaddr_in*)addr)->sin_addr.s_addr); socklen_t 972 ext/socket/socket.c len = (socklen_t)sizeof(((struct sockaddr_in6*)addr)->sin6_addr.s6_addr); socklen_t 1232 ext/socket/socket.c socklen_t salen; socklen_t 1495 ext/socket/socket.c static socklen_t socklen_t 1508 ext/socket/socket.c return (socklen_t)sizeof(struct sockaddr_in); socklen_t 1512 ext/socket/socket.c return (socklen_t)sizeof(struct sockaddr_in6); socklen_t 1517 ext/socket/socket.c return (socklen_t)sizeof(struct sockaddr_un); socklen_t 1522 ext/socket/socket.c return (socklen_t)(offsetof(struct sockaddr_ll, sll_addr) + ((struct sockaddr_ll *)addr)->sll_halen); socklen_t 1526 ext/socket/socket.c return (socklen_t)(offsetof(struct sockaddr, sa_family) + sizeof(addr->sa_family)); socklen_t 1530 ext/socket/socket.c socklen_t socklen_t 1537 ext/socket/socket.c sockaddr_obj(struct sockaddr *addr, socklen_t len) socklen_t 1553 ext/socket/socket.c len = (socklen_t)sizeof(struct sockaddr_in6); socklen_t 1570 ext/socket/socket.c rsock_sockaddr_obj(struct sockaddr *addr, socklen_t len) socklen_t 1619 ext/socket/socket.c socklen_t len = (socklen_t)sizeof(struct sockaddr_in6); socklen_t 41 ext/socket/sockport.h socklen_t init_sockaddr_len = (len); \ socklen_t 50 ext/socket/sockport.h socklen_t init_sockaddr_len = (len); \ socklen_t 59 ext/socket/sockport.h socklen_t init_sockaddr_len = (len); \ socklen_t 76 ext/socket/sockport.h socklen_t init_sockaddr_len = (len); \ socklen_t 60 ext/socket/tcpserver.c socklen_t fromlen; socklen_t 63 ext/socket/tcpserver.c fromlen = (socklen_t)sizeof(from); socklen_t 73 ext/socket/tcpserver.c socklen_t len = (socklen_t)sizeof(from); socklen_t 98 ext/socket/tcpserver.c socklen_t fromlen; socklen_t 101 ext/socket/tcpserver.c fromlen = (socklen_t)sizeof(from); socklen_t 35 ext/socket/tcpsocket.c tcp_sockaddr(struct sockaddr *addr, socklen_t len) socklen_t 52 ext/socket/unixserver.c socklen_t fromlen; socklen_t 55 ext/socket/unixserver.c fromlen = (socklen_t)sizeof(struct sockaddr_un); socklen_t 66 ext/socket/unixserver.c socklen_t fromlen; socklen_t 69 ext/socket/unixserver.c fromlen = (socklen_t)sizeof(from); socklen_t 97 ext/socket/unixserver.c socklen_t fromlen; socklen_t 100 ext/socket/unixserver.c fromlen = (socklen_t)sizeof(struct sockaddr_un); socklen_t 16 ext/socket/unixsocket.c socklen_t sockaddrlen; socklen_t 32 ext/socket/unixsocket.c socklen_t sockaddrlen; socklen_t 124 ext/socket/unixsocket.c socklen_t len = (socklen_t)sizeof(addr); socklen_t 125 ext/socket/unixsocket.c socklen_t len0 = len; socklen_t 251 ext/socket/unixsocket.c arg.msg.msg_controllen = (socklen_t)CMSG_LEN(sizeof(int)); socklen_t 254 ext/socket/unixsocket.c cmsg.hdr.cmsg_len = (socklen_t)CMSG_LEN(sizeof(int)); socklen_t 345 ext/socket/unixsocket.c arg.msg.msg_controllen = (socklen_t)CMSG_SPACE(sizeof(int)); socklen_t 347 ext/socket/unixsocket.c cmsg.hdr.cmsg_len = (socklen_t)CMSG_LEN(sizeof(int)); socklen_t 365 ext/socket/unixsocket.c if (arg.msg.msg_controllen < (socklen_t)sizeof(struct cmsghdr)) { socklen_t 380 ext/socket/unixsocket.c if (arg.msg.msg_controllen < (socklen_t)CMSG_LEN(sizeof(int))) { socklen_t 385 ext/socket/unixsocket.c if ((socklen_t)CMSG_SPACE(sizeof(int)) < arg.msg.msg_controllen) { socklen_t 448 ext/socket/unixsocket.c socklen_t len = (socklen_t)sizeof addr; socklen_t 449 ext/socket/unixsocket.c socklen_t len0 = len; socklen_t 476 ext/socket/unixsocket.c socklen_t len = (socklen_t)sizeof addr; socklen_t 477 ext/socket/unixsocket.c socklen_t len0 = len; socklen_t 242 include/ruby/missing.h RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *); socklen_t 243 include/ruby/missing.h RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *); socklen_t 11 missing/close.c socklen_t * namelen) socklen_t 28 missing/close.c socklen_t * namelen)