summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_file.c
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2002-07-09 19:25:43 +0000
committerrobert <robert@FreeBSD.org>2002-07-09 19:25:43 +0000
commit14d150fb7b7b60fbf940f4bbca023bcf09d522d0 (patch)
tree4c0453cfd52442d976cbbdcb9ff2e4dfdc593d03 /sys/compat/linux/linux_file.c
parent0c368924ad16fb7e61de02f89ad341f63c914cb5 (diff)
downloadFreeBSD-src-14d150fb7b7b60fbf940f4bbca023bcf09d522d0.zip
FreeBSD-src-14d150fb7b7b60fbf940f4bbca023bcf09d522d0.tar.gz
Move the switch statement labels for the explicit 64-bit
command arguments into the correct function, linux_fcntl64(), and thus out of the scope of a compilation for the alpha platform. Requested by: obrien
Diffstat (limited to 'sys/compat/linux/linux_file.c')
-rw-r--r--sys/compat/linux/linux_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index 2ceb3d4..4f37d75 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -1036,7 +1036,6 @@ 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)
@@ -1053,7 +1052,6 @@ 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)
@@ -1065,7 +1063,6 @@ 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)
@@ -1103,6 +1100,7 @@ linux_fcntl64(struct thread *td, struct linux_fcntl64_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)
@@ -1119,6 +1117,7 @@ linux_fcntl64(struct thread *td, struct linux_fcntl64_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)
@@ -1130,6 +1129,7 @@ linux_fcntl64(struct thread *td, struct linux_fcntl64_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)
OpenPOWER on IntegriCloud