summaryrefslogtreecommitdiff
path: root/sys/compat/linux
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.3.0_cvscvs2svn2001-04-2115-15/+15
| | | | | | | 'RELENG_4_3_0_RELEASE'. This commit was manufactured to restore the state of the 4.3-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC: fix linux_times() on alphaAndrew Gallatin2001-03-281-0/+5
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=74899
* MFC: translate the flags in recvfrom and recvmsg from linux to bsd onesAssar Westerlund2001-03-041-2/+69
| | | | | | | | linux_socket.h: 1.1 linux_socket.c: 1.25 Notes: svn path=/stable/4/; revision=73462
* MFC: correct test ordering for first EISCONN.Jonathan Lemon2001-03-021-1/+1
| | | | Notes: svn path=/stable/4/; revision=73354
* MFC: r1.26; correct linux connect() emulation.Jonathan Lemon2001-03-011-51/+21
| | | | Notes: svn path=/stable/4/; revision=73289
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-12-231-0/+52
| | | | Notes: svn path=/stable/4/; revision=70319
* MFC: fix a reversed commentAndrew Gallatin2000-11-221-1/+1
| | | | Notes: svn path=/stable/4/; revision=69054
* MFC: use linux_connect() on alphaAndrew Gallatin2000-11-221-1/+9
| | | | Notes: svn path=/stable/4/; revision=69048
* MFC rev 1.43: Fix linux_getdents syscall.Marcel Moolenaar2000-11-081-1/+4
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=68476
* Remove a stay include.David E. O'Brien2000-11-031-1/+0
| | | | | | | Approved by: JKH Notes: svn path=/stable/4/; revision=68282
* MFC: allow AlphaLinux compat bits to build.David E. O'Brien2000-11-0210-52/+197
| | | | | | | Approved by: JKH Notes: svn path=/stable/4/; revision=68265
* I took rev 1.55, when I should have taken rev 1.53.David E. O'Brien2000-11-011-2/+2
| | | | Notes: svn path=/stable/4/; revision=68198
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-10-191-0/+403
| | | | Notes: svn path=/stable/4/; revision=67319
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-10-081-0/+1529
| | | | Notes: svn path=/stable/4/; revision=66835
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-08-282-0/+2024
| | | | Notes: svn path=/stable/4/; revision=65163
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-08-255-0/+798
| | | | Notes: svn path=/stable/4/; revision=65079
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-08-234-0/+1869
| | | | Notes: svn path=/stable/4/; revision=65026
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-07-271-0/+95
| | | | Notes: svn path=/stable/4/; revision=63904
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-1312-7178/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* Fix bug in linux_wait4 and linux_waitpid where garbage in the statusMarcel Moolenaar2000-03-091-0/+2
| | | | | | | | | | | argument could panic the kernel. Submitted by: Ian Dowse <iedowse@maths.tcd.ie> Prompted by: jkh, gallatin Approved by: prompters Notes: svn path=/head/; revision=57867
* Implement Linux BLKGETSIZE ioctl, and open the door to implementingNick Sayer2000-03-092-0/+42
| | | | | | | | | other BLK.* ioctls should the desire arize. Approved by: jkh (via dufault) Notes: svn path=/head/; revision=57858
* Fix accept(2) behavior in that accepted sockets don't inherit theMarcel Moolenaar2000-02-281-1/+20
| | | | | | | | | | | | | | | parents flags. Note on the PR: The PR contains another patch that's not being committed without further background information. The PR stays open for now. PR: 16946 (Victor A. Salaman <salaman@teknos.com>) Prompted by: msmith Indirect/implicit approval: jkh (shoot me if I'm wrong :-) Notes: svn path=/head/; revision=57564
* Avoid passing an uninitialized structure member to the realNick Sayer2000-02-011-0/+1
| | | | | | | | | | READSUBCHANNEL ioctl. This makes vmware work with SCSI CDROM drives. Approved by: jkh Notes: svn path=/head/; revision=56940
* Return Linux kernel version 2.2.12 by default. This is in lineMarcel Moolenaar2000-01-101-1/+1
| | | | | | | with linux_base-6.1. Notes: svn path=/head/; revision=55771
* Convert the filesystem type returned in struct statfs by syscallsMarcel Moolenaar2000-01-081-2/+51
| | | | | | | | | | | linux_statfs and linux_fstatfs. Linux binaries testing this expect the filesystem's magic number and not our vnode's tag. PR: 15425 Tested by: Vladimir N. Silyaev <vsilyaev@mindspring.com> Notes: svn path=/head/; revision=55629
* Introduce NDFREE (and remove VOP_ABORTOP)Eivind Eklund1999-12-153-1/+20
| | | | Notes: svn path=/head/; revision=54655
* Remove unused includes.Marcel Moolenaar1999-12-101-2/+0
| | | | | | | Found by: phk-scan Notes: svn path=/head/; revision=54399
* Fix LINT breakage.Archie Cobbs1999-12-051-1/+1
| | | | Notes: svn path=/head/; revision=54152
* Implement pluggable ioctl handlers.Marcel Moolenaar1999-12-043-987/+1623
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=54122
* Implement linux_sigaltstack.Marcel Moolenaar1999-11-301-11/+47
| | | | Notes: svn path=/head/; revision=53954
* add linuxulator wrapper for SNDCTL_DSP_GETODELAYAlfred Perlstein1999-11-291-0/+4
| | | | Notes: svn path=/head/; revision=53902
* Implement linux_ustat.Marcel Moolenaar1999-11-271-3/+56
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=53758
* Implement fdatasync in terms of fsync. The regeneration of proto.h,Marcel Moolenaar1999-11-261-0/+11
| | | | | | | | syscall.h and sysent.h was probably forgotten after the last change syscalls.master. Notes: svn path=/head/; revision=53713
* simplify check for device.Poul-Henning Kamp1999-11-081-1/+1
| | | | Notes: svn path=/head/; revision=53009
* Use fo_stat() rather than Yet Another duplication of kern_descrip.c's statPeter Wemm1999-11-081-15/+1
| | | | | | | code. Notes: svn path=/head/; revision=52986
* useracc() the prequel:Poul-Henning Kamp1999-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. Notes: svn path=/head/; revision=52635
* Fix the duplicate filenames that are the result of using getdents.Marcel Moolenaar1999-10-211-1/+1
| | | | | | | | | | | | | | glibc2 defines struct dirent differently than the Linux kernel does. The getdents function therefore needs to read a heuristically defined number of kernel dirents to satisfy the request. In case where too many kernel dirents have been read, the function lseeks on the directory so that a next call will start with the right dirent. The offset used in lseeking is the offset-field in the last dirent passed to the application. This can only mean that the offset-field holds the offset of the next dirent and not the offset of the dirent itself. Notes: svn path=/head/; revision=52421
* Swap IOC_OUT and IOC_IN for the SETDIR macro. The linux ioctl read andJohn Hay1999-10-061-1/+1
| | | | | | | | | write bits are swapped. Reviewed by: luoqi, marcel Notes: svn path=/head/; revision=51969
* sigset_t change (part 4 of 5)Marcel Moolenaar1999-09-292-276/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- 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
* This patch clears the way for removing a number of tty relatedPoul-Henning Kamp1999-09-251-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags Notes: svn path=/head/; revision=51654
* Linux doesn't complain if you remove a msg queue that doesn't existMarcel Moolenaar1999-09-231-1/+3
| | | | | | | (given the proper permissions). Notes: svn path=/head/; revision=51602
* Implement linux_ioperm() syscall. Fix linux_iopl() to use the level argument.Luoqi Chen1999-09-221-6/+25
| | | | | | | | | SVGAlib should now work. Reviewed by: marcel Notes: svn path=/head/; revision=51569
* This is what was "fdfix2.patch," a fix for fd sharing. It's prettyBrian Feldman1999-09-192-22/+20
| | | | | | | | | | | | | | | | | | | | far-reaching in fd-land, so you'll want to consult the code for changes. The biggest change is that now, you don't use fp->f_ops->fo_foo(fp, bar) but instead fo_foo(fp, bar), which increments and decrements the fp refcount upon entry and exit. Two new calls, fhold() and fdrop(), are provided. Each does what it seems like it should, and if fdrop() brings the refcount to zero, the fd is freed as well. Thanks to peter ("to hell with it, it looks ok to me.") for his review. Thanks to msmith for keeping me from putting locks everywhere :) Reviewed by: peter Notes: svn path=/head/; revision=51418
* Fix getcwd. It must return the length of the path including the terminating 0.Marcel Moolenaar1999-09-171-6/+19
| | | | | | | | | While I'm here, fix style and debug printf. Fix derived from patch by: Darryl Okahata <darrylo@sr.hp.com> Notes: svn path=/head/; revision=51348
* <machine/soundcard.h> -> <sys/soundcard.h>, since it's an exported APIPeter Wemm1999-09-041-1/+1
| | | | | | | that's arch neutral and OSS API and Linux API compatable. Notes: svn path=/head/; revision=50903
* I missed the namechange of field desc in struct i386_ldt_args into descs whileMarcel Moolenaar1999-09-031-2/+2
| | | | | | | | | reviewing luoqi's changes... Pointed out by: luoqi Notes: svn path=/head/; revision=50833
* Implementation of the modify_ldt syscall. Use the sysarch() interface to doMarcel Moolenaar1999-09-021-0/+84
| | | | | | | | | | 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
* Fix a braino: Linux minor device numbers are 8 bits wide and not 10.Marcel Moolenaar1999-08-291-1/+1
| | | | Notes: svn path=/head/; revision=50558
* Fix a missing '-1' in the size argument of copyout in getgroups. Spotted whileMarcel Moolenaar1999-08-291-6/+6
| | | | | | | reviewing the MFC in -stable. Notes: svn path=/head/; revision=50546
* Implement the OSS_GETVERSION ioctl. The version returned can be changed throughMarcel Moolenaar1999-08-281-0/+8
| | | | | | | | | | the sysctl variable `compat.linux.oss_version'. PR: 12917 Originator: Dean Lombardo <dlombardo@excite.com> Notes: svn path=/head/; revision=50500