Commit Graph

3755 Commits

Author SHA1 Message Date
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
christos 489fe1e988 add missing initializers 2006-09-02 06:56:30 +00:00
christos de02317b32 comment out impossible code 2006-09-02 06:53:17 +00:00
christos c4501e2800 fix incomplete initializer 2006-09-02 06:52:13 +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
matt 280b69066a Regen. 2006-09-01 21:19:44 +00:00
matt 30183e299f Don't conditionalize *sys_ptrace. The lack of sys_ptrace will be dealt
with differently.
2006-09-01 20:58:18 +00:00
mrg 356f83eb40 clean up ptrace changes: #include "opt_ptrace.h" 2006-09-01 05:27:15 +00:00
sekiya b103a9ae62 Store return value of iur_proc_queue() in local variable iwpr (unreferenced
anywhere else in function), to appease gcc4.
2006-09-01 04:54:45 +00:00
sekiya 40be9d473d Include <sys/vnode.h>. Caught by gcc4. 2006-09-01 04:49:48 +00:00
he 3e73ce6bef Protect the include of "opt_ptrace.h" by _KERNEL_OPT. 2006-08-31 15:01:56 +00:00
oki a7e68afd48 Regen (for PTRACE). 2006-08-31 00:23:11 +00:00
oki a978ade516 Update for options PTRACE. 2006-08-31 00:21:09 +00:00
he 30ef9162ed Regen (for PTRACE). 2006-08-30 23:00:45 +00:00
he 77e02d283d Update for options PTRACE. 2006-08-30 23:00:06 +00:00
he 7fae0d129f Allow this to build as an LKM by testing for _KERNEL_OPT before
including opt_ptrace.h.
2006-08-30 17:14:34 +00:00
christos 8cc5bb6be9 fix and comment initializers. 2006-08-30 15:22:45 +00:00
he a7d7842fcb Regenerate after dealing with options PTRACE. 2006-08-30 14:02:12 +00:00
he 4ca1029105 Update to deal with options PTRACE. 2006-08-30 14:01:25 +00:00
cube 12092a2b5c Regen (netbsd32_ptrace protection). 2006-08-30 13:58:51 +00:00