1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00

Fix the freebsd32 versions of semsys(), shmsys(), and msgsys() to use the

old ABI versions of the relevant control system call (e.g.
freebsd7_freebsd32_msgctl() instead of freebsd32_msgctl() for msgsys()).

Approved by:	re (kib)
This commit is contained in:
John Baldwin 2009-07-27 16:03:04 +00:00
parent abd8353f5d
commit 8e3764c0a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=195911

View File

@ -1416,8 +1416,8 @@ freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap)
defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
switch (uap->which) {
case 0:
return (freebsd32_semctl(td,
(struct freebsd32_semctl_args *)&uap->a2));
return (freebsd7_freebsd32_semctl(td,
(struct freebsd7_freebsd32_semctl_args *)&uap->a2));
default:
return (semsys(td, (struct semsys_args *)uap));
}
@ -1580,8 +1580,8 @@ freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap)
defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
switch (uap->which) {
case 0:
return (freebsd32_msgctl(td,
(struct freebsd32_msgctl_args *)&uap->a2));
return (freebsd7_freebsd32_msgctl(td,
(struct freebsd7_freebsd32_msgctl_args *)&uap->a2));
case 2:
return (freebsd32_msgsnd(td,
(struct freebsd32_msgsnd_args *)&uap->a2));
@ -1751,12 +1751,12 @@ freebsd32_shmsys(struct thread *td, struct freebsd32_shmsys_args *uap)
return (sysent[SYS_shmget].sy_call(td, &ap));
}
case 4: { /* shmctl */
struct freebsd32_shmctl_args ap;
struct freebsd7_freebsd32_shmctl_args ap;
ap.shmid = uap->a2;
ap.cmd = uap->a3;
ap.buf = PTRIN(uap->a4);
return (freebsd32_shmctl(td, &ap));
return (freebsd7_freebsd32_shmctl(td, &ap));
}
case 1: /* oshmctl */
default: