]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
26 years agoWarn if ISC-DHCP not available.
Paul Traina [Wed, 17 Dec 1997 01:57:18 +0000 (01:57 +0000)]
Warn if ISC-DHCP not available.

26 years agoRemove an unnecessary (and wrong) cast.
Brian Somers [Wed, 17 Dec 1997 00:26:58 +0000 (00:26 +0000)]
Remove an unnecessary (and wrong) cast.

26 years agoFix a potential overflow where, if the label passed on the command
Brian Somers [Wed, 17 Dec 1997 00:19:25 +0000 (00:19 +0000)]
Fix a potential overflow where, if the label passed on the command
line is > LINE_LEN (512 bytes), we scribble (*blush*).

Hinted at by: Theo de Raadt <deraadt@cvs.openbsd.org>

Change sprintf(buf, "fixedstring") to strcpy(buf, "fixedstring").

26 years agoEXT2FS and MSDOSFS to the opt_dontuse bin.
Eivind Eklund [Tue, 16 Dec 1997 23:59:37 +0000 (23:59 +0000)]
EXT2FS and MSDOSFS to the opt_dontuse bin.

26 years agoFix my typo.
Eivind Eklund [Tue, 16 Dec 1997 22:50:18 +0000 (22:50 +0000)]
Fix my typo.

Submitted by: helbig

26 years agoMake LINT compile again after wollman introduced poll() here.
Eivind Eklund [Tue, 16 Dec 1997 22:28:26 +0000 (22:28 +0000)]
Make LINT compile again after wollman introduced poll() here.

Overlooked by: wollman

26 years agoRegenerate after changing makesyscalls.sh.
Eivind Eklund [Tue, 16 Dec 1997 22:27:22 +0000 (22:27 +0000)]
Regenerate after changing makesyscalls.sh.

26 years agoTypo alert (cosmetic).
James Raynard [Tue, 16 Dec 1997 22:23:52 +0000 (22:23 +0000)]
Typo alert (cosmetic).

26 years agoMove around opt_compat include to accomodate Linulator brokenness (for
Eivind Eklund [Tue, 16 Dec 1997 18:51:45 +0000 (18:51 +0000)]
Move around opt_compat include to accomodate Linulator brokenness (for
the time being).

26 years agoMake hidden COMPAT_43 dependencies explict. Options in headers is a
Eivind Eklund [Tue, 16 Dec 1997 18:49:23 +0000 (18:49 +0000)]
Make hidden COMPAT_43 dependencies explict.  Options in headers is a
pain in the backside.

26 years agoHandle COMPAT_43 define -> option change.
Eivind Eklund [Tue, 16 Dec 1997 18:45:50 +0000 (18:45 +0000)]
Handle COMPAT_43 define -> option change.

26 years agoRemoved gross dir file bootstrap rule again. It would break building
Bruce Evans [Tue, 16 Dec 1997 18:29:48 +0000 (18:29 +0000)]
Removed gross dir file bootstrap rule again.  It would break building
when there is no /usr/src/share/info if it were actually used.

Added comments to explain duplicated tex commands.

Use substitution in IFILENS to simplify some things.

Removed /g from many substitutions.  It is bogus for anchored matches.

Don't echo nothing.

Don't add things that wouldn't be built with the current options to
CLEANFILES (except for some cases involving tex).
Reviewed by: wosch

26 years agoWhoops - fix this after yesterday's IPX option changes. Also fix
Eivind Eklund [Tue, 16 Dec 1997 18:28:07 +0000 (18:28 +0000)]
Whoops - fix this after yesterday's IPX option changes.  Also fix
minor buglet when neither bsdcomp, deflate or filter is used.

Pointed out by: Chris Timmons <skynyrd@opus.cts.cwu.edu>

26 years agoFixed DPADD.
Bruce Evans [Tue, 16 Dec 1997 17:53:39 +0000 (17:53 +0000)]
Fixed DPADD.

26 years agoFixed DPADD.
Bruce Evans [Tue, 16 Dec 1997 17:43:33 +0000 (17:43 +0000)]
Fixed DPADD.

26 years agoMake COMPAT_43 and COMPAT_SUNOS new-style options.
Eivind Eklund [Tue, 16 Dec 1997 17:40:42 +0000 (17:40 +0000)]
Make COMPAT_43 and COMPAT_SUNOS new-style options.

26 years agoFixed DPADD.
Bruce Evans [Tue, 16 Dec 1997 17:37:23 +0000 (17:37 +0000)]
Fixed DPADD.

Don't override the (correct) default for SRCS or MAN1.

Replaced bogus Lite1 (?) Id by $Id$.  The key server files were
mis-imported so it is hard to tell where they came from, but at
least in Lite2 they don't have useful Makefiles, and I rewrote
most of the Makefile.

26 years agoFixed DPADD. ${LIBGCC} must be added explicitly since the default
Bruce Evans [Tue, 16 Dec 1997 16:36:43 +0000 (16:36 +0000)]
Fixed DPADD.  ${LIBGCC} must be added explicitly since the default
linkage rule is overridden.  The -L option must be in ${DPADD} so that
`make checkdpadd' works.  Actually use ${DPADD}.

FIxed missing dependencies for doscmd.  Use ${LIBCRT0} instead of a
hard-coded path in the rule for doscmd.

Added comments about the kludges used to build 2 binaries and 2 data
files in one directory.  It shouldn't be done this way.  The dependencies
on sources took extra work to get right, and the dependencies on objects
are still broken (one set is missing and the other has the wrong libs).

Fixed some style bugs while I'm here:
- don't override the (correct) default for MAN1.
- use `beforeinstall', not `afterinstall' to install auxiliary files.
  `afterinstall' is for fixing messes made by `install'.

26 years agoFix bug where a struct buf was free()'d back to the system malloc pool.
David Greenman [Tue, 16 Dec 1997 15:40:29 +0000 (15:40 +0000)]
Fix bug where a struct buf was free()'d back to the system malloc pool.
Quite amazing that the system runs at all with this bug. Also present in
2.2.5. The bug appears to have come in with changes in rev 1.53.

PR: might fix PR#5313
Submitted by: bde

26 years agoFixed DPADD.
Bruce Evans [Tue, 16 Dec 1997 15:03:14 +0000 (15:03 +0000)]
Fixed DPADD.

26 years agoFixed missing DPADD.
Bruce Evans [Tue, 16 Dec 1997 14:42:08 +0000 (14:42 +0000)]
Fixed missing DPADD.
Fixed some style bugs while I'm here (don't override the (correct)
default for MAN1).

26 years agoDon't use PG_N if EPSON PC-486HX/HG/HA (PC-9801 compatible) are
KATO Takenori [Tue, 16 Dec 1997 10:22:49 +0000 (10:22 +0000)]
Don't use PG_N if EPSON PC-486HX/HG/HA (PC-9801 compatible) are
detected.  These machine cannot make L2 cache write-through by PG_N,
and only I/O access (undocumented) can do that.  If PG_N is used,
system hangs.

Reviewed by: tos@fa2.so-net.or.jp (Toshiyuki Kawashima)

26 years agoOne more ctype cast
Andrey A. Chernov [Tue, 16 Dec 1997 08:58:15 +0000 (08:58 +0000)]
One more ctype cast

26 years agoAdd more (unsigned char) casts to ctype macros
Andrey A. Chernov [Tue, 16 Dec 1997 08:22:37 +0000 (08:22 +0000)]
Add more (unsigned char) casts to ctype macros

26 years agoAdd (unsigned char) cast to ctype macro
Andrey A. Chernov [Tue, 16 Dec 1997 08:17:26 +0000 (08:17 +0000)]
Add (unsigned char) cast to ctype macro

26 years agoRemove the UK phone codes from inter.phone and create
Brian Somers [Tue, 16 Dec 1997 04:05:14 +0000 (04:05 +0000)]
Remove the UK phone codes from inter.phone and create
uk.phone (in line with na.phone).  This is a more detailed
list than the one in inter.phone.

Add uk.postcodes.  I've prefixed it with `uk' to leave room
for (maybe) au.postcodes etc. (if someone feels so inclined).

Obtained from: http://www.brainstorm.co.uk/public/utils
Ok'd to use by: steve@brainstorm.co.uk (Steve Crook)

26 years agoAdd support for explicit 3C589D varients and XJ1336 modems
Paul Traina [Tue, 16 Dec 1997 02:43:26 +0000 (02:43 +0000)]
Add support for explicit 3C589D varients and XJ1336 modems

