dogcow
f18ef70a25
semimechanically convert 'void foo' -> 'void *foo', as part of the continuing
...
caddr_t fallout.
2007-03-05 21:05:00 +00:00
christos
033371b01a
fix caddr_t lossage
2007-03-05 14:24:18 +00:00
christos
c74f0279ea
more caddr_t lossage.
2007-03-05 14:13:10 +00:00
he
1564bbc49c
Need a char* for doing pointer arithmetic.
2007-03-05 13:56:24 +00:00
tsutsui
48174a79c0
Use (char *) cast on pointer arith.
2007-03-05 10:43:32 +00:00
christos
a4c52808c6
fix caddr_t lossage.
2007-03-05 05:10:04 +00:00
yamt
18e17bd568
fix fallout from caddr_t changes.
2007-03-04 15:46:18 +00:00
yamt
731acd91f9
fix fallout from caddr_t changes.
2007-03-04 15:41:02 +00:00
tsutsui
543ff60bc5
Use (char *) on pointer arith.
2007-03-04 11:56:26 +00:00
tsutsui
a58c189444
- don't forget to add * to all params
...
- use (char *) where pointer arith is required
2007-03-04 11:15:04 +00:00
christos
5ebcdbe8b5
fix caddr_t fallout.
2007-03-04 10:21:25 +00:00
christos
fffc9c66c9
fix fallout from caddr_t changes.
2007-03-04 07:54:07 +00:00
christos
53524e44ef
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
2007-03-04 05:59:00 +00:00
tsutsui
4007519959
Make this timecounter(9) ready. From kardel@.
2007-03-04 02:49:12 +00:00
he
96f8f675f8
Complete the ANSI conversion by completing the conversion of hpux_sys_rtprio().
2007-02-19 18:43:17 +00:00
cube
26a6c15e1a
Regen (a few MPSAFE additions).
2007-02-19 15:33:20 +00:00
cube
b2d510bccc
Mark MPSAFE the syscalls that are not translated (and of course, only when
...
the native syscall is itself marked MPSAFE).
2007-02-19 15:32:43 +00:00
cube
632ece3eaf
Introduce a new member to struct emul, e_startlwp, to be used by
...
sys__lwp_create. It allows using the said syscall under COMPAT_NETBSD32.
The libpthread regression tests now pass on amd64 and sparc64.
2007-02-19 15:10:02 +00:00
cube
0ff7d99ddb
Make netbsd32_{get,set}ucontext and associated functions
...
{get,set}ucontext32 look like their native counterparts again after
newlock2 merge. This avoids entering sigprocmask1 without the proc mutex
held...
2007-02-19 14:39:43 +00:00
rumble
121cbf17f1
Remove an unused variable so that this compiles again.
2007-02-19 03:55:26 +00:00
ad
cee712ad2f
Make this build.
2007-02-19 01:19:16 +00:00
cube
c7565916df
Regen (missing lwp syscalls).
2007-02-18 15:00:14 +00:00
dsl
923424a8c0
Keep proclist_lock held across p_find and use of result proc.
2007-02-18 11:45:35 +00:00
dsl
1564fa5d82
ANSI prototypes
2007-02-18 11:38:15 +00:00
dsl
c7907fd992
Factor out the replicated code that verifies that the caller is allowed
...
to acces the required process into a separate function (hi cut and paste).
Acquire the proclist_lock across p_find().
2007-02-18 09:45:39 +00:00
cube
c376ba15d1
Add missing lwp syscalls. Put them all together into a new file,
...
netbsd32_lwp.c, and remove remaining traces of SA.
This still needs some MD (and possibly MI, depending on the chosen
solution) changes to actually work.
2007-02-18 09:03:54 +00:00
pavel
934634a18c
Change the process/lwp flags seen by userland via sysctl back to the
...
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.
Restores source compatibility with pre-newlock2 tools like ps or top.
Reviewed by Andrew Doran.
2007-02-17 22:31:36 +00:00
dsl
2b491f69ce
Acquire proclist_lock across the calls to p_find() and pg_find().
2007-02-17 21:40:19 +00:00
njoly
5f6b6270e4
Regen.
2007-02-16 20:49:40 +00:00
njoly
11f77cf45a
Add support for a few syscalls:
...
setfsuid16/getfsuid16
setfsuid/getfsuid
sched_yield
ok by manu
2007-02-16 20:49:06 +00:00
ad
57aa4fbf3b
proc_free() was returning a NULL rusage pointer to wait() when a traced
...
process was reparented. Change proc_free() to copy the rusage to a buffer
on the stack if required, so it can be passed both to the debugger and
to the real parent process.
Fixes kern/35582 (kernel panics with gdb).
2007-02-16 00:39:16 +00:00
ad
087fdb9080
Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
...
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
ad
12460decf9
Fix COMPAT_LINUX32.
2007-02-15 15:29:07 +00:00
ad
d0a51fd23b
Fix Linux compat on amd64.
2007-02-15 15:13:33 +00:00
mlelstv
8d08c62fcc
Make setsockopt return compatible error codes for AF_UNIX sockets.
2007-02-11 08:00:59 +00:00
ad
6faf4c1b76
Sprinkle some more locks.
2007-02-10 10:12:34 +00:00
ad
8cfae44a35
Sprinkle a couple more locks.
2007-02-10 10:09:01 +00:00
tsutsui
18f2cde2bd
Make COMPAT_HPUX compile by mechanical replacements.
...
XXX1: not sure if it still works even before newlock2 merge
XXX2: some more mutex locks might be required
2007-02-10 02:42:30 +00:00
ad
88cb6cb846
Acquire proclist_mutex before sending signals.
2007-02-09 23:51:20 +00:00
ad
b07ec3fc38
Merge newlock2 to head.
2007-02-09 21:55:00 +00:00
njoly
8fbf55addb
Regen (aliases cleanup).
2007-02-08 12:32:17 +00:00
njoly
fb1562ae0f
Remove some aliases, for syscalls that use their netbsd32 equivalent.
...
This makes the ktrace output more consistent.
ok by manu.
2007-02-08 12:29:39 +00:00
njoly
835e659d6b
Regen (poll argument fix).
2007-02-07 15:35:00 +00:00
njoly
398ec1833a
Use netbsd32_pollfdp_t instead of wrong `struct pollfd *'.
...
ok by manu.
2007-02-07 15:32:52 +00:00
njoly
0d81683020
Add a new linux_emuldata_shared flag value LINUX_LES_USE_NPTL to allow
...
both NPTL and old linuxthreads behaviour depending on process needs.
Apply to exit_group(), getpid() and getppid() to share them between
compat linux32 (non NPTL) and compat linux (NPTL) on amd64.
ok by manu and christos
2007-02-05 18:31:36 +00:00
hubertf
eda05c6413
Remove more duplicate headers.
...
Patch by Slava Semushin <slava.semushin@gmail.com>
Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
he
a128c1c544
Adapt to the addition of vfs_suspendctl in struct vfsops.
2007-01-23 10:35:05 +00:00
elad
1113a3afe4
Consistent usage of KAUTH_GENERIC_ISSUSER.
2007-01-05 15:40:51 +00:00
elad
b31e9c44cf
Consistent usage of KAUTH_GENERIC_ISSUSER.
2007-01-04 18:27:36 +00:00
elad
8d28e56e22
Remove KAUTH_GENERIC_ISSUSER.
2007-01-04 15:21:09 +00:00