reinoud
98d17cde9d
Make it compile again; it had an empty if body due the the DPRINTF and gcc
...
complained about it.
2006-10-19 15:11:59 +00:00
christos
4d595fd7b1
- sprinkle __unused on function decls.
...
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
manu
63ac93df54
Add sysctl tracing to emulations.
...
While we are there, fix a bug in FreeBSD sysctl emulation: use copyin for
moving data to the kernel
2006-09-23 22:11:59 +00:00
matt
2e04559304
When calling PTRACE from an LKM, use sysent[SYS_ptrace].sy_call in case
...
the sys_ptrace symbol isn't present.
2006-09-01 21:20:46 +00:00
christos
5970d219ae
remove stray ;'s that were unintentionally placed
2006-08-29 23:58:42 +00:00
christos
33cacef35e
correct comparison that was always false.
2006-08-29 23:57:49 +00:00
christos
11d381a90a
fix incomplete initializer
2006-08-29 23:56:02 +00:00
christos
35ca6c8b5b
Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
...
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
mrg
e2eb31d3a3
version the socket(2) syscall. for compat30 socket, we use
...
EPROTONOSUPPORT instead of EAFNOSUPPORT.
from pavel@ with a little bit of clean up from myself.
XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.
2006-06-26 21:23:56 +00:00
christos
e6ea8fe642
Don't allocate too much stuff on the stack
2006-06-20 03:21:30 +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
thorpej
8077f13805
Use device_is_a(), rather than testing the dv_cfdriver pointer.
2006-03-29 04:19:48 +00:00
thorpej
39cd836ee1
Use device_unit().
2006-03-28 17:38:24 +00:00
yamt
ec5a93183a
merge yamt-uio_vmspace branch.
...
- use vmspace rather than proc or lwp where appropriate.
the latter is more natural to specify an address space.
(and less likely to be abused for random purposes.)
- fix a swdmover race.
2006-03-01 12:38:10 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
manu
bc210edac8
Fix COMPAT_DARWIN build. This closes PR#31336
2005-10-03 17:11:25 +00:00
christos
03ec972e58
maplen was uninitialized.
2005-09-19 02:47:15 +00:00
christos
e20c28140a
Add compat signal headers.
2005-09-18 14:30:15 +00:00
christos
063b880cf0
compat code reorg.
2005-09-13 01:42:32 +00:00
christos
6a2a989266
variable name mistake again.
2005-09-12 22:16:56 +00:00
christos
d9f67be7fe
- Avoid overflow by checking the count argument (Christer Oeberg).
...
- While I am here, don't leak fds either.
2005-09-12 20:54:38 +00:00
christos
758a209d23
64 bit inode changes.
2005-08-19 02:03:49 +00:00
christos
f63c68071c
minor refactoring; does not work on the i386 yet.
2005-06-25 06:30:19 +00:00
atatat
df13e3579e
Change the rest of the sysctl subsystem to use const consistently.
...
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
2005-06-20 02:49:18 +00:00
christos
fb4b40b7e8
- sprinkle const.
...
- add XXXUNCONST to the emul_find() pbuf argument free'ing. XXX: this needs
an api change.
- avoid variable shadowing.
2005-05-29 22:08:16 +00:00
christos
1473b3a0a1
XXX: Remove fishy volatile.
2005-05-29 22:07:02 +00:00
fvdl
c487efe4a7
Fix some things regarding COMPAT_NETBSD32 and limits/VM addresses.
...
* For sparc64 and amd64, define *SIZ32 VM constants.
* Add a new function pointer to struct emul, pointing at a function
that will return the default VM map address. The default function
is uvm_map_defaultaddr, which just uses the VM_DEFAULT_ADDRESS
macro. This gives emulations control over the default map address,
and allows things to be mapped at the right address (in 32bit range)
for COMPAT_NETBSD32.
* Add code to adjust the data and stack limits when a COMPAT_NETBSD32
or COMPAT_SVR4_32 binary is executed.
* Don't use USRSTACK in kern_resource.c, use p_vmspace->vm_minsaddr
instead (emulations might have set it differently)
* Since this changes struct emul, bump kernel version to 3.99.2
Tested on amd64, compile-tested on sparc64.
2005-03-26 05:12:34 +00:00
perry
77f2a006d0
regen
2005-02-26 23:58:19 +00:00
perry
fa91538c32
make this rebuild generated files by default
2005-02-26 23:35:00 +00:00
perry
a7f74206ba
regen
2005-02-26 23:20:00 +00:00
perry
477853c351
nuke trailing whitespace
2005-02-26 22:58:54 +00:00
matt
027c11539b
Add IFNET_FOREACH and IFADDR_FOREACH macros and start using them.
2005-01-24 21:25:09 +00:00
david
bf4bf03db8
Refine bounds check code.
2004-11-07 04:08:37 +00:00
david
090b8be8f9
Bounds check syscall arguments where appropriate
2004-10-27 19:29:56 +00:00
skrll
3780f859c7
Only create a KTR_USER record if it's one of the tracepoints.
...
OK'd by manu.
2004-10-24 14:42:10 +00:00
yamt
0994e6acb8
introduce a function, proclist_foreach_call, to iterate all procs on
...
a proclist and call the specified function for each of them.
primarily to fix a procfs locking problem, but i think that it's useful for
others as well.
while i'm here, introduce PROCLIST_FOREACH macro, which is similar to
LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
2004-10-01 16:30:52 +00:00
skrll
f7155e40f6
There's no need to pass a proc value when using UIO_SYSSPACE with
...
vn_rdwr(9) and uiomove(9).
OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
jdolecek
74436be135
pass the fork flags down to the emulation fork hook, so that emulation
...
code can use the information for setup
2004-08-08 08:42:03 +00:00
manu
158fe62cd6
Fix a build problem pointed out by wiz
2004-08-02 18:45:53 +00:00
manu
cdd12932c6
Regen
2004-07-28 22:25:10 +00:00
manu
66fc5fb621
Empty shell for Darwin audit API
2004-07-28 22:24:06 +00:00
manu
bc620e30a6
Added the utrace system call
2004-07-28 21:30:00 +00:00
manu
09ee1c0349
The entropy collection sysctl returns the number of record and not the
...
copied data size.
2004-07-27 20:41:48 +00:00
manu
0a61854f64
Build with debug enabled
2004-07-27 20:41:13 +00:00
manu
a380f938d4
Added kern.debug.getentropy sysctl
2004-07-25 07:54:54 +00:00
manu
c0431a8e23
- Perform alternate path checks in emulation tree for connect with AF_LOCAL
...
sockets
- When converting Darwin to native sockets, beware that darwin does not set
the size to AF_LOCAL sockets. We need to recompute by hand.
2004-07-24 15:45:27 +00:00
manu
e7d6d3e79b
garbage data following darwin_if_msghdr was in fact a struct sockaddr_dl
...
Fixing this makes ifconfig nearly happy.
2004-07-24 01:00:29 +00:00