26 years agoSupport ISC-DHCP if the package is available.
Paul Traina [Tue, 16 Dec 1997 02:25:36 +0000 (02:25 +0000)]
Support ISC-DHCP if the package is available.

26 years agoWrap long lines
Brian Somers [Tue, 16 Dec 1997 00:32:35 +0000 (00:32 +0000)]
Wrap long lines
Submitted by: Greg Lehey <grog@lemis.com>

26 years agoI'd swore I added this on my prior mega-commit. Any chance adds aren't
Chris Timmons [Mon, 15 Dec 1997 23:40:54 +0000 (23:40 +0000)]
I'd swore I added this on my prior mega-commit.  Any chance adds aren't
processed during the recursive swoop?

Makefile for global's private library, complete with null install rule
to keep this private.

26 years agoAdd lib/Makefile and adjust as necessary to build global 2.2.1 from contrib sources.
Chris Timmons [Mon, 15 Dec 1997 23:34:57 +0000 (23:34 +0000)]
Add lib/Makefile and adjust as necessary to build global 2.2.1 from contrib sources.

26 years agoCorrect return values from alias routines.
Brian Somers [Mon, 15 Dec 1997 23:34:05 +0000 (23:34 +0000)]
Correct return values from alias routines.

26 years agoRemove extra cruft. The previouos commit silently removed source ifles no longer...
Chris Timmons [Mon, 15 Dec 1997 23:27:04 +0000 (23:27 +0000)]
Remove extra cruft.  The previouos commit silently removed source ifles no longer required as of v2.2.1 as well.

26 years agoResolve -Wall issues and be stylistic about #include directives.
Chris Timmons [Mon, 15 Dec 1997 23:23:35 +0000 (23:23 +0000)]
Resolve -Wall issues and be stylistic about #include directives.

26 years agoMerge and resolve conflicts...
Chris Timmons [Mon, 15 Dec 1997 23:13:53 +0000 (23:13 +0000)]
Merge and resolve conflicts...

26 years agoThis commit was generated by cvs2svn to compensate for changes in r31750,
Chris Timmons [Mon, 15 Dec 1997 23:08:46 +0000 (23:08 +0000)]
This commit was generated by cvs2svn to compensate for changes in r31750,
which included commits to RCS files with non-trunk default branches.

26 years agoImport of virgin Global v2_2_1 sources
Chris Timmons [Mon, 15 Dec 1997 23:08:46 +0000 (23:08 +0000)]
Import of virgin Global v2_2_1 sources

26 years agoConvert SUIDDIR fully to a new-style option.
Eivind Eklund [Mon, 15 Dec 1997 21:51:45 +0000 (21:51 +0000)]
Convert SUIDDIR fully to a new-style option.

Forgotten by: julian

26 years agoRemove cal, add ncal.
Wolfgang Helbig [Mon, 15 Dec 1997 20:52:24 +0000 (20:52 +0000)]
Remove cal, add ncal.

26 years agoIt's more portable to use <errno.h> than <sys/errno.h>
Eivind Eklund [Mon, 15 Dec 1997 20:37:43 +0000 (20:37 +0000)]
It's more portable to use <errno.h> than <sys/errno.h>

Pointed-out-by: bde (a long while ago)

26 years agoAdd new command ncal.
Wolfgang Helbig [Mon, 15 Dec 1997 20:35:22 +0000 (20:35 +0000)]
Add new command ncal.

26 years agoRevert 1.15 - duplicate code (initialization).
Eivind Eklund [Mon, 15 Dec 1997 20:34:52 +0000 (20:34 +0000)]
Revert 1.15 - duplicate code (initialization).

Pointed-out-by: bde

26 years agoThrow options IPX, IPXIP and IPTUNNEL into opt_ipx.h.
Eivind Eklund [Mon, 15 Dec 1997 20:31:25 +0000 (20:31 +0000)]
Throw options IPX, IPXIP and IPTUNNEL into opt_ipx.h.

The #ifdef IPXIP in netipx/ipx_if.h is OK (used from ipx_usrreq.c and
ifconfig.c only).

I also fixed a typo IPXTUNNEL -> IPTUNNEL (and #ifdef'ed out the code
inside, as it never could have compiled - doh.)

26 years agoAdd libcalendar
Wolfgang Helbig [Mon, 15 Dec 1997 20:30:38 +0000 (20:30 +0000)]
Add libcalendar

26 years agoUse LogWARN for command usage messages and unrecognised
Brian Somers [Mon, 15 Dec 1997 20:21:47 +0000 (20:21 +0000)]
Use LogWARN for command usage messages and unrecognised
commands, not LogCOMMAND.

26 years agoDo 2 passes when "delete all"ing. The first pass removes
Brian Somers [Mon, 15 Dec 1997 20:21:15 +0000 (20:21 +0000)]
Do 2 passes when "delete all"ing.  The first pass removes
all RTF_WASCLONED routes, and the second removes the
others.  This avoids the situation where we've added an
RTF_CLONING route (such as ``default''), created some
clones, then deleted the CLONING route before the
WASCLONED route(s).  Without the two passes, we get
errno (not rtm_errno) set to ESRCH when deleting the
WASCLONED route, despite the deletion succeeding !

Also:
  Enhance the route operation failure diagnostics.
  Make portability #ifdefs a bit more generic.

26 years agoSync with sys/i386/i386/microtime.s revision 1.35.
KATO Takenori [Mon, 15 Dec 1997 08:37:13 +0000 (08:37 +0000)]
Sync with sys/i386/i386/microtime.s revision 1.35.

26 years agoCosmetic in usage string.
Philippe Charnier [Mon, 15 Dec 1997 07:19:41 +0000 (07:19 +0000)]
Cosmetic in usage string.

26 years agoAs described by the submitter:
Mike Smith [Mon, 15 Dec 1997 06:09:11 +0000 (06:09 +0000)]
As described by the submitter:

These patches enables us to play quake2 .

Support linux keyboard ioctl for setting RAW, MEDIUMRAW and XLATE.

Support linux virtual terminal operations:
 OPENQRY, GETMODE, SETMODE, GETSTATE, ACTIVATE, and WAITACTIVE.

Submitted by: Amancio Hasty <hasty@rah.star-gate.com>

26 years agoFix a recursive kernel_map lock problem in vm_zone allocator.
John Dyson [Mon, 15 Dec 1997 05:16:09 +0000 (05:16 +0000)]
Fix a recursive kernel_map lock problem in vm_zone allocator.
PR: 5298

26 years ago- Fix some very minor typos.
Nate Williams [Mon, 15 Dec 1997 04:38:15 +0000 (04:38 +0000)]
- Fix some very minor typos.

26 years agoAdd support for poll(2) on files. vop_nopoll() now returns POLLNVAL
Garrett Wollman [Mon, 15 Dec 1997 03:09:59 +0000 (03:09 +0000)]
Add support for poll(2) on files.   vop_nopoll() now returns POLLNVAL
if one of the new poll types is requested; hopefully this will not break
any existing code.  (This is done so that programs have a dependable
way of determining whether a filesystem supports the extended poll types
or not.)

The new poll types added are:

POLLWRITE - file contents may have been modified
POLLNLINK - file was linked, unlinked, or renamed
POLLATTRIB - file's attributes may have been changed
POLLEXTEND - file was extended

Note that the internal operation of poll() means that it is impossible
for two processes to reliably poll for the same event (this could
be fixed but may not be worth it), so it is not possible to rewrite
`tail -f' to use poll at this time.

26 years agoOops, I forgot to set `cflag' in some cases when initializing the
Kazutaka YOKOTA [Mon, 15 Dec 1997 02:57:45 +0000 (02:57 +0000)]
Oops, I forgot to set `cflag' in some cases when initializing the
mouse port.

26 years agoConsult sa_len before trampling it with MSG_COMPAT set.
Mike Smith [Mon, 15 Dec 1997 02:29:11 +0000 (02:29 +0000)]
Consult sa_len before trampling it with MSG_COMPAT set.
PR:             kern/5291
Submitted by:   pb@fasterix.freenix.org (Pierre Beyssac)

26 years agoAdd support for low resolution SMP kernel profiling.
Tor Egge [Mon, 15 Dec 1997 02:18:35 +0000 (02:18 +0000)]
Add support for low resolution SMP kernel profiling.

  - A nonprofiling version of s_lock (called s_lock_np) is used
    by mcount.

  - When profiling is active, more registers are clobbered in
    seemingly simple assembly routines. This means that some
    callers needed to save/restore extra registers.

  - The stack pointer must have space for a 'fake' return address
    in idle, to avoid stack underflow.

26 years agoFix recursion problem which occurs when a signal is received during
John Birrell [Mon, 15 Dec 1997 02:12:42 +0000 (02:12 +0000)]
Fix recursion problem which occurs when a signal is received during
a malloc. The signal handler creates a thread which requires a malloc...
For now, the only thing to do is to block signals. When we move user
pthreads to use the kernel threads, mutexes will be implemented in kernel
space and then malloc can revert.

26 years agoDon't forward hardclock or statclock to stopped cpus. Disable forwarding
Tor Egge [Mon, 15 Dec 1997 01:14:10 +0000 (01:14 +0000)]
Don't forward hardclock or statclock to stopped cpus. Disable forwarding
when a panic has occured.

26 years agoExplicitly use the _IOC macro directly. This changes the ioctl command
Sean Eric Fagan [Mon, 15 Dec 1997 00:29:41 +0000 (00:29 +0000)]
Explicitly use the _IOC macro directly.  This changes the ioctl command
numbers, so any programs using it need to be recompiled.

26 years agoMake gzipped dynamically linked executables work again. There was
John Polstra [Sun, 14 Dec 1997 19:36:24 +0000 (19:36 +0000)]
Make gzipped dynamically linked executables work again.  There was
an old bug here that failed to copy the a.out header into memory
properly.  It didn't matter until changes were made recently to
the dynamic linker.

26 years agoOptimize rm(1) usage.
Wolfram Schneider [Sun, 14 Dec 1997 15:38:47 +0000 (15:38 +0000)]
Optimize rm(1) usage.

26 years agoSync with sys/i386/i386/machdep.c revision 1.279.
KATO Takenori [Sun, 14 Dec 1997 12:31:44 +0000 (12:31 +0000)]
Sync with sys/i386/i386/machdep.c revision 1.279.

26 years agotypo fix.
Jordan K. Hubbard [Sun, 14 Dec 1997 12:30:59 +0000 (12:30 +0000)]
typo fix.
PR: 5289
Submitted by: Studded@dal.net

26 years agoSync with sys/i386/conf/files.i386 revision 1.182.
KATO Takenori [Sun, 14 Dec 1997 12:30:54 +0000 (12:30 +0000)]
Sync with sys/i386/conf/files.i386 revision 1.182.

26 years agoSlight improvement to the vm_zone stats output. Also, some other superficial
John Dyson [Sun, 14 Dec 1997 05:17:44 +0000 (05:17 +0000)]
Slight improvement to the vm_zone stats output.  Also, some other superficial
cleanups.

26 years agoAs described by the submitter:
Mike Smith [Sun, 14 Dec 1997 03:17:54 +0000 (03:17 +0000)]
As described by the submitter:

- emulate Linux IP_HDRINCL behaviour in sendto(): byte order fixed
  Note that we do an extra getsockopt() on every sendto()
  to check if the option is set because we don't keep state
  in the emulator code. Is there a better way to implement
  this?
- correct a bug (value of "name" not passed) with
  getsockopt()

Submitted by: pb@fasterix.freenix.org (Pierre Beyssac)

26 years agoAs described by the submitter:
Mike Smith [Sun, 14 Dec 1997 03:15:21 +0000 (03:15 +0000)]
As described by the submitter:

... fix a bug with orecvfrom() or recvfrom() called with
the MSG_COMPAT flag on kernels compiled with the COMPAT_43 option.
The symptom is that the fromaddr is not correctly returned.

This affects the Linux emulator.

Submitted by: pb@fasterix.freenix.org (Pierre Beyssac)

26 years agoAfter one of my analysis passes to evaluate methods for SMP TLB mgmt, I
John Dyson [Sun, 14 Dec 1997 02:11:23 +0000 (02:11 +0000)]
After one of my analysis passes to evaluate methods for SMP TLB mgmt, I
noticed some major enhancements available for UP situations.  The number
of UP TLB flushes is decreased much more than significantly with these
changes.  Since a TLB flush appears to cost minimally approx 80 cycles,
this is a "nice" enhancement, equiv to eliminating between 40 and 160
instructions per TLB flush.

Changes include making sure that kernel threads all use the same PTD,
and eliminate unneeded PTD switches at context switch time.

26 years agoAllow slow SCSI CDROMs more time to start up.
James Raynard [Sun, 14 Dec 1997 00:32:33 +0000 (00:32 +0000)]
Allow slow SCSI CDROMs more time to start up.
PR: 5181
Submitted by: Wilko Bulte <wilko@yedi.iaf.nl>

26 years agoBring in NetBSD compatible & augmented RCSID/COPYRIGHT macros
Paul Traina [Sat, 13 Dec 1997 20:39:14 +0000 (20:39 +0000)]
Bring in NetBSD compatible & augmented RCSID/COPYRIGHT macros

26 years agoSync with NetBSD v1.3.
Paul Traina [Sat, 13 Dec 1997 20:38:21 +0000 (20:38 +0000)]
Sync with NetBSD v1.3.

Keep I8N1 and quarantine port code.  Replace our security fix with NetBSD's
(their idea was better).

26 years agoOops..The default behaviour should be *not* to log all succeeded
Guido van Rooij [Sat, 13 Dec 1997 19:50:14 +0000 (19:50 +0000)]
Oops..The default behaviour should be *not* to log all succeeded
requests. If you want this extra loggin, add the -l option.

26 years agoAllow TMPDIR to be set and actually *used*; if it not set, it defaults
Sean Eric Fagan [Sat, 13 Dec 1997 18:18:12 +0000 (18:18 +0000)]
Allow TMPDIR to be set and actually *used*; if it not set, it defaults
to /tmp.

26 years agoFixed .PATH statement so that minigzip.c can be found when
Bruce Evans [Sat, 13 Dec 1997 15:57:55 +0000 (15:57 +0000)]
Fixed .PATH statement so that minigzip.c can be found when
${.OBJDIR} != ${.CURDIR}.

26 years agoFixed EOF handing.
Bruce Evans [Sat, 13 Dec 1997 13:49:59 +0000 (13:49 +0000)]
Fixed EOF handing.

1. SS_CANTRCVMORE was initially set on the wrong socket, so reads
when there has never been a writer on the socket did not return 0.
Note that such reads are only possible if the fifo was opened in
(O_RDONLY | O_NONBLOCK) mode.

2. SS_CANTSENDMORE was initially set on the wrong socket, but this
was harmless because the wrong socket is never sent from and there
is no need to set the flag initially on the right socket (since open
in (O_WRONLY | O_NONBLOCK) mode fails if there is no reader...).

3. SS_CANTRCVMORE was cleared when read() returns.  This broke the
case where read() returns 0 - subsequent reads are supposed to
return 0 until a writer appears.  There is no need to clear the
flag when read() returns, since it is cleared correctly when a
writer appears.

26 years agoRestored fifo_pathconf() from rev.1.32. vop_stdpathconf() is too
Bruce Evans [Sat, 13 Dec 1997 12:58:09 +0000 (12:58 +0000)]
Restored fifo_pathconf() from rev.1.32.  vop_stdpathconf() is too
general to be of much use.  Using it here weakened the _PC_MAX_CANON,
_PC_MAX_INPUT and _PC_VDISABLE cases.

fifo_pathconf() is not quite correct either.  _PC_CHOWN_RESTRICTED
and _PC_LINK_MAX should be handled by the host file system.  For
directories, the host file system should let us handle _PC_PIPE_BUF.

26 years agoRestored ufs_pathconf() from rev.1.61. vop_stdpathconf() is too
Bruce Evans [Sat, 13 Dec 1997 12:30:34 +0000 (12:30 +0000)]
Restored ufs_pathconf() from rev.1.61.  vop_stdpathconf() is too
general to be of much use.  Using it here broke the _PC_NAME_MAX,
_PC_NO_TRUNC and _PC_PATH_MAX cases, and weakened the _PC_MAX_CANON,
_PC_MAX_INPUT and _PC_VDISABLE cases.

26 years agoDelete "typedef ... date" (see style(9)).
Wolfgang Helbig [Sat, 13 Dec 1997 11:51:16 +0000 (11:51 +0000)]
Delete "typedef ... date" (see style(9)).
In the man page Use ".Pp" instead of blank lines, adopt English
and stress that the Julian->Gregorian switch took place at
different dates in different countries.
Suggested by: Garrett.

26 years agoAdd minigzip
Mike Smith [Sat, 13 Dec 1997 09:59:32 +0000 (09:59 +0000)]
Add minigzip

26 years agoThis framework builds the 'minigzip' sample program supplied with
Mike Smith [Sat, 13 Dec 1997 09:57:48 +0000 (09:57 +0000)]
This framework builds the 'minigzip' sample program supplied with
libz.  It is a non-GPL-polluted minimal implementation of the 'gzip'
command, yielding a 12k executable (vs ~100k for gzip).

26 years agoSubmitted by: Peter Hawkins <peter@clari.net.au>
Daniel O'Callaghan [Sat, 13 Dec 1997 06:34:47 +0000 (06:34 +0000)]
Submitted by: Peter Hawkins <peter@clari.net.au>
Spelling police.

26 years agoFix a segmentation violation that happened if "auth" was in the
John Polstra [Sat, 13 Dec 1997 05:27:29 +0000 (05:27 +0000)]
Fix a segmentation violation that happened if "auth" was in the
options file but there was no suitable secret in the secrets file.

26 years agoChange the ioctls for procfs around a bit; in particular, whever possible,
Sean Eric Fagan [Sat, 13 Dec 1997 03:13:49 +0000 (03:13 +0000)]
Change the ioctls for procfs around a bit; in particular, whever possible,
change from

ioctl(fd, PIOC<foo>, &i);

to

ioctl(fd, PIOC<foo>, i);

This is going from the _IOW to _IO ioctl macro.  The kernel, procctl, and
truss must be in synch for it all to work (not doing so will get errors about
inappropriate ioctl's, fortunately).  Hopefully I didn't forget anything :).

26 years agoAllow random IP number allocation to peer.
Brian Somers [Sat, 13 Dec 1997 02:37:33 +0000 (02:37 +0000)]
Allow random IP number allocation to peer.
Validate the peers suggested IP by attempting to make a routing table
entry.
Give up IPCP negotiation if the peer NAKs us with an unusable IP.
Always SIOCDIFADDR then SIOCAIFADDR when configuring the tun device.
Using SIOCSIFDSTADDR allows duplicate dst addresses (which we don't
want)!!!
Allow up to 200 interface names (was 50) (now that ppp can play server
properly).
Up the version number (1.5 -> 1.6).

Cosmetic:
  Log unexpected CCP packets in the CCP log rather than the ERROR log.
  Log unexpected Config Reqs in the appropriate LCP/IPCP/CCP log rather
  than the ERROR log.
  Log failed route additions and deletions with WARN, not TCPIP.
  Log the option id and length for unrecognised IPCP options.
  Change some .Sq to .Ar in the man page.

26 years agoAdd needed #include.
Tor Egge [Fri, 12 Dec 1997 21:45:23 +0000 (21:45 +0000)]
Add needed #include.

Problem found by: Bruce Evans <bde@zeta.org.au>

26 years agoMake code slightly more robust towards change by calculating size
Eivind Eklund [Fri, 12 Dec 1997 18:38:22 +0000 (18:38 +0000)]
Make code slightly more robust towards change by calculating size
in-place.

Obtained from:  OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)

26 years agoMake this lint more cleanly
Eivind Eklund [Fri, 12 Dec 1997 18:24:17 +0000 (18:24 +0000)]
Make this lint more cleanly

Obtained from: OpenBSD file rev 1.4 by mickey

26 years agoMerge from OpenBSD:
Eivind Eklund [Fri, 12 Dec 1997 18:11:29 +0000 (18:11 +0000)]
Merge from OpenBSD:
>sprintf -> snprintf paranoia

Obtainted from: OpenBSD src/bin/stty/print.c v1.5
by Todd Miller <millert@openbsd.org>

26 years agoFixed printing of and comparison with d_typename[]. It is not always
Bruce Evans [Fri, 12 Dec 1997 18:01:57 +0000 (18:01 +0000)]
Fixed printing of and comparison with d_typename[].  It is not always
null terminated.

26 years agoMF22 (oops, I committed it to the wrong tree yesterday).
Bruce Evans [Fri, 12 Dec 1997 17:58:31 +0000 (17:58 +0000)]
MF22 (oops, I committed it to the wrong tree yesterday).

Changed lots of %ld's in format strings back to %d.  %ld was right
when daddr_t was long, but Lite2 changed daddr_t to int32_t which
is implemented as `int' on i386's.

