]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
27 years agoDon't depend on <machine/cpufunc.h> including <sys/types.h>. In fact,
Bruce Evans [Tue, 1 Jul 1997 00:33:42 +0000 (00:33 +0000)]
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.

27 years agoDon't depend <machine/cpufunc.h> including <sys/types.h>.
Bruce Evans [Tue, 1 Jul 1997 00:29:33 +0000 (00:29 +0000)]
Don't depend <machine/cpufunc.h> including <sys/types.h>.

27 years agoDon't depend on gcc's feature of permitting labels that aren't followed
Bruce Evans [Tue, 1 Jul 1997 00:22:51 +0000 (00:22 +0000)]
Don't depend on gcc's feature of permitting labels that aren't followed
by a statement.

27 years agoEnabled some SMP options. LINT is for testing that all code compiles
Bruce Evans [Tue, 1 Jul 1997 00:14:39 +0000 (00:14 +0000)]
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.

27 years agoDon't depend on gcc's feature of permitting returning void expressions
Bruce Evans [Tue, 1 Jul 1997 00:08:34 +0000 (00:08 +0000)]
Don't depend on gcc's feature of permitting returning void expressions
in functions returning void.

27 years agoSome staticized variables were still declared to be extern.
Bruce Evans [Mon, 30 Jun 1997 23:54:50 +0000 (23:54 +0000)]
Some staticized variables were still declared to be extern.

