Lines Matching refs:_unix
265 a->u._unix.path = strdup(path ? path : ""); in sock_address_init_unix()
266 a->u._unix.owner = 1; in sock_address_init_unix()
271 if (a->family == SOCKET_UNIX && a->u._unix.owner) { in sock_address_done()
272 a->u._unix.owner = 0; in sock_address_done()
273 free((char*)a->u._unix.path); in sock_address_done()
394 buf = format_str( buf, end, a->u._unix.path ); in sock_address_to_string()
420 return (!strcmp(a->u._unix.path, b->u._unix.path)); in sock_address_equal()
459 return a->u._unix.path; in sock_address_get_path()
500 return bufprint(p, end, "%s", a->u._unix.path);
545 int slen = strlen(a->u._unix.path); in sock_address_to_bsd()
554 memcpy( dst->sun_path, a->u._unix.path, slen ); in sock_address_to_bsd()
616 a->u._unix.owner = 1; in sock_address_from_bsd()
617 a->u._unix.path = strdup(src->sun_path); in sock_address_from_bsd()