svn commit: r195911 - head/sys/compat/freebsd32

John Baldwin jhb at FreeBSD.org
Mon Jul 27 16:03:05 UTC 2009


Author: jhb
Date: Mon Jul 27 16:03:04 2009
New Revision: 195911
URL: http://svn.freebsd.org/changeset/base/195911

Log:
  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)

Modified:
  head/sys/compat/freebsd32/freebsd32_misc.c

Modified: head/sys/compat/freebsd32/freebsd32_misc.c
==============================================================================
--- head/sys/compat/freebsd32/freebsd32_misc.c	Mon Jul 27 15:32:18 2009	(r195910)
+++ head/sys/compat/freebsd32/freebsd32_misc.c	Mon Jul 27 16:03:04 2009	(r195911)
@@ -1416,8 +1416,8 @@ freebsd32_semsys(struct thread *td, stru
     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, stru
     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, stru
 		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:


More information about the svn-src-head mailing list