ross
69e20722b9
Emulate LINUX_TCFLSH with our TIOCFLUSH. Do some CSE.
2001-02-03 19:01:29 +00:00
fvdl
92bf89da0b
Oops, remove debugging printf.
2001-02-03 01:23:08 +00:00
fvdl
3d66a69335
For the read subchannel ioctl, don't mix up the data and address formats,
...
and always set the track to 0, like Linux does.
2001-02-03 01:17:38 +00:00
jdolecek
1b91de887e
use CHECK_ALT_SYMLINK() for lstat(2)
...
don't call stackgap_init() for pwrite(2) and pread(2), it's not necessary
2001-01-22 21:31:37 +00:00
jdolecek
13ca559d39
Use CHECK_ALT_SYMLINK() instead CHECK_ALT_EXISTS() where appropriate.
...
This addresses kern/11757.
2001-01-22 20:08:03 +00:00
manu
fe95c9c3de
Moved architecure dependent part of struct linux_termio to architecture
...
dependent header files.
2001-01-20 18:56:41 +00:00
manu
d5329fdce7
Cosmetic fix to move powerpc from "guesses" to "know values"
2001-01-19 12:35:47 +00:00
manu
e20b81421d
Added Linux errno mapping for powerpc
2001-01-19 12:27:13 +00:00
manu
083ffa3b67
Added support for powerpc Linux compatibility
2001-01-19 01:44:46 +00:00
manu
ac10cf6946
Added a linux_atexit_signature to match Linux statically linked ELF binaries. It
...
searches for a __libc_atexit ELF section, which is specific to Linux
2001-01-19 01:43:31 +00:00
manu
cac0b39302
Added Linux compatibility support for powerpc ports
2001-01-19 01:40:38 +00:00
jdolecek
34c8ae80da
constify
2001-01-18 20:28:15 +00:00
tv
e58532a4bf
No-op commit to force update to a non-"-kk" revision.
2001-01-18 17:47:58 +00:00
fvdl
07ca2a03bf
Correct copyright year.
2001-01-10 02:33:47 +00:00
fvdl
d772be168f
Declare linux_ioctl_blkio and call it from the main routine.
2001-01-10 02:28:38 +00:00
fvdl
da9e8a988d
Add some BLK* ioctl calls. Currently only the easy and useful ones
...
are implemented.
2001-01-10 02:28:01 +00:00
fvdl
3950869204
Set Linux version to 2.0.38 for now, until the clone + "real time signal"
...
problems are fixed.
2001-01-05 15:31:15 +00:00
fvdl
2d53941bd4
Hardcode what the linux uname() calls return (Linux 2.2.5 is the current
...
value). A few major applications check for this (like VMware), and
there is no other way to trick them. Needs a more generic solution
eventually.
2000-12-29 21:07:16 +00:00
fvdl
f90b2fc517
Avoid sign extension problem in offset.
2000-12-29 20:08:54 +00:00
fvdl
77765cf28f
Do alternate path checks for link(2).
2000-12-29 20:08:31 +00:00
fvdl
6f552a029f
Allow the EJUSTRETURN hack for PTIOCLINUX-passed through ioctl calls.
2000-12-29 20:07:53 +00:00
fvdl
62af6738b1
Use CHECK_ALT_* for chown and lchown, missed in my previous commit.
...
Get *id16 calls right; most can be passed through directly, but
some need the 16->32 check for -1 values.
2000-12-27 22:01:42 +00:00
fvdl
e60e785474
Don't do the syscall with modified ioctl command if we've successfully
...
done a 'passthrough' ioctl.
2000-12-22 23:41:16 +00:00
jdolecek
e9e91a0fb5
split off thread specific stuff from struct sigacts to struct sigctx, leaving
...
only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx
This addresses kern/10981 by Matthew Orgass.
2000-12-22 22:58:52 +00:00
fvdl
1a09a359eb
Add SIOCGIFBR and SIOCSIFBR (more for reference than anything, currently).
2000-12-22 11:24:43 +00:00
thorpej
f7a4dd48fd
Only include the 16-bit uid/gid stuff if on i386 or m68k. This is a
...
little ugly, but hey, so is Linux.
2000-12-21 20:19:22 +00:00
thorpej
e57273c82e
Only include the 16-bit chown/fchown/lchown stuff if on i386 or m68k.
...
This is a little ugly, but hey, so is Linux.
2000-12-21 20:15:53 +00:00
fvdl
b542c20c5b
Fix yet another typo.
2000-12-21 13:37:02 +00:00
fvdl
b76b718303
Fix another pasto.
2000-12-19 22:24:03 +00:00
fvdl
b7ffc98bf8
Fix pasto in previous.
2000-12-18 16:27:20 +00:00
fvdl
865e7b1375
Pass SIOC* calls that are done on devices (not sockets) through
...
without trying to interpret done, as is done on Linux. The device
will get them as PTIOCLINUX, with command and arg in the structure
passed in.
2000-12-18 14:46:36 +00:00
fvdl
8578d458e5
Define LINUX_SIOCDEVPRIVATE (currently not emulated for sockets).
2000-12-18 14:44:44 +00:00
fvdl
4d193ccde8
Add seperate entries for 16 bit uid/gid calls, so that border cases
...
like 0xffff can be handled better (not done yet).
2000-12-18 14:40:02 +00:00
mycroft
b29180b2ff
Tighten up the ELF signature checks, and actually look for the ABI tag added
...
in newer glibc versions.
2000-12-15 06:14:21 +00:00
augustss
ccf2c891cc
Implement sysinfo.
2000-12-13 21:41:23 +00:00
jdolecek
638d27777e
add linux_sys_truncate64()
2000-12-12 22:24:56 +00:00
jdolecek
daff00c255
add emulation of Linux truncate64(2), ftruncate64(2), *stat64(2)
2000-12-12 19:01:59 +00:00
jdolecek
f8d1770316
define EXEC_AOUT (if not defined) before including linux_syscallargs.h,
...
to get linux_sys_uselib() prototype
2000-12-12 17:52:56 +00:00
mycroft
f495cd9dc6
Introduce 2 new flags in types.h:
...
* __HAVE_SYSCALL_INTERN. If this is defined, e_syscall is replaced by
e_syscall_intern, which is called at key places in the kernel. This can be
used to set a MD syscall handler pointer. This obsoletes and replaces the
*_HAS_SEPARATED_SYSCALL flags.
* __HAVE_MINIMAL_EMUL. If this is defined, certain (deprecated) elements in
struct emul are omitted.
2000-12-11 05:28:59 +00:00
fvdl
a499e56944
Add some ioctls for harddisk, floppy disk and console handling.
...
Implement a few extra cdrom ioctl calls.
Make sure to correctly use FILE_USE and FILE_UNUSE.
2000-12-10 14:12:16 +00:00
fvdl
ec9b1e3f5e
The gist of the Linux _IOX definitions was the same for all platforms;
...
move it to the MI linux_ioctl.h and only leave the MD bits in the MD
header files.
Add defintions for linux_ioctl_hdio and linux_ioctl_fdio.
2000-12-10 14:08:48 +00:00
jdolecek
a6ca890142
always fill in e_syscall in respective emul_*; if the emulation doesn't
...
have it's own separated *_syscall() function, use syscall()
2000-12-09 12:38:23 +00:00
jdolecek
1acf11b550
add emulation of linux swapoff(2)
2000-12-02 16:43:50 +00:00
jdolecek
da1aefe9bf
if machdep define LINUX_MACHDEP_HAS_SEPARATED_SYSCALL is defined, put
...
linux_syscall() to emul_linux
define LINUX_MACHDEP_HAS_SEPARATED_SYSCALL for i386
2000-12-02 16:05:04 +00:00
jdolecek
445c16b759
implement linux_sys_setdomainname()/linux_sys_swapon(), using code
...
from compat_09_sys_setdomainname()/compat_12_sys_swapon().
2000-12-01 21:14:42 +00:00
jdolecek
b490742cef
if LINUX_MACHDEP_PASS_PPID_AND_EUID is defined for given arch, add
...
flags EMUL_GETPID_PASS_PPID|EMUL_GETID_PASS_EID to emul_linux
define this option for alpha
2000-12-01 20:31:13 +00:00
jdolecek
011229ffcb
make LKM safe
2000-12-01 18:16:54 +00:00
jdolecek
798f64c85b
put linux_sys_uselib() to separate file linux_uselib.c
2000-12-01 13:49:35 +00:00
jdolecek
01040d97a2
add e_path (emulation path) to struct emul, which replaces emulation-specific
...
*_emul_path variables
change macros CHECK_ALT_{CREAT|EXIST} to use that, 'root' doesn't need
to be passed explicitly any more and *_CHECK_ALT_{CREAT|EXIST} are removed
change explicit emul_find() calls in probe functions to get the emulation
path from the checked exec switch entry's emulation
remove no longer needed header files
add e_flags and e_syscall to struct emul; these are unsed and empty for now
2000-12-01 12:28:30 +00:00
jdolecek
73f3cd8c7e
LKMify
2000-11-29 21:51:49 +00:00