that would mean allocating a sockaddr_un before checking if the size is right, unless there is a way to know the size of one field of a struct. I cannot do "sizeof(sickaddr_un) - constant" because the fields are not the same on every platform.