Commit Graph

22753 Commits

Author SHA1 Message Date
kato
24fa515dea Synchronize with sys/i386/isa/wd.c revision 1.131. 1997-07-02 11:01:37 +00:00
kato
a22afd05fe Synchronize with sys/i386/conf/options.i386 revision 1.49. 1997-07-02 11:00:56 +00:00
kato
94c79fe960 Synchronize with sys/i386/isa/syscons.c revision 1.220. 1997-07-02 11:00:20 +00:00
jkh
683892d340 Split section 6 catpages/manpages out into games dist. 1997-07-02 08:59:00 +00:00
charnier
4f0a8d27ea Add rcsid, usage(). Silent -Wall. Use warn(3). 1997-07-02 06:34:51 +00:00
charnier
71f3417bb9 Nm does not always need an argument. 1997-07-02 06:30:51 +00:00
charnier
3f6defdfaa One newline should be enough. 1997-07-02 06:28:32 +00:00
bde
5e424abcd2 This commit was generated by cvs2svn to compensate for changes in r27163,
which included commits to RCS files with non-trunk default branches.
1997-07-02 00:25:26 +00:00
bde
1c936ab215 Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.
1997-07-02 00:25:26 +00:00
bde
4e789e88d8 Import Lite2's src/sbin, except for XNSrouted and routed. All relevant
files in src/sbin are off the vendor branch, so this doesn't change the
active versions.
1997-07-02 00:25:26 +00:00
bde
8197c5b09b Import Lite2's src/bin. All files in src/bin are off the vendor branch,
so this doesn't change the active versions.
1997-07-01 22:34:08 +00:00
bde
f0f4692d65 Bury this properly. 1997-07-01 21:38:49 +00:00
bde
dd35364e4d This commit was generated by cvs2svn to compensate for changes in r27159,
which included commits to RCS files with non-trunk default branches.
1997-07-01 21:34:30 +00:00
bde
28560072c7 Import this unwanted file from Lite-original so that it doesn't
get imported with Lite2 (there was only one missing file in src/bin,
other than tags files and obj links).
1997-07-01 21:34:30 +00:00
brian
067015aaae Make HUP cause an exit (as it used to), and make
INT cause a hangup - not exiting for -ddial & -auto.

