mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 07:18:30 +00:00
Cleanup socket code
This commit is contained in:
parent
a91ba89d85
commit
e06c90fafc
13 changed files with 108 additions and 94 deletions
|
@ -40,6 +40,14 @@ struct sockaddr_in { /* Linux+NT ABI */
|
|||
uint8_t sin_zero[8];
|
||||
};
|
||||
|
||||
struct sockaddr_storage {
|
||||
union {
|
||||
uint16_t ss_family;
|
||||
intptr_t __ss_align;
|
||||
char __ss_storage[128];
|
||||
};
|
||||
};
|
||||
|
||||
struct pollfd {
|
||||
int32_t fd;
|
||||
int16_t events;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue