thorpej
5051d1c544
Use PAGE_SIZE rather than NBPG.
2003-04-09 00:39:38 +00:00
jdolecek
1b18fee640
this info is now in doc/RESPONSIBLE
2003-04-06 10:13:07 +00:00
thorpej
d071d9a8d0
Use PAGE_SIZE rather than NBPG.
2003-04-01 15:02:05 +00:00
thorpej
d46b766d7d
Use PAGE_SIZE rather than NBPG.
2003-04-01 14:45:09 +00:00
dsl
60418b39b7
Change 'data' argument to fo_ioctl and fo_fcntl from 'caddr_t' to 'void *'.
...
Avoids a lot of casting and removes the need for some line breaks.
Removed a load of (caddr_t) casts from calls to copyin/copyout as well.
(approved by christos - he has a plan to remove caddr_t...)
2003-03-21 21:13:50 +00:00
dsl
9be8ac5294
Alternative pid/proc allocater, removes all searches associated with pid
...
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
dsl
dfdb668a2e
Reimplement linux_sys_setresgid() in terms of do_setresgid()
2003-03-05 18:46:11 +00:00
dsl
eabc565aaf
Use do_setresuid() to implement linux_sys_setresuid()
2003-03-05 18:44:46 +00:00
thorpej
5afa6838bf
Do the syscall_plain/syscall_fancy dance on ARM. Shaves a fair number
...
of cycles off the syscall overhead.
Since all COMPAT_LINUX platforms now support __HAVE_SYSCALL_INTERN,
garbage-collect the LINUX_SYSCALL_FUNCTION stuff.
2003-03-01 04:36:38 +00:00
yamt
da8d9f98f5
make compat_linux struct file interlock friendly.
2003-02-27 16:04:15 +00:00
enami
37d7d10857
Remember the allocated ptimer object so that it won't leak.
2003-02-23 23:36:35 +00:00
jdolecek
25d6f89a59
update emul alarm syscalls to recent timer changes
...
problem encountered by Luke Mewburn for linux emul, problem spot
found by Enami Tsugutomo
2003-02-19 11:23:53 +00:00
thorpej
39279e53b5
Merge the nathanw_sa branch.
2003-01-19 16:41:46 +00:00
thorpej
d88bc9c3a2
Regen for correct RCS ID.
2003-01-18 23:36:48 +00:00
thorpej
9509ca1682
Regen for correct RCS IDs.
2003-01-18 23:36:09 +00:00
thorpej
6f62ffcd13
Regen to get correct RCS IDs.
2003-01-18 23:34:34 +00:00
thorpej
a03cb2b851
Regen to get correct RCS ID.
2003-01-18 23:28:15 +00:00
jdolecek
79509d7602
LWPify
2003-01-18 21:26:36 +00:00
thorpej
41978f782e
Merge the nathanw_sa branch.
2003-01-18 21:21:28 +00:00
thorpej
9653eab062
Regen: Merge the nathanw_sa branch.
2003-01-18 08:07:52 +00:00
thorpej
3d60b73d4f
Merge the nathanw_sa branch.
2003-01-18 08:06:20 +00:00
thorpej
42f134e02f
Regen: Merge the nathanw_sa branch.
2003-01-18 08:05:32 +00:00
thorpej
46141a3135
Merge the nathanw_sa branch.
2003-01-18 08:02:46 +00:00
wiz
1035faff1d
writable, not writeable.
2003-01-06 20:30:28 +00:00
gmcgarry
53bdf646b5
Use yield() for voluntary context switches.
2002-12-22 00:00:22 +00:00
simonb
4ec8d15e0d
Use the already-filled-in-but-not-used native syscall args in
...
linux_sys_mknod().
2002-12-17 11:48:02 +00:00
tron
ad9b98744f
Include "uvm/uvm_param.h" to get definition of PAGE_MASK required for
...
last change.
2002-12-17 10:42:02 +00:00
christos
c0bc51eec5
Don't allow non-page-aligned offsets! So dumb. From Jason Ish, thanks.
2002-12-16 19:37:03 +00:00
jdolecek
0c7b52a284
linux_sys_mknod(): if creating device file (i.e. !fifo case), mask
...
the passed device number to only contain lower 16 bits; older glibc
appears to pass some junk in upper bits sometimes, resulting in incorrect
device entries being created
Problem initially analyzed by Thor Lancelot Simon.
2002-12-11 19:30:39 +00:00
junyoung
81ed087074
- Rename struct linux_ctx to linux_fpctx.
...
- KNF.
2002-12-08 11:20:22 +00:00
tron
96ece1f13e
Fix namespace collision caused by recent change to "linux_machdep.h".
2002-12-06 10:51:27 +00:00
junyoung
9104ddf809
Fix compile error.
2002-12-06 03:37:19 +00:00
christos
ef042d8e23
add a linux_rt_sigframe to support SA_SIGINFO, and use it when SA_SIGINFO
...
is requested. This appears to be how linuxthreads decides which signal handler
to use.
2002-12-06 00:02:59 +00:00
jdolecek
47cd9b85d6
Get the dynamic interpreter location using emul_find_interp(), so that
...
it checks both the alternative/emul tree, and the non-emul tree.
This makes it possible to run chrooted emulated binaries without need
to setup shadow /emul tree within the chroot hierarchy.
Only tested for COMPAT_LINUX, changes to other compat modules were
mechanical.
Fixes kern/19161 by Christian Groessler.
2002-11-29 19:13:14 +00:00
fvdl
6df30bca4f
Patch that actually works for previous, from Jaromir Dolecek.
2002-11-29 14:32:27 +00:00
itojun
02185dab0f
setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, 0) for AF_INET6 sockets,
...
to meet with the default behavior of linux.
review: fvdl/christos
XXX interactions with net.inet6.ip6.v6only?
2002-11-29 01:34:55 +00:00
itojun
e2a7bfda88
minor KNF (indent)
2002-11-28 23:46:15 +00:00
christos
116bcb05d0
rename: s/sa_/<compat>sa/g
2002-11-26 18:43:20 +00:00
christos
daa59d8957
rename sa_ -> linux_sa_
...
first attempt at providing siginfo_t to the signal handler.
2002-11-26 18:42:38 +00:00
schmonz
aee43321d1
Report ourselves as Linux 2.4.18 on powerpc, too.
2002-11-25 10:34:34 +00:00
thorpej
c8f5c657b5
Add ULL to a 64-bit integer constant.
2002-11-25 02:11:23 +00:00
jdolecek
2ca4879bd1
g/c also mips-specific linux ELF copyargs function prototype and
...
linux ELF defines, use generic Aux32Info instead
this also adresses kern/19047 by FUKAUMI Naoki
2002-11-21 15:32:32 +00:00
jdolecek
0a624a0c15
back previous off; port can only supply LINUX_ELF_AUX_ENTRIES if it also
...
overrides the ELF copyargs function
2002-11-21 15:20:28 +00:00
jdolecek
3590104898
g/c local definition of LINUX_ELF_AUX_ENTRIES
2002-11-21 15:18:37 +00:00
wdk
b0fb4471b2
Fix LINUX_ELF_AUX_ENTRIES sociability issue with Mips based ports
2002-11-15 22:44:57 +00:00
jdolecek
6788e239e4
we now export information about CLK_TCK via ELF aux args, no need to
...
hardcode '100' for times(2) anymore; use 'hz' instead
2002-11-13 15:20:04 +00:00
jdolecek
cee43b67cc
add generic linux compat ELF copyargs function
...
this gives:
* linux sysconf(_SC_CLK_TCK) gives correct value for linux binaries (hz)
even if hz != 100
* glibc gets proper information on real/effective uid and enables
secure mode for suid binaries
g/c LINUX_COPYARGS_FUNCTION, replaced by linux ELF copyargs function
g/c alpha-specific linux ELF copyargs function and linux ELF defines
2002-11-13 15:16:27 +00:00
jdolecek
9def367548
need to use Aux32Info explicitly, not AuxInfo alone, to work
...
within context of kern/exec_conf.c
2002-11-13 14:35:15 +00:00
jdolecek
dc57bd5cb7
eliminate remaining LinuxAuxInfo
2002-11-13 13:42:06 +00:00
jdolecek
e97bb63dae
need to use LINUX_ELF_AUX_ENTRIES in LINUX_ELF_AUX_ARGSIZ
...
how this ever could have worked?
2002-11-13 13:40:51 +00:00