[haiku-development] I found axeld's sin...

  • From: "Alexander von Gluck IV" <kallisti5@xxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 08 Dec 2020 01:56:31 +0000

..._zero[24]

        Ha! Got you reading a really boring email.

Was working on Rust support, and noticed that Rust assumes sin_zero is 8 long 
on all operating systems.

Ours? 24. Since 2006
https://git.haiku-os.org/haiku/commit/headers/posix/netinet/in.h?id=5adca30a18617cc25bc50a9a12e2fe6539412ccb

Pretty much everyone else makes it 8. 

BeOS makes it 4:
https://github.com/jscipione/r5headers/blob/658992e8119e594307a874dfd80f8c4a67f28bd0/headers/be/net/socket.h#L58
 
(https://github.com/jscipione/r5headers/blob/658992e8119e594307a874dfd80f8c4a67f28bd0/headers/be/net/socket.h#L58)

Sooo.. anyone know why sin_zero is 24? Any reasons we can't adjust to 8 to be 
more "port friendly"?
Only asking because it has been like that for a long time :-)

 -- Alex

Other related posts: