mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Implement compat32 for old lseek, for the a.out binaries on amd64.
This commit is contained in:
parent
508462ed1b
commit
7181217886
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223166
@ -1416,6 +1416,19 @@ freebsd32_pwrite(struct thread *td, struct freebsd32_pwrite_args *uap)
|
||||
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
|
||||
freebsd32_lseek(struct thread *td, struct freebsd32_lseek_args *uap)
|
||||
{
|
||||
|
@ -89,7 +89,8 @@
|
||||
18 AUE_GETFSSTAT COMPAT4 { int freebsd32_getfsstat( \
|
||||
struct statfs32 *buf, long bufsize, \
|
||||
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); }
|
||||
21 AUE_MOUNT NOPROTO { int mount(char *type, char *path, \
|
||||
int flags, caddr_t data); }
|
||||
|
Loading…
Reference in New Issue
Block a user