From owner-freebsd-emulation Thu Sep 27 8:27:19 2001 Delivered-To: freebsd-emulation@freebsd.org Received: from tasogare.imasy.or.jp (tasogare.imasy.or.jp [202.227.24.5]) by hub.freebsd.org (Postfix) with ESMTP id 1F48D37B421 for ; Thu, 27 Sep 2001 08:27:16 -0700 (PDT) Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92]) by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id f8RFR7m31953; Fri, 28 Sep 2001 00:27:07 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Fri, 28 Sep 2001 00:27:04 +0900 (JST) Message-Id: <20010928.002704.07647057.iwasaki@jp.FreeBSD.org> To: marcel@xcllnt.net Cc: emulation@FreeBSD.org, iwasaki@jp.FreeBSD.org Subject: Re: Fix for linux_semctl - please test From: Mitsuru IWASAKI In-Reply-To: <20010926.140926.07647105.iwasaki@jp.FreeBSD.org> References: <20010925.175750.74756409.iwasaki@jp.FreeBSD.org> <20010925213133.A5791@athlon.pn.xcllnt.net> <20010926.140926.07647105.iwasaki@jp.FreeBSD.org> X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > > It seems that this change breaks Linux sysv syscalls (at least, i386 > > > version of linux_semctl()) and my Oracle 8.1.7 stopped working. > > > > Please try attached patch. > > Perfect! My Oracle8i is working again. Oops, sorry. My testing was incomplete. Now it should be perfect, I hope ;-) Index: linux_ipc.c =================================================================== RCS file: /home/ncvs/src/sys/compat/linux/linux_ipc.c,v retrieving revision 1.26 diff -u -r1.26 linux_ipc.c --- linux_ipc.c 26 Sep 2001 05:39:59 -0000 1.26 +++ linux_ipc.c 27 Sep 2001 15:19:31 -0000 @@ -227,7 +227,7 @@ /* Make sure the arg parameter can be copied in. */ unptr = stackgap_alloc(&sg, sizeof(union semun)); - bcopy(unptr, &args->arg, sizeof(union semun)); + bcopy(&args->arg, unptr, sizeof(union semun)); bsd_args.semid = args->semid; bsd_args.semnum = args->semnum; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message