Lines Matching refs:pathlen
904 size_t pathlen; in unix_listen_saddr() local
920 pathlen = strlen(path); in unix_listen_saddr()
921 if (pathlen > sizeof(un.sun_path) || in unix_listen_saddr()
922 (abstract && pathlen > (sizeof(un.sun_path) - 1))) { in unix_listen_saddr()
959 memcpy(&un.sun_path[1], path, pathlen); in unix_listen_saddr()
961 addrlen = offsetof(struct sockaddr_un, sun_path) + 1 + pathlen; in unix_listen_saddr()
964 memcpy(un.sun_path, path, pathlen); in unix_listen_saddr()
990 size_t pathlen; in unix_connect_saddr() local
1004 pathlen = strlen(saddr->path); in unix_connect_saddr()
1005 if (pathlen > sizeof(un.sun_path) || in unix_connect_saddr()
1006 (abstract && pathlen > (sizeof(un.sun_path) - 1))) { in unix_connect_saddr()
1020 memcpy(&un.sun_path[1], saddr->path, pathlen); in unix_connect_saddr()
1022 addrlen = offsetof(struct sockaddr_un, sun_path) + 1 + pathlen; in unix_connect_saddr()
1025 memcpy(un.sun_path, saddr->path, pathlen); in unix_connect_saddr()