Commit Graph

22953 Commits

Author SHA1 Message Date
dfr
b627718fbd Merge WebNFS changes from NetBSD.
Obtained from:	NetBSD
1997-07-16 09:06:30 +00:00
charnier
9b1c747b1b Rewrote man page in mdoc format. 1997-07-16 06:52:13 +00:00
charnier
97c57a650f Use err(3). Rewrote man page in mdoc format. 1997-07-16 06:51:12 +00:00
charnier
7eee0066ae Use err(3). Correct incomplete man page. 1997-07-16 06:49:49 +00:00
jkh
c8004d7830 Eliminate Samba configuration. Sorry, but this was another one of
those ideas that, like the Apache server setup, was well-intentioned
but doomed to fail in the face of change.  That and the fact that it
shouldn't be part of the installation tool, it should be part of the
post-installation setup tool (which we need to write).  Combining the
two utilities into one utility was my first conceptual mistake.

Apologies also to Coranth Gryphon, who worked hard on the Apache
and Samba server setup code.  These features were quite useful
for awhile, if that's any consolation, I just simply had the wrong
ideas about where to put them. :-(
1997-07-16 05:22:42 +00:00
julian
db918dfad5 Finally track down the reason for some of my occasional kernel crashes.
Route(1) has a bug that sends a bad message to the kernel. The kernel
trusts it and crashes. Add some sanity checks so that
we don't trust the user quite as much any more.
(also add a comment in if_ethersubr.c)
1997-07-15 23:25:32 +00:00
itojun
245797ff55 small change to prevent "modules" to be modified twice, on the following
execution sequences:
	% easy-import -n foobaa
	% easy-import foobaa

Reviewed by:	joerg_wunsch@uriah.heep.sax.de
1997-07-15 16:48:01 +00:00
jdp
b0cd70269b Kill this file really dead. The default branch was cleared, even
though the file was still on the vendor branch.  I don't know why.
It doesn't look like the cvs-add-on-a-branch bug that we already
know about.
1997-07-15 16:45:50 +00:00
yokota
b00b16c7e8 Incorporated lots of fixes and suggestions from Bruce and changes to
facilitate the new saver loading/unloading notification interface
in syscons.

daemon_saver:
- M_NOWAIT was wrong, since NULL returns are not handled.  Just use
  M_WAITOK.
- use `ostype' instead of hard-coded "FreeBSD". Now there is no more
  hard-coded string! (But, who will run this screen saver on other
  OS?!)
- put macros and data declarations in a consistent order.
- -DDEAMON_ONLY and -DSHOW_HOSTNAME options added in the previous commit
  are removed. Options of this kind can go stale and no one notices
  because no one uses them. DEAMON_ONLY is just removed. SHOW_HOSTNAME
  is made default.

snake_saver:
- use `ostype' and `osrelease' as in the daemon saver. The string changes
  slightly - there was a hyphen after "FreeBSD"; now there is a space.
  (It is consistent with uname -a, like the daemon server already is.)

all screen savers:
- Use the new add_scrn_saver()/remove_scrn_saver() in syscons.c
  to declare loading/unloading of a screen saver. Removed reference
  to `current_saver' and the variable `old_saver' as they are not
  necessary anymore.
- The blank, fade and green screen savers manipulate VGA registers.
  Module loading should fail for non-VGA cards.
- `scrn_blanked' is consistently treated as a number/counter rather
  than boolean.
- Some savers touch `scp->start' and `scp->end' to force entire screen
  update when stopping themselves. This is unnecessary now because
  syscons.c takes care of that.
- cleared up many unused or unnecessary #include statements.
- Removed -DLKM from Makefiles.

YOU NEED TO RECOMPILE BOTH SCREEN SAVERS AND KERNEL AS OF THIS CHANGE.
1997-07-15 14:49:39 +00:00
yokota
56b7c76d79 Screen saver related fixes.
1. Add new interface, add_scrn_saver()/remove_scrn_saver(), to declare
loading/unloading of a screen saver.  The screen saver calls these
functions to notify syscons of loading/unloading events.

It was possible to load multiple savers each of which will try to
remember the previous saver in a local variable (`old_saver'). The
scheme breaks easily if the user load two savers and unload them in a
wrong order; if the first saver is unloaded first, `old_saver' in the
second saver points to nowhere.

Now only one screen saver is allowed in memory at a time.

Soeren will be looking into this issue again later.  syscons is
becoming too heavy.  It's time to cut things down, rather than adding
more...

2. Make scrn_timer() to be the primary caller of the screen saver
(*current_saver)(). scintr(), scioctl() and ansi_put() update
`scrn_time_stamp' to indicate that they want to stop the screen saver.

There are three exceptions, however.

One is remove_scrn_saver() which need to stop the current screen saver
if it is running. To guard against scrn_timer() calling the saver during
this operation, `current_saver' is set to `none_saver' early.

The others are sccngetc() and sccncheckc(); they will unblank the
screen too.  When the kernel enters DDB (via the hot key or a
break point), the screen saver will be stopped by sccngetc().
However, we have a reentrancy problem here. If the system has been in
the middle of the screen saver...

(The screen saver reentrancy problem has always been with sccnputc()
and sccngetc() in the -current source. So, the new code is doing no
worse, I reckon.)

3. Use `mono_time' rather than `time'.

4. Make set_border() work for EGA and CGA in addition to VGA. Do
nothing for MDA.

Changes to the LKM screen saver modules will follow shortly.  YOU NEED
TO RECOMPILE BOTH SCREEN SAVERS AND KERNEL AS OF THESE CHANGES.

Reviewed by: sos and bde
1997-07-15 14:43:27 +00:00
kato
ea8e345c88 Oops, added popfl after trynexgen label.
PR:		4091
Submitted by:	Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1997-07-15 11:07:32 +00:00
charnier
922557a4f6 Use err(3) instead of local redefinition. Add usage(). 1997-07-15 09:59:30 +00:00
charnier
58b419d0c3 Cosmetic in usage string. 1997-07-15 09:57:28 +00:00
charnier
783e86e99e Add rcsid, Remove unused vars. 1997-07-15 09:55:59 +00:00
charnier
59438faa4f Add rcsid. Cosmetic in usage string. Typo in man page. 1997-07-15 09:54:34 +00:00
charnier
bc62cc22d4 Use err(3) instead of local redefinition. Add usage(). 1997-07-15 09:50:59 +00:00
charnier
793ad1484d Use err(3) instead of local redefinition. Silent -Wall. 1997-07-15 09:48:49 +00:00
charnier
d6984ce0b4 Document the CMD640 option.
PR:	kern/3742
Submitted by:	helbig@MX.BA-Stuttgart.De
1997-07-15 09:44:05 +00:00
charnier
0715678100 Remove obsolete flag (-g) for ls.
PR:conf/3730
Submitted by: helbig@MX.BA-Stuttgart.De
1997-07-15 09:37:02 +00:00
charnier
f673b0ac7c Revert to original style. 1997-07-15 08:04:40 +00:00
dyson
f2a897ade1 Add some Pentium and PentiumPro opcodes and registers. 1997-07-15 07:56:53 +00:00
peter
7df57a5f44 Previous commit to remove -I/sys broke 'make world', miscfs/union/*.h is
not (yet?) installed in /usr/include.
1997-07-15 07:03:00 +00:00
fsmp
2b97a333e6 Removed several "magic numbers". 1997-07-15 04:56:58 +00:00
fsmp
927c784b4b Removed a stale "FIXME:". 1997-07-15 04:56:18 +00:00
jkh
999b24f25a Add SYSVSHM by default. Nobody seems to have objected too strongly
to this when raised, and most were in favor of at least this option
(some also asked for semaphores and messages, but I'll leave that argument
for another time :).
1997-07-15 04:04:45 +00:00
fsmp
3ccd0ce0a7 Cleanup. 1997-07-15 03:28:53 +00:00
fsmp
2cd754efcd Tighten up asm code for TEST_PRIO and other misc. things.
Use some new defines in place of "magic numbers".
1997-07-15 02:51:20 +00:00
fsmp
dcd393b384 Tighten up asm code for EOI access. 1997-07-15 02:49:21 +00:00
fsmp
e8a415386f New defines to eliminate "magic numbers" in various places. 1997-07-15 02:47:54 +00:00
fsmp
dd0a098be8 Minor cleanup. 1997-07-15 02:46:37 +00:00
obrien
4e77e69f12 Add description of the link{0,1,2} flags 1997-07-14 23:42:57 +00:00
wpaul
f99d6c64a8 Unbreak this file some more:
CFLAGS=+-I${.CURDIR}/../../sys -> CFLAGS+= -I${.CURDIR}/../../sys

Asked about on BSDnet:#FreeBSD by: philw@dream.webmaster.com (Phillip White)
1997-07-14 19:57:50 +00:00
ache
75986f527f Add Latin American keyboard
PR: 2863
1997-07-14 18:29:56 +00:00
guido
069c57b5d7 Unbreak it. Apparently I forgot to do a make clean when testing :-(
Unfortunately, Makefile is not included in .depend.
1997-07-14 15:10:34 +00:00
msmith
9e71915834 Fix vi-mode searching broken with the NetBSD changes update.
PR:		bin/4064
Submitted by:	Wolfgang Helbig <helbig@MX.BA-Stuttgart.De>
1997-07-14 13:21:08 +00:00
kato
5341bfa761 Synchronize with sys/i386/isa/syscons.c revision 1.224. 1997-07-14 12:35:04 +00:00
kato
89fcbcfce6 Synchronize with sys/i386/boot/biosboot/serial.S revision 1.9. 1997-07-14 12:34:01 +00:00
kato
3b6e37b89f Added CPU_BLUELIGHTNING_FPU_OP_CACHE and CPU_BLUELIGHTNING_3X.
Forgotten-by:	me.
1997-07-14 12:33:06 +00:00
kato
6d5ca200db Synchronize with sys/i386/conf/options.i386 revision 1.50. 1997-07-14 12:31:27 +00:00
peter
18d0d6f155 Hack to work around the large username field... scan for the largest
username present on the system at startup and use that for the field width.
It's not ideal but (I think) better than it was before.  The width is
limited to within 8..16.
1997-07-14 09:06:46 +00:00
julian
2525533d28 two tiny typo's 1997-07-14 04:53:52 +00:00
julian
a85cb80472 remove annoying debug message 1997-07-14 04:30:22 +00:00
yokota
15a89c532d scgetc() referred to `spcl' in different ways when a key is pressed
and released.  It should use `spcl' consistently in both cases,
otherwise shift/control/alt state may not be correctly set/reset.

(Even with this fix, you can still make syscons confused and fail to
change internal state if you really want to, by installing a really
arcane and artificial keymap.)

PR: i386/4030
Reviewed by: sos
1997-07-14 03:36:50 +00:00
brian
e3faa34d53 Allow a "hangup" capability.
You can now "ATZ" your modem when it's closed.

Submitted by:	peter@citylink.dinoex.sub.org (Peter Much)
1997-07-14 01:41:35 +00:00
jkh
9ba2a5db74 Remove some bogus malloc family declarations. 1997-07-13 23:45:34 +00:00
asami
941ff0acbb Remove bogus ("char *") malloc(), calloc() and realloc().
Found by:	jkh and the new world patch
1997-07-13 21:29:17 +00:00
bde
20aa44a88c 32-bit counters aren't large enough for 100+MHz clocks. Use 64-bit
counters.  `4' in GPROF4 and gprof4 now means 8.  gprof4 needs to be
recompiled to match the kernel.
1997-07-13 16:38:39 +00:00
bde
1771415dae Always mark st_ctime for update upon successful completion of
chown().  Previously, it wasn't marked for null chown()'s.  We
permit null chown()s as a special case of "appropriate privilege"
- everyone has enough priviilege to not change ids (this is a better
argument than the one I gave for rev.1.13, that null changes aren't
really changes).  However, POSIX.1 requires the update independently
of whether anything has changed.

Clear both the setuid and the setgid bits upon successful completion
of non-null chown()s by non-root.  Previously, the setuid bit was
only changed for non-null changes of the uid, etc.  POSIX.1 requires
clearing both unless the call was made by a process with "appropriate
privilege", in which case altering the bits is implementation-defined.
We define appropriate privilege as `process is root, or the change
is null', and the implementation-defined behaviour as not altering
the bits.   There is no interpretation that permits clearing only
one of the bits.

Reviewed by:	jdp
1997-07-13 16:26:40 +00:00
bde
4112123248 Use the correct size for a sector in the search for a label in
readdisklabel().  Sectors may be larger than DEV_BSIZE.
1997-07-13 15:53:20 +00:00
bde
9ef092d81d Removed semicolon from the end of a #define. 1997-07-13 15:43:54 +00:00