mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibC: Some compat fixes for GNU make.
This commit is contained in:
parent
f490ce0fb5
commit
e388808479
4 changed files with 24 additions and 5 deletions
14
LibC/fcntl.h
14
LibC/fcntl.h
|
@ -1,6 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
@ -54,4 +55,17 @@ __BEGIN_DECLS
|
|||
|
||||
int fcntl(int fd, int cmd, ...);
|
||||
|
||||
#define F_WRLCK 1
|
||||
#define F_UNLCK 2
|
||||
|
||||
#define F_SETLKW 7
|
||||
|
||||
struct flock {
|
||||
short l_type;
|
||||
short l_whence;
|
||||
off_t l_start;
|
||||
off_t l_len;
|
||||
pid_t l_pid;
|
||||
};
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue