Lines Matching refs:namelen
63 size_t namelen, in uv_pipe_bind2() argument
83 if (namelen == 0) in uv_pipe_bind2()
87 if (includes_nul(name, namelen)) in uv_pipe_bind2()
91 if (namelen > sizeof(saddr.sun_path)) in uv_pipe_bind2()
95 if (namelen > sizeof(saddr.sun_path)) in uv_pipe_bind2()
96 namelen = sizeof(saddr.sun_path); in uv_pipe_bind2()
110 addrlen = offsetof(struct sockaddr_un, sun_path) + namelen; in uv_pipe_bind2()
112 pipe_fname = uv__malloc(namelen + 1); in uv_pipe_bind2()
115 memcpy(pipe_fname, name, namelen); in uv_pipe_bind2()
116 pipe_fname[namelen] = '\0'; in uv_pipe_bind2()
126 memcpy(&saddr.sun_path, name, namelen); in uv_pipe_bind2()
256 size_t namelen, in uv_pipe_connect2() argument
271 if (namelen == 0) in uv_pipe_connect2()
274 if (includes_nul(name, namelen)) in uv_pipe_connect2()
278 if (namelen > sizeof(saddr.sun_path)) in uv_pipe_connect2()
282 if (namelen > sizeof(saddr.sun_path)) in uv_pipe_connect2()
283 namelen = sizeof(saddr.sun_path); in uv_pipe_connect2()
295 memcpy(&saddr.sun_path, name, namelen); in uv_pipe_connect2()
299 addrlen = offsetof(struct sockaddr_un, sun_path) + namelen; in uv_pipe_connect2()