diff options
author | Ed Rochenski <edrochenski@bytedown.com> | 2020-05-01 22:32:58 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-02 14:12:07 +0200 |
commit | 861eb8d295bc9fc7093f10b332a058c3db06943b (patch) | |
tree | c813909fe0db30793063a181ca634f6d9bc3d680 /Libraries/LibC | |
parent | 3331098aee05f1e27039b60fb7eb5cda01fffac1 (diff) | |
download | serenity-861eb8d295bc9fc7093f10b332a058c3db06943b.zip |
LibC: added F_SETLK and SO_TYPE defs
Diffstat (limited to 'Libraries/LibC')
-rw-r--r-- | Libraries/LibC/fcntl.h | 2 | ||||
-rw-r--r-- | Libraries/LibC/sys/socket.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Libraries/LibC/fcntl.h b/Libraries/LibC/fcntl.h index 8f447a3bb8..d56dae85f5 100644 --- a/Libraries/LibC/fcntl.h +++ b/Libraries/LibC/fcntl.h @@ -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 { diff --git a/Libraries/LibC/sys/socket.h b/Libraries/LibC/sys/socket.h index 528c409f7e..92c08d8652 100644 --- a/Libraries/LibC/sys/socket.h +++ b/Libraries/LibC/sys/socket.h @@ -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); |