summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_sysi86.c
Commit message (Collapse)AuthorAgeFilesLines
* Convert files to UTF-8uqs2012-01-151-1/+1
|
* FreeBSD/i386 doesn't include a software FPU emulator anymore, so adjustjhb2009-02-231-3/+4
| | | | | an iBCS2 syscall to indicate that there is no FPU support at all rather than emulated support if an FPU is not present.
* Push down Giant inside sysctl. Also add some more assertions to the code.ed2008-12-291-6/+2
| | | | | | | | | | | | | | In the existing code we didn't really enforce that callers hold Giant before calling userland_sysctl(), even though there is no guarantee it is safe. Fix this by just placing Giant locks around the call to the oid handler. This also means we only pick up Giant for a very short period of time. Maybe we should add MPSAFE flags to sysctl or phase it out all together. I've also added SYSCTL_LOCK_ASSERT(). We have to make sure sysctl_root() and name2oid() are called with the sysctl lock held. Reviewed by: Jille Timmermans <jille quis cx>
* Sweep kernel replacing suser(9) calls with priv(9) calls, assigningrwatson2006-11-061-2/+0
| | | | | | | | | | | | | specific privilege names to a broad range of privileges. These may require some future tweaking. Sponsored by: nCircle Network Security, Inc. Obtained from: TrustedBSD Project Discussed on: arch@ Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri, Alex Lyashkov <umka at sevcity dot net>, Skip Ford <skip dot ford at verizon dot net>, Antoine Brodin <antoine dot brodin at laposte dot net>
* Lock Giant around a call to userland_sysctl() in ibcs2_sysi86().jhb2005-07-071-2/+7
| | | | Approved by: re (scottl)
* Add missing zero flag arguments to sysctl calls.phk2004-10-121-1/+1
| | | | Add missing pointy hat to peter@
* Use __FBSDID().obrien2003-06-021-2/+3
|
* SCARGS removal take II.alfred2002-12-141-4/+4
|
* Backout removal SCARGS, the code freeze is only "selectively" over.alfred2002-12-131-4/+4
|
* Remove SCARGS.alfred2002-12-131-4/+4
| | | | Reviewed by: md5
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-021-1/+1
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* KSE Milestone 2julian2001-09-121-5/+5
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Suser() simplification:phk1999-04-271-1/+1
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-281-1/+1
| | | | kernel compile
* Back out DIAGNOSTIC changes.eivind1998-02-061-2/+0
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-041-0/+2
|
* Move the "retval" (3rd) parameter from all syscall functions and putphk1997-11-061-2/+2
| | | | | | | | | | | | it in struct proc instead. This fixes a boatload of compiler warning, and removes a lot of cruft from the sources. I have not removed the /*ARGSUSED*/, they will require some looking at. libkvm, ps and other userland struct proc frobbing programs will need recompiled.
* Removed unused #includes.bde1997-07-201-2/+0
|
* Change the 'sysi86()' function not implemented' printf to be called onlynate1996-06-081-0/+2
| | | | | | | when compiled with -DDIAGNOSTIC. Almost all significant SCO binaries I've run call an unsupported function and run correctly. Given that they aren't needed, the messages only clutter up the logfiles and console.
* Removed unnecessary #includes of <sys/user.h>. Some of these were justbde1995-12-061-1/+0
| | | | | | | to get the definitions of TRUE and FALSE which happen to be defined in a deeply nested include. Added nearby #includes of <sys/conf.h> where appropriate.
* Change call to kern_sysctl to userland_sysctl. Not tested.phk1995-11-201-4/+6
|
* Sorry, the last commit screwed up for me, this is the right one (I hope!)phk1995-10-281-0/+1
| | | | Please refer to the previous commit message about sysctl variables.
* Remove old files no longer needed.swallace1995-10-101-13/+38
| | | | | | | | | | | | | | | | | | | | | Add new files created for emulator. Modify NetBSD import to work with FreeBSD and add new features and code. The complete emulator is essentially a combination of work/code implemented by Sean Eric Fagan, Soren Schmidt, Scott Bartram, and myself, Steven Wallace. Features of this new emulator system include: o "clean" code, including strict prototyping. o Auto-generation of ibcs2 system calls, xenix system calls, isc system calls. Generation includes system tables, structure definitions, and prototyping of function calls. o ibcs2 emulator does not rely on any COMPAT_43 system calls. o embedded socksys support o ibcs2 msgsys, semsys, shmsys calls supported if supported in kernel o alternate /emul/ibcs2 namespace searched first for files in ibcs2 system. Usefull to keep sysv libraries, binaries in /emul/ibcs2. o many other finer details and functions fixed or implemented.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* iBCS2 emulator core files.sos1994-10-141-0/+68
This is the main files for the iBCS2 emulator. It can be use compiled into the kernel by using: options IBCS2 options COMPAT_IBCS2 or as a lkm module using: options COMPAT_IBCS2 and then loading it via the ibcs2 script in /usr/bin REMEMBER: this code is still experimental ! NO WARRENTY ! Submitted by: sef@kithrup.com, mostyn@mrl.com, sos@kmd-ac.dk
OpenPOWER on IntegriCloud