dwmalone [Mon, 10 Dec 2001 21:13:08 +0000 (21:13 +0000)]
Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
guido [Mon, 10 Dec 2001 20:27:18 +0000 (20:27 +0000)]
Get rid of irritating (bogus) message:
pcm0: ac97 codec failed to reset extended mode (0, got 80)
This was due to not masking off the correct extended function bits
in the read value from the extended status reg.
guido [Mon, 10 Dec 2001 20:02:22 +0000 (20:02 +0000)]
Add new boot flag to i386 boot: -p.
This flag adds a pausing utility. When ran with -p, during the kernel
probing phase, the kernel will pause after each line of output.
This pausing can be ended with the '.' key, and is automatically
suspended when entering ddb.
This flag comes in handy at systems without a serial port that either hang
during booting or reser.
Reviewed by: (partly by jlemon)
MFC after: 1 week
murray [Mon, 10 Dec 2001 10:34:47 +0000 (10:34 +0000)]
Provide a more specific help line for PLIP installs, reminding the
user that they must provide the peer's IP address in the 'extra
options to ifconfig' box.
sheldonh [Mon, 10 Dec 2001 09:26:30 +0000 (09:26 +0000)]
Remove the advice relating to the number of cylinders per cylinder
group. The highest possible value is calculated automatically since
rev 1.41 of src/sbin/newfs.c .
obrien [Mon, 10 Dec 2001 02:42:42 +0000 (02:42 +0000)]
An XFree86 install should not depend on any compat libs any longer.
(1) We don't need compat3x and compat4x as we build the bits on the proper
release now (vs. getting them from the XFree people).
(2) We handle the compat2x needs thru proper port dependancies now.
obrien [Mon, 10 Dec 2001 02:35:54 +0000 (02:35 +0000)]
Update the list of public NTP servers from
http://www.eecis.udel.edu/~mills/ntp/clock2.htm
Also remove any Stratum 1 servers and only include Stratum 2 and higher
servers.
dillon [Sun, 9 Dec 2001 23:40:02 +0000 (23:40 +0000)]
Add auto-fill-on-delete. When deleting an 'A'uto created partition
sysinstall will automatically expand the previous partition to take up
the freed up space. So you can 'D'elete /home and /usr will get the
combined space, or you can 'D'elete /tmp and /var will get the combined space.
This gives the user, developer, or lay person a huge amount of flexibility
in constructing partitions from an 'A'uto base. It takes only 3 or 4
keystrokes to achieve virtually any combination of having or not having
a /tmp and/or /home after doing an 'A'uto create.
Change 'A'uto creation of /var/tmp to 'A'uto creation /tmp, which should
be less controversial.
iedowse [Sun, 9 Dec 2001 20:18:36 +0000 (20:18 +0000)]
Don't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINT
and SIGQUIT during shutdown", but rpc.umntall is also run at boot
time, so ignoring these signals is a really bad idea: it makes it
impossible to ^C the process as it waits for a server response. I
can't see any reason to block these signals during shutdown either.
obrien [Sun, 9 Dec 2001 19:11:45 +0000 (19:11 +0000)]
We need machine/types.h to build a cross GCC compiler.
(copied from src/sys/i386/include/types.h rev 1.23, except for the label_t
size, which is '10' everywhere BUT on i386)
iwasaki [Sun, 9 Dec 2001 18:02:36 +0000 (18:02 +0000)]
Disable sleep requests for 5 sec after wakeup. This is needed for
some Toshiba and Thinkpad laptops.
Wakeup event is generated by power button or sleep button on some
laptops but this also generates SCI interrupt, and shutdown the system
as result. So this is introduced so that acpi driver ignore given
requests for certain period.
jkh [Sun, 9 Dec 2001 09:53:27 +0000 (09:53 +0000)]
Don't assume that the number of fds to select on is known quantity (in
this case 16). Use dynamic FD_SETs and calculated high-water marks
throughout. There are also too many versions of telnet in the tree.
Obtained from: OpenBSD and Apple's Radar database
MFC after: 2 days
dillon [Sun, 9 Dec 2001 09:47:09 +0000 (09:47 +0000)]
Cleanup sysinstall's 'A'uto partitioning mode to provide more reasonable
defaults both in regards to the size of the partitions that are created
and in regards to safety and functional separation.
Still TODO: extend the previous partition to cover a deleted partition
if the previous partiton was auto-created, and supply some sort of
solution for /tmp.
Reviewed by: Just about everyone
Approved by: Nobody except maybe my pet mouse fred
Obtained from: God, so complain to HIM
MFC after: 1 week
alc [Sun, 9 Dec 2001 08:16:36 +0000 (08:16 +0000)]
o Eliminate unnecessary synchronization from filt_aiodetach().
o The manual page for kevent says that EVFILT_AIO returns under the same
conditions as aio_error(). With that in mind, set the data field
of the returned struct kevent to the value that would be returned
by aio_error().
o Fix two compilation warnings.
msmith [Sun, 9 Dec 2001 06:02:46 +0000 (06:02 +0000)]
The ScanLogic SL11R-IDE claims to be SCSI-compatible, but actually requires
the UFI command set. Even with this patch, it's incredibly slow on my
laptop, but at least now it works.
Note that the drive is reported to CAM with the vendor and device IDs from
the device itself, forcing the user to patch the da(4) quirk table
manually.
dillon [Sun, 9 Dec 2001 01:57:09 +0000 (01:57 +0000)]
Allow maxusers to be specified as 0 in the kernel config, which will
cause the system to auto-size to between 32 and 512 depending on the
amount of memory.
des [Sat, 8 Dec 2001 22:34:14 +0000 (22:34 +0000)]
Fix a KSEfication brain-o in procfs_doprocfile(): return the path of the target process,
not the calling process. While we're here, also unstaticize procfs_doprocfile() and
procfs_docurproc() so linprocfs can call them directly instead of duplicating them.
jkh [Sat, 8 Dec 2001 21:51:34 +0000 (21:51 +0000)]
Don't assume that the number of fds to select on is known quantity (in
this case 16). Use dynamic FD_SETs and calculated high-water marks
throughout.
Obtained from: OpenBSD and Apple's Radar database
MFC after: 2 days
cjc [Fri, 7 Dec 2001 23:57:39 +0000 (23:57 +0000)]
Long ago, there was just /etc/daily. Then /etc/security was split out
of /etc/daily. Some time later, /etc/daily became a set of periodic(8)
scripts. Now, this evolution continues, and /etc/security has been
broken into periodic(8) scripts to make local customization easier and
more maintainable.
rwatson [Fri, 7 Dec 2001 18:05:24 +0000 (18:05 +0000)]
o Expand list of tunables documented in loader.8 to include kern.maxusers,
since other related tunables were also documented here. Add a cross
reference to tuning(7) for information on setting this value
appropriately.
rwatson [Fri, 7 Dec 2001 17:03:14 +0000 (17:03 +0000)]
o Update rc.network to reflect the recent change of default in the
kernel TCP timer code: rather than checking for tcp_keepalive being
set to "YES", check for "NO" and turn off keepalives if the variable
is set in that manner.
o Note: eventually, it would make sense to remove this variable from
rc.conf management, and instead rely on sysctl.conf. In fact, this
is probably true of a number of rc.conf variables whose sole aim
is to drive the setting of sysctls at boot time.
rwatson [Fri, 7 Dec 2001 17:01:28 +0000 (17:01 +0000)]
o Our currenty userland boot code (due to rc.conf and rc.network) always
enables TCP keepalives using the net.inet.tcp.always_keepalive by default.
Synchronize the kernel default with the userland default.
phantom [Fri, 7 Dec 2001 12:38:47 +0000 (12:38 +0000)]
* localeconv() usage is not FLOATING_POINT specific anymore (due to "'" flag
addition) so move locale.h inclusion out of FLOATING_POINT ifdef's.
* add more comments