summaryrefslogtreecommitdiff
path: root/sys/compat/linux
AgeCommit message (Collapse)Author
1999-12-06Regen.Aaron Campbell
1999-12-06Implement compatibility for Linux stime() syscall.Aaron Campbell
1999-11-26Use round_page(X) instead of roundup(X, NBPG), use PAGE_SIZE instead of NBPG.Artur Grabowski
1999-11-10include syscallnames only if compiling w/ SYSCALL_DEBUG.Michael Shalayeff
was already so for native and sunos, the rest was just wasting space on it. niels@ millert@ ok
1999-09-10include sys/exec.h before sys/exec_elf.hArtur Grabowski
1999-07-18TIOCM{GET,SET,BIS,BIC}, and TCXONC supportTheo de Raadt
1999-06-14avoid future register_t vs int problems, if this becomes 64 bitTheo de Raadt
1999-06-08better fd leak preventionTheo de Raadt
1999-06-08use sys_opipe(), but note the descriptor leakageTheo de Raadt
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
1999-02-10branding support and freebsd elfTheo de Raadt
1999-02-10more ioctl supportTheo de Raadt
1999-02-10IP_HDRINCL support, will need tweaking; freebsdTheo de Raadt
1999-02-10linux sendmsg/recvmsgTheo de Raadt
1999-02-10more socket/file ioctlTheo de Raadt
1999-02-10strncpy; edx trashing solution in sys_pipe(); freebsdTheo de Raadt
1999-02-10Correct directory entry reads, big directories lost entries as it were.Niklas Hallqvist
Also, fix the NCR SVR4 rdebug syscall emulation.
1999-01-11panic prints a newline for you, don't do it in the panic stringTodd C. Miller
1998-12-22range check signal [] conversionsTheo de Raadt
1998-07-28Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned ↵Todd C. Miller
(size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
1998-07-19no; linux connect() appears busted in blocking mode tooTheo de Raadt
1998-07-13oops; mwp@aba.net.auTheo de Raadt
1998-07-05fix netbsd bug; from boquist@cs.chalmers.seJason Downs
1998-07-04emulate shrinking in mremap(); boquist@cs.chalmers.seTheo de Raadt
1998-04-26use osscompat for audio emulation.Niels Provos
1998-04-26correct utimes() emulationTheo de Raadt
1998-04-25Aparently the socketpair bug is fixed in current Linux kernels soTodd C. Miller
back out my last change.
1998-04-25Linux has SHUT_RD and SHUT_WR reversed in the ``how'' argument. PresumablyTodd C. Miller
they will fix this sometime, after which this change should be backed out. Pointed out by tchrist@perl.com
1998-03-22correct a commentTodd C. Miller
1998-03-06Just alter the tag if it is not already setNiklas Hallqvist
1998-02-23GCC 2.8 -WallNiklas Hallqvist
1998-02-22Remember OS tag when running Linux or SVR4 ELF files. KNF.Niklas Hallqvist
1998-02-10recover from lint changes elsewhere, not completely testedTheo de Raadt
1998-02-07emulate linux connect() braindamage even better -- only do so on asyncTheo de Raadt
sockets; pb@fasterix.freenix.org
1998-01-23additional ioctls, makes workman and workbone working.Niels Provos
1997-12-20indentTheo de Raadt
1997-12-14support IP_HDRINCLTheo de Raadt
1997-12-10emulate set controlling tty ioctlNiels Provos
1997-12-10add GIFMETRIC and GIFMTUNiels Provos
1997-12-10syncTheo de Raadt
1997-12-10nanosleep emulationTheo de Raadt
1997-12-10emulate linux SIOCGIFHWADDR; stolen from freebsd; not tested yetTheo de Raadt
1997-12-10insert forgotten copyright + handle eject ioctl.Niels Provos
1997-12-07handle linux cdrom ioctls. not that i play quake that often but it wasNiels Provos
the only binary around.
1997-11-27oh, connect() semantics are EVEN WORSETheo de Raadt
1997-11-26enforce VM_PROT_READ in mmapTheo de Raadt
1997-11-26fix shmctl IPC_STATTheo de Raadt
1997-11-26If using async connect(), after select for writeable, if getpeername()Theo de Raadt
indicates connection failure, you can use getsockopt(SOL_SOCKET, SO_ERROR, ...) to find the error. But the linux people I guess didn't know about this, and changed connect() so that a 2nd connect() call on a failed socket returns the error directly. Fake this demented non-standard behaviour which Linux users are now starting to code to. Talk about dilution of the API...
1997-11-26indentTheo de Raadt
1997-11-13syncTheo de Raadt