27 years agoDon't depend on gcc's feature of interpreting `int foo(c) char c; ...'
Bruce Evans [Mon, 30 Jun 1997 23:49:17 +0000 (23:49 +0000)]
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.

27 years agoRemoved temporary SMP header fix.
Bruce Evans [Mon, 30 Jun 1997 23:37:54 +0000 (23:37 +0000)]
Removed temporary SMP header fix.

27 years agoRemoved -I path to gdb's readline. This didn't do much in -current
Bruce Evans [Mon, 30 Jun 1997 23:10:54 +0000 (23:10 +0000)]
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.

27 years agosysconfig -> rc.conf
Jordan K. Hubbard [Mon, 30 Jun 1997 19:10:50 +0000 (19:10 +0000)]
sysconfig -> rc.conf
PR: 3978
Submitted by: Janick.Taillandier@ratp.fr

27 years agooptions.i386:
Kazutaka YOKOTA [Mon, 30 Jun 1997 14:37:43 +0000 (14:37 +0000)]
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.

27 years agoFixes annoying behavior and a bug regarding the destructive
Kazutaka YOKOTA [Mon, 30 Jun 1997 13:31:49 +0000 (13:31 +0000)]
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.

27 years agogdb.info still needs a near-copy of hsuser.texinfo to avoid the
Bruce Evans [Mon, 30 Jun 1997 12:57:58 +0000 (12:57 +0000)]
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.

27 years agoAdd experimental APM support for some laptops.
Kazutaka YOKOTA [Mon, 30 Jun 1997 12:52:57 +0000 (12:52 +0000)]
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.

27 years agoUse EX_USAGE in usage().
Philippe Charnier [Mon, 30 Jun 1997 11:24:18 +0000 (11:24 +0000)]
Use EX_USAGE in usage().

27 years agoRemove lines inside #ifdef 0/#endif.
Philippe Charnier [Mon, 30 Jun 1997 11:10:18 +0000 (11:10 +0000)]
Remove lines inside #ifdef 0/#endif.

27 years agoAdd LC_TIME=C to date
Andrey A. Chernov [Mon, 30 Jun 1997 10:59:25 +0000 (10:59 +0000)]
Add LC_TIME=C to date

27 years agoSynchronize with sys/i386/isa/syscons.c and syscons.h revisions 1.219
KATO Takenori [Mon, 30 Jun 1997 10:00:47 +0000 (10:00 +0000)]
Synchronize with sys/i386/isa/syscons.c and syscons.h revisions 1.219
and 1.30, respectively.

27 years agoSynchronize with sys/i386/i386/machdep.c revision 1.252.
KATO Takenori [Mon, 30 Jun 1997 09:58:39 +0000 (09:58 +0000)]
Synchronize with sys/i386/i386/machdep.c revision 1.252.

27 years agoSynchronize with sys/i386/conf/Makefile.i386 and files.i386 revisions
KATO Takenori [Mon, 30 Jun 1997 09:57:33 +0000 (09:57 +0000)]
Synchronize with sys/i386/conf/Makefile.i386 and files.i386 revisions
1.100 and 1.166, respectively.

27 years agoAdd usage().
Philippe Charnier [Mon, 30 Jun 1997 06:51:20 +0000 (06:51 +0000)]
Add usage().

27 years agoDocument -k flag.
Philippe Charnier [Mon, 30 Jun 1997 06:50:07 +0000 (06:50 +0000)]
Document -k flag.

27 years agoUse err(3) instead of local redefinition. Change argument name in man
Philippe Charnier [Mon, 30 Jun 1997 06:48:46 +0000 (06:48 +0000)]
Use err(3) instead of local redefinition. Change argument name in man
page to sync with usage string.

27 years agoAdd usage string. Typo in man page.
Philippe Charnier [Mon, 30 Jun 1997 06:45:53 +0000 (06:45 +0000)]
Add usage string. Typo in man page.

27 years agoUncompress is under .Nm not .Ar.
Philippe Charnier [Mon, 30 Jun 1997 06:44:07 +0000 (06:44 +0000)]
Uncompress is under .Nm not .Ar.

27 years agoMdoc'ify man page. Use err(3). Remove whoami.
Philippe Charnier [Mon, 30 Jun 1997 06:42:43 +0000 (06:42 +0000)]
Mdoc'ify man page. Use err(3). Remove whoami.

27 years agoUse err(3). Add DIAGNOSTIC section name in man page.
Philippe Charnier [Mon, 30 Jun 1997 06:40:16 +0000 (06:40 +0000)]
Use err(3). Add DIAGNOSTIC section name in man page.

27 years agoAdd missing -s flag in usage string.
Philippe Charnier [Mon, 30 Jun 1997 06:37:15 +0000 (06:37 +0000)]
Add missing -s flag in usage string.

27 years agoYAMF22 - deletes and preserve option fixes.
Jordan K. Hubbard [Mon, 30 Jun 1997 03:15:40 +0000 (03:15 +0000)]
YAMF22 - deletes and preserve option fixes.

27 years agoAllow specification of a umask for local socket
Brian Somers [Mon, 30 Jun 1997 03:03:38 +0000 (03:03 +0000)]
Allow specification of a umask for local socket
creation in "set server" command.

27 years agoWhoops, only attempt to back up the file if it exists. :-}
Jordan K. Hubbard [Mon, 30 Jun 1997 02:57:40 +0000 (02:57 +0000)]
Whoops, only attempt to back up the file if it exists. :-}

27 years agoDelete old comment about /bin/mail. We don't have a /bin/mail.
Wolfram Schneider [Sun, 29 Jun 1997 23:09:07 +0000 (23:09 +0000)]
Delete old comment about /bin/mail. We don't have a /bin/mail.

Sync with /etc/master.passwd and RFC 2142. In detail:
added:
man, news, operator, usenet (->news), xten
deleted:
ingres
added as comment:
info, marketing, sales, support, abuse, noc, security,
ftp, hostmaster, webmaster, www, bit-bucket, dev-null

27 years agoImplemented `-c command'.
Bruce Evans [Sun, 29 Jun 1997 22:43:01 +0000 (22:43 +0000)]
Implemented `-c command'.

Fixed bitrot (__dead went away; EOF is now wrong for the getopt failure
value).

Moved sleep command to the end of the main loop to avoid mismatch between
main loop and the report loop.  There is an extra iteration that could be
used to calibrate the loop overhead, but was used to report wrong results.

Fixed usage message.

27 years agodev->id_flags --> flags
Andrey A. Chernov [Sun, 29 Jun 1997 22:23:32 +0000 (22:23 +0000)]
dev->id_flags --> flags
(not compiles otherwise)

27 years agoConfigure static linkage in the normal way (default to -static using
Bruce Evans [Sun, 29 Jun 1997 21:40:54 +0000 (21:40 +0000)]
Configure static linkage in the normal way (default to -static using
NOSHARED?= yes).

27 years agoConfigure static linkage in the normal way (default to -static using
Bruce Evans [Sun, 29 Jun 1997 21:36:33 +0000 (21:36 +0000)]
Configure static linkage in the normal way (default to -static using
NOSHARED?= yes).

Split long lines.

27 years agoPrint fs_maxfilesize.
Bruce Evans [Sun, 29 Jun 1997 20:59:03 +0000 (20:59 +0000)]
Print fs_maxfilesize.

27 years agoPrepare to remove the declaration of sys_siglist from <unistd.h>.
Bruce Evans [Sun, 29 Jun 1997 20:38:38 +0000 (20:38 +0000)]
Prepare to remove the declaration of sys_siglist from <unistd.h>.
It should only be declared in <signal.h> if at all.  Modload used
to depend on getting it from <unistd.h> because it only included
<sys/signal.h>.

27 years agoZap register keyword usage and convert: bcopy -> memmove, bzero -> memset,
Steve Price [Sun, 29 Jun 1997 19:50:26 +0000 (19:50 +0000)]
Zap register keyword usage and convert: bcopy -> memmove, bzero -> memset,
index -> strchr, and rindex -> strrchr.

27 years agoMerge conflicts and make this compile -Wall clean.
Steve Price [Sun, 29 Jun 1997 19:00:29 +0000 (19:00 +0000)]
Merge conflicts and make this compile -Wall clean.

27 years agoThis commit was generated by cvs2svn to compensate for changes in r27074,
Steve Price [Sun, 29 Jun 1997 18:50:34 +0000 (18:50 +0000)]
This commit was generated by cvs2svn to compensate for changes in r27074,
which included commits to RCS files with non-trunk default branches.

27 years agoImport of NetBSD's rbootd version 19970629
Steve Price [Sun, 29 Jun 1997 18:50:34 +0000 (18:50 +0000)]
Import of NetBSD's rbootd version 19970629

27 years agoRemoved most unused files (about 8M total).
Bruce Evans [Sun, 29 Jun 1997 18:12:14 +0000 (18:12 +0000)]
Removed most unused files (about 8M total).

27 years agoProtect against CVSROOT not being set.
Jordan K. Hubbard [Sun, 29 Jun 1997 18:07:01 +0000 (18:07 +0000)]
Protect against CVSROOT not being set.
Submitted by: fenner

27 years agoRemoved unused files (about 8MB total).
Bruce Evans [Sun, 29 Jun 1997 18:06:40 +0000 (18:06 +0000)]
Removed unused files (about 8MB total).

27 years agoUpdated generated files (makesyscalls.sh changed). Only sysproto.h
Bruce Evans [Sun, 29 Jun 1997 17:47:32 +0000 (17:47 +0000)]
Updated generated files (makesyscalls.sh changed).  Only sysproto.h
really changed.

27 years agoDon't generate unused nested #include of <sys/aio.h>.
Bruce Evans [Sun, 29 Jun 1997 17:39:57 +0000 (17:39 +0000)]
Don't generate unused nested #include of <sys/aio.h>.

27 years agoFixed the fix for not using -fomit-frame-pointer with -pg. The previous
Bruce Evans [Sun, 29 Jun 1997 16:39:11 +0000 (16:39 +0000)]
Fixed the fix for not using -fomit-frame-pointer with -pg.  The previous
fix stopped it being used in all cases, because substitution on unset
variables does not work.

When profiling, put -malign-functions=4 in CFLAGS instead of in PROF.
This fixes the histogram counts for profiling support functions.  It
gives bogus but harmless extra alignment for genassym etc.

27 years agoA fix/work-around for ThinkPad 535.
Kazutaka YOKOTA [Sun, 29 Jun 1997 15:11:40 +0000 (15:11 +0000)]
A fix/work-around for ThinkPad 535.

Add a new configuration flag, KBD_NORESET (0x20) to tell scprobe() not
to reset the keyboard.

IBM ThinkPad 535 has the `Fn' key with which the user can perform
certain functions in conjunction with other keys. For example, `Fn' +
PageUP/PageDOWN adjust speaker volume, `Fn' + Home/End change
brightness of LCD screen. It can also be used to suspend the system.

