Link: <https://austingroupbugs.net/view.php?id=1641> Reported-by: Bastien Roucariès <[email protected]> Reported-by: Alejandro Colomar <[email protected]> Reviewed-by: Eric Blake <[email protected]> Cc: glibc <[email protected]> Cc: GCC <[email protected]> Cc: Stefan Puiu <[email protected]> Cc: Igor Sysoev <[email protected]> Cc: Rich Felker <[email protected]> Cc: Andrew Clayton <[email protected]> Cc: Richard Biener <[email protected]> Cc: Zack Weinberg <[email protected]> Cc: Florian Weimer <[email protected]> Cc: Joseph Myers <[email protected]> Cc: Jakub Jelinek <[email protected]> Cc: Sam James <[email protected]> Signed-off-by: Alejandro Colomar <[email protected]> ---
Hi Eric, I took your informal review as a "Reviewed-by". Please confirm. I've also modified the small wording thingy you suggested. I'll float this patch in the list in case anyone has comments, and will push some time this weekend (depending on many variables). Cheers, Alex man3type/sockaddr.3type | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man3type/sockaddr.3type b/man3type/sockaddr.3type index 2fdf56c59..cf8d601f5 100644 --- a/man3type/sockaddr.3type +++ b/man3type/sockaddr.3type @@ -117,6 +117,14 @@ .SH HISTORY was invented by POSIX. See also .BR accept (2). +.PP +These structures were invented before modern ISO C strict-aliasing rules. +If aliasing rules are applied strictly, +these structures would be extremely difficult to use +without invoking Undefined Behavior. +POSIX Issue 8 will fix this by requiring that implementations +make sure that these structures +can be safely used as they were designed. .SH NOTES .I socklen_t is also defined in -- 2.40.0
