aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_syscall.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Regen: Stop using linux_getpgid(). Use the native getpgid()Marcel Moolenaar2001-09-281-2/+2
| | | | | | | | | instead. PR: kern/21402 Notes: svn path=/head/; revision=84070
* Round of cleanups and enhancements. These include (in random order):Marcel Moolenaar2001-09-081-44/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Regen after adding linux_sched_get_priority_max() andAlan Cox2001-04-011-3/+3
| | | | | | | linux_sched_get_priority_min(). Notes: svn path=/head/; revision=75057
* Re-gen auto generated files.Jonathan Lemon2001-02-161-2/+2
| | | | Notes: svn path=/head/; revision=72540
* o Change the argument of linux_sigreturn to be a pointer to aMarcel Moolenaar2000-11-231-1/+1
| | | | | | | | | | | | | struct sigframe. We need more than only the signal context. o Properly convert the signal mask when setting up the signal frame in linux_sendsig and properly convert it back in linux_sigreturn. Do some cleanups and improve style while here. Notes: svn path=/head/; revision=69081
* Revert auto-generation. The Alpha port is broken.Marcel Moolenaar2000-11-101-0/+207
| | | | | | | Syncing with it is wrong. Notes: svn path=/head/; revision=68583
* Sync with Alpha:Marcel Moolenaar2000-11-091-207/+0
| | | | | | | | Do not use sysent.c, proto.h and syscall.h in source tree; use auto-generated versions. Notes: svn path=/head/; revision=68519
* regen after addition of linux_rt_sigreturnAndrew Gallatin2000-10-171-1/+1
| | | | Notes: svn path=/head/; revision=67235
* Regen. (Fix SYS_exit)Peter Wemm2000-07-291-2/+2
| | | | Notes: svn path=/head/; revision=64002
* Regenerate with makesyscalls.shPeter Wemm2000-07-291-2/+2
| | | | Notes: svn path=/head/; revision=63987
* Implement pread and pwrite.Marcel Moolenaar2000-07-171-1/+1
| | | | | | | | PR: 17991 Submitted by: Geoffrey Speicher <geoff@caribbean.sea-incorporated.com> Notes: svn path=/head/; revision=63285
* Regenerated (fixed the calculation of sy_nargs in sysent tables).Bruce Evans2000-05-091-1/+1
| | | | Notes: svn path=/head/; revision=60290
* Regen after pointing to the real setres[ug]id(). Remove dummy function.Peter Wemm2000-01-291-3/+3
| | | | | | | | (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-2/+9
| | | | | | | implemented as dummies to ease problem solving. Notes: svn path=/head/; revision=55784
* Implement linux_sigaltstack.Marcel Moolenaar1999-11-301-1/+1
| | | | Notes: svn path=/head/; revision=53954
* Implement linux_ustat.Marcel Moolenaar1999-11-271-1/+1
| | | | | | | 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/+1
| | | | | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master. Notes: svn path=/head/; revision=53713
* Regeneration.Luoqi Chen1999-09-221-1/+2
| | | | Notes: svn path=/head/; revision=51570
* Regen after Id->FreeBSDPeter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50482
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysMarcel Moolenaar1999-08-251-3/+31
| | | | | | | | | | | | | | | 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
* Implement linux_vfork() syscall by calling vfork(). Analogous to theMarcel Moolenaar1999-08-161-1/+2
| | | | | | | linux_fork() implementation. Notes: svn path=/head/; revision=49890
* Provide wrappers for sched_{s|g}etscheduler. We need to convert the policyMarcel Moolenaar1999-08-151-3/+3
| | | | | | | | | | argument. PR: 12006 Originator: Jean-Claude MICHOT <jcmichot@teaser.fr> Notes: svn path=/head/; revision=49849
* Implementation of the linux_getcwd syscall.Marcel Moolenaar1999-08-141-2/+3
| | | | Notes: svn path=/head/; revision=49788
* Implementation of linux_rt_sigaction and linux_rt_sigprocmask syscalls. BothMarcel Moolenaar1999-08-141-1/+3
| | | | | | | | | | | | | functions use the new sigset_t and sigaction_t which allows support for more than 32 signals. Only the lower 32 signals are supported for now. linux_rt_sigaction, linux_sigaction and linux_signal use linux_do_sigaction to do the actual work. That way unnecessary redundancy is avoided. The same has been done for linux_rt_sigprocmask and linux_sigprocmask. They call linux_do_sigprocmask to do the actual work. Notes: svn path=/head/; revision=49786
* Use a wrapper for the link syscall that does name translations.Marcel Moolenaar1999-08-121-2/+2
| | | | | | | | PR: 12749 Submitted by: Boris Nikolaus <boris@cs.tu-berlin.de> Notes: svn path=/head/; revision=49662
* Do not map {s|g}etrlimit onto FreeBSD syscalls. The arguments don't match.Marcel Moolenaar1999-08-111-3/+3
| | | | | | | | | | | The linux syscalls translate the arguments first before invoking the FreeBSD native syscalls. PR: kern/9591 Originator: John Plevyak <jplevyak@inktomi.com> Notes: svn path=/head/; revision=49626
* Commit #2 ofSøren Schmidt1998-12-301-3/+3
| | | | | | | | PR: 9235 Submitted by: marcel@scc.nl <Marcel Moolenaar> Notes: svn path=/head/; revision=42185
* The result of running make linux_sysent.c on the new syscalls.masterSøren Schmidt1998-12-221-1/+2
| | | | Notes: svn path=/head/; revision=41998
* The result of running make linux_sysent.c on the new syscall.master fileSøren Schmidt1998-12-211-1/+1
| | | | Notes: svn path=/head/; revision=41988
* Reviewed by: Luoqi Chen, Jordan HubbardJulian Elischer1998-12-191-1/+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
* Quick and dirty support for Linux's mremap. Not used by anythingJordan K. Hubbard1998-07-101-0/+1
| | | | | | | | | but quake2 AFAIK. Submitted by: Luoqi Chen <luoqi@watermarkgroup.com> Notes: svn path=/head/; revision=37548
* Updated generated files.Bruce Evans1998-06-091-1/+1
| | | | Notes: svn path=/head/; revision=36783
* regeneratePeter Wemm1998-03-291-3/+4
| | | | Notes: svn path=/head/; revision=34942
* Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B andPeter Dufault1998-03-281-1/+14
| | | | | | | | | | | | | | | | | | | _KPOSIX_PRIORITY_SCHEDULING options to work. Changes: Change all "posix4" to "p1003_1b". Misnamed files are left as "posix4" until I'm told if I can simply delete them and add new ones; Add _POSIX_PRIORITY_SCHEDULING system calls for FreeBSD and Linux; Add man pages for _POSIX_PRIORITY_SCHEDULING system calls; Add options to LINT; Minor fixes to P1003_1B code during testing. Notes: svn path=/head/; revision=34925
* Regenerate (fix argument of linux_nice).KATO Takenori1997-12-171-1/+1
| | | | Notes: svn path=/head/; revision=31796
* Regenerate (removed unused #includes in linux_sysent.c).Bruce Evans1997-04-091-1/+1
| | | | Notes: svn path=/head/; revision=24746
* Renerate (some include files were changed)Peter Wemm1997-03-291-1/+1
| | | | Notes: svn path=/head/; revision=24383
* update linux_times() and linux_utime() emulation,Peter Wemm1996-03-041-1/+1
| | | | | | | | fix sigsuspend() (actually back out my recent change there) and regen the syscall tables.. Notes: svn path=/head/; revision=14381
* Mega-commit for Linux emulator update.. This has been stress tested underPeter Wemm1996-03-021-0/+151
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