D | control.c | 49 struct sockaddr_un sun; variable 124 memset(&sun, 0, sizeof(sun)); in make_sock() 125 sun.sun_family = AF_UNIX; in make_sock() 126 strlcpy(sun.sun_path, CONTROLSOCKET, sizeof(sun.sun_path)); in make_sock() 127 return sizeof(sun.sun_family) + strlen(sun.sun_path) + 1; in make_sock() 138 if (bind(fd, (struct sockaddr *)&sun, len) == -1 || in start_control() 184 return connect(fd, (struct sockaddr *)&sun, len); in open_control()
|