HUP must exit because init sends this at system shutdown
time (why, I don't know), and we don't want to end up
redialing after the HUP (due to another dfilter packet).

Pointed out by and discussed with: ache
1997-07-01 21:31:28 +00:00
peter
87c1696b92 Initial revision 1997-07-01 20:44:10 +00:00
wosch
9bb985006b Add forgotten newline.
Submitted by: Solaris gencat
1997-07-01 19:46:22 +00:00
phk
a4c2098502 malloc_sysv used before initialized, reported in PR4002 by
Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>

Various cleanup from Keith Bostic

Reinstate calloc() as a separate funtion, in its own source/object file.
leave the manpage integrated with malloc.3 and friends.  Too many things
were broken in this respect.

PR:		4002
Reviewed by:	phk
Submitted by:	Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Submitted by:	Keith Bostic <bostic@bostic.com>
1997-07-01 18:39:38 +00:00
jkh
a10c1a2949 Add 64 bit int support to scanf()
PR:		2080
Submitted by:	David Dawes <dawes@rf900.physics.usyd.edu.au>
1997-07-01 17:46:39 +00:00
bde
a89fad6005 $FreeBSD$ -> $Id$.
Removed Berkeley Id.  We never did this like Berkeley (because cvs doesn't
handle symlinks) and no interesting Berkeley words are left.
1997-07-01 16:20:56 +00:00
charnier
cce3170ff8 Do not use argv[0] in usage(). 1997-07-01 06:37:34 +00:00
charnier
392cc87247 Add usage(), rcsid. Use getopt().
Obtained from: OpenBSD.
1997-07-01 06:34:31 +00:00
jkh
ee55475a0f Change the naming conventions for preserve'd files and also document
the option in pkg_create.  Now preserved files start with a . and are
named .<filename>.<pkgname>.backup so that their purpose is more clear.

Note that just using the preserve option without proper pkg_deps
is also foolish since packages being deleted in the incorrect order with
preserve on can generate some odd results.
1997-07-01 06:13:51 +00:00
jdp
3f044120cd Fix a bug (apparently very old) that can cause a TCP connection to
be dropped when it has an unusual traffic pattern.  For full details
as well as a test case that demonstrates the failure, see the
referenced PR.

Under certain circumstances involving the persist state, it is
possible for the receive side's tp->rcv_nxt to advance beyond its
tp->rcv_adv.  This causes (tp->rcv_adv - tp->rcv_nxt) to become
negative.  However, in the code affected by this fix, that difference
was interpreted as an unsigned number by max().  Since it was
negative, it was taken as a huge unsigned number.  The effect was
to cause the receiver to believe that its receive window had negative
size, thereby rejecting all received segments including ACKs.  As
the test case shows, this led to fruitless retransmissions and
eventually to a dropped connection.  Even connections using the
loopback interface could be dropped.  The fix substitutes the signed
imax() for the unsigned max() function.

PR:		closes kern/3998
Reviewed by:	davidg, fenner, wollman
1997-07-01 05:42:16 +00:00
jkh
f357055fa5 Allow distSetByName() to process all the relevant entries.
Submitted by: msmith
1997-07-01 03:50:58 +00:00
bde
1e93934bf0 Un-inline a call to spl0(). It is not time critical, and was only inline
because there was no non-inline spl0() to call.

Don't frob intr_nesting_level in idle() or cpu_switch().  Interrupts
are mostly disabled then, so the frobbing had little effect.
1997-07-01 01:34:30 +00:00
bde
fa60bb8b2b Added ifdefs so that this compiles when neither I586_CPU nor I586_CPU
is defined, or SMP is defined.  It is silly to configure PERFMON when
it can't work (it will be disabled at runtime), but I like to leave
the PERFMON configuration alone when I temporarily disable support for
modern CPUs to run regression tests.

Removed an unused #include.
1997-07-01 01:18:38 +00:00
bde
c8ef2157f9 Un-inline a call to spl0(). It is not time critical, and was only inline
because there was no non-inline spl0() to call.
1997-07-01 01:02:03 +00:00
bde
f375ff463a Some staticized variables were still declared to be extern. 1997-07-01 00:54:37 +00:00
bde
9f44f619f6 Removed extra definition of constty. It is defined in subr_prf.c. 1997-07-01 00:52:37 +00:00
bde
8dcf4da642 Don't cast function pointers to (void *). This will cause warnings.
They should be fixed when similar warnings for the general interrupt
attach routines are fixed.

Removed unused #include.
1997-07-01 00:45:45 +00:00
bde
690047b9cb Don't depend on <machine/cpufunc.h> including <sys/types.h>. In fact,
don't include this kernel-only header at all, since we don't need it.
1997-07-01 00:33:42 +00:00
bde
bceaff97ed Don't depend <machine/cpufunc.h> including <sys/types.h>. 1997-07-01 00:29:33 +00:00
bde
aebdde56b3 Don't depend on gcc's feature of permitting labels that aren't followed
by a statement.
1997-07-01 00:22:51 +00:00
bde
b3ce2e3ade Enabled some SMP options. LINT is for testing that all code compiles
cleanly, so only negative options should be commented out.  Options
should have non-default values.
1997-07-01 00:14:39 +00:00
bde
7250af086e Don't depend on gcc's feature of permitting returning void expressions
in functions returning void.
1997-07-01 00:08:34 +00:00
bde
0f00fbdf2b Some staticized variables were still declared to be extern. 1997-06-30 23:54:50 +00:00
bde
276d810752 Don't depend on gcc's feature of interpreting `int foo(c) char c; ...'
as `int foo(char c) ...' if there is a bogus prototype `int foo(char c);'
in scope.
1997-06-30 23:49:17 +00:00
bde
17d2759930 Removed temporary SMP header fix. 1997-06-30 23:37:54 +00:00
bde
037db6bca4 Removed -I path to gdb's readline. This didn't do much in -current
because the -I path to config/libreadline had precedence, but in
2.2 it help hide the bug that the -I path to the non-contrib
libreadline was garbage.
1997-06-30 23:10:54 +00:00
jkh
9b2a176dea sysconfig -> rc.conf
PR:		3978
Submitted by:	Janick.Taillandier@ratp.fr
1997-06-30 19:10:50 +00:00
yokota
5dafd0f1e7 options.i386:
- Added the psm options PSM_HOOKAPM and PSM_RESETAFTERSUSPEND.

LINT:
- Added the psm options PSM_HOOKAPM and PSM_RESETAFTERSUSPEND.
- Added comments on the flag 0x20 for syscons.
- Clarified descriptions on the flags (0x02, 0x04) regarding the cursor
  shape in syscons.
1997-06-30 14:37:43 +00:00
yokota
acda80dd9d Fixes annoying behavior and a bug regarding the destructive
cursor (CHAR_CURSOR)

1. Reduced the number of calls to set_destructive_cursor().  The
destructive cursor produced noticeable overhead on the system.  It was
caused by draw_cursor_image() calling set_destructive_cursor() every
so often.

set_destructive_cursor() absolutely needs to be called when

a) the character code under the cursor has changed either because
   the cursor moved or because the screen was updated or the mouse
   pointer overlapped the cursor.
