-
Notifications
You must be signed in to change notification settings - Fork 18k
syscall: why doesn't Accept4 read from accept4's *len result parameter? #7428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
Oh, because types_$GOOS.go defines a union struct: union sockaddr_all { struct sockaddr s1; // this one gets used for fields struct sockaddr_in s2; // these pad it out struct sockaddr_in6 s3; struct sockaddr_un s4; struct sockaddr_dl s5; }; struct sockaddr_any { struct sockaddr addr; char pad[sizeof(union sockaddr_all) - sizeof(struct sockaddr)]; }; And the SizeofSockaddrAny is SizeofSockaddrAny = C.sizeof_struct_sockaddr_any, the maximum size of any address we can accept. |
This issue was closed by revision 0399b97. Status changed to Fixed. |
For issue #7354 I propose to read it. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: