Peter Wemm
eb1c943900
Add a new -F flag which is a superset of -f. It will cause tail to
...
stat() the file being followed and do a close/reopen if the file has been
renamed and/or rotated. This is damn useful for leaving running on files
in /var/log when newsyslog(8) rotates them.
1998-04-06 16:13:49 +00:00
Peter Wemm
aacdc613e5
curproc is initialized in locore at the same time for both SMP and UP now.
1998-04-06 15:51:22 +00:00
Peter Wemm
fa1ef19485
remove #ifdef declaration of npxproc, use globals.s and the extern always.
1998-04-06 15:50:29 +00:00
Peter Wemm
e8b4f186cd
add globals.s for data that is treated differently on SMP.
1998-04-06 15:49:35 +00:00
Peter Wemm
cf34ef61ee
Use real types for the SMP pages being allocated rather than arrays of
...
ints. Remove some no longer needed casts. Initialize the per-cpu
global data area using the structs rather than knowing too much about
layout, alignment, etc.
1998-04-06 15:48:30 +00:00
Peter Wemm
0c8df3b4c5
clean up #ifdefs, define the variables that have to be per-cpu on SMP
...
in globals.s only and use externs always.
1998-04-06 15:46:17 +00:00
Peter Wemm
741643627f
_curpcb is always defined in globals.s instead of here in #ifdefs
1998-04-06 15:44:31 +00:00
Peter Wemm
55caa497cb
Bogus casts
1998-04-06 15:43:29 +00:00
Peter Wemm
56a5021bad
Defunct, now part of globals.s
1998-04-06 15:42:54 +00:00
Peter Wemm
858118ef47
Rather than filling this file up with SMP .sets, use those from
...
globals.s instead.
Initialize curproc in the same place for both UP and SMP.
1998-04-06 15:42:26 +00:00
Peter Wemm
e3f5516d18
Generate #defines that the asm code can access for the per-cpu data
...
structures.
1998-04-06 15:40:10 +00:00
Peter Wemm
60392aa674
generate .sets for variables used in asm and C that are stored in per-cpu
...
space under SMP.
1998-04-06 15:39:09 +00:00
Peter Wemm
937288c5bb
A pair of C structures used for laying out the SMP per-cpu data space.
1998-04-06 15:37:21 +00:00
Peter Wemm
5d0ef2fd65
some missing symbols
1998-04-06 15:33:02 +00:00
Poul-Henning Kamp
98b9590ef3
Use getmicrotime() for if_lastchange, 10msec is plenty precision.
1998-04-06 11:43:12 +00:00
Poul-Henning Kamp
2f5f6b74ca
Use random() to find our initial xid.
1998-04-06 11:41:07 +00:00
Poul-Henning Kamp
9f7d4611b3
Use read_random()
1998-04-06 11:40:42 +00:00
Poul-Henning Kamp
33b0bb6af7
Use random() for seq numbers and read_random for CHAP challenge.
1998-04-06 11:40:17 +00:00
Poul-Henning Kamp
7cd5051bec
Use random() rather then than homegrown stuff.
1998-04-06 11:39:04 +00:00
Poul-Henning Kamp
8184a0a4d1
Remove stuff related to microtime.s, which is gone.
1998-04-06 11:38:18 +00:00
Poul-Henning Kamp
9729e74321
Use getmicrotime insted of microtime, we only use the second part.
1998-04-06 11:37:17 +00:00
Poul-Henning Kamp
2eeb0e2ea0
Make read_random() take a (void *) argument instead of (char *)
1998-04-06 09:30:42 +00:00
Poul-Henning Kamp
4cf41af3d4
Make a kernel version of the timer* functions called timerval* to be
...
more consistent.
OK'ed by: bde
1998-04-06 08:26:08 +00:00
Amancio Hasty
e248ae96af
take out opt_bktr.h from brooktree848.c
1998-04-06 07:57:55 +00:00
Poul-Henning Kamp
8e5db87cdb
Remove the last traces of TUBA.
...
Inspired by: PR kern/3317
1998-04-06 06:52:47 +00:00
Philippe Charnier
52e8a120a3
Prevent rdist from dumping core: do not free() pointer before using it.
...
Add rcsid. Document -D flag (debug mode). Remove unused includes.
PR:bin/3158 (part 1)
1998-04-06 06:18:32 +00:00
Peter Wemm
a7017d7f9e
Really make this compile..
...
Pointed out by: bde
1998-04-06 05:11:42 +00:00
KATO Takenori
237d5c328a
Sync with sys/i386/isa/clock.c revision 1.119.
1998-04-06 03:38:18 +00:00
KATO Takenori
c8e4433596
Sync with sys/i386/isa/syscons.c revision 1.258.
1998-04-06 03:37:55 +00:00
Amancio Hasty
f7c015e72e
Reviewed by: Amancio
...
Submitted by: Frank Nobis <fn@Radio-do.de>
Mods to view german cable tv and minor fix to correctly identify bt849.
1998-04-05 20:57:46 +00:00
Poul-Henning Kamp
9018b53439
Commit a much more functional version of this driver.
1998-04-05 19:26:08 +00:00
Andrey A. Chernov
aaf0bb1961
Print explanation diagnostics when mount is impossible
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-04-05 13:10:11 +00:00
Poul-Henning Kamp
5704ba6a06
More fixes for the iterative case of nanosleep1 from bruce.
...
I hate the 2-arg time{spec|val}{add|sub} functions!
1998-04-05 12:10:41 +00:00
Poul-Henning Kamp
bfe6c9fabf
Make the dummy timecounter run at 1 MHz rather than 100kHz (noticed by bde)
...
fix the itimer(REAL) handling.
1998-04-05 11:49:36 +00:00
Peter Wemm
d59fbbf6c8
If there is no error code, don't copyout the remaining time. (As
...
documented in the man page and the standards). (and besides, nanosleep1
isn't setting it in this case at present anyway, so we'd be copying junk).
1998-04-05 11:17:19 +00:00
Poul-Henning Kamp
338418263d
Fix nanosleep1 based on Bruces suggestion.
1998-04-05 10:28:01 +00:00
Andrey A. Chernov
80a39463c9
Remove unused atv.tv_usec = 0; from select/poll code
1998-04-05 10:03:52 +00:00
Peter Wemm
2257b488b9
tsleep() returns EWOULDBLOCK if the timeout expired. Don't return this
...
to usermode, otherwise sleep(3) fails, cron doesn't work, etc etc etc.
1998-04-05 07:31:44 +00:00
Peter Wemm
48e88c192e
Maybe fix netkey. I am not sure how to test this..
1998-04-05 05:19:00 +00:00
Peter Wemm
b90dcc0c5d
Fix previous commit. Don't people read compiler messages or something??
1998-04-05 02:59:10 +00:00
Tor Egge
c547ef5cd4
Remove some unneeded statements that enabled interrupts.
1998-04-05 01:04:48 +00:00
Poul-Henning Kamp
cc6447a365
Use microruntime() rather than doing it by hand.
1998-04-04 18:56:54 +00:00
Poul-Henning Kamp
91ad39c6b3
Handle double fraction overflow in nano & microtime functions (spotted by Bruce)
...
Use tvtohz() a place where it fits.
1998-04-04 18:46:13 +00:00
Poul-Henning Kamp
c90cdf29ba
Substitute a panic for a undefined function so LINT will compile.
1998-04-04 18:07:01 +00:00
KATO Takenori
71dab323ee
Sync with sys/i386/isa/syscons.c revision 1.257.
1998-04-04 17:18:09 +00:00
Kazutaka YOKOTA
a117d26a3d
More fixes to deal with fonts:
...
- Set the correct value scp->font_size in init_scp().
- Set scp->font_size to FONT_NONE for VGA_MODEX.
Interim fix for a font problem:
- A kludge to display the correct font on some video cards.
We should be able to load multiple fonts to the VGA plane #2 and switch
between fonts by setting the font select register in the VGA sequencer.
It appears that the current code isn't functioning as expected on
some VGA cards (I have reports on Millenium and Mach64 cards). This is
either a bug in syscons or a hardware compatibility problem ;-<
This kludge will always load only one font set at a time and always use
the font page #0 on the plane #2 . It is an interim kludge until
we find the exact cause and solution.
Small adjustment for mouse cursor handling:
- Turn off the mouse cursor early when changing video modes.
Video mode switch fixes:
- Stop the screen saver when changing video modes.
- Enclose the critical section with a pair of spltty()/splx().
- A kludge to prevent scrn_update() from accessing video memory in less-
critical sections in video mode change; artificially turn on the
UNKNOWN_MODE flag.
PR: bin/5899, bin/5907
Tested by: ache and a couple of users
OKed by: sos
1998-04-04 16:26:53 +00:00
Poul-Henning Kamp
00af9731c9
Time changes mark 2:
...
* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.
* move "runtime" into struct proc. This helps fix the calcru()
problem in SMP.
* kill mono_time.
* add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!)
* nanosleep, select & poll takes long sleeps one day at a time
Reviewed by: bde
Tested by: ache and others
1998-04-04 13:26:20 +00:00
John Birrell
883674371e
Enable static initialisation of mutexes and condition variables.
1998-04-04 11:33:01 +00:00
John Birrell
5a2f1fed77
Change in name of the static initializer define.
1998-04-04 11:03:07 +00:00
John Birrell
edb4b26f50
Add static initializer defines as specified by POSIX.
1998-04-04 10:59:42 +00:00