diff options
author | peter <peter@FreeBSD.org> | 2007-07-04 23:06:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2007-07-04 23:06:43 +0000 |
commit | 6d9e6c677c1a7ef838878317c645098d31f598ff (patch) | |
tree | 9408818773e90c44481819af06a368ea9979e198 | |
parent | 01169f916d4aeac2869c5eb9173d27eaa7891023 (diff) | |
download | FreeBSD-src-6d9e6c677c1a7ef838878317c645098d31f598ff.zip FreeBSD-src-6d9e6c677c1a7ef838878317c645098d31f598ff.tar.gz |
Don't add the 'pad' argument to the mmap/truncate/etc syscalls.
Submitted by: kensmith
Approved by: re (kensmith)
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 2 | ||||
-rw-r--r-- | sys/compat/linux/linux_file.c | 1 | ||||
-rw-r--r-- | sys/i386/linux/linux_machdep.c | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index 9983e1f..7a7ce08 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -927,7 +927,6 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) bsd_args.len = linux_args->len; } bsd_args.pos = (off_t)linux_args->pgoff * PAGE_SIZE; - bsd_args.pad = 0; #ifdef DEBUG if (ldebug(mmap)) @@ -1153,7 +1152,6 @@ linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args) #endif sa.fd = args->fd; - sa.pad = 0; sa.length = args->length; return ftruncate(td, &sa); } diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 1989e19..5833b39 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -835,7 +835,6 @@ linux_ftruncate(struct thread *td, struct linux_ftruncate_args *args) } */ nuap; nuap.fd = args->fd; - nuap.pad = 0; nuap.length = args->length; return (ftruncate(td, &nuap)); } diff --git a/sys/i386/linux/linux_machdep.c b/sys/i386/linux/linux_machdep.c index 75ccd3e..72c1a33 100644 --- a/sys/i386/linux/linux_machdep.c +++ b/sys/i386/linux/linux_machdep.c @@ -778,7 +778,6 @@ linux_mmap_common(struct thread *td, struct l_mmap_argv *linux_args) bsd_args.len = linux_args->len; } bsd_args.pos = linux_args->pgoff; - bsd_args.pad = 0; #ifdef DEBUG if (ldebug(mmap)) @@ -1076,7 +1075,6 @@ linux_ftruncate64(struct thread *td, struct linux_ftruncate64_args *args) #endif sa.fd = args->fd; - sa.pad = 0; sa.length = args->length; return ftruncate(td, &sa); } |