Implement compat32 for old lseek, for the a.out binaries on amd64.

This commit is contained in:
Konstantin Belousov 2011-06-16 22:05:56 +00:00
parent 508462ed1b
commit 7181217886
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223166
2 changed files with 15 additions and 1 deletions

View File

@ -1416,6 +1416,19 @@ freebsd32_pwrite(struct thread *td, struct freebsd32_pwrite_args *uap)
return (pwrite(td, &ap)); return (pwrite(td, &ap));
} }
#ifdef COMPAT_43
int
ofreebsd32_lseek(struct thread *td, struct ofreebsd32_lseek_args *uap)
{
struct lseek_args nuap;
nuap.fd = uap->fd;
nuap.offset = uap->offset;
nuap.whence = uap->whence;
return (lseek(td, &nuap));
}
#endif
int int
freebsd32_lseek(struct thread *td, struct freebsd32_lseek_args *uap) freebsd32_lseek(struct thread *td, struct freebsd32_lseek_args *uap)
{ {

View File

@ -89,7 +89,8 @@
18 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \ 18 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \
struct statfs32 *buf, long bufsize, \ struct statfs32 *buf, long bufsize, \
int flags); } int flags); }
19 AUE_LSEEK OBSOL olseek 19 AUE_LSEEK COMPAT { int freebsd32_lseek(int fd, int offset, \
int whence); }
20 AUE_GETPID NOPROTO { pid_t getpid(void); } 20 AUE_GETPID NOPROTO { pid_t getpid(void); }
21 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \ 21 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \
int flags, caddr_t data); } int flags, caddr_t data); }