Mike Makonnen
f6b6e5ea40
o Add support for running /etc/rc.early
...
o Re-run through /etc/sysctl.conf a second time just before we set
the securelevel.
Approved by: markm (mentor) (implicit)
Reviewed by: dougb
2003-04-24 08:27:29 +00:00
Mike Makonnen
8cf06adbcb
Make ipfilter, ipnat, ipmon, and ipfs behave more like the old rc.
...
o group them together so they run one right after another
o use the NetBSD supplied ipfs script instead of tacking
it on to the end of ipnat
o Load the ipl module in ipnat and ipfilter, if it's not already
loaded
o In ipmon and ipnat show a warning if neither ipfilter nor
ipnat is enabled or the ipl module is not loaded, and exit
Approved by: markm (mentor) (implicit)
Tested by: leafy <leafy@leafy.idv.tw>
2003-04-24 08:20:47 +00:00
Tim J. Robbins
38dd7dee8a
Free mount credentials (mnt_cred) when freeing the mount struct
...
in failure cases to avoid leaking struct ucreds, and ultimately
leaking struct uidinfo references.
2003-04-24 08:16:06 +00:00
Hidetoshi Shimokawa
8fd36d4aa6
Add some IEEE 1394 OHCI chips.
...
Partially submitted by: Tetsuya Ryuchi <ryuchi@ryuchi.org>
PR: misc/51336
2003-04-24 07:29:52 +00:00
Alan Cox
875791f63d
- Move swap_pager_isswapped()'s prototype to a more logical place.
2003-04-24 05:29:27 +00:00
Alan Cox
b6e48e0372
- Acquire the vm_object's lock when performing vm_object_page_clean().
...
- Add a parameter to vm_pageout_flush() that tells vm_pageout_flush()
whether its caller has locked the vm_object. (This is a temporary
measure to bootstrap vm_object locking.)
2003-04-24 04:31:25 +00:00
Dag-Erling Smørgrav
1f7440d9f6
When filling out a kinfo_proc structure, if we come across a process
...
whose p_stats->p_start has the magic value 1, replace it with boottime.
Some users were apparently confused by the fact that ps(1) reported a
start time in early 1970 for system processes.
2003-04-24 03:37:59 +00:00
David Xu
e63c419732
Don't print anything for fault at cpu_switch_load_gs, just like other
...
code to recover fault in doreti because of invalid segment registers,
silently push error to userland.
2003-04-24 01:48:59 +00:00
Garance A Drosehn
3d3e9b01a1
Document support for the new -s and -R command-line options, and
...
the 'N' flag. These were coded in March as revisions 1.55 and 1.56
of newsyslog.c. I intend to MFC all the matching changes next week.
This also reorganizes the description of the 'flags' field to give
list of the valid flags, instead of a long paragraph explaining
each of the possible values.
Obtained from: NetBSD (in spirit at least, for -s and N)
MFC after: 1 week
2003-04-24 01:34:40 +00:00
Dag-Erling Smørgrav
d885e237ca
Don't convert the kernel ident to uppercase when writing the Makefile.
2003-04-24 00:52:58 +00:00
Archie Cobbs
c1404dc060
Tweak to previous commit: increment ifp->if_iqdrops if the m_copy() fails.
...
Suggested by: Neelkanth Natu <neelnatu@yahoo.com>
2003-04-23 23:45:57 +00:00
Jordan K. Hubbard
f2e30adc3f
Sync with latest and greatest Apple sources (which, among other things, fix
...
the style flag).
Submitted by: Conrad Minshall <conrad@apple.com>
Reviewed by: jkh
Obtained from: Apple Computer, Inc.
2003-04-23 23:42:23 +00:00
Warner Losh
5de7693b9f
Remove obsolete compatibility ifdef.
2003-04-23 23:41:48 +00:00
Warner Losh
e4d8ed2595
Copy CIS3 and CIS4 strings into the kernel too.
...
PR: 51333
Submitted by: Scott Mitchell
2003-04-23 23:40:28 +00:00
Warner Losh
9598fb9322
1. Allow drivers to query CIS strings from OLDCARD.
...
2. Include backwards compatibility good for the moment (eventually will
be turned off in current, but allow for a short transition period).
PR: 51333
Submited by: Scott Mitchell (1)
MFC after: 2 weeks
2003-04-23 23:39:21 +00:00
Warner Losh
d6b4602222
Add accessor for cis4 string. Neither OLDCARD nor NEWCARD support
...
this yet, but that will change soon.
Pr: 51333
Submited by: Scott Mitchell
2003-04-23 23:32:53 +00:00
Daniel Eischen
10629b6587
Add a macro to get the current thread mailbox pointer.
2003-04-23 21:49:34 +00:00
Daniel Eischen
c159269082
Remove the i386-specific hack (well, we only run on i386 anyways)
...
to always set %gs when resuming a thread.
Install this library as libpthread instead of libkse.
2003-04-23 21:48:29 +00:00
Daniel Eischen
f1c8192fd4
Protect thread errno from being changed while operating
...
on behalf of the KSE.
Add a kse_reinit function to reinitialize a reused KSE.
Submitted by: davidxu
2003-04-23 21:46:50 +00:00
Alexander Kabaev
6fd839f9c7
Add a new sys/limits.h file which in turn depends on machine/_limits.h
...
to get actual constant values. This is in preparation for machine/limits.h
retirement.
Discussed on: standards@
Submitted by: Craig Rodrigues <rodrigc@attbi.com> (*)
Modified by: kan
2003-04-23 21:41:59 +00:00
Poul-Henning Kamp
0a9c130c06
Introduce a g_waitfor_event() function which posts an event and waits for
...
it to be run (or cancelled) and use this instead of home-rolled versions.
2003-04-23 21:28:27 +00:00
Garance A Drosehn
356e4049da
Document support for the <default> entry, which was implemented in
...
revision 1.50 of newsyslog.c , back in February. I intend to MFC
those changes soon.
MFC after: 4 days
2003-04-23 21:26:12 +00:00
Poul-Henning Kamp
a974614b05
More of the event stuff can now be private to geom_event.c
2003-04-23 20:54:42 +00:00
Poul-Henning Kamp
8cd1535a24
Rename g_call_me() to g_post_event(), and give it a flag
...
argument to determine if we can M_WAITOK in malloc.
2003-04-23 20:46:12 +00:00
Johan Karlsson
7f10745771
style(9): use NULL when assigning/comparing a char *,
...
consitently compare fileid with 0 using == and !=.
Reviewed by: silence on @audit
2003-04-23 20:33:57 +00:00
Johan Karlsson
7d2101965f
Make this WARNS=5 clean by adding () in 'if (a || (b && c))'.
...
Look at by: sebastian.ssmoller@web.de on audit@
2003-04-23 20:26:21 +00:00
Poul-Henning Kamp
d98777f8db
Remove the now unused hardcoded g_post_event() event support.
2003-04-23 20:25:33 +00:00
Johan Karlsson
eb3beef5ad
Make this WARNS=5 clean by using %j and (uintmax_t).
...
Look at by: sebastian.ssmoller@web.de on audit@
2003-04-23 20:24:13 +00:00
Johan Karlsson
b107cd7718
These are WARNS=5 clean, mark them as such to keep them that way.
...
Look at by: sebastian.ssmoller@web.de on audit@
2003-04-23 20:22:33 +00:00
John Hay
d8422795fa
Use bus_space*() instead of in*() and out*().
2003-04-23 20:22:32 +00:00
Poul-Henning Kamp
9ab3ea7841
Turn EV_NEW_PROVIDER into a g_call_me() event.
2003-04-23 20:16:13 +00:00
Poul-Henning Kamp
f2e9a09494
Convert EV_SPOILED event to use g_call_me().
2003-04-23 20:06:38 +00:00
John Baldwin
cf60731b01
Remove Giant from osigblock(), osigsetmask(), and kern_sigaltstack().
2003-04-23 19:49:18 +00:00
Poul-Henning Kamp
9972896c00
Turn the hardwired NEW_CLASS event into a g_call_me() event.
2003-04-23 19:34:38 +00:00
Poul-Henning Kamp
b5cba4167f
Move the shutdown eventhandler stuff to a more logical place.
2003-04-23 19:15:27 +00:00
John Baldwin
48fdefd188
Update many of the locking notes and comments for struct
...
thread/kse/ksegroup/proc.
2003-04-23 18:54:30 +00:00
John Baldwin
5eac9e2dcb
The signotify() sanity check in userret() doesn't need Giant anymore.
2003-04-23 18:51:55 +00:00
John Baldwin
2056d0a168
Add lock assertions for various proc/thread/kse/ksegroup fields to the
...
scheduler functions.
2003-04-23 18:51:05 +00:00
John Baldwin
5afe0c9947
- Reorganize osigstack() to do the copyin first, grab the proc lock once,
...
do all the various sigstack dances, unlock the proc lock, and finally do
the copyout. This more closely resembles the behavior of
kern_sigaltstack() and closes a small race.
- Remove Giant from osigstack as it is no longer needed.
2003-04-23 18:50:25 +00:00
John Baldwin
4d923fe3f5
Remove Giant from [gs]etpriority().
2003-04-23 18:48:55 +00:00
John Baldwin
112afcb232
- Protect p_numthreads with the sched_lock.
...
- Protect p_singlethread with both the sched_lock and the proc lock.
- Protect p_suspcount with the proc lock.
2003-04-23 18:46:51 +00:00
Archie Cobbs
79db6ff316
Fix a case where the return value from m_copy() was not being checked
...
for NULL before proceeding, causing a crash if mbufs were exhausted.
MFC after: 3 days
Reported by: Mark Gooderum <mark@verniernetworks.com>
2003-04-23 18:35:40 +00:00
John Baldwin
11edc1e0d7
Fix compiling in the NO_SWAPPING case.
...
Submitted by: bde (partially)
2003-04-23 18:21:41 +00:00
John Baldwin
c6004a6202
Fix a lock order reversal. Unlock the proc before calling fget().
...
Reported by: kris
2003-04-23 18:13:26 +00:00
Dag-Erling Smørgrav
581ff5e326
Remove Kerberos IV shims.
2003-04-23 17:26:01 +00:00
Dag-Erling Smørgrav
d8b043c8d4
Update for 3.6.1p1; also remove Kerberos IV shims.
2003-04-23 17:25:47 +00:00
Dag-Erling Smørgrav
2d61bc6706
Nit.
2003-04-23 17:23:06 +00:00
Dag-Erling Smørgrav
ae48cf5798
Improvements to the proposed shell code.
2003-04-23 17:21:55 +00:00
Dag-Erling Smørgrav
07a3a2906c
Regenerate.
2003-04-23 17:21:27 +00:00
Dag-Erling Smørgrav
e73e9afa91
Resolve conflicts.
2003-04-23 17:13:13 +00:00