dyoung
adde197943
Use IFADDR_EMPTY().
2007-12-05 22:51:01 +00:00
yamt
65e70dc43b
include mutex.h.
2007-12-05 12:01:24 +00:00
ad
73b6db8481
Make it compile.
2007-12-05 08:45:30 +00:00
ad
a0ca06de3d
lockmgr -> mutex
2007-12-05 08:39:46 +00:00
ad
78090667c0
Kill ref to lockmgr in comments (for grep).
2007-12-05 08:34:41 +00:00
ad
a5bdf04ea6
lockmgr -> rwlock
2007-12-05 08:33:23 +00:00
dyoung
5a740a2a51
Extract common code into subroutine svr4_count_ifnum().
...
Don't open-code queue(3) macros (x = ifnet.tqh_first; y =
x.if_list.tqe_next). Instead, use the macros themselves.
Use IFNET_FOREACH() and IFADDR_FOREACH().
2007-12-05 01:10:47 +00:00
dyoung
cabaa89d1f
Don't open-code queue(3) macros (x = ifnet.tqh_first; y =
...
x.if_list.tqe_next). Instead, use the macros themselves.
Use IFNET_FOREACH() and IFADDR_FOREACH().
2007-12-05 01:06:23 +00:00
dyoung
b86d03582a
Use IFADDR_FOREACH().
2007-12-05 01:03:30 +00:00
dsl
cfc18fc34b
Remove all the __P from here, including the other other mismatched one
...
that my sed script left behind and 'he' didn't notice.
2007-12-05 00:31:01 +00:00
he
5b4fada2e1
Re-balance a parenthesis.
2007-12-04 22:43:50 +00:00
dsl
f2af9174b9
Remove all the __P
2007-12-04 18:40:07 +00:00
ad
86b20896d3
Use system-provided atomic ops.
2007-11-29 14:29:29 +00:00
pooka
e49789dd46
more l removal
2007-11-28 18:50:10 +00:00
ad
16b547ec7f
Please can we nuke this code?
2007-11-28 18:45:03 +00:00
he
756f91194a
Follow up the removal of the lwp argument to VOP_ functions.
...
In some cases, use curlwp instead of the now missing argument.
2007-11-28 10:34:37 +00:00
dogcow
3c143b9440
more lwp cacking fallout
2007-11-27 23:30:56 +00:00
ad
23589af2fb
lwp arg to VOPs is gone.
2007-11-27 22:12:24 +00:00
dogcow
6c09f19fb4
and one more lwp removal victim
2007-11-27 11:25:29 +00:00
dogcow
3465a006e9
more VFS_STATVFS(x,y,z) fallout; change them to VFS_STATVFS(x,y). (hi, pooka!)
2007-11-27 09:47:15 +00:00
he
0bfa260fce
Remove a now-unused variable.
2007-11-26 23:16:15 +00:00
pooka
61e8303e9d
Remove the "struct lwp *" argument from all VFS and VOP interfaces.
...
The general trend is to remove it from all kernel interfaces and
this is a start. In case the calling lwp is desired, curlwp should
be used.
quick consensus on tech-kern
2007-11-26 19:01:26 +00:00
elad
abb7851f4d
Refactor time modification checks and place them in the secmodel code.
...
okay christos@
2007-11-25 00:35:26 +00:00
christos
3714528495
- move the save context before the signal reset (Arto Huusko)
...
- set the sigcontext cr2
2007-11-24 23:52:56 +00:00
elad
1d139a3075
Modify hpux_sys_stime_6x() to call settime(), like everyone else do.
...
okay christos@.
2007-11-24 20:43:34 +00:00
njoly
204ebc94bf
Regen.
2007-11-16 12:58:12 +00:00
njoly
601a0e5173
Update, for linux_sys_readlink() removal.
2007-11-16 12:56:50 +00:00
njoly
cb572617af
Regen, for syscalls cleanup.
2007-11-16 12:53:56 +00:00
njoly
6412bda281
Cleanup. Remove a few linux syscalls definitions, now identical to
...
native ones (with stackgap and ALT_CHECK_xxx removal). No functional
changes expected.
2007-11-16 12:51:54 +00:00
dsl
300078900a
regen
2007-11-12 22:23:29 +00:00
dsl
9bb5de8a76
syscall() needs to be 'NOARGS INDIR'.
...
Actually I wonder if this code could use the standard syscall table ?
2007-11-12 22:23:01 +00:00
christos
2e3ee66dc7
regen
2007-11-11 18:28:18 +00:00
dsl
f36a9ec28b
Fix builds for ports that don't define __HAVE_MINIMAL_EMUL (eg sparc64).
...
Fallout from a change that made #define names for syscalls (etc) start
NETBSD32 (not netbsd32).
2007-11-10 18:55:42 +00:00
dsl
ddd89ca02b
regen
2007-11-10 13:24:27 +00:00
dsl
b6b07a31fd
Mark 'syscall' as 'NOARGS INDIR"
2007-11-10 13:23:18 +00:00
dsl
2cabf5c1f0
Remove the pecoff system table defines, they aren't needed since the
...
emulation uses a user-space library and normal netbsd calls.
2007-11-10 09:41:01 +00:00
njoly
d16de24e5a
Make linux32_sys_oldolduname use LINUX_UNAME_ARCH instead of machine,
...
like other uname syscalls. While here, remove unneeded
LINUX_UNAME_ARCH #ifdef/#endif checks.
2007-11-09 17:43:17 +00:00
dsl
ee077208d9
Regen
2007-11-09 15:10:27 +00:00
dsl
3107f9cd42
Add arguments to sys_syscall and sys___syscall.
...
Use MI wrappers for them in netbsd32.
Change prefix for constants from netbsd32 to NETBSD32 (used in #defines etc).
2007-11-09 15:05:33 +00:00
njoly
23e9f9fa6f
Replace strncpy with strlcpy in compat linux and linux32 uname,
...
old_uname and oldold_uname syscalls to ensure that all *utsname fields
are always NUL terminated.
2007-11-08 21:07:23 +00:00
njoly
577cb10855
Regen for 64-bit linux syscalls removal.
2007-11-07 00:25:39 +00:00
njoly
b32d95bfbf
Remove remaining 64-bit compat linux syscalls linux_sys_xxx() (except
...
for ones without arguments), and replace them by their 32-bit
equivalent linux32_sys_xxxx().
2007-11-07 00:24:29 +00:00
ad
d831186d55
Merge scheduler changes from the vmlocking branch. All discussed on
...
tech-kern:
- Invert priority space so that zero is the lowest priority. Rearrange
number and type of priority levels into bands. Add new bands like
'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.
2007-11-06 00:42:39 +00:00
rmind
6364fdeba5
- Replace lockmgr with mutex;
...
- Use condvars instead of tsleep/wakeup;
- Replace malloc with kmem;
- Use itimespecfix/tstohz;
Reviewed by <ad>.
2007-11-04 11:10:34 +00:00
oster
77002eb972
This should be a mutex_enter() instead of a mutex_exit().
...
Fixes:
Mutex error: mutex_vector_exit: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread
...
mutex_abort(c0aba23c,c07bf8b0,c09c9164,bfbfee34,10) at netbsd:mutex_abort+0x36
mutex_vector_exit(c0aba23c,10,c0aba23c,ca8efc6c,ca8f8540) at netbsd:mutex_vector_exit+0xe2
compat_20_sys_getfsstat(ca8f8540,cb243c48,cb243c68,805eb24,805e000) at netbsd:compat_20_sys_getfsstat+0x1bf
...
2007-11-01 03:49:52 +00:00
dsl
36acfb90ed
regen
2007-10-31 22:39:17 +00:00
dsl
16c3c9c541
This file must use the netbsd32_xxx() system calls, not the sys_xxx() ones.
...
The latter actually function (due to luck) for calls with one argument,
but will fail badly if more than one is required.
Noticed as an error in the ktrace outut by Nicolas Joly, reported on
tech-kern.
2007-10-31 22:35:34 +00:00
njoly
beab9df119
Regen for syscalls cleanup.
2007-10-31 21:06:19 +00:00
njoly
6f36d09e87
compat linux32 syscalls cleanup.
...
With stackgap and CHECK_ALT_xxx removal, some linux32 and netbsd32
syscalls are now identical.
To avoid code duplication, remove the linux32 definition and use the
netbsd32 one (no functional change).
2007-10-31 21:04:02 +00:00
njoly
99e027abbb
Remove extra return
2007-10-31 09:16:55 +00:00