fcntl: stub F_GETLK64

This commit is contained in:
Matheus
2026-06-17 23:11:13 -03:00
parent fdbc3585f3
commit 29bae6bda1
+2
View File
@@ -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;