It appears that these functions are implemented at the keyboard level
or the keyboard controller level and totally independent from BIOS or
OS.  But, if the keyboard is reset (as is done in scprobe()), they
become unavailable.  (There are other laptops which have similar
functions associated with the `Fn' key. But, they aren't affected by
keyboard reset.)

ThinkPad 535 doesn't have switches or buttons to adjust brightness and
volume, or to put the system into the suspend mode. Therefore, it is
essential to preserve these `Fn' key functions in FreeBSD. The new
flag make scprobe() skip keyboard reset.

If this flag is not set, scprobe() behaves in the same say as before.

(If we only knew a way to detect ThinkPad 535, we could skip keyboard
reset automatically, but...)

27 years agoFix HUP handling while dialing.
Brian Somers [Sun, 29 Jun 1997 13:54:31 +0000 (13:54 +0000)]
Fix HUP handling while dialing.

Pointed out by: ache

27 years agoFixed clobbered vendor Id.
Bruce Evans [Sun, 29 Jun 1997 11:52:51 +0000 (11:52 +0000)]
Fixed clobbered vendor Id.

27 years agoAttempt to fix clobbered vendor Id.
Bruce Evans [Sun, 29 Jun 1997 11:43:31 +0000 (11:43 +0000)]
Attempt to fix clobbered vendor Id.

27 years ago``-C ${WRKDIR} -xzf'' are no longer the default args for EXTRACT_BEFORE_ARGS
David E. O'Brien [Sun, 29 Jun 1997 10:51:55 +0000 (10:51 +0000)]
``-C ${WRKDIR} -xzf'' are no longer the default args for EXTRACT_BEFORE_ARGS

27 years agoAdd support for @option preserve - moves existing files out of the way
Jordan K. Hubbard [Sun, 29 Jun 1997 10:41:49 +0000 (10:41 +0000)]
Add support for @option preserve - moves existing files out of the way
before replacing them (using pkgname to make this hopefully unique).
Delete also moves them back, if they exist, resulting in a package
which can be "backed out" with reasonable safety.

27 years agoAdd magic for FIGlet fonts and controlfiles
David E. O'Brien [Sun, 29 Jun 1997 10:06:56 +0000 (10:06 +0000)]
Add magic for FIGlet fonts and controlfiles

Obtained from: Figlet v2.2 release.

27 years agoAdd a blurb on how to import newer versions of patch(1) so
Steve Price [Sun, 29 Jun 1997 07:20:16 +0000 (07:20 +0000)]
Add a blurb on how to import newer versions of patch(1) so
that others don't make the same bone-headed mistakes that
I just did.

Obtained from: Peter Wemm's version of this file in contrib_cvs

27 years ago-Wall clean.
Steve Price [Sun, 29 Jun 1997 06:56:24 +0000 (06:56 +0000)]
-Wall clean.

27 years agoThis commit was generated by cvs2svn to compensate for changes in r27044,
Steve Price [Sun, 29 Jun 1997 06:55:02 +0000 (06:55 +0000)]
This commit was generated by cvs2svn to compensate for changes in r27044,
which included commits to RCS files with non-trunk default branches.

27 years agoImport of GNU patch version 2.4.
Steve Price [Sun, 29 Jun 1997 06:55:02 +0000 (06:55 +0000)]
Import of GNU patch version 2.4.

27 years agoMerge from 2.2
Paul Traina [Sun, 29 Jun 1997 06:23:14 +0000 (06:23 +0000)]
Merge from 2.2

27 years agoNOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
Paul Traina [Sun, 29 Jun 1997 06:03:42 +0000 (06:03 +0000)]
NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".
NOPIC is used to not generate a shared library, not NOSHARED.
Make NOSHARED advisory where appropriate.
Remove bogus NOSHARED (kbdio).

27 years ago_err() -> err().
Jordan K. Hubbard [Sun, 29 Jun 1997 00:33:17 +0000 (00:33 +0000)]
_err() -> err().

27 years agoSome minor cosmetic tweaks.
Steve Price [Sat, 28 Jun 1997 19:27:51 +0000 (19:27 +0000)]
Some minor cosmetic tweaks.

PR: docs/3941
Partially submitted by: uenami@imasy.or.jp

27 years agoFix bogus patch (my fault)
Paul Traina [Sat, 28 Jun 1997 16:53:47 +0000 (16:53 +0000)]
Fix bogus patch (my fault)

27 years agoendif -> .endif (from BOOT_CONFIG changes).
Jordan K. Hubbard [Sat, 28 Jun 1997 16:24:09 +0000 (16:24 +0000)]
endif -> .endif (from BOOT_CONFIG changes).

27 years agoReorder things and import NOSHARED.
Paul Traina [Sat, 28 Jun 1997 08:21:10 +0000 (08:21 +0000)]
Reorder things and import NOSHARED.

27 years agoAttempt to open the device for reading before actually adding the device
Paul Traina [Sat, 28 Jun 1997 08:18:29 +0000 (08:18 +0000)]
Attempt to open the device for reading before actually adding the device
to the session list.  If the device comes back as unconfigured, just
ignore that line in /etc/ttys.  If someone HUP's init, we'll try again.

This change stops getty's from hanging on vty and sio ports that don't
exist, either due to LKM drivers not being loaded, or probes failing.
Reviewed by: bde

27 years agoMake NOSHARED = no / NOSHARED = NO do what you'd expect.
Paul Traina [Sat, 28 Jun 1997 08:14:10 +0000 (08:14 +0000)]
Make NOSHARED = no / NOSHARED = NO do what you'd expect.

27 years agoadd cvspserver (officially registered at 2401)
Peter Wemm [Sat, 28 Jun 1997 04:28:07 +0000 (04:28 +0000)]
add cvspserver (officially registered at 2401)

27 years agoreplace the OpenBSD fd_set sizing code with something more efficient.
Peter Wemm [Sat, 28 Jun 1997 04:19:52 +0000 (04:19 +0000)]
replace the OpenBSD fd_set sizing code with something more efficient.
Only call malloc() if the fd is too big for the compiled in fd_set size,
and don't use calloc either.  This should reduce the impact of conflicts
with private malloc implementations etc.  When using the fd_set on the
stack, only zero what is needed rather than all 1024 bits like FD_ZERO did.

27 years agoProperly make directory before moving things into it.
Jordan K. Hubbard [Sat, 28 Jun 1997 02:37:33 +0000 (02:37 +0000)]
Properly make directory before moving things into it.
Submitted by: pst

27 years agoDeal with HISADDR/MYADDR in filter rules.
Brian Somers [Sat, 28 Jun 1997 01:34:03 +0000 (01:34 +0000)]
Deal with HISADDR/MYADDR in filter rules.
Mostly submitted by: kfurge@worldnet.att.net

Allow MYADDR in add/delete commands to facilitate
dynamic additions of a loopback route to MYADDR.

27 years agoAllow command line control of ppp through both
Brian Somers [Sat, 28 Jun 1997 01:04:54 +0000 (01:04 +0000)]
Allow command line control of ppp through both
TCP and AF_LOCAL sockets.

27 years agoapic_vector.s:
Steve Passe [Fri, 27 Jun 1997 23:48:05 +0000 (23:48 +0000)]
apic_vector.s:
 - added Xcpustop IPI code to support stop_cpus()/restart_cpus().
   it is off by default, enable via smptests.h:TEST_CPUSTOP

intr_machdep.h:
 - moved +ICULEN to lower level.
 - added entry for Xcpustop.

27 years agoInitialize private variable other_cpus during AP boot.
Steve Passe [Fri, 27 Jun 1997 23:38:32 +0000 (23:38 +0000)]
Initialize private variable other_cpus during AP boot.

27 years agoAdded POST code output to various points of the startup code.
Steve Passe [Fri, 27 Jun 1997 23:33:17 +0000 (23:33 +0000)]
Added POST code output to various points of the startup code.

General cleanup.

New functions to stop/start CPUs via IPIs:

 - int stop_cpus( u_int map );
 - int restart_cpus( u_int map );

Turned off by default, enabled via smptests.h:TEST_CPUSTOP.
Current version has a BUG, perhaps a deadlock?

27 years agoExperimental calls to stop_cpus()/restart_cpus() within breakpoint calls.
Steve Passe [Fri, 27 Jun 1997 23:24:38 +0000 (23:24 +0000)]
Experimental calls to stop_cpus()/restart_cpus() within breakpoint calls.
Turned off by default in smptests.h.

27 years agoAdded other_cpus to CPU private page.
Steve Passe [Fri, 27 Jun 1997 23:19:43 +0000 (23:19 +0000)]
Added other_cpus to CPU private page.

This variable is a bitmap showing all CPUs present EXCEPT the CPU
owning the variable.  In other words, it is equal to the global bitmap
'all_cpus' minus its own bit.

27 years agoPreliminaries for stop_cpus()/restart_cpus().
Steve Passe [Fri, 27 Jun 1997 23:12:31 +0000 (23:12 +0000)]
Preliminaries for stop_cpus()/restart_cpus().
Both are turned off by default.

Added macro for displaying POST codes from kernel.

27 years agoProgram lint1 to handle NMIs.
Steve Passe [Fri, 27 Jun 1997 22:27:18 +0000 (22:27 +0000)]
Program lint1 to handle NMIs.

Till now NMIs would be ignored.  Now an NMI is caught by the BSP.
APs still ignore NMI, am working on code to allow a CPU to stop other CPUs
via an IPI.

27 years agoAdded fields to the LVT1/2 group.
Steve Passe [Fri, 27 Jun 1997 22:13:50 +0000 (22:13 +0000)]
Added fields to the LVT1/2 group.

27 years agoRemoved unused variables.
Alexander Langer [Fri, 27 Jun 1997 21:51:59 +0000 (21:51 +0000)]
Removed unused variables.

27 years agoModify my copyright notice to allow the sequencer to be used with GPLed
Justin T. Gibbs [Fri, 27 Jun 1997 19:39:34 +0000 (19:39 +0000)]
Modify my copyright notice to allow the sequencer to be used with GPLed
software (aka Linux).

27 years agoModify my copyright notice to allow the sequencer to be used with GPLed
Justin T. Gibbs [Fri, 27 Jun 1997 19:38:56 +0000 (19:38 +0000)]
Modify my copyright notice to allow the sequencer to be used with GPLed
software (aka Linux).

Fix a few bugs in the sequencer assembler.

Make it easy to compiler the assembler with debugging turned on.

27 years agoKNF cleanup.
Justin T. Gibbs [Fri, 27 Jun 1997 19:36:27 +0000 (19:36 +0000)]
KNF cleanup.

27 years agoFix a condition where nfs_statfs() can precipitate a panic. There is
Bill Paul [Fri, 27 Jun 1997 19:10:46 +0000 (19:10 +0000)]
Fix a condition where nfs_statfs() can precipitate a panic. There is
code that says this:

        nfsm_request(vp, NFSPROC_FSSTAT, p, cred);
        if (v3)
                nfsm_postop_attr(vp, retattr);
        if (!error)
                nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));

