elad
c96fdfd49b
Part of PR/33280: Christian Ehrhardt: The call to FILE_USE should be
...
immediatly before the FREAD | FWRITE test not after it or FILE_UNUSE will
be called after the jump to out without a corresponding FILE_USE.
2006-11-25 22:03:41 +00:00
wiz
09cb1d6f1c
s/existance/existence/, from Zafer.
2006-11-24 22:52:16 +00:00
wiz
6919c6578c
s/independant/independent/, from Zafer.
2006-11-24 22:04:21 +00:00
christos
d8f5d5f044
fix capitalization of NetBSD; from Zapher
2006-11-24 19:38:55 +00:00
christos
91ad430f6c
adjust_limits takes p, not l again
2006-11-22 13:56:09 +00:00
christos
d6bc4d2b49
deal with RLIM_INFINITY in the setrlimit case.
2006-11-21 18:50:01 +00:00
christos
887f588c92
adjust limits takes struct proc again.
2006-11-21 15:02:18 +00:00
christos
0470afd097
Simplify previous commit not to use dosetrlimit(), since we don't want the
...
kauth tests etc.
2006-11-21 14:57:54 +00:00
christos
1882355e27
From Nicolas Joly:
...
> It seems that 32bits programs, running under compat_netbsd32, using
> setrlimit force all other programs to have their maximum data size
> fixed at 3GB, where native 64bits apps used 8GB previously.
I tracked this one to the `netbsd32_adjust_limits()' function (called
when creating a new process under compat_netbsd32), where data and
stack limits are set without checking for shared `p_limit' structure
(p_limit->p_refcnt > 1). This explain the side effect where processes
have their limits changed when a compat_netbsd32 (or compat_linux32)
program is run.
The fix is to use `dosetrlimit()' to ensure the needed copy-on-write
behaviour for shared structure.
2006-11-21 14:32:27 +00:00
christos
168cd830d2
__unused removal on arguments; approved by core.
2006-11-16 01:32:37 +00:00
elad
68f43d80fe
Clean some KAUTH_GENERIC_ISSUSER usage in compat code.
2006-11-14 13:34:29 +00:00
jmmv
c963ce01ee
Pull in opt_ktrace.h (and sys/ktrace.h) so that the ktrace-related code
...
is compiled when enabled. You know, preprocessor hell...
2006-11-13 17:01:06 +00:00
jmmv
870dd91500
Let this build when KTRACE is not enabled. Closes PR kern/33210.
2006-11-13 16:57:40 +00:00
cube
3574e17e23
Regen (PR#34951 fixes).
2006-11-09 14:10:21 +00:00
cube
1277ee639e
- Make better use of COMPAT_XX type in syscalls.master
...
- Remove useless (thanks to COMPAT_XX behaviour) #ifdefs in
syscalls.master
- Make netbsd32_compat_43.c compiled per COMPAT_LINUX32 because the latter
needs stuff from it.
Fixes Perry's PR#34951.
2006-11-09 14:09:37 +00:00
drochner
b1af2cb9b9
-SUS says that a successful call to setcontext(2) does not return. This
...
implies that _UC_CPU must be set in the context passed. Check for this
and return EINVAL if not; this gives a cheap test for corrupted
ucontexts eg on a signal handler stack which would go unnoticed otherwise.
-Don't ckeck for NULL ucontext pointers explicitely. This is an error,
except in the swapcontext() case where it can be easily caught in
userland.
2006-11-08 20:18:32 +00:00
cbiere
4b14bb6309
Changed error message of ENOPROTOOPT to "Protocol option not available".
2006-10-31 00:38:06 +00:00
christos
9e34b4bbee
ktruser checks for length now.
2006-10-22 18:18:49 +00:00
christos
0838967c65
ktruser now returns an error if the buffer length is too big.
2006-10-22 18:18:08 +00:00
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
martin
dda2fa3e76
Make it compile with -Wextra
2006-10-16 20:18:55 +00:00
martin
14e2e5cf6a
Missing initializer
2006-10-16 20:12:38 +00:00
martin
a4f14b9dd0
Missing initializers
2006-10-15 21:12:08 +00:00
christos
a2161fece4
sprinkle __unused.
2006-10-14 18:57:06 +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
christos
ed106f137b
Coverity CID 2990: fix memory leak (from Arnaud Lacombe)
2006-09-29 14:24:55 +00:00
pavel
3cdb79bdae
Replace homegrown tests for FIFO (... & S_IFIFO) by S_ISFIFO. The old code
...
was "correct" by luck - we don't have any other file type whose S_IF* bits
in sys/stat.h overlap with S_IFIFO.
Originally discovered by Paul Stoeber in OpenBSD.
2006-09-25 16:16:18 +00:00
dbj
2df12fb8b5
use _KERNEL_OPT instead of _LKM to check whether to include "opt_ktrace.h"
2006-09-24 21:44:58 +00:00
fvdl
fc06b6e99a
EPASSTHROUGH from lower layers is returned as ENOTTY to the (system) caller.
...
Make it so.
2006-09-24 10:20:16 +00:00
dogcow
e15e9231e6
opt_ktrace.h doesn't exist when building LKMs.
2006-09-24 05:48:27 +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
jmcneill
8c94a07b9d
In mach_msg_receive(), don't declare 'struct proc *p' unless either
...
DEBUG_MACH_MSG or KTRACE are defined. The variable is unused otherwise,
resulting in a compile error. Fixes PR# 33211.
2006-09-23 03:34:19 +00:00
christos
487c57538b
Pretend to implement TIOCSPTLCK. Although failing is harmless, there is no
...
point in doing so.
2006-09-22 15:12:02 +00:00
manu
876294b403
Proprely convert devices on amd64
2006-09-20 09:54:55 +00:00
yamt
90cb722c5c
svr4_32_sys_sysconfig: fix a compilation failure after yamt-pdpolicy merge.
...
reported by Kurt Schreiner on current-users@.
2006-09-17 08:41:31 +00:00
yamt
9d3e3eab23
merge yamt-pdpolicy branch.
...
- separate page replacement policy from the rest of kernel
- implement an alternative replacement policy
2006-09-15 15:51:12 +00:00
manu
717102f4bb
Jumbo COMPAT_LINUX/COMPAT_LINUX32 bugfix, with the help of Nicolas Joly
...
- Fix shmat return value on amd64: it uses no black magic with retval[0]
- Fix integer overflows in sysinfo
- Implement sysinfo, mmap2, sched_getparam, sched_getscheduler, mremap,
and madvise in COMPAT_LINUX32
- Fix improper types used in setgroups16/getgroups16
- Implement mmap2 for COMPAT_LINUX32
- Ifdef debug messages by DEBUG_LINUX
2006-09-13 19:55:49 +00:00
manu
99bb1b27be
This file was not used anymore
2006-09-13 19:47:30 +00:00
christos
1ae1244b82
avoid empty if body.
2006-09-13 00:57:29 +00:00
christos
46c5717199
avoid empty if body.
2006-09-13 00:52:07 +00:00
christos
6a76f8e0d2
Avoid empty body in if
2006-09-13 00:51:12 +00:00
christos
193447d4bd
avoid empty if
2006-09-13 00:49:07 +00:00
tsutsui
c1ba1fb63b
Try to make this timecounter ready.
...
XXX untested since I have no HP-UX binary to test these syscalls
2006-09-09 11:27:19 +00:00
manu
f0cbe4f3bf
Implement Linux's fdatasync, patch from Nicolas Joly
2006-09-06 12:01:23 +00:00
manu
84b03d19fe
Fix linux32_sys_setres{uid|gid}: -1 does not means the same thing on i386
...
and amd64...
2006-09-06 08:32:00 +00:00
manu
4d5f807455
Fix linux32_sys_sysctl, it was horribly broken.
2006-09-05 17:12:19 +00:00
manu
ea514e44f5
typo
2006-09-05 08:17:09 +00:00
christos
b33a26ac88
remove unneeded initializer.
2006-09-03 20:58:26 +00:00
christos
1b87f8e9cc
add missing initializer
2006-09-03 06:29:03 +00:00
christos
59d19c4947
add missing initializers
2006-09-03 06:28:16 +00:00