Commit Graph

28245 Commits

Author SHA1 Message Date
phk
fe94bc8288 Use random() to find our initial xid. 1998-04-06 11:41:07 +00:00
phk
4b6dfe92bd Use read_random() 1998-04-06 11:40:42 +00:00
phk
1e2405b5f1 Use random() for seq numbers and read_random for CHAP challenge. 1998-04-06 11:40:17 +00:00
phk
5394eb1aa3 Use random() rather then than homegrown stuff. 1998-04-06 11:39:04 +00:00
phk
b4d5f00838 Remove stuff related to microtime.s, which is gone. 1998-04-06 11:38:18 +00:00
phk
86ff9d1a6e Use getmicrotime insted of microtime, we only use the second part. 1998-04-06 11:37:17 +00:00
phk
ab5541db4c Make read_random() take a (void *) argument instead of (char *) 1998-04-06 09:30:42 +00:00
phk
3c122bd961 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
ahasty
011360bdd9 take out opt_bktr.h from brooktree848.c 1998-04-06 07:57:55 +00:00
phk
e9827cb58f Remove the last traces of TUBA.
Inspired by:	PR kern/3317
1998-04-06 06:52:47 +00:00
charnier
fe8f3a58ea 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
631390e349 Really make this compile..
Pointed out by: bde
1998-04-06 05:11:42 +00:00
kato
81a8571091 Sync with sys/i386/isa/clock.c revision 1.119. 1998-04-06 03:38:18 +00:00
kato
f5a109a74e Sync with sys/i386/isa/syscons.c revision 1.258. 1998-04-06 03:37:55 +00:00
ahasty
17e8d9b9ca 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
phk
b3e4247d70 Commit a much more functional version of this driver. 1998-04-05 19:26:08 +00:00
ache
cf4f0083bb Print explanation diagnostics when mount is impossible
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-04-05 13:10:11 +00:00
phk
2fdb617aee 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
phk
ef09a47a6d 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
0a735b0829 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
phk
08f33aeded Fix nanosleep1 based on Bruces suggestion. 1998-04-05 10:28:01 +00:00
ache
e0d8a4a2e6 Remove unused atv.tv_usec = 0; from select/poll code 1998-04-05 10:03:52 +00:00
peter
2a16d50561 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
fdb7a2eb67 Maybe fix netkey. I am not sure how to test this.. 1998-04-05 05:19:00 +00:00
peter
9cde5a8d09 Fix previous commit. Don't people read compiler messages or something?? 1998-04-05 02:59:10 +00:00
tegge
5f4dc556ce Remove some unneeded statements that enabled interrupts. 1998-04-05 01:04:48 +00:00
phk
af4924fcc3 Use microruntime() rather than doing it by hand. 1998-04-04 18:56:54 +00:00
phk
9736ec2fbf 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
phk
7d5c35ecb4 Substitute a panic for a undefined function so LINT will compile. 1998-04-04 18:07:01 +00:00
kato
8dcc58d71a Sync with sys/i386/isa/syscons.c revision 1.257. 1998-04-04 17:18:09 +00:00
yokota
f11d6ec503 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
phk
5e9a131f20 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
jb
ddcbf85eb2 Enable static initialisation of mutexes and condition variables. 1998-04-04 11:33:01 +00:00
jb
43c2287620 Change in name of the static initializer define. 1998-04-04 11:03:07 +00:00
jb
0982c14667 Add static initializer defines as specified by POSIX. 1998-04-04 10:59:42 +00:00
jb
c34d8f0bcb Rename static initializer defines for opaque structures so that the
POSIX specified names can be declared in pthread.h.
1998-04-04 10:58:12 +00:00
jb
fc00c3e358 Move the magic field initialisation to a place when it is more magic. 1998-04-04 07:27:29 +00:00
dyson
da94b50355 Perhaps fix a problem that some drivers have that they don't properly
initialize the b_kvasize element.  This might fix some of the split
I/O requests that some people have.
1998-04-04 05:55:05 +00:00
jb
6a1d5a1659 Add a magic field to the pthread structure to help recognize valid
threads from invalid ones. The pthread structure is opaque to the user
so this change does not cause any incompatibilities.

Hopefully this change will help code that was written for draft 4
fail gracefully if the programmer ignores the compiler warning about
the change in the level of indirection for the argument passed to
pthread_detach(). I got burnt, so I fixed then (expletive deleted)
thing.

These functions comply with the revised standard. That should shut
Terry up!
1998-04-03 09:31:15 +00:00
jb
a6ff3fe2e9 This function compiles with the standard, so say so. 1998-04-03 09:12:19 +00:00
jb
449d1d74af This function compiles with the standard, so say so.
Add a note about not touching errno and warn about previous drafts
of the standard which changed the level of indirection to the thread
argument. POSIX had a bit of trouble deciding what to do. So anyone
coding to both draft 4 and draft 10 (the final draft) will get burnt
by this function. I did. Grrr.
1998-04-03 09:11:15 +00:00
ache
22df54ec1a Cosmetique changes in vidcontrol all screens knob 1998-04-02 15:33:49 +00:00
ache
6540990382 Implement vidcontrol knob which allows to set passed flags/modes
for all virtual screens (via for loop)
1998-04-02 15:17:52 +00:00
roberto
0835cba6a5 Fix bug in rarpd:
Explanation of the bug: when processing its first request, rarpd
     opens a routing socket to send requests to the arp table. It keeps
     that socket open afterwards, while waiting for new RARP requests.

     Meanwhile, the data received on the routing socket fill up until
     they are about 8Kbytes in size. Any additional data is lost.

     When rarpd receives its next RARP request, it tries to access the
     ARP table via a routing socket call, then waits for the answer to
     its own request. This answer is lost because the received data is
     already filled: when looking for the reply, rarpd receives only
     8kbytes worth of data, then loops waiting forever.

     Someone please test it on -STABLE and commit it. We can close the PR
     when testing on STABLE is done.

PR:		bin/5669
Submitted by:	Pierre Beyssac <pb@fasterix.freenix.org>
1998-04-02 13:20:15 +00:00
kato
ad012c3c83 Sync with sys/i386/isa/wd.c revision 1.152. 1998-04-02 11:06:59 +00:00
danny
7aa1fa5c3e Correct spelling. 1998-04-02 09:28:09 +00:00
phk
f1a4c3bb6f Try to fix poll & select after I broke them. 1998-04-02 07:22:17 +00:00
imp
4b46ef5a49 Add aback in a line a accidentally killed in my last commit.
Submitted by:	Bill Fenner
1998-04-02 04:33:18 +00:00
eivind
9f3f2581d7 Scaffolding for High Availability code. The actual code will probably
come tomorrow.

Submitted by:	Simon Shapiro <shimon@simon-shapiro.org>
1998-04-02 04:25:41 +00:00
eivind
136b08f78c Shut up GCC. 1998-04-02 02:10:47 +00:00