Bruce Evans
ccbbd9271b
Fixed two spl nesting bugs. They caused (at least) the entire pageout
...
daemon to run at splvm() forever after swap_pager_putpages() is called
from vm_pageout_scan().
Broken in: rev.1.189 (1998/02/23)
1998-07-28 15:30:01 +00:00
Jonathan Lemon
525187f914
u_int --> unsigned int, remove (now unneeded) <sys/types.h>
1998-07-28 15:22:51 +00:00
Jordan K. Hubbard
77b7b41b81
Don't exit() from cleanup() if we got there via a non-signal since
...
we're only going to exit (after printing a more detailed error message)
afterwards anyway.
PR: 7020
1998-07-28 11:55:39 +00:00
Dag-Erling Smørgrav
9b81ca853e
Brucifixion.
1998-07-28 10:08:16 +00:00
Doug Rabson
51f14853fd
Record the new physical address of the pcb in pmap_swapin_proc.
...
Third attempt at pmap_remove(). This one actually works properly :-).
1998-07-28 09:34:50 +00:00
Poul-Henning Kamp
358cb8ddc1
I have a PD drive (Matsushita PD/CD Drive LF-1600).
...
The machine can not recognize this PD drive
as neither PD drive nor CD-ROM Drive.
So I can not use CD-ROMs and PDs from FreeBSD.
PR: 7423
Reviewed by: phk
Submitted by: Takura Koyama <takura@popweb.ne.jp>
1998-07-28 09:03:37 +00:00
Philippe Charnier
14cf3a5d8f
Spelling. Errx() on malloc() failure.
1998-07-28 06:42:38 +00:00
Philippe Charnier
f9b52c93a5
Correct use of .Nm, add rcsid, remove unused #include.
1998-07-28 06:38:57 +00:00
Philippe Charnier
90100551e6
Spelling, add rcsid, remove unused #includes.
...
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().
1998-07-28 06:36:31 +00:00
Philippe Charnier
1cc580ef41
Comment is .\" not .|'. Add -d and -t flags to SYNOPSIS and usage(). Getopt
...
returns -1. Correct use of .Nm. Spelling. Add rcsid and remove unused
#include.
1998-07-28 06:25:35 +00:00
Philippe Charnier
91ac32e405
Add rcsid. Remove unused #includes. Add missing prototypes and others -Wall
...
cleanings. Spelling.
1998-07-28 06:20:16 +00:00
Jonathan Lemon
4b8a1af6a2
Change doscmd to use i386_set_ioperm() call instead of sysarch().
1998-07-28 03:39:59 +00:00
Jonathan Lemon
8d0517cffd
oops, forgot to do ``cvs add'' first.
1998-07-28 03:39:04 +00:00
Jonathan Lemon
f88a03565a
Add wrappers for i386_*_ioperm, i386_vm86 so userland code does
...
not have to call sysarch() directly.
Added man pages for above, as well as sysarch()
1998-07-28 03:33:27 +00:00
Jonathan Lemon
ec9ed6196a
Fix an off-by-one error when setting the iomap bits.
...
Change struct i386_*_iomap to use ints instead of shorts/chars.
(pointed out by bde long ago, prodded into action by msmith)
1998-07-28 03:29:32 +00:00
Andrey A. Chernov
e8f9ae6c6e
cast arg to (long) to match format
1998-07-28 01:30:16 +00:00
Jacques Vidrine
dd123c1609
Paranoia: use mkdtemp instead of mktemp
...
PR: bin/3212
Reviewed by: jkh@FreeBSD.ORG
1998-07-28 01:18:02 +00:00
Jacques Vidrine
722ab3dd95
make a bounds file for msgs(1) if there isn't one already
...
PR: bin/3023
Reviewed by: jkh@FreeBSD.ORG
1998-07-28 01:15:12 +00:00
Alexander Langer
f35f7d0dfd
Style fixes and a bug fix: don't remove the exit handler if unmount
...
fails.
Submitted by: bde
1998-07-27 22:47:17 +00:00
Jacques Vidrine
292c7b2582
Paranoia: use mkstemp instead of mktemp.
...
PR: bin/3211
Reported by: Mark Pritchard <mpp@FreeBSD.ORG>
1998-07-27 22:26:25 +00:00
Jacques Vidrine
16c93fc052
Document the printf built-in.
1998-07-27 21:31:19 +00:00
Jacques Vidrine
0bc998d8ab
csh built-in printf now expands arguments. e.g.
...
printf '%d\n' `echo 23`
now works as expected.
PR: bin/2969
Submitted by: Gareth McCaughan <gjm11@dpmms.cam.ac.uk>
1998-07-27 21:15:52 +00:00
Bruce Evans
bc9e7c3b42
Fixed double counting of runtime after a process exits. The last
...
timeslice of the exiting process was counted for both the exiting
process and the next process to run if the next process runs
immediately.
Broken in: mostly in kern_clock.c rev.1.70 (1998/05/28)
1998-07-27 19:16:21 +00:00
Tim Vanderhoek
d6c37912c6
Use an error message that more clearly indites(sp?) an out-of-sync
...
kernel+userland when that is the case.
PR: bin/7414
1998-07-27 18:53:45 +00:00
Jacques Vidrine
9b6dc4d701
fixed: tar will extract file even if -C command fails
...
tar now exits with new exit code EX_BADDIR after a failed chdir()
in name_next(), name_match(), and name_from_list().
PR: bin/2394
Submitted by: Satoshi Asami <asami@freebsd.org>
1998-07-27 18:40:09 +00:00
Dag-Erling Smørgrav
28f5cafe82
Behave like GNU time. More cleanup. Reword man page.
...
Pointed out by: Bruce Evans
1998-07-27 16:54:05 +00:00
Jonathan Lemon
a69546de82
Extend cpl workaround so that it applies when we are returning to
...
user-mode as well as vm86 mode.
1998-07-27 16:51:33 +00:00
Jonathan Lemon
f80a0a922c
Re-arrange the page layout used by vm86_bioscall so that we can
...
potentially re-use the stack page.
Cosmetic cleanup of the code to de-obfuscate it and make it easier
to follow. There should be no functional changes in this commit.
1998-07-27 16:45:05 +00:00
Dag-Erling Smørgrav
fabfd1334a
Clean up the previous commit.
1998-07-27 16:08:58 +00:00
Bruce Evans
15b29aabe4
Made lazy syncing of timestamps for special files non-optional.
1998-07-27 15:37:00 +00:00
Poul-Henning Kamp
6a19bdc8af
Harlan.Stenn@pfcs.com added two (very interesting) options to syslogd for
...
-current (Thanks Harald). However, on my attempt to try this on -STABLE,
I found that when forwarding to another host the actual messages gets lost.
This is due to a wrong index because when the -v option was added, the
indexes shifted one place.
PR: 7407
Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
1998-07-27 13:04:14 +00:00
Wolfram Schneider
4dc0ec1db1
Round - not cut - the real cpu time.
1998-07-27 12:21:58 +00:00
KATO Takenori
a0f5e52d43
Sync with sys/i386/isa/diskslice_machdep.c revision 1.30.
1998-07-27 09:49:23 +00:00
Doug Rabson
3260ced375
Macros for accessing alpha sparse device ports and memory.
1998-07-27 09:40:35 +00:00
Doug Rabson
86dd710847
Support the disabled keyword for isa devices.
1998-07-27 09:38:26 +00:00
David Greenman
01ddfa33e6
Only call m_reclaim() if M_WAIT since calling it from an interrupt can
...
cause problems.
PR: 7403
1998-07-27 03:59:48 +00:00
Alexander Langer
3f47ee5c4d
A better solution to the rm_at_exit problem: Register the exit function
...
during first mount. Unregister the exit function at last unmount.
Concept by: sef
Reviewed by: sef
Implemented by: alex
1998-07-27 01:07:01 +00:00
Warner Losh
d352b6c59e
fd_set is documented to be a typedef, not a struct. Conform more
...
closely to the documented interface.
Inspired-by: similar changes in OpenBSD
1998-07-26 18:49:36 +00:00
Doug Rabson
976a1a2b57
Fix a stupid bug preventing gdb from seeing the right value of 'v0'.
1998-07-26 18:47:47 +00:00
Doug Rabson
56e7ede1c4
Notify pmap when a page is freed on the alpha to allow it to clean up
...
its emulated modified/referenced bits.
1998-07-26 18:15:20 +00:00
Doug Rabson
c99399cccd
Fix a stupid bug in the new pmap_remove().
...
Arrange for soft modified/referenced flags to be cleared when a page is freed.
1998-07-26 18:13:28 +00:00
Warner Losh
dff85ecbee
Use malloc + sprintf rather than asprintf to ensure portability to
...
other, less advanced architecutres. This should minorly help porting
efforts of FreeBSD. I've done several make worlds since this came up
with this change, as well as debugging several interesting nits with
-V (which is the only thing this change will affect really).
1998-07-26 17:06:05 +00:00
Warner Losh
fa43bfe289
Remove comment relevant to 16bit integers only.
1998-07-26 16:49:20 +00:00
Tim Vanderhoek
a65adfc05c
Fix compilation for the case where neither ioctl(TIOCGWINSZ)
...
nor ioctl(WIOCGETD) exist. This case doesn't occur under FreeBSD.
PR: bin/5996
Submitted by: Max Euston <meuston@jmrodgers.com>
1998-07-26 16:15:26 +00:00
Warner Losh
e05ce16e87
o Fix Y2K buffer overflow.
...
o Fix zero filling bug in all years % 100 < 10.
1998-07-26 16:00:16 +00:00
Warner Losh
2d9f6852dc
Y2K fix. Fix by jsm28@cam.ac.uk via OpenBSD
1998-07-26 15:30:48 +00:00
Joseph Koshy
8f4eff3a85
Add Xref to ldd(1).
...
PR: 7397
1998-07-26 04:16:04 +00:00
Bruce Evans
f69c53b019
Don't pass the label to diskerr(), since the label is being constructed
...
and may be invalid. In particular, d_secpercyl may be 0, and diskerr()
divides by it.
1998-07-25 16:35:06 +00:00
Bruce Evans
6cabb34884
Fixed bugs in `disklabel -R...':
...
- nonstandard sector sizes didn't work because the sector size in the
ASCII label was not read before a (default, wrong) sector size was used.
- the exit status was 0 after exiting early due to an invalid ASCII label.
Abort `disklabel -B...' if the secondary bootstrap doesn't fit.
1998-07-25 16:19:10 +00:00
Alexander Langer
ca2be56ff9
Override the default VFS LKM dispatch functions so that a module
...
unload function can be provided (this is necessary to unregister
the at_exit handler).
1998-07-25 15:52:44 +00:00