summaryrefslogtreecommitdiffstats
path: root/sys/alpha/linux
Commit message (Collapse)AuthorAgeFilesLines
* Implement pread and pwrite.marcel2000-07-171-2/+0
| | | | | PR: 17991 Submitted by: Geoffrey Speicher <geoff@caribbean.sea-incorporated.com>
* Add prototypes for linux_pread and linux_pwrite.marcel2000-07-171-2/+4
| | | | | PR: 17991 Submitted by: Geoffrey Speicher <geoff@caribbean.sea-incorporated.com>
* Implement setfsuid and setfsgid. Implementation derived from patchmarcel2000-07-161-2/+0
| | | | | | | in PR. PR: 16993 Submitted by: Bjoern Groenvall <bg@sics.se>
* Fixed the return type for exit() and the args struct tag several NOPROTObde2000-05-091-2/+3
| | | | | | syscalls including exit(). These entries were unused, so the bugs had no effect, but the the args struct tag will be used to calculate sy_nargs correctly. exit() was wrong in all emulators.
* Add a version tag for the rtc port to depend on.peter2000-05-061-0/+2
|
* Fix #! script exec under linux emulation. If a script is exec'd from adillon2000-04-262-2/+57
| | | | | | | | | | program running under linux emulation, the script binary is checked for in /compat/linux first. Without this patch the wrong script binary (i.e. the FreeBSD binary) will be run instead of the linux binary. For example, #!/bin/sh, thus breaking out of linux compatibility mode. This solves a number of problems people have had installing linux software on FreeBSD boxes.
* Remove unneeded <sys/buf.h> includes.phk2000-04-181-1/+0
| | | | | Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes.
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. *
* Fix some style bugs. The long line is in a chunk of code that'snsayer2000-03-131-12/+12
| | | | | | being rewritten, though. Submitted by: bde
* Implement Linux BLKGETSIZE ioctl, and open the door to implementingnsayer2000-03-091-0/+19
| | | | | | other BLK.* ioctls should the desire arize. Approved by: jkh (via dufault)
* Regen after pointing to the real setres[ug]id(). Remove dummy function.peter2000-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.)
* Use the real setres[ug]id(2) rather than dummy stubs. Newer glibc'speter2000-01-291-4/+4
| | | | call this.
* Update syscalls to Linux kernel 2.3.38. These syscalls aremarcel2000-01-101-0/+7
| | | | implemented as dummies to ease problem solving.
* Update the syscalls to Linux kernel 2.3.38.marcel2000-01-101-0/+7
|
* Include <stddef.h> here so that <sys/assym.h> can be unpolluted.bde2000-01-081-1/+3
| | | | | Include <sys/param.h> before <sys/assym.h> in case any of the magic in the former is ever needed in the latter.
* Make offsetof equivalent with <stddef.h>. This paves the way formarcel2000-01-031-4/+4
| | | | | | further enhancements/reorganisations. Discussed with: bde
* Changed the type used to represent the user stack pointer from `long *'bde1999-12-271-6/+6
| | | | | | | | to `register_t *'. This fixes bugs like misplacement of argc and argv on the user stack on i386's with 64-bit longs. We still use longs to represent "words" like argc and argv, and assume that they are on the stack (and that there is stack). The suword() and fuword() families should also use register_t.
* Use genassym(1) and <sys/assym.h> to generate assembler symbols.marcel1999-12-231-18/+5
|
* Implement pluggable ioctl handlers.marcel1999-12-043-656/+738
| | | | | | | | | | | | | | | | | | | | | | | | Other modules can register and unregister ioctl handlers to extend the ioctls known by the Linuxulator. A recent application is the vmware port. The Linuxulator itself uses the new interface to register its handlers as well. Handlers for the following types of ioctls have been defined: cdrom console (=keyboard and VT handling) socket sound termio All ioctl related defines and declarations have been moved to a new file (linux_ioctl.h), except for the pluggable ioctl handler interface definition. While there, cleanup linux.h some more. linux.h and linux_ioctl.[ch] have been made to conform to style(9) as much as possible. Inspired and reviewed by: Vladimir N. Silyaev
* Implement linux_sigaltstack.marcel1999-11-302-1/+8
|
* Implement sigaltstack.marcel1999-11-301-1/+2
|
* add linuxulator wrapper for SNDCTL_DSP_GETODELAYalfred1999-11-291-0/+1
|
* Implement linux_ustat.marcel1999-11-271-1/+0
| | | | Reviewed by: bde
* Change prototype of linux_ustat.marcel1999-11-271-1/+2
|
* Implement fdatasync in terms of fsync. The regeneration of proto.h,marcel1999-11-261-1/+0
| | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master.
* Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for thephk1999-10-301-1/+2
| | | | | | | | | "rw" argument, rather than hijacking B_{READ|WRITE}. Fix two bugs (physio & cam) resulting by the confusion caused by this. Submitted by: Tor.Egge@fast.no Reviewed by: alc, ken (partly)
* useracc() the prequel:phk1999-10-291-1/+0
| | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument.
* Add a per-signal flag to mark handlers registered with osigaction, so weluoqi1999-10-111-11/+9
| | | | | | | | | | | | | | | can provide the correct context to each signal handler. Fix broken sigsuspend(): don't use p_oldsigmask as a flag, use SAS_OLDMASK as we did before the linuxthreads support merge (submitted by bde). Move ps_sigstk from to p_sigacts to the main proc structure since signal stack should not be shared among threads. Move SAS_OLDMASK and SAS_ALTSTACK flags from sigacts::ps_flags to proc::p_flag. Move PS_NOCLDSTOP and PS_NOCLDWAIT flags from proc::p_flag to procsig::ps_flag. Reviewed by: marcel, jdp, bde
* sigset_t change (part 4 of 5)marcel1999-09-294-97/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- 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.
* Implement linux_ioperm() syscall. Fix linux_iopl() to use the level argument.luoqi1999-09-222-3/+2
| | | | | | SVGAlib should now work. Reviewed by: marcel
* Implementation of the modify_ldt syscall. Use the sysarch() interface to domarcel1999-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
* Implement the OSS_GETVERSION ioctl. The version returned can be changed throughmarcel1999-08-281-0/+2
| | | | | | | the sysctl variable `compat.linux.oss_version'. PR: 12917 Originator: Dean Lombardo <dlombardo@excite.com>
* $Id$ -> $FreeBSD$peter1999-08-287-7/+7
|
* Fix lingo: 'is not implemented or obsoleted' is not the same as 'is obsoletedmarcel1999-08-251-2/+2
| | | | or not implemented'.
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysmarcel1999-08-252-5/+43
| | | | | | | | | | | | 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.
* Change all UNIMPL syscalls to STD and add them to linux_dummy. Now we alwaysmarcel1999-08-251-86/+87
| | | | | | | | | | | | | | 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. Lastly, make line-continuation and indentation more uniform.
* Implement vfork() syscall.marcel1999-08-161-2/+2
|
* Major rewrite.marcel1999-08-151-239/+50
| | | | | | | | | | | | | | | | | 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
* Provide wrappers for sched_{s|g}etscheduler. We need to convert the policymarcel1999-08-151-1/+6
| | | | | | | argument. PR: 12006 Originator: Jean-Claude MICHOT <jcmichot@teaser.fr>
* Provide wrappers for sched_{s|g}etscheduler. We need to convert the policymarcel1999-08-151-3/+4
| | | | | | argument. PR: 12006
* Extend the number of syscalls to include those present in Linux 2.2.10. Thesemarcel1999-08-141-1/+9
| | | | | are syscalls 183 to 190. Also implement syscall 183: linux_getcwd. This is needed to support a RH 6.0 environment.
* Implementation of linux_rt_sigaction and linux_rt_sigprocmask syscalls. Bothmarcel1999-08-141-1/+15
| | | | | | | | | | 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.
* Implementation of linux_rt_sigaction and linux_rt_sigprocmask syscalls. Thesemarcel1999-08-141-3/+9
| | | | syscalls are needed to support a RH 6.0 environment.
* Implementation of the CDROMSUBCHNL ioctl.marcel1999-08-131-1/+4
|
* Use a wrapper for the link syscall that does name translations.marcel1999-08-121-2/+2
| | | | | PR: 12749 Submitted by: Boris Nikolaus <boris@cs.tu-berlin.de>
* Do not map {s|g}etrlimit onto FreeBSD syscalls. The arguments don't match.marcel1999-08-111-1/+15
| | | | | | | | The linux syscalls translate the arguments first before invoking the FreeBSD native syscalls. PR: kern/9591 Originator: John Plevyak <jplevyak@inktomi.com>
* Do not map {s|g}etrlimit onto the FreeBSD syscalls. The arguments do notmarcel1999-08-111-5/+5
| | | | | | | match. PR: kern/9591 Originator: John Plevyak <jplevyak@inktomi.com>
* Implementation of TCXONC.marcel1999-07-171-2/+6
| | | | Reviewed by: bde
* Implement VT_RELDISP ioctlmarcel1999-07-081-1/+2
| | | | Submitted by: Kazutaka Yokota <yokota@FreeBSD.org>
* Rename struct members sa_siginfo. POSIX reserves identifiers startingcracauer1999-07-061-5/+5
| | | | | | | with sa_ when <signal.h> is included. They would conflict with the upcoming SA_SIGINFO implementation. Reviewed by: BDE
OpenPOWER on IntegriCloud