From msagre@cactus.fi.uba.ar  Tue Dec 17 08:22:03 1996
Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108])
          by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA03370
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 17 Dec 1996 08:21:57 -0800 (PST)
Received: (from msagre@localhost) by cactus.fi.uba.ar (8.6.12/8.6.12) id NAA01561; Tue, 17 Dec 1996 13:20:38 -0300
Message-Id: <199612171620.NAA01561@cactus.fi.uba.ar>
Date: Tue, 17 Dec 1996 13:20:38 -0300
From: msagre@cactus.fi.uab.ar
Reply-To: msagre@cactus.fi.uab.ar
To: FreeBSD-gnats-submit@freebsd.org
Subject: ORACLE 7.3.2 running on FreeBSD 2.2-961014-SNAP
X-Send-Pr-Version: 3.2

>Number:         2233
>Category:       i386
>Synopsis:       emulation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 17 08:30:01 PST 1996
>Closed-Date:    Sat Mar 8 23:14:13 PST 1997
>Last-Modified:  Sat Mar  8 23:14:41 PST 1997
>Originator:     Miguel Angel Sagreras
>Release:        FreeBSD 2.2-961014-SNAP i386
>Organization:
Miguel A. Sagreras
  Facultad de ingenieria
Universidad de Buenos Aires

e-mail : msagre@cactus.fi.uba.ar
>Environment:

	Pentium 150MHz, 16 MB.

>Description:

	

In the IBCS2  semctl system call, the  last parameter arg is passed by
value, but in the FreeBSD semctl system call implementation, is passed
by  reference.   So  to  get ORACLE  7.3.2   running. I   modified the
ibcs2_ipc.c 

>How-To-Repeat:


	

>Fix:
	
	

This the modified code in file ibcs2_ipc.c.


#define IBCS2_SETVAL	8

.......


				return error;
			cvt_isemid2semid(isp, sp);
			SCARG(uap, a5) = (int)sp;
			return semsys(p, (struct semsys_args *)uap, retval);
		    }
		}
		case IBCS2_SETVAL:
		    {
			int *sp;
			caddr_t sg = stackgap_init();

			sp = stackgap_alloc(&sg, sizeof(*sp));
			*sp = (int) SCARG(uap, a5);
			SCARG(uap, a5) = (int *) sp;
			return semsys(p, (struct semsys_args *)uap, retval);
		    }
		    
		return semsys(p, (struct semsys_args *)uap, retval);


>Release-Note:
>Audit-Trail:

From: Nate Williams <nate@mt.sri.com>
To: msagre@cactus.fi.uab.ar
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: i386/2233: ORACLE 7.3.2 running on FreeBSD 2.2-961014-SNAP
Date: Tue, 17 Dec 1996 11:33:11 -0700 (MST)

 msagre@cactus.fi.uab.ar writes:
 > 
 > >Number:         2233
 > >Category:       i386
 > >Description:
 > 
 > In the IBCS2  semctl system call, the  last parameter arg is passed by
 > value, but in the FreeBSD semctl system call implementation, is passed
 > by  reference.   So  to  get ORACLE  7.3.2   running. I   modified the
 > ibcs2_ipc.c 
 ...
 > 
 > >Fix:
 > 	
 > 	
 > 
 > This the modified code in file ibcs2_ipc.c.
 
 Umm, I can't tell what you've done here.  Can you send a cdiff file that
 contains the differences between the original version and your new
 version?
 
 
 Nate
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Sat Mar 8 23:14:13 PST 1997 
State-Changed-Why:  
Fixed in rev 1.8 of ibcs2_ipc.c. 
>Unformatted:
