manu
78583a4567
Always define SA_SIGINFO, and keep track of it in SVR4 emulation. This is
...
needed for IRIX signal delivery.
Approved by Christos.
2002-04-12 17:37:30 +00:00
christos
10ecebd46a
implement getdents64; my full java tree builds now.
2002-04-10 18:19:34 +00:00
christos
7e9e73a53c
regen
2002-04-10 18:19:04 +00:00
christos
db952e86f3
add getdents64
2002-04-10 18:18:26 +00:00
itojun
9998fd3a57
revert previous
2002-04-10 09:53:01 +00:00
itojun
7aef2b4e07
make it compile (missing includes)
2002-04-10 09:37:51 +00:00
christos
ca4d90ffa1
Fix compile problem.
2002-04-08 14:51:29 +00:00
christos
b10c779726
#ifdef __alpha__ pal functions.
2002-04-08 14:51:18 +00:00
christos
bd432c1642
PR/16236: Joachim Koenig-Baltes: Linux emulation connect requires IPV6.
...
Apparently the sockaddr len fix was only compiled when IPV6 was enabled.
2002-04-08 14:00:31 +00:00
christos
866ad0f73f
PR/16231: Ben Harris: m68k does not compile.
2002-04-08 13:27:37 +00:00
manu
fb46073720
backed out the irix_siginfo field name change: we need different field names
...
to avoid collision with svr4_siginfo #define si_signo _info._signo and
friends.
2002-04-06 22:58:43 +00:00
manu
8e8b498d9c
Changed irix_siginfo field names to make them closer to svr4 names (and to
...
original IRIX names too)
2002-04-06 18:08:31 +00:00
christos
e9c4f70b2f
use lsi_ like all other linux emulations.
2002-04-04 22:17:29 +00:00
tron
d09c25ca9a
Set default kernel version of Linux emulation to 2.4.18 on the i386 port.
...
It has been successfully tested using SuSE 7.3 libraries and binaries with
many applications.
2002-04-04 09:32:11 +00:00
christos
cb483bd247
make this compile on archs that don't define linux signals.
2002-04-03 17:18:21 +00:00
christos
f28b55d327
provide missing types for arch's that don't have specific linux_types.h
2002-04-03 17:13:32 +00:00
christos
aa3369abe2
don't bail out if we don't have an arch/siginfo.h because we are being used
...
from userland.
2002-04-03 17:02:12 +00:00
tron
9121bc2ec4
Fix a cut and paste error in the emulation of getresgid(2): it returned
...
the effective user id as effective group id.
2002-04-03 14:28:36 +00:00
fvdl
221107a13b
Use shmat1(), and tell it to find removed segments.
2002-04-03 11:54:37 +00:00
fvdl
7fc44e13a8
Allocate the right size for the native gid_t array in setgroups16.
2002-04-03 10:17:01 +00:00
christos
fa33d13de9
Don't blow up if we don't have a machine dependend linux_signal.h.
...
kdump includes linux_signo.c
2002-04-02 23:25:07 +00:00
christos
eda21311fd
save/restore fs and gs; this should be pulled up.
2002-04-02 22:32:16 +00:00
manu
4bca6e2fd0
Added fsync
2002-04-02 20:29:52 +00:00
jdolecek
ee37f0c738
rename sysctl_linux() to linux_sysctl() and hook it into emul_linux
2002-04-02 20:23:43 +00:00
manu
062e23b4e2
Added IRIX fcntl(F_GETBSDLK) and fcntl(F_GETBSDLKW)
2002-04-02 19:58:38 +00:00
manu
456cced40e
Removed one debug line that was committed by mistake
2002-04-01 15:45:16 +00:00
manu
a98e52cc55
Added code to handle FPU and signal stack for IRIX signal delivery
...
(copied from the native version, not tested yet)
2002-04-01 13:42:36 +00:00
christos
840887afee
bring the reverse signal mapping array into linux_signo.c
2002-03-31 22:40:16 +00:00
christos
ac29fb3782
make signal array handling uniform, and put signal arrays in a separate
...
file. This is simular to errno array handling.
2002-03-31 22:22:43 +00:00
christos
018a4082cc
- #undef DPRINTF for files that are included from other files.
...
- more debugging for socketcalls
- fix sa_len if AF_INET; somehow we get passed 28 instead of 16?
2002-03-29 20:49:40 +00:00
kent
dad83731c1
pecoff_misc.c: Remove compat functions.
...
pecoff_sys*.[ch]: regen
2002-03-29 17:04:46 +00:00
christos
c9e808f0ee
1. fill in the ldt.sd_xx field, for total compat with linux.
...
2. in setregs, use gdt's instead of ldt's because linux wants to play with
all the ldts. Apparently linuxthreads uses ldt's to allocate space for
pthread_t's.
2002-03-29 17:01:49 +00:00
kent
e6ef08a13e
Exclude all compat syscalls.
2002-03-29 17:00:43 +00:00
manu
4a466c8fec
Added proper locks when calling uvm_swap_stats()
2002-03-29 09:06:54 +00:00
manu
2dd126f08e
Fixed the swap block size problem: the swap block size as used in struct
...
swapent, or as seen in userland, is dbtob(1), which turns to be 512 for all
arch for now.
In struct swapdev, there is another field for block size. This value is private
to uvm_swap.c and is only used for swap I/O on regular files. It is equal to
the underlying device block size and it is not necessarily 512.
2002-03-28 18:45:28 +00:00
manu
9278164721
- now reports accurate swap object size with swapctl(SWAP_STATS)
...
- Added two more swapctl commands: GETFREESWAP and GETSWAPVIRT.
There is a problem in the way swap block size are found here. See comment
in get_block_size().
2002-03-28 13:14:42 +00:00
manu
2ad173ef3f
Added syssgi(SETSID)
2002-03-28 12:59:35 +00:00
manu
50ac30b510
- now return real values in the rminfo system accounting structure. Theses
...
are not 100% accurate, but it should be okay for most programs
- fix a bug: we were doing the copyout of the struct on failure, not success
2002-03-28 10:37:46 +00:00
manu
5c37c50788
Use irix_sys_sigprocmask instead of svr4_sys_sigprocmask to make use
...
of the SETMASK32 command.
2002-03-28 10:36:14 +00:00
manu
fff388471d
Added the SETMASK32 command for sigprocmask(2). This is equivalent to
...
SETMASK except that the upper 32 bits are left untouched
2002-03-26 22:59:32 +00:00
manu
58537aa4d9
Fixed a typo in DEBUG_IRIX code
2002-03-26 16:58:56 +00:00
manu
a4085df772
- Uses p->p_stats->p_ru instead of p->P_ru to get ressource usage, since
...
p->p_ru sometime happens to be equal to 0xdeadbeef.
- added more debug output.
2002-03-26 16:38:12 +00:00
manu
a0fa2e7fa5
Added support for sysmp system accounting structures. Only real memory info
...
is defined yet, but it returns zeroes (will be fixed later).
2002-03-26 10:54:40 +00:00
manu
2ccdf1d7ec
Added truncate(2), ftruncate(2), truncate64() and ftruncate64(), the two latter
...
being untested yet.
2002-03-26 10:52:52 +00:00
manu
76084f5561
Added syssgi(PATHCONF), which implements pathconf(2), and syssgi(SETPGID)
...
which implements setpgid(2).
2002-03-25 20:42:50 +00:00
manu
0e9d73c741
Added support for IRIX kernel var emulation in kmem (not functionnal yet)
2002-03-25 18:43:59 +00:00
kent
d92d45e16c
Move a variable `emul_pecoff' to new file.
2002-03-25 06:44:46 +00:00
bjh21
99ba40c188
arm26->acorn26 transition.
2002-03-24 15:49:38 +00:00
jdolecek
bbee4277ca
fd_revoke(): don't assume that f_type other DTYPE_VNODE and DTYPE_SOCKET
...
is automatically bogus, make the code return EINVAL for all non-vnode
descriptors
2002-03-24 15:32:51 +00:00
jdolecek
4cfe9dc1f6
use FILE_USE()/FILE_UNUSE() as appropriate, use malloc()/free()
...
instead of MALLOC()/FREE() for variable-size allocations (sync
with kern/sys_generic.c)
XXX not tested
2002-03-24 15:19:24 +00:00