D | getsockopt02.c | 30 static struct sockaddr_un sun; variable 36 sun.sun_family = AF_UNIX; in setup() 37 (void)strcpy(sun.sun_path, SOCKNAME); in setup() 38 socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in setup() 39 SAFE_BIND(socket_fd, (struct sockaddr *)&sun, sizeof(sun)); in setup() 45 int fork_socket_fd = SAFE_SOCKET(sun.sun_family, SOCK_STREAM, 0); in fork_func() 47 SAFE_CONNECT(fork_socket_fd, (struct sockaddr *)&sun, sizeof(sun)); in fork_func()
|