das [Fri, 4 Feb 2005 14:08:32 +0000 (14:08 +0000)]
Remove wrappers and other cruft intended to support SVID, mistakes in
C90, and other arcana. Most of these features were never fully
supported or enabled by default.
delphij [Fri, 4 Feb 2005 14:01:06 +0000 (14:01 +0000)]
Save last displayed file by having the "last" pointer global and save it
during we show the first file's tail. Instead of:
tarsier% tail -f 1 2
==> 1 <==
foo
bar
==> 2 <==
bar
foo
==> 2 <==
bar2
foo2
Now with this change, we have:
tarsier% tail -f 1 2
==> 1 <==
foo
bar
==> 2 <==
bar
foo
bar2
foo2
While I'm there, move a comment to where it should belong to. Also,
const'ify the "last" static because we will never need to change the
contents it points to.
harti [Fri, 4 Feb 2005 13:34:16 +0000 (13:34 +0000)]
None of the users of Buf_Discard used it to get rid of only a part of
the buffer. So replace Buf_Discard by Buf_Clear which just gets rid
of the entire contents.
delphij [Fri, 4 Feb 2005 08:41:44 +0000 (08:41 +0000)]
Import a (stripped) snapshot of OpenBSD's nc(1) an excellent
reimplementation of the famous tool that can do arbitrary TCP
and UDP connections and listens.
This gaves sysadm the same tool the crackers have, so that
they may learn what the network is about and protect it better.
For developers, this is an invaluable debugging tool, and a
good build block of scripts.
njl [Fri, 4 Feb 2005 05:45:07 +0000 (05:45 +0000)]
Add the ACPI Performance states driver. This driver offers two or more
settings as exported via the ACPI _PSS method. OEMs use this interface
to encapsulate chipset or processor-specific methods (e.g., SpeedStep or
Powernow) and export their settings in a standard way. On systems that
have valid ACPI Performance states and a hardware-specific driver (e.g.,
ichss), acpi_perf(4) is preferred.
njl [Fri, 4 Feb 2005 05:42:29 +0000 (05:42 +0000)]
Add a cpufreq driver for the SpeedStep capability in the ICH chipset. This
driver offers two settings. Information for this driver was obtained from
the Intel datasheets and by reviewing the Linux driver.
njl [Fri, 4 Feb 2005 05:38:30 +0000 (05:38 +0000)]
Add an interface for cpufreq. The kernel interface lets other drivers
select the CPU frequency level (say for cooling). The driver interface
allows hardware drivers to announce themselves as capable of adjusting
an individual frequency setting.
grehan [Fri, 4 Feb 2005 01:59:48 +0000 (01:59 +0000)]
- recognize 7447A/7448 CPUs (used in miniMacs)
- enable 745x branch caches. Already enabled by OpenFirmware
on Macs, but reduces NetBSD diffs and usable by embedded folk.
grehan [Fri, 4 Feb 2005 01:41:38 +0000 (01:41 +0000)]
- add wall_cmos_clock and adjkerntz variables, required by msdosfs
- support adjkerntz sysctl to silence NTP, though it's a null
implementation at the moment.
kuriyama [Thu, 3 Feb 2005 22:21:19 +0000 (22:21 +0000)]
- Use svc_getrpccaller() rather than svc_getcaller() for using
xt_rtaddr member of SVCXPRT structure. This allows to use IPv6
address stored in "struct sockaddr_storage" in "struct netbuf".
- Output the reason of getnameinfo() error.
jhb [Thu, 3 Feb 2005 19:06:03 +0000 (19:06 +0000)]
Anytime we write to the RTC's status B register to possibly enable
interrupts, read from the interrupt status register to clear any pending
interrupts. Otherwise in some rare cases the RTC would never fire any
interrupts as it constantly thinks it has an interrupt pending.
PR: i386/17800
PR: kern/76776
Submitted by: Jose M. Alcaide jose at we dot lc dot ehu dot es
MFC after: 2 weeks
pjd [Thu, 3 Feb 2005 15:10:58 +0000 (15:10 +0000)]
- Move gets() function to libkern (I want to use it outside vfs_mount.c).
- Add buffer size limitations (overflow will not be possible anymore).
- Add 'visible' option, which will allow for passphrase reading in the
future.
- Remove special treatment of '@' and '#', those two are only confusing.
rwatson [Thu, 3 Feb 2005 10:35:05 +0000 (10:35 +0000)]
When entering siocnputc() with (kdb_active), don't acquire (or
release) the sio spin mutex, as use of synchronization primitives in
the debugger can result in substantial problems. With this patch in
place entering the debugger via a serial console is made
substantially more reliable.
grehan [Thu, 3 Feb 2005 06:28:17 +0000 (06:28 +0000)]
- remove NO_MODULES since they've been working for some time
- add -fno-omit-framepointer to CFLAGS if DDB is enabled so
backtraces will still work when optimization is enabled.
Stolen from Makefile.amd64.
Due to one of the bugs (^C was the first character of each line
when sorting), the -b option of sort(1) didn't take any effect,
so stay bug-compatible, and remove the -b option.
alfred [Wed, 2 Feb 2005 22:14:10 +0000 (22:14 +0000)]
Modify rpcgen -t output to something that's a lot more useful in
today's modern "no sir, not today" compilers.
Basically, when building the table:
use NULL instead of 0,
use braces around array initializers,
case the function pointers to xdrproc_t,
don't cast function pointers that do not need casting.
jeff [Wed, 2 Feb 2005 17:17:15 +0000 (17:17 +0000)]
- Correct a typo in kern_rename. tvfslocked should be initialized from
tond and not fromnd. This could lead us to leak Giant, or unlock it
twice, depending on the filesystems involved. renames within a single
filesystem would not have caused any problems.
rwatson [Wed, 2 Feb 2005 14:27:36 +0000 (14:27 +0000)]
Add a stub audit_kevents.h, which defines exactly one audit event:
AUE_NULL. This is a place-holder to allow other audit infrastructure
to be introduced, such as an updated syscalls.master file format,
while the license on the real audit_kevents.h is fixed.