aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
Commit message (Collapse)AuthorAgeFilesLines
* Use the correct types (size_t rather than int) for a couple of variablesJohn Baldwin2005-06-201-1/+2
| | | | | | | | | | passed to kernel_sysctl() to fix an unaligned exception on Alpha. This is not an MFC as the code in 5.x is very different. Reported by: Eric Millbrandt emillbrandt at coldhaus dot com Notes: svn path=/stable/4/; revision=147508
* MFC: Implement missing SOUND_MIXER_WRITE_RECSRC ioctl.Marcel Moolenaar2004-08-282-0/+5
| | | | | | | PR: 55290 Notes: svn path=/stable/4/; revision=134428
* FreeBSD-SA-04:13.linux:Colin Percival2004-06-301-10/+18
| | | | | | | | | MFC revision 1.116 of sys/compat/linux/linux_ioctl.c Approved by: so (des) Notes: svn path=/stable/4/; revision=131350
* Fix hostname determination from linux applications inside a jailAnton Berezin2004-03-231-1/+10
| | | | | | | | | (uname(2) used to return the host environment's hostname). Approved by: silence on emulation@ Notes: svn path=/stable/4/; revision=127330
* MFC: r1.56 (Prevent leaking fsid to non-root in linux compat).Eric Anholt2003-11-171-4/+14
| | | | Notes: svn path=/stable/4/; revision=122870
* MFC linux_misc.c 1.149, linux_uid16.c 1.12: Reject negative ngrp argumentsTim J. Robbins2003-10-222-2/+2
| | | | | | | | | in linux_setgroups() and linux_setgroups16(). Approved by: re (murray) Notes: svn path=/stable/4/; revision=121338
* MFC rev 1.109:Marcel Moolenaar2003-07-031-2/+4
| | | | | | | | | | Don't map LINUX_POSIX_VDISABLE to _POSIX_VDISABLE and vice versa for the VMIN and VTIME members of the c_cc array. PR: 23173 Notes: svn path=/stable/4/; revision=117189
* MFC: linux-compatibility DRM ioctl handler, removing the need for DRM_LINUXEric Anholt2003-05-012-0/+17
| | | | | | | option in building the DRM. Notes: svn path=/stable/4/; revision=114453
* MFC: fcntl64 fixesMax Khon2003-01-061-47/+43
| | | | Notes: svn path=/stable/4/; revision=108786
* MFC: 1.129Matthew N. Dodd2002-09-241-1/+5
| | | | | | | | | | | Pass flags to msync() accounting for differences in the definition of MS_SYNC on FreeBSD and Linux. Submitted by: Christian Zander <zander@minion.de> Approved by: re (jhb) Notes: svn path=/stable/4/; revision=103887
* MFC:Marcel Moolenaar2002-02-111-12/+43
| | | | | | | | o 1.82: reimplement linux_ifname() to match address translation. o 1.83: return all AF_INET addresses for SIOCGIFCONF. Notes: svn path=/stable/4/; revision=90519
* MFC: LEAP, support for Linux "acu" private ioctls, fix 802.11 RFMONDoug Ambrisko2002-02-071-0/+14
| | | | | | | | | | | gap problem, support for Home key, add support for multiple SSIDs via ifmedia and some minor bug fixes, install header files in /usr/include/dev/an and in general sync with -current. Reviewed by: imp, David Wolfskill <david@catwhisker.org> Notes: svn path=/stable/4/; revision=90347
* MFC: Linux/alpha uses the same BSDish return mechanism we do forAndrew Gallatin2002-02-031-0/+4
| | | | | | | | | getpid, getuid, getgid and pipe, since they bootstrapped from OSF/1 and never cleaned up. Switch to the native syscalls on alpha so that the above functions work. Notes: svn path=/stable/4/; revision=90151
* Partial MFC of rev. 1.79.Marcel Moolenaar2002-01-231-4/+12
| | | | | | | | | | | | | | The I/F renaming as performed by the SIOCGIFCONF ioctl() is now in sync with current. The linux_ifname interface function has not been removed (as done in 1.79) or changed (as done in 1.82) due to the 11th hour in the 4.5 release cycle. This is fine as the function is not used at all ATM and thus will not break anything. An MFC will happen shortly after 4.5 is safely out the door. Approved by: re Notes: svn path=/stable/4/; revision=89677
* MFC: rev 1.77Marcel Moolenaar2001-12-061-3/+9
| | | | Notes: svn path=/stable/4/; revision=87440
* MFC: Fix a few problems with ioctl translation that stopped VMwareIan Dowse2001-11-222-5/+61
| | | | | | | from working. Notes: svn path=/stable/4/; revision=86778
* MFC 1.30: Force length of sockaddr to match family.Marcel Moolenaar2001-11-071-2/+25
| | | | Notes: svn path=/stable/4/; revision=86173
* Mega MFC: This syncs-up the Linuxulator with -current and henceMarcel Moolenaar2001-11-0513-1599/+2594
| | | | | | | | | | allows Linux_base-7 to work properly. tested on alpha by: gallatin (thanks!) tested on i386 by: marcel (among others probably) Notes: svn path=/stable/4/; revision=86095
* MFC:Paul Saab2001-11-031-1/+1
| | | | | | | | | | | | - Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader tunable. - Change TUNABLE_*_FETCH to have a return value of 0 if the variable was not found or successfully converted and true otherwise. - Use vm_offset_t instead of caddr_t to fix a warning and remove two casts in kern_exec.c. Notes: svn path=/stable/4/; revision=85936
* fix typo in earlier MFC: len (uninitialized) is checked when lenusedAndrew Gallatin2001-10-301-1/+1
| | | | | | | | | | should be checked. I don't know how that snuck in there.. pointed out by: Daniel McRobb <dwm@caimis.com> PR: 31637 Notes: svn path=/stable/4/; revision=85728
* Speculatively add these files to the RELENG_4 branch so that peopleMarcel Moolenaar2001-10-212-36/+36
| | | | | | | can test the MFC candidate (see -emulation). Notes: svn path=/stable/4/; revision=85267
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-10-201-0/+289
| | | | Notes: svn path=/stable/4/; revision=85217
* MFC linux_getcwd --Andrew Gallatin2001-10-182-52/+28
| | | | | | | | If the cwd isn't cached (__getcwd() fails), the cwd is looked up inside the kernel. Notes: svn path=/stable/4/; revision=85116
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2001-09-162-0/+586
| | | | Notes: svn path=/stable/4/; revision=83545
* MFC: Add linux_sched_get_priority_max() and linux_sched_get_priority_min().Alan Cox2001-08-271-0/+56
| | | | | | | Approved by: re (jkh) Notes: svn path=/stable/4/; revision=82403
* Added the linux_sysinfo function to implement sysinfo(2).Jim Pirzyk2001-07-301-0/+77
| | | | | | | | | | | | | | | | | | | MFC'ed the following files from HEAD: 1.41 +2 -2 src/sys/i386/linux/syscalls.master 1.104 +77 -1 src/sys/compat/linux/linux_misc.c 1.29 +1 -2 src/sys/i386/linux/linux_dummy.c 1.43 +1 -1 src/sys/i386/linux/linux_proto.h 1.38 +0 -0 src/sys/i386/linux/linux_syscall.h 1.44 +1 -1 src/sys/i386/linux/linux_sysent.c PR: kern/27759 Submitted by: henrich@sigbus.com Reviewed by: marcel Approved by: marcel Notes: svn path=/stable/4/; revision=80600
* 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-1369-21348/+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
* Fix handling of svr4_sigsets, which are implemented in SysVR4 as a sequenceMark Newton2000-01-152-15/+51
| | | | | | | | | | | | | | | | | | | | | | | of 4 longs used as a bitmask. sv4r4_sigfillset has been broken for a while, probably since rev 1.5. This patch fixes SVR4_NSIG (i.e.: sets it to the actual number of signals, instead of the number of bits in the mask) because some SysVR4 clients honestly seem to care about whether bits in the signal mask are set for non-existant signals. Additionally, the svr4_sigfillset macro has been replaced by a fully fledged function, because the macro didn't actually work (it returned an all-ones mask, but we don't want that: we want 0's set where FreeBSD doesn't actually have a signal which is the same as an SysVR4 signal, for example). SysVR4 clients can now successfully ignore signals, although catching them remains problematic (see commit log message for rev1.13 of sys/i386/svr4/svr4_machdep.c for more info). Notes: svn path=/head/; revision=56046
* Remove some all-too-wordy debugging printsMark Newton2000-01-151-5/+0
| | | | Notes: svn path=/head/; revision=56045