LibC: added F_SETLK and SO_TYPE defs

This commit is contained in:
Ed Rochenski 2020-05-01 22:32:58 -04:00 committed by Andreas Kling
parent 3331098aee
commit 861eb8d295
Notes: sideshowbarker 2024-07-19 07:03:34 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -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 {

View file

@ -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);