abis/mlibc: Define additional networking related constants

options/glibc: Define additional ioctl constants

Signed-off-by: Dennisbonke <admin@dennisbonke.com>
This commit is contained in:
Dennisbonke 2020-09-04 02:11:35 +02:00
parent 90a0df83df
commit f012060a78
No known key found for this signature in database
GPG key ID: F456F05FBF825330
3 changed files with 16 additions and 5 deletions

View file

@ -20,6 +20,11 @@ struct msghdr {
unsigned int msg_flags;
};
struct sockaddr_storage {
sa_family_t ss_family;
char __padding[128 - sizeof(sa_family_t)];
};
#ifdef __cplusplus
}
#endif

View file

@ -87,10 +87,14 @@ struct ip_mreq {
#define IP_TTL 2
#define IP_OPTIONS 4
#define IP_MULTICAST_IF 32
#define IP_MULTICAST_TTL 33
#define IP_MULTICAST_LOOP 34
#define IP_ADD_MEMBERSHIP 35
#define IP_DROP_MEMBERSHIP 36
#define IP_MULTICAST_IF 32
#define IP_MULTICAST_TTL 33
#define IP_MULTICAST_LOOP 34
#define IP_ADD_MEMBERSHIP 35
#define IP_DROP_MEMBERSHIP 36
#define IP_ADD_SOURCE_MEMBERSHIP 39
#define IP_DROP_SOURCE_MEMBERSHIP 40
#define MCAST_JOIN_SOURCE_GROUP 46
#define MCAST_LEAVE_SOURCE_GROUP 47
#endif // _ABIBITS_IN_H

View file

@ -16,6 +16,8 @@ int ioctl(int fd, unsigned long request, ...);
#define FIONREAD 0x541B
#define FIONBIO 0x5421
#define FIONCLEX 0x5450
#define FIOCLEX 0x5451
#ifdef __cplusplus
}