John Baldwin
d46b3412dc
Fix the thr_create() entry by adding a trailing \. Also, sync up the
...
MP safe flag for thr_* with the main table.
2003-04-24 20:49:46 +00:00
Don Lewis
78b0aaefb5
VOP_FSYNC() expects to be called with the vnode locked, so lock fvp in
...
nfs_rename() before calling VOP_FSYNC() and unlock fvp immediately after.
Reviewed by: bde
2003-04-24 20:39:40 +00:00
Peter Wemm
d76f16de39
Fix a bug with df on large (>1TB) nfsv3 file servers on 32 bit client
...
machines where the 'long' number of blocks in struct statfs wont fit.
Instead of chosing an artificial 512 byte block size, simply scale it up
until we avoid an overflow. NFSv3 reports the sizes in bytes, and the
blocksize is a figment of nfsclient's imagination.
2003-04-24 20:36:32 +00:00
Jacques Vidrine
0030cba4aa
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
...
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 20:16:21 +00:00
Jacques Vidrine
43f9b2521d
Don't complain about missing NSS methods when built statically. It is
...
annoying and not very useful.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 19:57:31 +00:00
John Baldwin
696f22f04f
Fail to mount a device if the bytes per sector in the BPB is less than
...
DEV_BSIZE or if the number of FAT sectors is zero.
2003-04-24 18:19:19 +00:00
Mike Makonnen
20350cadb9
Use $ipnat_program instead of the hardcoded path, which was wron
...
anyways.
Approved by: markm (mentor) (implicit)
Submitted by: leafy <leafy@leafy.idv.tw>
2003-04-24 18:14:52 +00:00
Jacques Vidrine
c5774e2d30
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
...
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 18:05:48 +00:00
Jacques Vidrine
20e0e084e7
Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by
...
namespace.h.
Sponsored by: DARPA, Network Associates Laboratories
2003-04-24 17:41:20 +00:00
Wes Peters
943927683f
Make P_PROTECTED not conflict with P_STOPPED_SIG. Replace
...
P_UNUSED100000 which is *truly* unused, until now.
Submitted by: Robert Drehmel <robert@zoot.drehmel.com>
2003-04-24 16:20:14 +00:00
Hidetoshi Shimokawa
a2da26fc1d
Fix printf warnings for i386 with PAE.
...
Submitted by: harti
2003-04-24 15:27:06 +00:00
Guy Helmer
8ebcf97e95
init_nsm() is executed after a call to daemon(*, 0), so error and
...
warning messages should be logged rather than sent to /dev/null.
PR: bin/45461
2003-04-24 14:38:42 +00:00
Alexander Kabaev
5c352f0e5a
Fix a typo in UINT_MAX definition.
2003-04-24 14:25:38 +00:00
Dag-Erling Smørgrav
7deb88a07b
Forced commit to note that the previous commit was made in response to
...
PR: bin/51245
2003-04-24 12:27:01 +00:00
Dag-Erling Smørgrav
be01d58da1
Remove a bogus null password check which assumed that a user with an empty
...
password must necessarily have an empty pwd->pw_passwd. Also add a check
that prevents users from setting a blank password unless the nullok option
was specified. Root is still allowed to give anyone a blank password.
2003-04-24 12:26:25 +00:00
Dag-Erling Smørgrav
b418f48cba
Add nullok to the pam_unix line.
2003-04-24 12:22:42 +00:00
Dag-Erling Smørgrav
013466aa50
It seems that 1 was not a magic value as I thought, but a coincidence.
...
Instead of applying the adjustment to processes with a start time of 1,
apply it to all processes with a start time of less than 3600.
None of this would be necessary if the start times were recorded in ticks
instead of seconds and microseconds.
2003-04-24 12:12:06 +00:00
Tim J. Robbins
ceff7f2a48
Do a better job of calculating the RSS for swapped-out processes:
...
don't include the kernel stacks of swapped-out threads in the page count,
but do include the alternate kernel stack. jhb provided some helpful
comments on this.
PR: 49102
2003-04-24 11:03:04 +00:00
Hiten Pandya
70ce116756
device s/acpica/acpi/
...
Noticed by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Approved by: des (mentor)
2003-04-24 09:54:18 +00:00
Maxim Konovalov
95a94fb6d5
Aristotle dies in 02 Oct 322 BC not in March.
...
PR: misc/46440
Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>
MFC after: 4 days
2003-04-24 09:54:02 +00:00
Hidetoshi Shimokawa
6c1acd010e
Fix printf warning for RELENG_4.
2003-04-24 09:27:17 +00:00
Maxim Konovalov
936690ebe4
Fix a typo: "Managment" -> "Management".
...
PR: bin/47343
Submitted by: Jeremy C. Reed <reed@reedmedia.net>
MFC after: 4 days
2003-04-24 09:16:01 +00:00
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