1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Don't add the 'pad' argument to the mmap/truncate/etc syscalls.

Submitted by: kensmith
Approved by: re (kensmith)
This commit is contained in:
Peter Wemm 2007-07-04 23:06:43 +00:00
parent 5aa69f9c72
commit 79d5bdcca5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171216
3 changed files with 0 additions and 5 deletions

View File

@ -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);
}

View File

@ -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));
}

View File

@ -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);
}