26 years agoFix(?) some style consistancy breakage and do some other nit-picking on
Peter Wemm [Fri, 12 Dec 1997 14:14:44 +0000 (14:14 +0000)]
Fix(?) some style consistancy breakage and do some other nit-picking on
the SUIDDIR changes.

26 years agoI've been using these tweaks to enable the sound driver to talk to the
Peter Wemm [Fri, 12 Dec 1997 14:08:50 +0000 (14:08 +0000)]
I've been using these tweaks to enable the sound driver to talk to the
(mutant) Crystal CSS4236 chip on the Intel PR440FX SMP motherboard.

XXX this uses some rather ugly PnP bootstrap code that is *NOT* compatable
with 'controller pnp0' or *ANY* other PnP devices.  If you use some other
PnP devices, enabling css0 will burn your house down. :-]  The
"simplified" PnP init sequence directly blats your config(8) settings onto
the chip.  I'm pretty sure 'css0' will conflict with 'mss0', this whole
area desperately needs a cleanup.

I have been using the following with some success on the PR440FX:
controller   snd0
device css0  at isa? port 0x534 irq 5 drq 1 flags 0x08 vector adintr
device opl0  at isa? port 0x388
device mpu0  at isa? port 0x330 irq 10 vector mpuintr

26 years agoChange select(0, NULL, ...) to usleep()
Andrey A. Chernov [Fri, 12 Dec 1997 11:47:28 +0000 (11:47 +0000)]
Change select(0, NULL, ...) to usleep()

