Enable emulation of the F_GETLK64, F_SETLK64, and F_SETLKW64
lock commands arguments to linux_fcntl64().
This commit is contained in:
parent
6f2df7152b
commit
aaaefc6b56
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99670
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user