fvdl
54450b21c0
Don't pass through link(2) directly, as we need to do altpath checks.
2000-12-29 20:09:39 +00:00
fvdl
11156e7e47
Add all uid and gid calls, and do the right thing for the older 16 bit
...
ones.
2000-12-27 22:02:41 +00:00
fvdl
8839755950
Update for 32 bit Linux uid/gid calls.
2000-12-18 14:36:35 +00:00
augustss
b907acd3fd
Add sysinfo.
2000-12-13 21:41:46 +00:00
jdolecek
405a6ce62f
actually, we need to wrap sys_truncate() call so that the /emul/linux/...
...
path is tried first
fix ftruncate64 entry - first arg to ftruncate is int fd, not path
2000-12-12 22:23:02 +00:00
jdolecek
daff00c255
add emulation of Linux truncate64(2), ftruncate64(2), *stat64(2)
2000-12-12 19:01:59 +00:00
jdolecek
c557c9f0f9
add more unimplemented syscalls to list
2000-12-09 12:23:35 +00:00
mycroft
9682cf0b09
Add the %% separators.
2000-12-09 05:27:28 +00:00
jdolecek
1acf11b550
add emulation of linux swapoff(2)
2000-12-02 16:43:50 +00:00
jdolecek
058a5a87bd
replace compat_09_sys_setdomainname() with linux_sys_setdomainname(),
...
compat_12_sys_swapon() with linux_sys_swapon() - this is to drop dependency
on COMPAT_12/COMPAT_09
2000-12-01 21:02:55 +00:00
jdolecek
27d3e13121
support mlockall(), munlockall() - they are same as respective NetBSD syscalls
2000-11-01 20:38:49 +00:00
christos
303ab3ee07
add support for syscall 186 [sigaltstack]
2000-08-23 16:59:51 +00:00
erh
f3ae1c7294
Use linux_sys_reboot instead of sys_reboot.
2000-03-18 22:20:57 +00:00
abs
89c5ba9f00
Add Linux fsuid system calls - from Witold J. Wnuk in PR kern/9335
2000-02-03 10:02:59 +00:00
tron
0f4ddbec23
Incomplete but already working emulation of Linux's ptrace(2) for i386.
1999-12-12 00:00:16 +00:00
tron
ea2517e20d
Add proper stub code to make emulation of Linux's pread(2) and pwrite(2)
...
work. Fixes PR kern/8945 by Dave Sainty.
1999-12-05 21:24:28 +00:00
tron
8b5f9298fa
Consistently call signal number arguments "signum".
1999-12-04 22:14:14 +00:00
tron
9b451861b9
Add emulation for scheduler related syscalls. Although they are dummies
...
even under Linux the posix thread library for "glibc2" requires them.
1999-10-04 16:55:54 +00:00
tron
327a8cdf75
Add stime() to syscalls table.
1999-08-16 19:13:01 +00:00
thorpej
e0a6808cef
Emulate the Linux vfork(2) (which is like NetBSD's __vfork14(2)),
...
{get,set}resuid(2), and {get,set}resgid(2). Note a few more system
calls that we don't yet emulate.
1999-05-14 18:43:01 +00:00
thorpej
fa1c5fed1a
Emulate the Linux clone(2) system call.
1999-05-13 23:42:34 +00:00
abs
9c2ef08c3e
Since NetBSD has poll(), use it.
...
Linux oracle install now gets far enough that I want our DBA around to
see if we can finish the job.
1999-03-30 02:22:49 +00:00
tron
5b98b641a8
Add emulation for Linux "getcwd" syscall.
1999-03-27 01:10:56 +00:00
thorpej
e8a3256e7f
Add support for emulating the Linux pread(2) and pwrite(2) system calls;
...
just call the native NetBSD versions.
PR #7202 , Jaromir Dolecek <dolecek@ics.muni.cz>.
1999-03-23 03:00:51 +00:00
christos
8024779058
const poisoning
1999-02-09 20:37:00 +00:00
christos
35af069802
defopt COMPAT_43
1998-12-10 17:07:04 +00:00
christos
908291d2fe
Attempt to fix the mess.
1998-10-03 20:17:36 +00:00
erh
14b1e271b5
Move compat/linux/syscalls.master to i386. Add a few syscalls while I'm here.
1998-10-01 02:03:17 +00:00
mycroft
fb526e055c
Substantial signal handling changes:
...
* Increase the size of sigset_t to accomodate 128 signals -- adding new
versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
sys_sigpending() and sys_sigsuspend() into separate functions, and call them
from all the emulations rather than hard-coding everything. (Avoids uses
the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.
Note: Only code touched by the i386 port has been modified. Other ports and
emulations need to be updated.
1998-09-11 12:50:05 +00:00
perry
f15ade7552
enable nanosleep in linux emul, per pr-5906 from Soren S. Jorvang
1998-08-05 00:44:32 +00:00
mycroft
26c238db7d
Linux's getsid(2) does in fact return a pid, not a pointer.
1998-02-20 18:09:04 +00:00
thorpej
c0ef23f235
Change a comment to reflect new makesyscalls.sh behavior.
1998-02-19 00:41:12 +00:00
christos
7e8c979fa9
ostat -> stat43
1997-10-16 23:53:07 +00:00
mycroft
68fb837229
Fix a typo inherited from kern/syscalls.master.
1997-10-15 17:18:17 +00:00
mycroft
523d84775a
Emulate mremap(2) by returning ENOMEM for now. This should be sufficient for
...
realloc(3) and other uses. From Matthias Scheler in PR 3920.
1997-10-10 06:25:34 +00:00
thorpej
454c1df5f3
Use compat_12_sys_swapon().
1997-06-13 17:30:19 +00:00
augustss
bc5c0f6530
Add Linux nice() syscall.
1997-04-07 14:13:16 +00:00
fvdl
69761c2aa8
Update list of Linux syscalls and implement the ones that are likely to be
...
used and doable.
1996-05-20 01:59:09 +00:00
fvdl
2df1785997
msync, readv and writev were recently added to the Linux kernel; add them
...
to the emulation as well.
1995-12-18 14:35:08 +00:00
mycroft
9df1f90849
We don't need a private version of fork() here any more.
1995-12-09 04:01:42 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
fvdl
a396a097b7
Fix some bugs & typing problems.
1995-09-07 21:48:59 +00:00
fvdl
d308963c5d
Add a hook for MD ioctl calls, plus a couple of more changes to make
...
svgalib binaries work on the i386
1995-08-27 20:51:48 +00:00
fvdl
28d9d64235
Emulate some syscalls that appear in Linux 1.3: a select() with normal args,
...
getdents() and flock().
1995-08-23 20:17:28 +00:00
mycroft
9a0cd13442
Implement the old and older uname(2) calls.
1995-08-21 03:42:09 +00:00
mycroft
88b8e43a80
Rearrange #includes.
1995-08-14 01:27:43 +00:00
fvdl
83ed983d47
mkdir() has 2 arguments.. fixes PR 1248 (from Brad Spencer)
1995-07-24 06:35:28 +00:00
fvdl
fc7cfb5f0b
* Make Linux ELF binaries work. Lots of code duplication, but it will have to do
...
for now.
* Add a sanity check in linux_uselib
1995-06-11 14:56:47 +00:00
mycroft
2b0696ff3c
Add linux_modify_ldt(), if __i386__.
1995-05-06 18:16:35 +00:00
fvdl
623f1e3986
Handle Linux signal tramp code differently. Some changes because of the
...
now seperate Linux signal trampoline code. Add linux_sigreturn to
syscalls.master.
1995-04-07 22:23:22 +00:00