aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/linux/linux_dummy.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove the Alpha specific linuxolator files.Alexander Leidinger2006-05-081-79/+0
| | | | Notes: svn path=/head/; revision=158360
* Remove some dummy functions, we have corresponding real ones now.Alexander Leidinger2006-03-211-3/+0
| | | | Notes: svn path=/head/; revision=156973
* MFi386: Use the BSD madvise() syscall implementation for Linux binaryBruce M Simpson2004-03-291-1/+0
| | | | | | | | | emulation, instead of treating it as an unimplemented syscall. Requested by: marcel Notes: svn path=/head/; revision=127553
* Use __FBSDID().David E. O'Brien2003-06-101-2/+3
| | | | Notes: svn path=/head/; revision=116158
* Fix typo in the BSD copyright: s/withough/without/Jens Schweikhardt2002-06-021-1/+1
| | | | | | | | Spotted and suggested by: des MFC after: 3 weeks Notes: svn path=/head/; revision=97748
* Implement linux_chown and linux_lchown. The fchown syscall mapsMarcel Moolenaar2001-10-161-2/+0
| | | | | | | | | | directly to the native syscall, because no filename handling needs to be done. Tested by: Martin Blapp <mb@imp.ch> Notes: svn path=/head/; revision=85022
* Add a wrapper for linux_getsid -> getsid Syscall.Michael Reifenberger2001-09-151-1/+0
| | | | Notes: svn path=/head/; revision=83503
* Round of cleanups and enhancements. These include (in random order):Marcel Moolenaar2001-09-081-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Introduce private types for use in linux syscalls for two reasons: 1. establish type independence for ease in porting and, 2. provide a visual queue as to which syscalls have proper prototypes to further cleanup the i386/alpha split. Linuxulator types are prefixed by 'l_'. void and char have not been "virtualized". o Provide dummy functions for all syscalls and remove dummy functions or implementations of truely obsolete syscalls. o Sanitize the shm*, sem* and msg* syscalls. o Make a first attempt to implement the linux_sysctl syscall. At this time it only returns one MIB (KERN_VERSION), but most importantly, it tells us when we need to add additional sysctls :-) o Bump the kenel version up to 2.4.2 (this is not the same as the KERN_VERSION MIB, BTW). o Implement new syscalls, of which most are specific to i386. Our syscall table is now up to date with Linux 2.4.2. Some highlights: - Implement the 32-bit uid_t and gid_t bases syscalls. - Implement a couple of 64-bit file size/offset bases syscalls. o Fix or improve numerous syscalls and prototypes. o Reduce style(9) violations while I'm here. Especially indentation inconsistencies within the same file are addressed. Re-indenting did not obfuscate actual changes to the extend that it could not be combined. NOTE: I spend some time testing these changes and found that if there were regressions, they were not caused by these changes AFAICT. It was observed that installing a RH 7.1 runtime environment did make matters worse. Hangs and/or reboots have been observed with and without these changes, so when it failed to make life better in cases it doesn't look like it made it worse. Notes: svn path=/head/; revision=83221
* Remove dummy stub functions.Jonathan Lemon2001-02-161-2/+0
| | | | Notes: svn path=/head/; revision=72539
* Don't auto-generate the syscalls.Marcel Moolenaar2000-12-031-1/+1
| | | | Notes: svn path=/head/; revision=69539
* use DUMMY macro and support from linux_util.hAndrew Gallatin2000-11-011-15/+1
| | | | Notes: svn path=/head/; revision=68213
* Move the linux abi's alpha md files over to using David's build-timeAndrew Gallatin2000-11-011-1/+1
| | | | | | | syscall generation method Notes: svn path=/head/; revision=68212
* Apply style(9).David E. O'Brien2000-11-011-2/+2
| | | | Notes: svn path=/head/; revision=68177
* Minimal set of diffs from the i386 bits to the AlphaLinux.David E. O'Brien2000-11-011-29/+3
| | | | | | | (based on a patch to sys/i386/linux/linux_dummy.c by gallatin) Notes: svn path=/head/; revision=68176
* A start at an implemention of linux_rt_sendsig & linux_rt_sigreturnAndrew Gallatin2000-10-171-1/+0
| | | | | | | | | | | | | | | | | and associated user-level signal trampoline glue. Without this patch, an SA_SIGINFO style handler can be installed by a linux app, but if the handler accesses its sip argument, it will get a garbage pointer and likely segfault. We currently supply a valid pointer, but its contents are mainly garbage. Filling this in properly is future work. This is the second of 3 commits that will get IBM's JDK 1.3 working with FreeBSD ... Notes: svn path=/head/; revision=67234
* Revert implementation of setfsuid and setfsgid due to securityMarcel Moolenaar2000-07-201-0/+2
| | | | | | | | | | issues. Requested by: rwatson Backed by: kris Notes: svn path=/head/; revision=63605
* Implement pread and pwrite.Marcel Moolenaar2000-07-171-2/+0
| | | | | | | | PR: 17991 Submitted by: Geoffrey Speicher <geoff@caribbean.sea-incorporated.com> Notes: svn path=/head/; revision=63285
* Implement setfsuid and setfsgid. Implementation derived from patchMarcel Moolenaar2000-07-161-2/+0
| | | | | | | | | | in PR. PR: 16993 Submitted by: Bjoern Groenvall <bg@sics.se> Notes: svn path=/head/; revision=63280
* Regen after pointing to the real setres[ug]id(). Remove dummy function.Peter Wemm2000-01-291-2/+0
| | | | | | | | (Note: getres[ug]id is still a dummy as it returns via pointers to a different sized integer and does need real wrappers.) Notes: svn path=/head/; revision=56808
* Update syscalls to Linux kernel 2.3.38. These syscalls areMarcel Moolenaar2000-01-101-0/+7
| | | | | | | implemented as dummies to ease problem solving. Notes: svn path=/head/; revision=55784
* Implement linux_sigaltstack.Marcel Moolenaar1999-11-301-1/+0
| | | | Notes: svn path=/head/; revision=53954
* Implement linux_ustat.Marcel Moolenaar1999-11-271-1/+0
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=53758
* Implement fdatasync in terms of fsync. The regeneration of proto.h,Marcel Moolenaar1999-11-261-1/+0
| | | | | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master. Notes: svn path=/head/; revision=53713
* sigset_t change (part 4 of 5)Marcel Moolenaar1999-09-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- The compatibility code and/or emulators have been updated: iBCS2 now mostly uses the older syscalls. SVR4 now properly handles all signals. This has been achieved by using the new sigset_t throughout the emulator. The Linuxulator has been severely updated. Internally the new Linux sigset_t is made the default. These are then mapped to and from the new FreeBSD sigset_t. Also, rt_sigsuspend has been implemented in the Linuxulator. Implementing this syscall basicly caused all this sigset_t changing in the first place and the syscall has been used throughout the change as a means for testing. It basicly is too much work to undo the implementation so that it can later be added again. A special note on the use of sv_sigtbl and sv_sigsize in struct sysentvec: Every signal larger than sv_sigsize is not translated and is passed on to the signal handler unmodified. Signals in the range 1 upto and including sv_sigsize are translated. The rationale is that only the system defined signals need to be translated. The emulators also have been updated so that the translation tables are only indexed for valid (system defined) signals. This change also fixes the translation bug already in the SVR4 emulator. Notes: svn path=/head/; revision=51793
* Implement linux_ioperm() syscall. Fix linux_iopl() to use the level argument.Luoqi Chen1999-09-221-1/+0
| | | | | | | | | SVGAlib should now work. Reviewed by: marcel Notes: svn path=/head/; revision=51569
* Implementation of the modify_ldt syscall. Use the sysarch() interface to doMarcel Moolenaar1999-09-021-1/+0
| | | | | | | | | | the actual work. When USER_LDT is not defined for a kernel, sysarch returns EOPNOTSUPP. Display a message in that case and return ENOSYS to userland. Reviewed by: luoqi Notes: svn path=/head/; revision=50818
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fix lingo: 'is not implemented or obsoleted' is not the same as 'is obsoletedMarcel Moolenaar1999-08-251-2/+2
| | | | | | | or not implemented'. Notes: svn path=/head/; revision=50348
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-251-4/+33
| | | | | | | | | | | | | | | know if and when an unimplemented or obsoleted syscall is being used. Make the message more end-user friendly. And as long as we're here, rename some unimplemeted syscalls (linux_phys -> linux_umount2, linux_vm86 -> linux_vm86old, linux_new_vm86 -> linux_vm86). Change prototype for linux_newuname from `struct linux_newuname_t *' into `struct linux_new_utsname *'. This change is reflected in linux.h and linux_misc.c. Notes: svn path=/head/; revision=50345
* Major rewrite.Marcel Moolenaar1999-08-151-235/+46
| | | | | | | | | | | | | | | | | | | | The first reason for this rewrite is KNF conformance. The second reason is to avoid redundancy. Each function printed the same string, with only the syscall name being different. The actual printing is now performed by a single function, which gets the syscall name as an argument. The third reason is that of convenience. It's now very easy to add a new dummy implementation. Just add ``DUMMY(foo);'' to the file. It's also a lot easier now to see if a syscall has a dummy implementation or not. The dummies are ordered on syscall number. Please maintain this when adding new dummies (there're 32 candidates at the time of writing :-) Reviewed by: bde Notes: svn path=/head/; revision=49850
* Reviewed by: Luoqi Chen, Jordan HubbardJulian Elischer1998-12-191-8/+1
| | | | | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours. Notes: svn path=/head/; revision=41931
* Move the "retval" (3rd) parameter from all syscall functions and putPoul-Henning Kamp1997-11-061-36/+36
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=30994
* Implement linux_iopl and linux_nice.KATO Takenori1997-10-291-15/+1
| | | | Notes: svn path=/head/; revision=30837
* Removed unused #includes.Bruce Evans1997-07-201-3/+1
| | | | Notes: svn path=/head/; revision=27557
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Mega-commit for Linux emulator update.. This has been stress tested underPeter Wemm1996-03-021-62/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netscape-2.0 for Linux running all the Java stuff. The scrollbars are now working, at least on my machine. (whew! :-) I'm uncomfortable with the size of this commit, but it's too inter-dependant to easily seperate out. The main changes: COMPAT_LINUX is *GONE*. Most of the code has been moved out of the i386 machine dependent section into the linux emulator itself. The int 0x80 syscall code was almost identical to the lcall 7,0 code and a minor tweak allows them to both be used with the same C code. All kernels can now just modload the lkm and it'll DTRT without having to rebuild the kernel first. Like IBCS2, you can statically compile it in with "options LINUX". A pile of new syscalls implemented, including getdents(), llseek(), readv(), writev(), msync(), personality(). The Linux-ELF libraries want to use some of these. linux_select() now obeys Linux semantics, ie: returns the time remaining of the timeout value rather than leaving it the original value. Quite a few bugs removed, including incorrect arguments being used in syscalls.. eg: mixups between passing the sigset as an int, vs passing it as a pointer and doing a copyin(), missing return values, unhandled cases, SIOC* ioctls, etc. The build for the code has changed. i386/conf/files now knows how to build linux_genassym and generate linux_assym.h on the fly. Supporting changes elsewhere in the kernel: The user-mode signal trampoline has moved from the U area to immediately below the top of the stack (below PS_STRINGS). This allows the different binary emulations to have their own signal trampoline code (which gets rid of the hardwired syscall 103 (sigreturn on BSD, syslog on Linux)) and so that the emulator can provide the exact "struct sigcontext *" argument to the program's signal handlers. The sigstack's "ss_flags" now uses SS_DISABLE and SS_ONSTACK flags, which have the same values as the re-used SA_DISABLE and SA_ONSTACK which are intended for sigaction only. This enables the support of a SA_RESETHAND flag to sigaction to implement the gross SYSV and Linux SA_ONESHOT signal semantics where the signal handler is reset when it's triggered. makesyscalls.sh no longer appends the struct sysentvec on the end of the generated init_sysent.c code. It's a lot saner to have it in a seperate file rather than trying to update the structure inside the awk script. :-) At exec time, the dozen bytes or so of signal trampoline code are copied to the top of the user's stack, rather than obtaining the trampoline code the old way by getting a clone of the parent's user area. This allows Linux and native binaries to freely exec each other without getting trampolines mixed up. Notes: svn path=/head/; revision=14331
* Completed function declarations and added prototypes.Bruce Evans1995-11-221-3/+4
| | | | | | | | | Removed some unnecessary #includes. Fixed warnings about nested externs. Notes: svn path=/head/; revision=12458
* First incarnation of our Linux emulator or rather compatibility code.Søren Schmidt1995-06-251-0/+316
This first shot only incorporaties so much functionality that DOOM can run (the X version), signal handling is VERY weak, so is many other things. But it meets my milestone number one (you guessed it - running DOOM). Uses /compat/linux as prefix for loading shared libs, so it won't conflict with our own libs. Kernel must be compiled with "options COMPAT_LINUX" for this to work. Notes: svn path=/head/; revision=9313