Kernel+LibC: Add linger to sys/sockets.h
Also adds SO_BROADCAST in UnixTypes.h to match sys/sockets.h. Required by bash 5.1.8.
This commit is contained in:
parent
6eb3bfb171
commit
e3b588a43d
Notes:
sideshowbarker
2024-07-18 07:47:28 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/commit/e3b588a43d0 Pull-request: https://github.com/SerenityOS/serenity/pull/9089 Reviewed-by: https://github.com/linusg ✅
2 changed files with 9 additions and 0 deletions
|
@ -522,6 +522,8 @@ enum {
|
|||
SO_BINDTODEVICE,
|
||||
SO_KEEPALIVE,
|
||||
SO_TIMESTAMP,
|
||||
SO_BROADCAST,
|
||||
SO_LINGER,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
|
|
@ -79,6 +79,11 @@ struct ucred {
|
|||
gid_t gid;
|
||||
};
|
||||
|
||||
struct linger {
|
||||
int l_onoff;
|
||||
int l_linger;
|
||||
};
|
||||
|
||||
#define SOL_SOCKET 1
|
||||
#define SOMAXCONN 128
|
||||
|
||||
|
@ -95,6 +100,7 @@ enum {
|
|||
SO_KEEPALIVE,
|
||||
SO_TIMESTAMP,
|
||||
SO_BROADCAST,
|
||||
SO_LINGER,
|
||||
};
|
||||
#define SO_RCVTIMEO SO_RCVTIMEO
|
||||
#define SO_SNDTIMEO SO_SNDTIMEO
|
||||
|
@ -108,6 +114,7 @@ enum {
|
|||
#define SO_BROADCAST SO_BROADCAST
|
||||
#define SO_SNDBUF SO_SNDBUF
|
||||
#define SO_RCVBUF SO_RCVBUF
|
||||
#define SO_LINGER SO_LINGER
|
||||
|
||||
enum {
|
||||
SCM_TIMESTAMP,
|
||||
|
|
Loading…
Add table
Reference in a new issue