The problem here is that if error != 0, nfsm_dissect() will not be
called, which leaves sfp == NULL. But nfs_statfs() does not bail out
at this point: it continues processing until it tries to dereference
sfp, which causes a panic. I was able to generate this crash under
the following conditions:

1) Set up a machine as an NFS server and NFS client, with amd running
   (using NIS maps). /usr/local is exported, though any exported fs
   can can be used to trigger the bug.
2) Log in as normal user, with home directory mounted from a SunOS 4.1.3
   NFS server via amd (along with a few other NFS filesystems from same
   machine).
3) Su to root and type the following:
   # mount localhost:/usr/local /mnt
   # df

To fix the panic, I changed the code to read:

        if (!error) {
                nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));
        } else
                goto nfsmout;

This is a bit kludgy in that nfsmout is a label defined by the nfsm_subs.h
macros, but these macros are themselves more than a little kludgy. This
stops the machine from crashing, but does not fix the overall bug: 'error'
somehow becomes 5 (EIO) when a statfs() is performed on the locally mounted
NFS filesystem. This seems to only happen the first time the filesystem
is accesed: on subsequent accesses, it seems to work fine again.

Now, I know there's no practical use in mounting a local filesystem
via NFS, but doing it shouldn't cause the system to melt down.

27 years agoRemoved '#include <machine/smptests.h>' line, no longer needed.
Steve Passe [Fri, 27 Jun 1997 18:29:55 +0000 (18:29 +0000)]
Removed '#include <machine/smptests.h>' line, no longer needed.

