Commit Graph

4845 Commits

Author SHA1 Message Date
ad 7813695db7 Add lock_owner_onproc(). 2006-09-07 02:06:47 +00:00
uwe d9aa7ac028 Make timeval argument to todr_settime volatile to keep non-timecounter
ports happy.
2006-09-07 01:50:49 +00:00
uwe 076748ce26 Mark sizeof(tvp->tv_sec) check CONSTCOND.
No space between the sizeof and the paren.
2006-09-07 01:43:52 +00:00
ad d7c9e86f43 Track lockmgr() sleep events for lockstat. 2006-09-07 01:08:45 +00:00
gdamore 942bfe3e30 Add support for new todr entry points for drivers- todr_gettime_ymdhms and
todr_settime_ymdhms.  This allows drivers to avoid repeated conversions, and
allows us to centralize check for Y2038 overflow.   As discussed on
tech-kern.
2006-09-07 00:10:49 +00:00
blymn c09e9ac5fb * Remove "hinted" interface
* Modify fileassoc internals to use fhandle_t instead of fileid
2006-09-06 13:37:49 +00:00
matt 7cdae31eb1 Before calling todr_gettime, fill in tv.tv_sec. At least one port (vax)
needs that functionality.
2006-09-05 19:32:17 +00:00
christos 931d28e672 use c99 initializers 2006-09-03 21:39:29 +00:00
christos 842f306745 use c99 initializers 2006-09-03 21:12:14 +00:00
gdamore 7b0092122f Update the base time (used when no filesystem or rtc time exists) to 12pm,
Jan 1, 2006. This is somewhat arbitrary, but its a heck of a lot better than
mid 1991. :-)
2006-09-03 17:13:04 +00:00
martin e0c4f3147e Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459. 2006-09-03 17:06:36 +00:00
christos 28ea22fb52 use c99 initializers, per gimpy's request 2006-09-03 06:40:39 +00:00
gdamore 487ed45995 Don't warn about RTC losing/gaining days if the filesystem time is bogus. 2006-09-03 06:37:55 +00:00
christos be15e5387b use c99 initializers 2006-09-03 06:34:34 +00:00
christos e2ea4b04bb avoid empty else statement 2006-09-03 06:25:19 +00:00
christos a307d25b10 add missing initializer 2006-09-03 06:24:21 +00:00
gdamore a6abab1852 Incorporate changes from x86/i386 as follows:
1) don't set a clock when panicing during early boot
2) if the filesystem time is newer than the rtc time (by at least 2 days) then
revert to the filesystem time.
3) use x86 style messaging.

We still use a threshold of 2 days of gain or loss in time to warn though.
2006-09-03 05:25:05 +00:00
gdamore c583da0d13 Add MI implementation of inittodr, todr_attach, and resettodr.
This is triggered upon __HAVE_GENRIC_TODR in machine/types.h.  Conversion of
evbmips port forthcoming.
2006-09-02 20:18:00 +00:00
elad 994bc68e9f Short-circuit calls to kauth_authorize_action() for a scope withtout any
listeners to always return "allow".

The idea is that it's not entirely unlikely that some vendors, or users,
will decide to load the security model as an LKM, and that can only
happen after at least mounting local file-systems. If we would not have
this fast-path, all authorization requests would be denied.

okay christos@
2006-09-02 20:10:24 +00:00
kardel e23bdf3c6e move MAX_TCNAMELEN into timetc.h, use constant in tmp buffer allocation 2006-09-02 13:45:04 +00:00
christos 8d6177c953 add missing initializer 2006-09-02 06:35:49 +00:00
christos bdd0dbdf82 add missing initializers 2006-09-02 06:35:12 +00:00
christos 72c936995b delete unreachable code 2006-09-02 06:33:11 +00:00
christos 9802793325 deal with empty if bodies 2006-09-02 06:32:09 +00:00
christos 2e1a2f9d5e comment out impossible comparison 2006-09-02 06:30:53 +00:00
christos 4e2f7e29cf - fix initializer
- comment out unused code
2006-09-02 06:29:13 +00:00
christos e04bc58b1a Add missing initializer 2006-09-02 06:26:13 +00:00
christos 04eadef67e add missing initializer 2006-09-02 06:22:45 +00:00
christos bbff9f7a92 Add missing initializers 2006-09-02 06:21:32 +00:00
matt 21b62eb996 Missed commit (Regen'ed). 2006-09-01 22:23:18 +00:00
matt 7e0679149d Properly deal with/without ktrace/ptrace/systrace 2006-09-01 21:24:50 +00:00
matt bb97e7087b process_domem exists for ktrace/ptrace/systrace 2006-09-01 21:05:33 +00:00
matt 894d299a2b Regen. (add __weak_alias(sys_ptrace, sys_nosys) when PTRACE is off) 2006-09-01 21:04:45 +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
dyoung ae7bd05531 Skip computing tags on IP Filter while its compatibility #defines
shadow important names like radix_node and radix_node_head.
2006-09-01 04:55:12 +00:00
dogcow 5d399ea343 process_stoptrace is also used by PTRACE; fixes INSTALL_SMALL, GENERIC_TINY,
et al, where KTRACE isn't defined but PTRACE is.
2006-08-31 18:05:21 +00:00
tsutsui 79d3499096 Disable asm statement which defines bpendtsleep symbol as "handy breakpoint"
on all m68k ports since it may cause a multiple symble definition error
by code duplication of gcc4 optimizer. Also note about this in comment.
2006-08-30 17:28:32 +00:00
cube 67306d2035 Make this compile under "no options COREDUMP". 2006-08-30 14:41:06 +00:00
cube c09480be6c Let those compile under "no options COREDUMP". 2006-08-30 13:55:03 +00:00
cube 21222420ab Regen against correct syscalls.master version [hi gimpy!]. 2006-08-30 13:53:41 +00:00
matt 984109dc99 Regen. 2006-08-30 11:35:21 +00:00
matt 0cf3f9db4e Add || defined(_KERNEL) to ptrace entry (like ktrace). 2006-08-30 11:34:26 +00:00
matt 583998d384 sys_process.c is also used by KTRACE. 2006-08-30 11:08:15 +00:00
matt 1f5dae8a54 #include "opt_ptrace.h" 2006-08-30 10:17:49 +00:00
matt bae263f051 Regen. 2006-08-29 23:37:30 +00:00
matt 084f43623d Fix typo (ktrace -> ptrace) 2006-08-29 23:36:56 +00:00
matt 9e0ec4816e Make PTRACE and COREDUMP optional. Make the default (status quo) by putting
them in conf/std.
2006-08-29 23:34:48 +00:00
yamt b153af038b don't include sys/lock.h as it is no longer necessary. 2006-08-28 13:41:04 +00:00
jld e782915872 Add %'s to go with PRI format constants. 2006-08-24 01:08:00 +00:00
manu 81c909dd45 1) Complete Linux exit_group() emulation
Members of the thread group must die without reporting to the parent and
without going to zombie stage. We do that by reparenting to init before
catching a SIGKILL. The parent will not see the child death.

The thread group leader must report the exit status, even if it exits
because of another thread calling exit_group(). We do that by storing the
exit status in struct linux_emuldata_shared, and the exit hook has the
duty of setting struct proc's p_xstat for the thread group leader.

2) For exit/fork/exec hooks, move the NPTL specific code to separate functions
that are shared between COMPAT_LINUX and COMPAT_LINUX32

3) Fix LINUX_CLONE_PARENT_SETTID semantics
2006-08-23 19:49:09 +00:00