Home
last modified time | relevance | path

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

/freebsd/tools/regression/sockets/unix_cmsg/
H A Dunix_cmsg.c327 memset(&uc_cfg.serv_addr_sun, 0, sizeof(uc_cfg.serv_addr_sun)); in init()
328 rv = snprintf(uc_cfg.serv_addr_sun.sun_path, sizeof(uc_cfg.serv_addr_sun.sun_path), in init()
334 if ((size_t)rv >= sizeof(uc_cfg.serv_addr_sun.sun_path)) { in init()
338 uc_cfg.serv_addr_sun.sun_family = PF_LOCAL; in init()
339 uc_cfg.serv_addr_sun.sun_len = SUN_LEN(&uc_cfg.serv_addr_sun); in init()
H A Duc_common.c147 if (bind(fd, (struct sockaddr *)&uc_cfg.serv_addr_sun, in uc_socket_create()
148 uc_cfg.serv_addr_sun.sun_len) < 0) { in uc_socket_create()
150 uc_cfg.serv_addr_sun.sun_path); in uc_socket_create()
178 if (unlink(uc_cfg.serv_addr_sun.sun_path) < 0) in uc_socket_create()
180 uc_cfg.serv_addr_sun.sun_path); in uc_socket_create()
195 if (unlink(uc_cfg.serv_addr_sun.sun_path) < 0) { in uc_socket_close()
197 uc_cfg.serv_addr_sun.sun_path); in uc_socket_close()
208 if (connect(fd, (struct sockaddr *)&uc_cfg.serv_addr_sun, in uc_socket_connect()
209 uc_cfg.serv_addr_sun.sun_len) < 0) { in uc_socket_connect()
210 uc_logmsg("socket_connect: connect(%s)", uc_cfg.serv_addr_sun.sun_path); in uc_socket_connect()
H A Duc_common.h37 struct sockaddr_un serv_addr_sun; member