diff options
| author | Robert Drehmel <robert@FreeBSD.org> | 2002-07-09 15:57:12 +0000 |
|---|---|---|
| committer | Robert Drehmel <robert@FreeBSD.org> | 2002-07-09 15:57:12 +0000 |
| commit | aaaefc6b565bd8286264d80197aa15e74f2e2fbd (patch) | |
| tree | 85492bf4bee31594124f592bcad4d1835c4d7271 | |
| parent | 6f2df7152bca51eb6813270b4b9ff3717e6f6e3d (diff) | |
Notes
| -rw-r--r-- | sys/compat/linux/linux_file.c | 3 | ||||
| -rw-r--r-- | sys/i386/linux/linux.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 62ac252d48fe..2ceb3d4199d4 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -1036,6 +1036,7 @@ linux_fcntl(struct thread *td, struct linux_fcntl_args *args) switch (args->cmd) { case LINUX_F_GETLK: + case LINUX_F_GETLK64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); if (error) @@ -1052,6 +1053,7 @@ linux_fcntl(struct thread *td, struct linux_fcntl_args *args) sizeof(linux_flock))); case LINUX_F_SETLK: + case LINUX_F_SETLK64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); if (error) @@ -1063,6 +1065,7 @@ linux_fcntl(struct thread *td, struct linux_fcntl_args *args) return (fcntl(td, &fcntl_args)); case LINUX_F_SETLKW: + case LINUX_F_SETLKW64: error = copyin((caddr_t)args->arg, &linux_flock, sizeof(linux_flock)); if (error) diff --git a/sys/i386/linux/linux.h b/sys/i386/linux/linux.h index ac7f020780d9..c968bbf619f0 100644 --- a/sys/i386/linux/linux.h +++ b/sys/i386/linux/linux.h @@ -492,6 +492,10 @@ int linux_ioctl_unregister_handler(struct linux_ioctl_handler *h); #define LINUX_F_SETOWN 8 #define LINUX_F_GETOWN 9 +#define LINUX_F_GETLK64 12 +#define LINUX_F_SETLK64 13 +#define LINUX_F_SETLKW64 14 + #define LINUX_F_RDLCK 0 #define LINUX_F_WRLCK 1 #define LINUX_F_UNLCK 2 |