27 years agoRevive this file, it's come back from the dead in the 8.8.x dists.
Peter Wemm [Fri, 27 Jun 1997 15:55:33 +0000 (15:55 +0000)]
Revive this file, it's come back from the dead in the 8.8.x dists.

27 years agoDon't depend upon the user structure having been aligned on a 8 KB boundary.
Tor Egge [Fri, 27 Jun 1997 15:48:22 +0000 (15:48 +0000)]
Don't depend upon the user structure having been aligned on a 8 KB boundary.
Reviewed by: Peter Wemm <peter@spinner.dialix.com.au>

27 years agoFill in some extra fields in the eproc structure. gdb uses this information
Tor Egge [Fri, 27 Jun 1997 15:42:05 +0000 (15:42 +0000)]
Fill in some extra fields in the eproc structure. gdb uses this information
to determine where the data segment in core dumps should be mapped.
Reviewed by: Peter Wemm <peter@spinner.dialix.com.au>

27 years agoDon't accept insane values for SO_(SND|RCV)BUF, and the low water marks.
Peter Wemm [Fri, 27 Jun 1997 15:28:54 +0000 (15:28 +0000)]
Don't accept insane values for SO_(SND|RCV)BUF, and the low water marks.
Specifically, don't allow a value < 1 for any of them (it doesn't make
sense), and don't let the low water mark be greater than the corresponding
high water mark.

