Home
last modified time | relevance | path

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

/external/libwebsockets/lib/core-net/
Dnetwork.c197 struct sockaddr_un serv_unix; in lws_socket_bind() local
217 v = (struct sockaddr *)&serv_unix; in lws_socket_bind()
219 memset(&serv_unix, 0, sizeof(serv_unix)); in lws_socket_bind()
220 serv_unix.sun_family = AF_UNIX; in lws_socket_bind()
223 if (sizeof(serv_unix.sun_path) <= strlen(iface)) { in lws_socket_bind()
228 strcpy(serv_unix.sun_path, iface); in lws_socket_bind()
229 if (serv_unix.sun_path[0] == '@') in lws_socket_bind()
230 serv_unix.sun_path[0] = '\0'; in lws_socket_bind()
232 unlink(serv_unix.sun_path); in lws_socket_bind()
329 if (chown(serv_unix.sun_path, uid, gid)) { in lws_socket_bind()
[all …]