Commit Graph

54215 Commits

Author SHA1 Message Date
Jonathan Lemon
4a476efa51 Protect p_wchan with sched_lock in selwakeup(). 2000-11-21 20:22:34 +00:00
Mark Murray
39413503a4 Assembler fixes.
Fix opcodes that were typed as ".byte 0xNN, 0xMM" when an older
assembler could not recognise the newer Pentium instructions.
Reviewed by:	jhb
2000-11-21 20:16:49 +00:00
Warner Losh
faa913d76d Fix buffer overflows in filenames. If you had a path > 80 characters
for your /usr/obj/path/to/my/files path to the kernel, then weird
things happened.  make buildkernel would fail because config was
dumping core or generating bad file names (depending on the lenght of
the path).

While I was here, also use strlcpy, strlcat and snprintf (or asprintf)
as necessary.  Minor format policing for the snprintf calls as well.
2000-11-21 19:58:55 +00:00
Mark Murray
5855006767 Add a consistent API to a feature that most modern CPUs have; a fast
counter register in-CPU.

This is to be used as a fast "timer", where linearity is more important
than time, and multiple lines in the linearity caused by multiple CPUs
in an SMP machine is not a problem.

This adds no code whatsoever to the FreeBSD kernel until it is actually
used, and then as a single-instruction inline routine (except for the
80386 and 80486 where it is some more inline code around nanotime(9).

Reviewed by:	bde, kris, jhb
2000-11-21 19:55:21 +00:00
Alan Cox
c6fa9f78d2 Provide a new interface for the user of aio_read() and aio_write() to request
a kevent upon completion of the I/O.  Specifically, introduce a new type
of sigevent notification, SIGEV_EVENT.  If sigev_notify is SIGEV_EVENT,
then sigev_notify_kqueue names the kqueue that should receive the event
and sigev_value contains the "void *" is copied into the kevent's udata
field.

In contrast to the existing interface, this one: 1) works on
the Alpha 2) avoids the extra copyin() call for the kevent because all
of the information needed is in the sigevent and 3) could be
applied to request a single kevent upon completion of an entire lio_listio().

Reviewed by:	jlemon
2000-11-21 19:36:36 +00:00
John Baldwin
0fb3a41200 Stop handcoding a couple of instructions since gas 2.10 can properly
assemble 16-bit code.