b) Or a new font has been loaded,
c) or the video mode has been changed,
d) or the cursor shape has been changed,
e) or the user switched virtual consoles.

2. Turn off the configuration flag CHAR_CURSOR (destructive cursor) in
scattach() if we have a non-VGA card.  The destructive cursor works
only for VGA.

3. Removed redundant calls to set_destructive_cursor() in some places.

4. Fixed the "disappearing mouse pointer" problem. The mouse pointer
looked hidden under the destructive cursor when it overlaped the cursor.

A slightly different version of the patch was reviewd and OKed by
sos and ache.
1997-06-30 13:31:49 +00:00
bde
793e761486 gdb.info still needs a near-copy of hsuser.texinfo to avoid the
reference to the programming manual.  Use this near-copy of the version
of hsuser.texinfo in contrib/libreadline instead of the stale near-copy
in contrib/gdb.
1997-06-30 12:57:58 +00:00
yokota
4590227899 Add experimental APM support for some laptops.
If the configuration option PSM_HOOKAPM is defined and the APM device
is available, the psm driver will issue the ENABLE command to the
pointing device at the resume APM event if the device was open when
the system went into suspended mode. If the option
PSM_RESETAFTERSUSPEND is specified in addition to PSM_HOOKAPM, the
driver will try to reset the pointing device before sending the
ENABLE command.

Built-in PS/2-type pointing devices in some laptops (all the reports I
heard were about Toshiba models) sometimes don't work immediately
after the system is resumed. The device MAY become available after a
while. The system may exhibit the same symptom in other OS's too
(no, FreeBSD is not the only OS that is suffering :-).

I don't know the correct way of solving this yet, but it's been
reported that issuing the ENABLE command after resumption wakes up the
pointing device.

Without PSM_HOOKAPM, the psm driver behaves in the same way as before.

Problem reported in the bsd-nomads mailing list in Japan.
1997-06-30 12:52:57 +00:00
charnier
f3aa4e706e Use EX_USAGE in usage(). 1997-06-30 11:24:18 +00:00
charnier
46627309b6 Remove lines inside #ifdef 0/#endif. 1997-06-30 11:10:18 +00:00
ache
375b662530 Add LC_TIME=C to date 1997-06-30 10:59:25 +00:00
kato
2dca27a4d2 Synchronize with sys/i386/isa/syscons.c and syscons.h revisions 1.219
and 1.30, respectively.
1997-06-30 10:00:47 +00:00
kato
ff5923046a Synchronize with sys/i386/i386/machdep.c revision 1.252. 1997-06-30 09:58:39 +00:00