mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
fcntl: stub F_GETLK64
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
#define F_SETFD 2
|
#define F_SETFD 2
|
||||||
#define F_GETFL 3
|
#define F_GETFL 3
|
||||||
#define F_SETFL 4
|
#define F_SETFL 4
|
||||||
|
#define F_GETLK64 5
|
||||||
#define F_SETLK64 6
|
#define F_SETLK64 6
|
||||||
#define F_SETLKW64 7
|
#define F_SETLKW64 7
|
||||||
#define F_DUPFD_CLOEXEC 1030
|
#define F_DUPFD_CLOEXEC 1030
|
||||||
@@ -59,6 +60,7 @@ syscallret_t syscall_fcntl(context_t *, int fd, int cmd, uint64_t arg) {
|
|||||||
if (ret.errno == 0)
|
if (ret.errno == 0)
|
||||||
ret.ret = flg ? FD_CLOEXEC : 0;
|
ret.ret = flg ? FD_CLOEXEC : 0;
|
||||||
break;
|
break;
|
||||||
|
case F_GETLK64:
|
||||||
case F_SETLK64:
|
case F_SETLK64:
|
||||||
case F_SETLKW64:
|
case F_SETLKW64:
|
||||||
ret.errno = 0;
|
ret.errno = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user