26 years agoEleven days were eliminated by the Gregorian Reformation in 1752, not ten.
Wolfgang Helbig [Fri, 12 Dec 1997 10:25:19 +0000 (10:25 +0000)]
Eleven days were eliminated by the Gregorian Reformation in 1752, not ten.
Submittee by:

26 years agoWe have had support for running the kernel daemons as threads for
John Dyson [Fri, 12 Dec 1997 04:00:59 +0000 (04:00 +0000)]
We have had support for running the kernel daemons as threads for
quite a while, but forgot to do so.  For now, this code supports
most daemons  running as kernel threads in UP kernels, and as
full processes in SMP.  We will soon be able to run them as
threads in SMP, but not yet.

26 years agoFix a problem with procfs_exit() that resulted in missing some procfs
Sean Eric Fagan [Fri, 12 Dec 1997 03:33:43 +0000 (03:33 +0000)]
Fix a problem with procfs_exit() that resulted in missing some procfs
nodes; this also apparantly caused a panic in some circumstances.
Also, since procfs_exit() is getting rid of the nodes when a process
exits, don't bother checking for the process' existance in procfs_inactive().

26 years agoFixed the usual multiplication overflow bug in an lseek() offset calculation.
Bruce Evans [Thu, 11 Dec 1997 07:27:06 +0000 (07:27 +0000)]
Fixed the usual multiplication overflow bug in an lseek() offset calculation.
The scan for bad sectors was broken for offsets >= 4G on 32-bit systems.

26 years agoMerged from Lite2 (fix misformattings in copyright).
Bruce Evans [Thu, 11 Dec 1997 07:12:10 +0000 (07:12 +0000)]
Merged from Lite2 (fix misformattings in copyright).

26 years agoPut [+format] at the end of the usage message.
Brian Somers [Thu, 11 Dec 1997 02:38:56 +0000 (02:38 +0000)]
Put [+format] at the end of the usage message.
Make `date -?' output (pretty much) the same as
the man page
PR: 5269

26 years agoFix the prototype for swapout_procs();
John Dyson [Thu, 11 Dec 1997 02:10:55 +0000 (02:10 +0000)]
Fix the prototype for swapout_procs();
Submitted by: dima@best.net

26 years agoRemove simultaneous include of <sys/param.h> and <sys/types.h>.
Eivind Eklund [Wed, 10 Dec 1997 22:18:54 +0000 (22:18 +0000)]
Remove simultaneous include of <sys/param.h> and <sys/types.h>.
Reorder includes to be alphabetical some places since I already was in
here.