njoly
5cec0f492f
compat linux (and linux32) uid16 functions cleanup and fixes.
...
- Move uid16 functions to their own file linux_uid16.c, included by
needed archs (arm, i386 and m68k).
- Add new MI types linux_{u,g}id16_t.
- Add macros to handle linux_uid16_t and uid_t conversions.
- Add linux_sys_getres{uid,gid}16 syscalls, to fix an overflow with
bad sizes given to copyout when linux_sys_getres{uid,gid} are used.
- Update arm syscall table to use more uid16 functions.
2008-01-15 22:38:34 +00:00
martin
1ae6b7fd19
#ifdef COMPAT_20 the ioctls only available conditionally. Patch from
...
Geoff Wing.
2008-01-15 09:25:26 +00:00
martin
a5134c7940
Add net80211 ioctls that I apparently ovelooked when grepping for ioctls
...
that need "struct ifreq" compat treatment.
This makes for example old (like 4.0) wpa_supplicant work with -current
kernels.
2008-01-14 21:38:55 +00:00
tnn
8134e656ee
fd_revoke: variable vattr is no longer used.
2008-01-09 20:45:19 +00:00
gson
28302167c1
Remove unused variables
2008-01-09 13:24:57 +00:00
elad
4b3ae01c7d
Refactor part of the sys_revoke() code so that it can be used in the
...
compat code. Allows for the removal of two redundant kauth(9) calls.
okay christos@.
2008-01-09 08:18:12 +00:00
elad
9798c4cd61
In svr4_32_sys_systeminfo(), remove two redundant kauth(9) calls for
...
SVR4_SI_SET_HOSTNAME and SVR4_SI_SET_SRPC_DOMAIN, as permission is already
checked by old_sysctl().
okay christos@.
2008-01-08 22:13:07 +00:00
elad
2395a8f2d2
In linux_sys_sysmips(), remove redundant kauth(9) call for LINUX_SETNAME
...
as the permission check is done by old_sysctl().
okay christos@.
2008-01-08 22:09:48 +00:00
elad
3d902dfb3e
Make compat_43_sys_sethostid() use old_sysctl(), allowing for the removal
...
of a kauth(9) call.
okay christos@.
2008-01-08 22:08:45 +00:00
he
943b531346
Remove a no-longer-used local variable.
2008-01-08 07:59:23 +00:00
rittera
c22be27a3d
Added elad's changes to ndis_kthread_create. Setting the stack size in fork1 apparently has no effect in the kernel. Note: needs testing
2008-01-07 19:10:58 +00:00
ad
77e0b2120f
Patch up sysctl locking:
...
- Lock processes, credentials, filehead etc correctly.
- Acquire a read hold on sysctl_treelock if only doing a query.
- Don't wire down the output buffer. It doesn't work correctly and the code
regularly does long term sleeps with it held - it's not worth it.
- Don't hold locks other than sysctl_lock while doing copyout().
- Drop sysctl_lock while doing copyout / allocating memory in a few places.
- Don't take kernel_lock for sysctl.
- Fix a number of bugs spotted along the way
2008-01-07 16:12:52 +00:00
ad
eb4920235a
Don't drop vnode refs until we are done with the mount.
2008-01-07 16:08:46 +00:00
njoly
e5e170b198
Regen.
2008-01-07 12:12:12 +00:00
njoly
0dbd478087
Remove wrong linux32_sys_mmap2_args define.
2008-01-07 12:11:52 +00:00
dsl
f3df4c2289
include sys/simplock.h
2008-01-06 13:18:19 +00:00
ad
e5942a85c1
Missing lock acquire.
2008-01-05 23:54:24 +00:00
dsl
95a195791a
Use FILE_LOCK() and FILE_UNLOCK().
...
Attempt to fix all the code paths so that the 'fp' returned by fd_getfile()
isn't left locked, and is always unlocked (and ref-counted) before
doing anything that might sleep.
2008-01-05 19:14:07 +00:00
dsl
902612f1f5
Use the new names (_REG_RFLAGS and _REG_RSP) for the indexes of __gregs[]
...
which match the names of in the trapframe and .S code.
2008-01-05 19:11:53 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
yamt
97436a1e88
fix malloc type mismatches.
2008-01-03 14:25:49 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
njoly
dfd4477d85
s/i386/__i386__/.
2008-01-01 17:40:22 +00:00
ad
2ecdf58c2c
Remove systrace. Ok core@.
2007-12-31 15:31:24 +00:00
ad
9f6b8c4d04
Remove COMPAT_HPUX.
2007-12-31 13:38:47 +00:00
dsl
2fb0ada366
Fix build of macppc with COMPAT_MACH
2007-12-29 18:12:37 +00:00
hannken
bdc290470e
maxfiles is now an u_int.
2007-12-28 10:00:18 +00:00
christos
c9a64311d7
make this compile again.
2007-12-27 17:18:11 +00:00
martin
6cc2e0f273
Remove now superflous (and wrong) extern declaration for maxfiles.
2007-12-27 17:05:28 +00:00
ad
ea3f10f7e0
Merge more changes from vmlocking2, mainly:
...
- Locking improvements.
- Use pool_cache for more items.
2007-12-26 16:01:34 +00:00
njoly
890b62431b
Regen for readdir syscall.
2007-12-26 13:51:53 +00:00
njoly
3a6c84afbc
Add readdir syscall.
2007-12-26 13:50:48 +00:00
njoly
a09fc3498a
Fix readdir syscall retval to return 1 (instead of getdents number of
...
byte read) on success.
2007-12-26 13:48:53 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
njoly
1a1f7ef9de
Regen for old_uname syscall.
2007-12-24 15:57:01 +00:00
njoly
1fe07a25dd
Add old_uname syscall.
2007-12-24 15:56:20 +00:00
njoly
0cebe57b9c
Regen for getpgid.
2007-12-24 14:26:50 +00:00
njoly
122287e6f0
Add getpgid syscall.
2007-12-24 14:25:30 +00:00
njoly
24eca5e1f1
Regen for linux_sys_getpgid removal.
2007-12-24 14:21:40 +00:00
njoly
47bf9f4b4d
Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
2007-12-24 14:17:17 +00:00
hannken
f20fe37f57
Fix include order: netbsd32_syscallargs.h needs svr4_32_types.h.
2007-12-23 10:18:48 +00:00
christos
18bf1f8006
someone forgot /g in the vi s command.
2007-12-22 17:49:32 +00:00
njoly
90dee75246
Regen for getfsuid/setfsgid syscall exchange.
2007-12-21 22:28:41 +00:00
njoly
035a2e040b
- Fix setfsuid to return uid on success.
...
- Replace getfsuid, which never existed on Linux, by correct setfsgid
syscall.
ok by christos and dsl.
2007-12-21 22:26:20 +00:00
dsl
f00ef3a2d4
Fix prototypes used when NTP is not in use.
...
Pointed out by Robert Swindells.
2007-12-21 17:36:09 +00:00
matt
39a278be7e
Make this compile again.
2007-12-21 02:27:57 +00:00
dsl
9b6e62c6a8
Reinstate some code I commented out.
2007-12-20 23:16:13 +00:00
dsl
6fb2884c3a
regen
2007-12-20 23:07:25 +00:00
dsl
7e2790cf6f
Convert all the system call entry points from:
...
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
2007-12-20 23:02:38 +00:00
dyoung
6f3852fab4
Constify struct ifnet->if_sadl and every use throughout the tree.
...
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
2007-12-20 21:08:17 +00:00