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
martin
3abe4cb17d
Remove *64 versions identical to their 32 bit version and aliased differently
...
now.
2007-12-18 11:05:53 +00:00
dsl
5c3e6d0c07
Regen for 'const' killing.
2007-12-17 22:05:41 +00:00
dsl
06bce1608a
Remove all the 'const', they end up applying to the structure members
...
themselves, not where the 32bit pointers reference.
2007-12-17 22:04:32 +00:00
dsl
4f69eadcae
svr4_32_sys_creat64() and svr4_32_sys_creat() are equivalent, as are
...
open64 and open, so just have one set of entry points.
2007-12-17 21:58:34 +00:00
dsl
36fb6d9db7
Revert previous.
2007-12-17 21:48:23 +00:00
dsl
a098759aae
creat64 and open64 just called the creat/open function.
...
Change to do it here.
2007-12-17 21:39:17 +00:00
dsl
686e359d32
Regen without any 'const' members of the syscall argument structures.
2007-12-17 20:47:31 +00:00
dsl
bf434e38c7
Remove all the 'const'. Although the fields might be 32bit pointers to
...
constant data, the 'const' applies to the field itself - which is stupid.
2007-12-17 20:45:29 +00:00
njoly
c7d62a5250
Fix linux32_sys_wait4 by doing its own jobw instead off calling
...
linux_sys_wait4. It worked except when child resources were requested,
because 32/64 bits struct rusage differs in size ...
While here, update linux32_sys_waitpid to use linux32_sys_wait4 with a
NULL rusage.
2007-12-17 18:10:37 +00:00
njoly
e78a322c4a
s/netbsd32_void */netbsd32_caddr_t/
2007-12-15 14:08:16 +00:00
dsl
63f7948f02
Call sys_open() not bsd_sys_open().
2007-12-13 07:54:22 +00:00
uebayasi
d9547ee3a0
Regen.
2007-12-13 05:19:08 +00:00
dsl
fc10f67856
Remove the wrapper functions for file operations that do nothing now
...
that namei() checks the alternate path.
2007-12-12 22:07:58 +00:00
dsl
ef3588e13f
Regen, reformmatted, and without wrappers for file operations.
2007-12-12 22:06:19 +00:00
dsl
0f63820911
No need to wrap filename function to get the alt path stuff.
2007-12-12 22:04:30 +00:00
dsl
f9ade37fe1
compat_file.[ch] are no longer used
2007-12-12 21:37:26 +00:00
dsl
9ae4eb70ff
Regen
2007-12-12 21:29:43 +00:00
dsl
e26d16aac3
No need for any of the bsd_sys_foo() calls since they only wrapped
...
CHECK_ALT_XXX() for filenames - which got killed earlier in the year.
Substitute the same functions as in compat_file.c
2007-12-12 21:24:36 +00:00
dsl
0f47845a4f
Add a definition of compat_12_stat_conv() here so I can kill compat_file.h
2007-12-12 21:17:57 +00:00
lukem
4e1d22cc0b
fix the __KERNEL_RCSID
2007-12-11 23:32:44 +00:00
lukem
2b8be6f723
use __KERNEL_RCSID()
2007-12-11 13:22:50 +00:00
cube
d97f33f6eb
Regen syscall tables for mach binary compatibility. Per request from dsl@.
2007-12-11 08:06:46 +00:00
dsl
be33a1a204
Increase the maximum number of syscall args.
...
sys_mach_sys_msg_overwrite_trap() has been overwriting stack!
2007-12-10 22:32:15 +00:00
dogcow
9ad45b39e6
more NDINIT fallout. not completely compile-tested.
2007-12-09 13:34:23 +00:00
wiz
9c131e8d5c
Remove last argument from NDINIT call, following
...
"Remove cn_lwp from struct componentname. curlwp should be used
from on. The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure." from pooka.
2007-12-09 12:50:29 +00:00
pooka
db06a930e6
Remove cn_lwp from struct componentname. curlwp should be used
...
from on. The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.
2007-12-08 19:29:36 +00:00
dsl
28bae79b27
ANSIfy most of the function definitions in sys/compat (but not ndis).
...
All by the magic of sed ...
2007-12-08 18:35:53 +00:00
ad
9c8beda3c8
Reg... hang on, why don't we build this at compile time?!?
2007-12-07 22:42:11 +00:00
ad
bca34dfe7a
Add: _lwp_setname, _lwp_getname, _lwp_ctl.
2007-12-07 22:41:05 +00:00
ad
937533671d
lockmgr -> rwlock
2007-12-06 14:53:35 +00:00
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