Pre-Approved by: wollman
Obtained from: NetBSD

27 years agoMerge in sendmail-8.8.5 -> 8.8.6 changes to those files that have left the
Peter Wemm [Fri, 27 Jun 1997 15:17:19 +0000 (15:17 +0000)]
Merge in sendmail-8.8.5 -> 8.8.6 changes to those files that have left the
vendor branch.

27 years agoThis commit was generated by cvs2svn to compensate for changes in r26986,
Peter Wemm [Fri, 27 Jun 1997 14:53:01 +0000 (14:53 +0000)]
This commit was generated by cvs2svn to compensate for changes in r26986,
which included commits to RCS files with non-trunk default branches.

27 years agoImport sendmail-8.8.6
Peter Wemm [Fri, 27 Jun 1997 14:53:01 +0000 (14:53 +0000)]
Import sendmail-8.8.6

Obtained from: ftp.sendmail.org

27 years agoAdded CPU_DIRECT_MAPPED_CACHE option which sets L1 cache in direct
KATO Takenori [Fri, 27 Jun 1997 13:46:19 +0000 (13:46 +0000)]
Added CPU_DIRECT_MAPPED_CACHE option which sets L1 cache in direct
mapped mode on Cyrix 486DLC box.

27 years agoZap some unused debugging printfs that I accidently left in.
Peter Wemm [Fri, 27 Jun 1997 13:39:31 +0000 (13:39 +0000)]
Zap some unused debugging printfs that I accidently left in.

27 years agoDynamically size fd_set in select rather than fail if too many files
Peter Wemm [Fri, 27 Jun 1997 13:00:51 +0000 (13:00 +0000)]
Dynamically size fd_set in select rather than fail if too many files
are open.
Obtained from: OpenBSD; by deraadt and dm

27 years agoctype: portability, sign extension and cleanup fixes
Andrey A. Chernov [Fri, 27 Jun 1997 11:50:56 +0000 (11:50 +0000)]
ctype: portability, sign extension and cleanup fixes

27 years agoMove editrc.5 from MAN3 to MAN5
Andrey A. Chernov [Fri, 27 Jun 1997 11:16:28 +0000 (11:16 +0000)]
Move editrc.5 from MAN3 to MAN5

27 years agoReplace hand-made tolower conversions with real tolower from ctype
Andrey A. Chernov [Fri, 27 Jun 1997 10:21:22 +0000 (10:21 +0000)]
Replace hand-made tolower conversions with real tolower from ctype