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
fvdl
faf1442285
Add the Linux pause() system call. Fix the arguments to sigsuspend().
1995-03-10 22:55:04 +00:00
fvdl
182c23c8bc
Added a few more system calls.
...
More consistent alternate root file semantics throughout.
1995-03-05 23:23:37 +00:00
fvdl
3bf459f350
Added Linux compat code.
1995-02-28 23:24:35 +00:00