manu
0a52064ba3
Do not implement exit_group() the right way on platforms that do not
...
define LINUX_NPTL yet, that cause firefox-bin to fail.
2006-06-26 07:42:00 +00:00
manu
ce7e36a5a9
Regen
2006-06-25 16:16:52 +00:00
manu
b7432513dc
- Complete exit_group() implementation. We now maintain a list of Linux
...
threads in a processes and kill them properly. The code is a bit too
complicated, but I could not find a simplier way of dealing with it
- Change getpid() and getppid() semantics to match what Linux does,
and implement gettid(). In the Linux kernel, threads are implemnted
as plain old processes. A thread group is just a set of processes,
with the parent called leader. Thread ID, which are returned by gettid(),
are just the PID of the plain old processes, and getpid() returns the
PID of the thread group leader.
- Remove struct linux32_emuldata. COMPAT_LINUX32 uses a lot of COMPAT_LINUX
code, where a struct linux_emuldata is assumed. By having distinct emuldata
structure with different sizes and layouts, we caused kernel memory
corruptions.
- Fix setprioriry() and getpriority()
Thanks to Nicolas Joly for tracking down the problem and providing me the
hardware to fix them.
2006-06-25 16:15:39 +00:00
yamt
bf0859e932
netbsd32_sacopyout: don't leak kernel stack garbage to userland.
2006-06-25 08:11:06 +00:00
oki
aab3cbfbad
Added saemul_pecoff structure, and (hope) work again w/ pthread.
2006-06-20 14:11:56 +00:00
christos
e6ea8fe642
Don't allocate too much stuff on the stack
2006-06-20 03:21:30 +00:00
he
ab1ad64ac0
Make this file compile again by using the appropriate types, casts
...
and functions.
2006-06-14 14:18:44 +00:00
he
fe98fdf977
Regenerate after fixing the getpriority syscall definition.
2006-06-13 22:24:34 +00:00
he
e100449f69
We need the argument structure for the getpriority syscall defined, so
...
change NOARGS to STD.
2006-06-13 22:23:03 +00:00
christos
9d7289ea69
change 20 to NZERO; pointed out by mrg.
2006-06-13 16:54:56 +00:00
skd
99e52fdeb8
include kauth.h
...
workaround a gcc4 warning.
2006-06-13 16:23:57 +00:00
simonb
5e13eca2c0
tvtohz() compat function isn't needed now we have timecounters.
2006-06-13 03:58:12 +00:00
christos
430ad9c2a9
don't allocate > 1K on the stack.
2006-06-13 02:31:28 +00:00
christos
48432186cb
stack police: don't allocate statvfs on the stack.
2006-06-12 00:46:50 +00:00
christos
155721b1be
don't allocate a crapload of struct's on the stack. Use a couple of unions
...
and use malloc for them.
2006-06-12 00:42:18 +00:00
christos
3f0deeffa7
stack police: don't allocate PAGE_SIZE bytes on the stack.
2006-06-12 00:07:24 +00:00
christos
9cfe87267e
PR/33671: Nicolas Joly: Add a getpriority syscall to account for the fact
...
that the linux getpriority is off by 20.
2006-06-10 21:18:11 +00:00
christos
ee08f35b9a
regen
2006-06-10 21:16:49 +00:00
christos
c02c268f6b
linux getpriority is off-by-20 so use our own function.
...
From PR/33671: Nicolas Joly
2006-06-10 21:15:33 +00:00
christos
d5ba7564d8
stack police: don't allocate statvfs on the stack.
2006-06-09 23:24:24 +00:00
kardel
de4337ab21
merge FreeBSD timecounters from branch simonb-timecounters
...
- struct timeval time is gone
time.tv_sec -> time_second
- struct timeval mono_time is gone
mono_time.tv_sec -> time_uptime
- access to time via
{get,}{micro,nano,bin}time()
get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
2006-06-07 22:33:33 +00:00
drochner
05a790f438
regen
2006-05-31 09:54:45 +00:00
drochner
5529c06d6a
support ntp_gettime again
...
compile tested by Havard Eidnes
2006-05-31 09:52:27 +00:00
rittera
98c1d0c0f5
Replaced some #ifdef NDIS_LKM's which were commenting out debugging
...
information with #ifdef NDIS_DBG. Also added a commented out #define NDIS_DBG
to ndis_var.h.
2006-05-29 20:49:03 +00:00
drochner
42a3bd3098
Extend "struct ntptimeval" for the needs of "timecounters".
...
Allocate a new syscall for ntp_gettime() and set up COMPAT_30 for
the old one.
2006-05-29 09:57:54 +00:00
drochner
21166bafa5
regen
2006-05-29 09:46:54 +00:00
drochner
9575ca7cfd
Remove emulation of ntp_gettime. In preparation for "timecounters" we
...
will change "struct ntptimeval", so some translation would be necessary.
ntp_gettine is considered dispensable, the only userland program known
to use it is "ntptime".
2006-05-29 09:44:51 +00:00
simonb
e78022e1d6
Limit the size of any kernel buffers allocated by the VOP_READDIR
...
routines to MAXBSIZE.
2006-05-27 23:46:49 +00:00
rittera
2fb24c8b6d
Added an #ifdef _KERNEL around the #include <sys/device.h>. This is needed
...
because nbcompat.h is included from the user-level ndiscvt utility, which
wouldn't compile due to the indirect inclusion of sys/device.h.
2006-05-26 19:31:35 +00:00
christos
57f1eb7d75
XXX: GCC uninitialized
2006-05-20 22:15:20 +00:00
yamt
175d40d2ca
crfree -> kauth_cred_free.
2006-05-15 22:15:32 +00:00
yamt
cc6a9a01ab
include kauth.h for kauth_cred_getuid, etc.
2006-05-15 22:10:09 +00:00
yamt
9c86170376
include kauth.h for kauth_cred_getgid.
2006-05-15 13:12:13 +00:00
yamt
88f8ec6c15
include kauth.h for kauth_authorize_generic.
2006-05-15 13:11:29 +00:00
yamt
17e49bf47c
include kauth.h for kauth_cred_geteuid, etc.
2006-05-15 13:11:00 +00:00
yamt
576f2b4ce7
fix another kauth mistake.
2006-05-15 13:06:40 +00:00
yamt
1e7ca6733e
include kauth.h for kauth_cred_getegid, etc.
2006-05-15 13:04:08 +00:00
yamt
7395572139
- don't try to use nonexistent variable.
...
- while i'm here, remove unnecessary casts.
2006-05-15 13:01:39 +00:00
yamt
fb7becdc2d
include kauth.h for kauth_authorize_generic, etc.
2006-05-15 12:48:09 +00:00
yamt
17e8de7630
- include kauth.h for kauth_authorize_generic.
...
- wrap a long line.
2006-05-15 09:19:31 +00:00
yamt
6c89e74b38
include kauth.h for kauth_cred_geteuid.
2006-05-15 09:17:05 +00:00
christos
fc6d984beb
kauth fallout
2006-05-15 00:05:16 +00:00
elad
874fef3711
integrate kauth.
2006-05-14 21:19:33 +00:00
christos
fc33769a12
gcc 4 does not like LHS casts.
2006-05-14 05:28:45 +00:00
christos
ca0ec852e6
XXX: GCC uninitialized
2006-05-14 03:40:02 +00:00
mrg
84e6307a04
use socklen_t when talking to the NetBSD side of things
2006-05-12 01:58:55 +00:00
mrg
b569463af0
in pecoff_load_file() make size a u_long to match it's use.
2006-05-11 17:17:00 +00:00
yamt
f5ff7e4897
cleanup user.h.
...
- remove several #include which are not directly related to
this header anymore. tweak *.c accordingly.
- update comments.
- move some !_KERNEL #include to proc.h because it's more appropriate
place these days.
- whitespace.
2006-05-11 11:54:36 +00:00
mrg
43463a5acc
cast to (socklen_t *) where appropriate.
2006-05-11 01:01:13 +00:00
mrg
a07ab709de
cast to (lwpid_t *) where appropriate.
2006-05-11 01:00:43 +00:00