mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibC: added F_SETLK and SO_TYPE defs
This commit is contained in:
parent
3331098aee
commit
861eb8d295
Notes:
sideshowbarker
2024-07-19 07:03:34 +09:00
Author: https://github.com/edrochenski 🔰 Commit: https://github.com/SerenityOS/serenity/commit/861eb8d295b Pull-request: https://github.com/SerenityOS/serenity/pull/2054
2 changed files with 4 additions and 2 deletions
|
@ -96,7 +96,7 @@ int watch_file(const char* path, size_t path_length);
|
|||
#define F_RDLCK 0
|
||||
#define F_WRLCK 1
|
||||
#define F_UNLCK 2
|
||||
|
||||
#define F_SETLK 6
|
||||
#define F_SETLKW 7
|
||||
|
||||
struct flock {
|
||||
|
|
|
@ -41,6 +41,7 @@ __BEGIN_DECLS
|
|||
#define PF_LOCAL AF_LOCAL
|
||||
#define PF_UNIX PF_LOCAL
|
||||
#define PF_INET AF_INET
|
||||
#define PF_UNSPEC AF_UNSPEC
|
||||
|
||||
#define SOCK_TYPE_MASK 0xff
|
||||
#define SOCK_STREAM 1
|
||||
|
@ -76,11 +77,12 @@ struct ucred {
|
|||
|
||||
#define SO_RCVTIMEO 1
|
||||
#define SO_SNDTIMEO 2
|
||||
#define SO_KEEPALIVE 3
|
||||
#define SO_TYPE 3
|
||||
#define SO_ERROR 4
|
||||
#define SO_PEERCRED 5
|
||||
#define SO_REUSEADDR 6
|
||||
#define SO_BINDTODEVICE 7
|
||||
#define SO_KEEPALIVE 9
|
||||
|
||||
int socket(int domain, int type, int protocol);
|
||||
int bind(int sockfd, const struct sockaddr* addr, socklen_t);
|
||||
|
|
Loading…
Reference in a new issue