Noticed by:	markm
2000-11-21 18:36:10 +00:00
Ruslan Ermilov
48d1139d2a mdoc(7) police: Add a missing `.Sm on' request. 2000-11-21 18:18:46 +00:00
Jeroen Ruigrok van der Werven
02e1f97870 Clarify the time parameter of the kevent() system call.
Inspired by PR:		21708
Submitted by:		Ronald F. Guilmette <rfg@monkeys.com>
Reviewed by:		jlemon
2000-11-21 15:22:36 +00:00
Jun Kuriyama
f4486e7573 Reflect reality about number of developers.
Submitted by:	sheldonh
2000-11-21 14:31:10 +00:00
Julian Elischer
07076ce1f7 Bump the buffersize from 0x1000 to 0x4000.
0x1000 gets underflows on my dell 7500 whenever I moved the mouse.
(reported as "hwptr went backwards...", with jumpy sound)
Sounds great now....
2000-11-21 12:22:11 +00:00
Ben Smithurst
b9b9e020c9 Remove text saying "this is available from the compatibility library,
libcompat" in favour of a .Sh LIBRARY section using the .Lb macro.  Also add
.Bf -symbolic around the text saying "this is obsolete" in re_comp.3.

PR:		22675
Submitted by:	Mike Meyer <mwm@mired.org>
Reviewed by:	sheldonh
2000-11-21 12:03:30 +00:00
Ruslan Ermilov
a8e0cb75cc mdoc(7) police: fixed the section reference to the mdoc.samples(7). 2000-11-21 08:12:23 +00:00
MIHIRA Sanpei Yoshiro
d0edec5ce3 add Linksts EtherFast 10/100 PC Card (PCMPC100 V2)
Submitted by:	Ben Lutgens <blutgens@usinternet.com>
2000-11-21 07:01:24 +00:00
Mike Smith
6e64832134 Don't test the return value from the actual command when determining
success/failure for submission of the command.  The caller will want
to deal with this itself.
2000-11-21 06:58:24 +00:00
Doug Barton
56cda6bf39 If a user is in the database, rmuser ought to be able to remove them.
Address this by using getpwnam(), thus killing several birds with
the same stone. My fix is slightly more aggressive than the
originators. :)

PR:		misc/22278
2000-11-21 05:52:35 +00:00
Marcel Moolenaar
0a0743b52a Fix release, broken by the perl cross-build fixes.
The distribute target is basicly the same as an install. For
perl, this means that miniperl is needed. Since miniperl is
only present in the object directory, we need to make sure
the path is set correctly. To do this, we have make release
use a new distribworld target that sets the path before doing
a make distribute.
2000-11-21 04:37:30 +00:00
Doug Barton
4c6250e510 Do a better job of preserving the value rc is called with
in the face of possible corruption by rc.diskless*.

PR:		misc/21904
Submitted by:	Anton Voronin, anton@urc.ac.ru
2000-11-21 04:21:54 +00:00
Andrew Gallatin
c75fa7f70c fix isa DMA on pyxis based machines:
- move the call to cia_init_sgmap() to after we've determined if we're a pyxis
- convert needed splhigh() in cia_sgmap_invalidate_pyxis() to disable_intr()

Previously, any isa DMA on a pyxis based machine would cause a panic
in cia_sgmap_invalidate_pyxis() because the pyxis workaround was never
setup.

- while i'm at it, convert needed splhigh() in cia_swiz_set_hae_mem to
disable_intr()
2000-11-21 03:25:31 +00:00
Jordan K. Hubbard
c46073c0d0 Update source description to note that everything is now included.
Submitted by:	Chris Faulhaber <jedgar@fxp.org>
2000-11-21 02:22:31 +00:00
Bruce A. Mah
563b49c3d3 Note that CD-ROMs are ordered from "BSDi / Walnut Creek CDROM".
While I'm here, note that BSDi is in the USA and make the phone
number formats consistent.
2000-11-20 23:20:35 +00:00
Poul-Henning Kamp
d7450ce6d5 Make programs which still #include <machine/{mouse,console}.h> fail
at compiletime, with an explanatory error message.  Previously they
would only get a warning.

These files will be finally removed 2001-01-15
2000-11-20 22:00:25 +00:00
Robert Nordier
a91d357884 Typo police. 2000-11-20 20:37:49 +00:00
Robert Nordier
3333ebb58f Wrap over-long line; drop superfluous include. 2000-11-20 20:35:35 +00:00
Ruslan Ermilov
e97407b4f2 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 20:10:44 +00:00
Jordan K. Hubbard
a41801c68a finish conditionalizing the PC98 specific options off the PC98
compilation variable.
2000-11-20 19:44:17 +00:00
Ruslan Ermilov
8fe908ef0c mdoc(7) police: use the new features of the Nm macro. 2000-11-20 19:21:22 +00:00
Ruslan Ermilov
4b66483fd8 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 18:41:33 +00:00
Ruslan Ermilov
d5874785b9 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 17:05:46 +00:00
Ruslan Ermilov
7c7fb079b9 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 16:52:27 +00:00
Sheldon Hearn
067c7f48de Fix hard sentence break introduced in rev 1.7. 2000-11-20 16:25:10 +00:00
Sheldon Hearn
8e770e7803 Add a period missing from rev 1.13. 2000-11-20 16:19:37 +00:00
Sheldon Hearn
3efaff6731 Remove blank line introduced in rev 1.13. 2000-11-20 16:18:45 +00:00
Sheldon Hearn
88927276f9 Document the libcompat entry for the .Lb macro.
Submitted by:	phantom
2000-11-20 16:14:08 +00:00
Sheldon Hearn
3c4d9b1ad5 Fix broken (sectionless) cross-reference in ref 1.10. 2000-11-20 16:09:47 +00:00
Sheldon Hearn
3d8a8abc28 Fix bug in rev 1.7:
Use a paragraph marker (Pp) instead of a blank line.
2000-11-20 16:06:00 +00:00
Sheldon Hearn
7061ab237b Fix a bug that's survived since rev 1.1:
Don't mark the word "file" up as a pathname in "/etc/group file".  For
the sake of consistency with rev 1.18, use Nm instead of "Pa /etc/group"
and break "file" onto the next line.
2000-11-20 16:05:09 +00:00
Sheldon Hearn
82bad969b8 Fix problems introduced in rev 1.16:
* Hard sentence break.

* Using Nm for the file in the first paragraph made the use of Pa in the
  second paragraph look silly.
2000-11-20 16:01:50 +00:00
Sheldon Hearn
1692a4f147 Fix problems introduced in rev 1.18:
* Broken (sectionless) cross-reference to nsswitch.conf.
* Trailing whitespace.
2000-11-20 15:56:22 +00:00
Sheldon Hearn
3ec9f22241 Add libcompat record for .Lb macro. 2000-11-20 15:07:14 +00:00
Ruslan Ermilov
760819894e mdoc(7) police: use the new features of the Nm macro. 2000-11-20 14:42:24 +00:00
Ruslan Ermilov
a304568fd9 mdoc(7) police: fixed warnings. 2000-11-20 14:22:41 +00:00
Ruslan Ermilov
432108fa2a mdoc(7) police: fixed warning. 2000-11-20 14:18:21 +00:00
Ruslan Ermilov
563f6bde6e mdoc(7) police: Nm -> Fn where appropriate. 2000-11-20 14:11:46 +00:00
Ruslan Ermilov
3b8ecdbbbe mdoc(7) police: use the new features of the Nm macro. 2000-11-20 14:08:07 +00:00
Julian Elischer
06525b98f2 Duh. These have been sitting in my tree since I committed this stuff.
Thes are identical to what I committed except that they had the correct
copyright headers. This is what I was SUPPOSED to have checked in..
2000-11-20 13:43:40 +00:00
Sheldon Hearn
54c7f1620a Connect the new man4.alpha to the build. 2000-11-20 13:16:44 +00:00
Daniel Eischen
47c1571785 Change a "while {}" loop to a "do {} while" to allow it to be
executed at least once, fixing pthread_mutex_lock() for recursive
mutex lock attempts.

Correctly set a threads signal mask while it is executing a signal
handler.  The mask should be the union of its current mask, the
signal being handled, and the mask from the signal action.

Reported by: Dan Nelson <dnelson@emsphone.com>

MFC Candidate
2000-11-20 13:12:44 +00:00
Sheldon Hearn
1b2da3b0e4 Document the osf1 module.
Submitted by:	gallatin
2000-11-20 12:59:08 +00:00
Sheldon Hearn
5cd66fd5a0 Fix broken cross-reference to linprocfs(5). 2000-11-20 12:49:11 +00:00
Ruslan Ermilov
3450dff7f1 mdoc(7) police: use the new features of the Nm macro. 2000-11-20 12:18:54 +00:00