Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Dec 1996 13:20:38 -0300
From:      msagre@cactus.fi.uab.ar
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/2233: ORACLE 7.3.2 running on FreeBSD 2.2-961014-SNAP
Message-ID:  <199612171620.NAA01561@cactus.fi.uba.ar>
Resent-Message-ID: <199612171630.IAA04230@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         2233
>Category:       i386
>Synopsis:       emulation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 17 08:30:01 PST 1996
>Last-Modified:
>Originator:     Miguel Angel Sagreras
>Organization:
Miguel A. Sagreras
  Facultad de ingenieria
Universidad de Buenos Aires

e-mail : msagre@cactus.fi.uba.ar
>Release:        FreeBSD 2.2-961014-SNAP i386
>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);


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612171620.NAA01561>