]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
27 years agoMore merge and update.
Satoshi Asami [Wed, 30 Oct 1996 22:41:46 +0000 (22:41 +0000)]
More merge and update.

(1) deleted #if 0

    pc98/pc98/mse.c

(2) hold per-unit I/O ports in ed_softc

    pc98/pc98/if_ed.c
    pc98/pc98/if_ed98.h

(3) merge more files by segregating changes into headers.

  new file (moved from pc98/pc98):

    i386/isa/aic_98.h

  deleted:

    well, it's already in the commit message so I won't repeat the
    long list here ;)

Submitted by: The FreeBSD(98) Development Team

27 years agoif there is no console, cngetc should act like getc and return -1
Julian Elischer [Wed, 30 Oct 1996 21:40:25 +0000 (21:40 +0000)]
if there is no console, cngetc should act like getc and return -1

make callers aware of this in those cases where it can occur.

27 years agormgroup - delete a Unix group
Wolfram Schneider [Wed, 30 Oct 1996 20:58:47 +0000 (20:58 +0000)]
rmgroup - delete a Unix group

usage: rmgroup group

27 years agoNote the support for the SDL RISCom/N2pci cards.
John Hay [Wed, 30 Oct 1996 18:57:46 +0000 (18:57 +0000)]
Note the support for the SDL RISCom/N2pci cards.
Move myself from the list of helpers and beta testers to the development
team.

27 years agoPass right arp to bpf_mtap().
Poul-Henning Kamp [Wed, 30 Oct 1996 08:50:26 +0000 (08:50 +0000)]
Pass right arp to bpf_mtap().

27 years agoRegenerate.
Peter Wemm [Wed, 30 Oct 1996 08:49:33 +0000 (08:49 +0000)]
Regenerate.

No changes other than "instructions" for what other tools that use this
.. "interesting" ..  system should name their shared libraries.  This was
broken for some tools (eg: expect-5.21) even for the native tcl build (ie,
it would end up using libexpect521.so, not libexpect521.so.1.0)

27 years agoArgh, I hate the tcl build/config environment. :-(
Peter Wemm [Wed, 30 Oct 1996 08:44:18 +0000 (08:44 +0000)]
Argh, I hate the tcl build/config environment. :-(

It seems that some tools (eg: expect-5.21) use TCL_LIB_SPEC to generate
their shared library suffix.  This should be .so.1.0, not .so as ld can't
use it.

Revert part of the previous change here, it did too much.  libtcl75.so.1.1
was bumped, but the rules to generate library names for _other_ packages
were not supposed to be. Sigh.

27 years agoFix braino on my part. When we have three different port ranges (default,
Peter Wemm [Wed, 30 Oct 1996 06:13:10 +0000 (06:13 +0000)]
Fix braino on my part.  When we have three different port ranges (default,
"high" and "secure"), we can't use a single variable to track the most
recently used port in all three ranges.. :-]  This caused the next
transient port to be allocated from the start of the range more often than
it should.

27 years agoFix a potential deadlock from the previous commit.
John Dyson [Wed, 30 Oct 1996 03:52:57 +0000 (03:52 +0000)]
Fix a potential deadlock from the previous commit.

27 years agoFix the /proc/???/map file so that it is possible to read an arbitrarily
John Dyson [Wed, 30 Oct 1996 03:45:00 +0000 (03:45 +0000)]
Fix the /proc/???/map file so that it is possible to read an arbitrarily
large process map.  Another commit will follow to fix a problem just found
during this one... Sorry!!! :-(.

27 years agoChange mmap to use OBJT_DEFAULT instead of OBJT_SWAP by default
John Dyson [Tue, 29 Oct 1996 22:07:11 +0000 (22:07 +0000)]
Change mmap to use OBJT_DEFAULT instead of OBJT_SWAP by default
for anonymous objects.  The system will automatically change the
type to SWAP if needed (for size or pageout reasons.)

27 years agochanges to gdb to:
Gary Jennejohn [Tue, 29 Oct 1996 21:52:21 +0000 (21:52 +0000)]
changes to gdb to:
1) add Garrett Wollman's trap frame resolving mods
2) make the `proc' command (kernel debugging) really work
3) allow use of a pid with the `proc' command (previously you had to
provide the address of the proc structure)

Unfortunately, the `proc' command won't work while doing remote debugging.

27 years agoIf you run with option Z and malloc fails, memset gets called
Poul-Henning Kamp [Tue, 29 Oct 1996 20:35:39 +0000 (20:35 +0000)]
If you run with option Z and malloc fails, memset gets called
with a NULL pointer (archie)
Explain that minsize is also the smallest alignment.

Submitted by: Archie Cobbs <archie@whistle.com>

27 years agoaddgroup - add a group or add users to a group
Wolfram Schneider [Tue, 29 Oct 1996 20:31:43 +0000 (20:31 +0000)]
addgroup - add a group or add users to a group

addgroup [-g gid] group [user[,user,...]]

27 years agoCorrect indentation of multi-LUN device info. (Slightly different fix
Stefan Eßer [Tue, 29 Oct 1996 19:32:31 +0000 (19:32 +0000)]
Correct indentation of multi-LUN device info. (Slightly different fix
than suggested by Bruce Evans).

Submitted by: bde

27 years agooops, uninitialised variable.. -v mode depended on stack contents.
Peter Wemm [Tue, 29 Oct 1996 18:45:20 +0000 (18:45 +0000)]
oops, uninitialised variable.. -v mode depended on stack contents.

Submitted by: Masafumi NAKANE <max@wide.ad.jp>, PR#1920

27 years agoSearch for labels on all slices whenever any minor for a drive is opened.
Bruce Evans [Tue, 29 Oct 1996 13:15:30 +0000 (13:15 +0000)]
Search for labels on all slices whenever any minor for a drive is opened.
If DEVFS is configured, create devfs devices for previously invisible
partitions on the slices.

Fixed an old aliasing bug which caused E=17 errors from DEVFS for
DIOCSDINFO when there were no real slices.

27 years agoAdded an FAQ entry explaining the bsd.port.mk variable MASTER_SITE_OVERRIDE.
Masafumi Max NAKANE [Tue, 29 Oct 1996 12:06:57 +0000 (12:06 +0000)]
Added an FAQ entry explaining the bsd.port.mk variable MASTER_SITE_OVERRIDE.

Deleted an FAQ entry referring to pkg_manage.

27 years agoAdded some guideline to write pkg/COMMENT.
Masafumi Max NAKANE [Tue, 29 Oct 1996 11:55:06 +0000 (11:55 +0000)]
Added some guideline to write pkg/COMMENT.

Added reference to pkg_create(1) man page in the explanation of the packing
list.

Added description of ${INSTALL_*} macros.

Added an explanation to use patch files distributed in .tar.gz format.

Added statement about the copyright on the submitted files.

Slgith change in sample Makefile.

Written mostly by: asami

27 years agoIntegrate our changes from bin/rmail. Mainly it causes immediate
Peter Wemm [Tue, 29 Oct 1996 11:32:22 +0000 (11:32 +0000)]
Integrate our changes from bin/rmail.  Mainly it causes immediate
delivery rather than queueing it and forgetting it.

(and some -Wall fixes where gcc is too dumb to see it's a "cant happen")

27 years agoAnother round of merge/updates.
Satoshi Asami [Tue, 29 Oct 1996 08:37:02 +0000 (08:37 +0000)]
Another round of merge/updates.

 (1) Add #ifdef PC98:

sys/pc98/boot/biosboot/boot2.S

 (2) Fix bug that made it impossible to boot from sd's other than unit 0:
sys/pc98/boot/biosboot/sys.c

 (3) Delete redundant $Id$:

sys/pc98/pc98/clock.c (reject\e$B$5$l$k$+$b$7$l$J$$\e(B)

 (4) unt -> u_int:
sys/pc98/pc98/if_ed.c

 (5) Add support for rebooting by the hot-key sequence:

sys/pc98/pc98/kbdtables.h

 (6) Display now looks like PC/AT version:

sys/pc98/pc98/npx.c

 (7) Change comment to match that of PC/AT version:

sys/pc98/pc98/pc98.c

 (8) Add function prototypes:

sys/pc98/pc98/pc98_machdep.c

 (9) Include PC98 headers:

sys/pc98/pc98/sound/adlib_card.c
sys/pc98/pc98/sound/audio.c
sys/pc98/pc98/sound/dev_table.c
sys/pc98/pc98/sound/dmabuf.c
sys/pc98/pc98/sound/midi_synth.c
sys/pc98/pc98/sound/midibuf.c
sys/pc98/pc98/sound/opl3.c
sys/pc98/pc98/sound/oatmgr.c
sys/pc98/pc98/sound/sb16_dsp.c
sys/pc98/pc98/sound/sb16_midi.c
sys/pc98/pc98/sound/sb_card.c
sys/pc98/pc98/sound/sb_dsp.c
sys/pc98/pc98/sound/sb_midi.c
sys/pc98/pc98/sound/sb_mixer.c
sys/pc98/pc98/sound/sequencer.c
sys/pc98/pc98/sound/sound_config.h
sys/pc98/pc98/sound/sound_switch.c
sys/pc98/pc98/sound/soundcard.c
sys/pc98/pc98/sound/sys_timer.c

(10) Merge in PC98 changes:

sys/i386/isa/sound/os.h

(11) Deleted as result of 9. and 10. above:

sys/pc98/pc98/sound/ad1848_mixer.h
sys/pc98/pc98/sound/aedsp16.c
sys/pc98/pc98/sound/coproc.h
sys/pc98/pc98/sound/finetune.h
sys/pc98/pc98/sound/gus_hw.h
sys/pc98/pc98/sound/gus_linearvol.h
sys/pc98/pc98/sound/hex2hex.h
sys/pc98/pc98/sound/mad16.h
sys/pc98/pc98/sound/midi_ctrl.h
sys/pc98/pc98/sound/midi_synth.h
sys/pc98/pc98/sound/opl3.h
sys/pc98/pc98/sound/os.h
sys/pc98/pc98/sound/pas.h
sys/pc98/pc98/sound/sb_mixer.h
sys/pc98/pc98/sound/soundvers.h
sys/pc98/pc98/sound/tuning.h

Submitted by: The FreeBSD(98) Development Team

27 years agoConvert the DONT_FSYNC compile time option to a runtime option (like
Peter Wemm [Tue, 29 Oct 1996 05:35:24 +0000 (05:35 +0000)]
Convert the DONT_FSYNC compile time option to a runtime option (like
nobiff).  The options to turn these on are specified in the
LOCAL_MAILER_ARGS define the the sendmail.mc that you build from.

27 years agoMerge in our changes from src/libexec/mail.local. This version doesn't
Peter Wemm [Tue, 29 Oct 1996 05:22:52 +0000 (05:22 +0000)]
Merge in our changes from src/libexec/mail.local.  This version doesn't
violate disk quotas, has more robust locking, is still being developed,
etc.  The main changes merged in were the ability to not fsync() the
mailbox, not do biff/comsat broadcasts, man page fixes.

27 years agoClean up some loose ends on my previous work in here..
Peter Wemm [Tue, 29 Oct 1996 05:08:21 +0000 (05:08 +0000)]
Clean up some loose ends on my previous work in here..

27 years agoRegenerated.. Use new minor number for both installed names, not just
Peter Wemm [Tue, 29 Oct 1996 04:36:25 +0000 (04:36 +0000)]
Regenerated..  Use new minor number for both installed names, not just
one of them.

27 years agoAlong the way, the minor version number has been bumped (newer version
Peter Wemm [Tue, 29 Oct 1996 04:31:21 +0000 (04:31 +0000)]
Along the way, the minor version number has been bumped (newer version
of tcl with new functions in the library), but the ports-compatable
link name wasn't bumped as it should have been.

Minor cleanups while here (including preserving the $Id: line)

27 years agoAdd support for the SDL RISCom N2pci cards. Bring in the enhancements
John Hay [Tue, 29 Oct 1996 03:53:21 +0000 (03:53 +0000)]
Add support for the SDL RISCom N2pci cards. Bring in the enhancements
made to the Arnet driver.

27 years agoUpdate URL for the Pentium Systems Hardware Performance Guide.
Alexander Langer [Tue, 29 Oct 1996 03:28:04 +0000 (03:28 +0000)]
Update URL for the Pentium Systems Hardware Performance Guide.
Closes PR#1918.

Submitted by: David E. O'Brien <obrien@NUXI.cs.ucdavis.edu>

27 years agoAdd the -p (privileged) commandline switch
Steve Price [Tue, 29 Oct 1996 03:12:51 +0000 (03:12 +0000)]
Add the -p (privileged) commandline switch
found in bash, zsh, and friends.

Reviewed by: joerg

27 years agoIf rcmd() fails, return immediately instead of trying a bunch of
Bill Fenner [Mon, 28 Oct 1996 23:26:37 +0000 (23:26 +0000)]
If rcmd() fails, return immediately instead of trying a bunch of
 setsockopt()'s on a -1 file descriptor.

Remove attempt to decrease TCP MSS; it makes no sense.

Set the IP TOS to IPTOS_THROUGHPUT as an indication that this is an
application sending large blocks of data, as recommended by RFC1700.

27 years agoDo not modify a malloc()ed pointer; instead, use memmove().
Joerg Wunsch [Mon, 28 Oct 1996 23:02:38 +0000 (23:02 +0000)]
Do not modify a malloc()ed pointer; instead, use memmove().

Detected by: phkmalloc - AJ :)

27 years agoRemove some unnecessary code in the interrupt handler.
John Hay [Mon, 28 Oct 1996 19:40:01 +0000 (19:40 +0000)]
Remove some unnecessary code in the interrupt handler.
Check that a received packet isn't longer than MCLBYTES. This will
sometimes happen if a cable is plugged into or removed from a live
system.
Try to cater better for early receive interrupts.

27 years agoA #define really don't need a ; at the end.
John Hay [Mon, 28 Oct 1996 19:35:37 +0000 (19:35 +0000)]
A #define really don't need a ; at the end.

27 years agoEliminate unnecessary include of <sys/mbuf.h>.
Garrett Wollman [Mon, 28 Oct 1996 19:08:13 +0000 (19:08 +0000)]
Eliminate unnecessary include of <sys/mbuf.h>.

27 years agoEliminate unnecessary include of <sys/mbuf.h>. PCBs aren't stored in mbufs
Garrett Wollman [Mon, 28 Oct 1996 18:56:44 +0000 (18:56 +0000)]
Eliminate unnecessary include of <sys/mbuf.h>.  PCBs aren't stored in mbufs
any more.

27 years agocomaptibles->compatibles
Warner Losh [Mon, 28 Oct 1996 17:16:40 +0000 (17:16 +0000)]
comaptibles->compatibles

27 years agoIn data_phase_reinit when I converted the code to use bcopy, I should have
Justin T. Gibbs [Mon, 28 Oct 1996 17:00:24 +0000 (17:00 +0000)]
In data_phase_reinit when I converted the code to use bcopy, I should have
used mvi instead of mov.  Luckily this code is most likely never executed
since it is only there for sanity should a target goes into the data phase
twice during a single selection or reselection.

27 years agodevfs_tree.c: improve our bdevvp() function.
Poul-Henning Kamp [Mon, 28 Oct 1996 11:36:06 +0000 (11:36 +0000)]
devfs_tree.c: improve our bdevvp() function.
devfs_vnops.c: move a debug printf to be consistent.

27 years agoinit_main.c: pass -d to init if DEVFS_ROOT
Poul-Henning Kamp [Mon, 28 Oct 1996 11:34:57 +0000 (11:34 +0000)]
init_main.c: pass -d to init if DEVFS_ROOT
kern_conf.c: gd driver is a disk.
vfs_subr.c: include opt_devfs.h

27 years agoDEVFS_ROOT -> opt_devfs.h
Poul-Henning Kamp [Mon, 28 Oct 1996 11:32:55 +0000 (11:32 +0000)]
DEVFS_ROOT -> opt_devfs.h

27 years agoIf passed the -d flag, mount devfs on /dev
Poul-Henning Kamp [Mon, 28 Oct 1996 11:03:19 +0000 (11:03 +0000)]
If passed the -d flag, mount devfs on /dev

27 years agoCorrect the startup sequence for syslogd:
Joerg Wunsch [Mon, 28 Oct 1996 08:28:02 +0000 (08:28 +0000)]
Correct the startup sequence for syslogd:

. crate the symlink for /dev/log if required, then
. remove the old socket (savecore might have already created it
  accidentally), then
. start syslogd.

(Btw., our test(1) misses an option to test for a socket.)

27 years agoKill _OLD_PATH_LOG. It's not needed.
Joerg Wunsch [Mon, 28 Oct 1996 08:25:51 +0000 (08:25 +0000)]
Kill _OLD_PATH_LOG.  It's not needed.

27 years agoBack out the entire change from rev 1.11 of syslogd.c. It was bogus.
Joerg Wunsch [Mon, 28 Oct 1996 08:25:13 +0000 (08:25 +0000)]
Back out the entire change from rev 1.11 of syslogd.c.  It was bogus.
Correct the man page to reflect the new reality.

27 years agoDon't dereference a free()ed pointer.
Joerg Wunsch [Mon, 28 Oct 1996 07:47:34 +0000 (07:47 +0000)]
Don't dereference a free()ed pointer.

Closes PR bin/1909: 'last' coredumps if MALLOC_OPTIONS...

27 years agoAdd basic support for the 398X cards as multi-channel SCSI host adapters.
Justin T. Gibbs [Mon, 28 Oct 1996 06:10:33 +0000 (06:10 +0000)]
Add basic support for the 398X cards as multi-channel SCSI host adapters.
This involves expanding the support of the SEEPROM routines to deal with
the larger SEEPROMs on these cards and providing a mechanism to share
SCB arrays between multiple controllers.

Most of the 398X support came from Dan Eischer.

ahc_data -> ahc_softc

Clean up some more type bogons I missed from the last pass.

27 years agoAdd basic support for the 398X cards as multi-channel SCSI host adapters.
Justin T. Gibbs [Mon, 28 Oct 1996 06:10:02 +0000 (06:10 +0000)]
Add basic support for the 398X cards as multi-channel SCSI host adapters.
This involves expanding the support of the SEEPROM routines to deal with
the larger SEEPROMs on these cards and providing a mechanism to share
SCB arrays between multiple controllers.

Most of the 398X support came from Dan Eischer.

ahc_data -> ahc_softc

Clean up some more type bogons I missed from the last pass.

Be more clear when handing the NO_MATCH condition.  NO_MATCH can also
happen when the sequencer encounters an SCB we've asked to be aborted.

27 years agoAdd some code to allow SCB sharing for the 398X cards. This involves passing
Justin T. Gibbs [Mon, 28 Oct 1996 06:06:42 +0000 (06:06 +0000)]
Add some code to allow SCB sharing for the 398X cards.  This involves passing
an extra parameter to ahc_alloc.

27 years agoAdd two new aic7xxx driver options:
Justin T. Gibbs [Mon, 28 Oct 1996 06:05:58 +0000 (06:05 +0000)]
Add two new aic7xxx driver options:

AHC_FORCE_PIO - This forces the driver to use PIO even on systems that
say they have memory mapped the controller's registers.  This
seems to fix Ken Lam's problems.  I've also placed this option
in the GENERIC kernel file so that we are guaranteed to install
even on these flakey machines.

AHC_SHARE_SCBS - This option attempts to share the external SCB SRAM on
the 398X controllers allowing a totoll of 255 non-paged SCBs.
This doesn't work quite yet, so this option is mostly here to
help 398X owners to experiment and give me feedback until this
works properly.

27 years agoFix problems dealing with non-tagged devices when SCB paging is enabled.
Justin T. Gibbs [Mon, 28 Oct 1996 06:01:08 +0000 (06:01 +0000)]
Fix problems dealing with non-tagged devices when SCB paging is enabled.
Mostly this involved changing the semantics of the findSCB routine so that
it could be used at times other than handling a reconnection.

27 years agoFix a typo, putput --> output.
Alexander Langer [Sun, 27 Oct 1996 23:12:48 +0000 (23:12 +0000)]
Fix a typo, putput --> output.

Submitted by: Philippe Charnier <charnier@xp11.frmug.org>

27 years agoThe way we get a vnode for swapdev is not quite kosher. In particular
Poul-Henning Kamp [Sun, 27 Oct 1996 22:31:00 +0000 (22:31 +0000)]
The way we get a vnode for swapdev is not quite kosher.  In particular
it breaks in the DEVFS_ROOT case.  replicate a bit too much of bdevvp()
in here to circumvent the problem.  The real problem is the magic that
lives in bdevsw[1].

27 years agoAdded ${DESTDIR} to the install target so bison.{simple,hairy}
Joerg Wunsch [Sun, 27 Oct 1996 21:50:59 +0000 (21:50 +0000)]
Added ${DESTDIR} to the install target so bison.{simple,hairy}
will also appear in our releases. ;)

Forgotten by: peter

27 years agoTypo: to --> too. Fixes PR#1907.
Alexander Langer [Sun, 27 Oct 1996 19:18:06 +0000 (19:18 +0000)]
Typo: to --> too.  Fixes PR#1907.

Pointed out by: Pat Lashley <patl@Phoenix.Volant.ORG>

27 years agoDo not store character 30. I made a test at my CS department
Wolfram Schneider [Sun, 27 Oct 1996 19:04:27 +0000 (19:04 +0000)]
Do not store character 30. I made a test at my CS department
and at least one user use this char in a file name. Older
locate implementions core'd.

27 years agoDon't give up just because we cant find the blkdev that corresponds
Poul-Henning Kamp [Sun, 27 Oct 1996 18:28:39 +0000 (18:28 +0000)]
Don't give up just because we cant find the blkdev that corresponds
to the name given as a chardev.

27 years agoimprove comments for UT_NAMESIZE
Wolfram Schneider [Sun, 27 Oct 1996 18:13:35 +0000 (18:13 +0000)]
improve comments for UT_NAMESIZE

27 years agosetuid back to the original caller immediately after opening the route socket.
Bill Fenner [Sun, 27 Oct 1996 17:42:14 +0000 (17:42 +0000)]
setuid back to the original caller immediately after opening the route socket.
Opening the socket is the only privileged operation route requires.

Make a couple of static buffers bigger, and use strncpy() and snprintf() where
there's a chance of overflow.

Fixes PR bin/1903

Partially Submitted by: Ollivier Robert <roberto@keltia.freenix.fr>

Don't look up the network number if we're being asked to add a host route.

Fixes PR bin/1900

Submitted by: Bruce A. Mah <bmah@cs.berkeley.edu> (pr bin/1900)

27 years ago$@ -> "$@", now ``mkdep "foo bar".c'' works.
Wolfram Schneider [Sun, 27 Oct 1996 15:53:18 +0000 (15:53 +0000)]
$@ -> "$@", now ``mkdep "foo bar".c'' works.

Do not exit with status 0 if mkdep(1) cannot create output,
e.g. if .depend is not writable or the FS is readonly mounted.

Store arguments as comments for debugging purpose.

27 years agofix perl indention style
Wolfram Schneider [Sun, 27 Oct 1996 15:50:40 +0000 (15:50 +0000)]
fix perl indention style

27 years agoMove static variable nextpid out from fork1(). Now top(1) can print
Wolfram Schneider [Sun, 27 Oct 1996 13:29:22 +0000 (13:29 +0000)]
Move static variable nextpid out from fork1(). Now top(1) can print
last pid value.

27 years ago(reverse) sync with src/lib/libtcl/Makefile rev 1.9
Wolfram Schneider [Sun, 27 Oct 1996 12:44:44 +0000 (12:44 +0000)]
(reverse) sync with src/lib/libtcl/Makefile rev 1.9

>Do not make symbolic links from obj directory into source tree,
>it may break `make reinstall'. Use cp(1).
>
>Simplify Makefile.

Requested by: Peter

27 years agoAdd rudimentry support for ifconfig'ing aliases at boot. Also allow
Peter Wemm [Sun, 27 Oct 1996 06:30:43 +0000 (06:30 +0000)]
Add rudimentry support for ifconfig'ing aliases at boot.  Also allow
start_if.<if> to do all the work instead if so configured.  With examples.

27 years agolpc/cmds.c:
Warner Losh [Sun, 27 Oct 1996 03:06:52 +0000 (03:06 +0000)]
lpc/cmds.c:
From NetBSD via OpenBSD to fix NetBSD PR #506
More descriptive message for printer status
(OpenBSD: 1.2)

Various warnings cleaned up (OpenBSD: 1.4)

lpc/lpc.c:
Various warnings cleaned up (OpenBSD: 1.3)

lpd/lpd.c:
Remove trailing blank lines (OpenBSD: 1.2)

Potential umask problem with creating /dev/printer
(OpenBSD: 1.4 and 1.5)

Ftp bounce attack (untested on FreeBSD)
(OpenBSD: 1.6, 1.8, 1.9)
Fencepost in strncpy
(OpenBSD: 1.6)

lpd/printjob.c:
Fix from freebsd for waiting for an exiting filter, that
appears not in the FreeBSD CVS tree.
(OpenBSD: 1.6)

lpd/recvjob.c:
Buffer overflow protection: use strncpy rather than strcpy.
(OpenBSD: 1.3)

lpr/lpr.c:
NetBSD change of return type for main()
(OpenBSD: 1.2)

Restrict time running as root
(OpenBSD: 1.7)

Use getcwd rather than getwd (from NetBSD)

Use snprintf rather than sprintf
(OpenBSD: 1.8)

Minor tweak to end of loop and buffer overflow sanity.  card()
overflow already in FreeBSD
(OpenBSD: 1.9)

lptest/lptest.c:
void -> int return type of main, from NetBSD via OpenBSD
(OpenBSD: 1.2)

pac/pac.c:
void -> int return type of main, from NetBSD via OpenBSD
(OpenBSD: 1.3)

Obtained from: OpenBSD

27 years agoDo not make symbolic links from obj directory into source tree,
Wolfram Schneider [Sat, 26 Oct 1996 23:38:07 +0000 (23:38 +0000)]
Do not make symbolic links from obj directory into source tree,
it may break `make reinstall'. Use cp(1).

simplify makefile

27 years agoFix an off-by-one error in getvfsent().
Joerg Wunsch [Sat, 26 Oct 1996 21:53:21 +0000 (21:53 +0000)]
Fix an off-by-one error in getvfsent().

Detected by: phkmalloc :)

27 years agoUse the calibrated/adjustable i8254 frequency `timer_freq' instead of
Søren Schmidt [Sat, 26 Oct 1996 20:16:58 +0000 (20:16 +0000)]
Use the calibrated/adjustable i8254 frequency `timer_freq' instead of
TIMER_FREQ.

Fixed missing splx() in scrn_timer().  The bug was harmless because of the
undocumented behaviour that the ipl is automatically restored for timeout
functions (see softclock()).  Perhaps we should depend on this behaviour.

Fixed the ddb fix in rev.1.176.  The in_debugger flag was no use because
it only works when the debugger is entered via the keyboard hotkey.  The
debugger may be entered for breakpoints and traps, and the console putc
routine has no way of knowing when it was, so the console putc routine
must (almost?) always remove the cursor image.

Not fixed: console switching in ddb doesn't work (ISTR it working), and
console 0 shouldn't be switched to for the debugger hotkey unless console
0 is /dev/console.

Fixed side effects from calling add_keyboard_randomness() in the console
getc routine by not calling it.  add_keyboard_randomness() currently
always reenables interrupts on 386's and 486's.  This is very bad if the
console getc routine is called from the debugger and the debugger was
entered with interrupts disabled.

Fixed preservation of initial screen and now-bogus comment about it.  It
was broken by setting the initial scr_buf to `buffer' instead of Crtat.
`buffer' was full of nulls and the first scroll cleared everything above
the things written through syscons.

Submitted by: bruce (bde@freebsd.org)

27 years agoNote that streams are now flushed on abort.
Alexander Langer [Sat, 26 Oct 1996 18:14:44 +0000 (18:14 +0000)]
Note that streams are now flushed on abort.

Change standards section to reflect POSIX 1003.1-1990 conformance.

27 years agoFirst round of moving secure telnet (AKA kerberised telnet) to its new home
Mark Murray [Sat, 26 Oct 1996 17:20:52 +0000 (17:20 +0000)]
First round of moving secure telnet (AKA kerberised telnet) to its new home
in eBones/. Peter has already (ages ago) done the repository copy. These
are mainly -Wall cleanups. The makefile changes will follow in a day or so.

27 years agoApparently this patch fixes the objc backend on the i386 platforms.
Peter Wemm [Sat, 26 Oct 1996 17:00:50 +0000 (17:00 +0000)]
Apparently this patch fixes the objc backend on the i386 platforms.
Without this, compiled programs die with FP errors.

This is originally credited to: jlemon@netcom.com (Jonathan Lemon), and
has been forwarded to me by quite a few of people.

27 years agoReplace hardcoded length of "/dev/" with strlen(_PATH_DEV).
Alexander Langer [Sat, 26 Oct 1996 15:29:24 +0000 (15:29 +0000)]
Replace hardcoded length of "/dev/" with strlen(_PATH_DEV).

Pointed out by: bde

27 years agoUpdate this to match my version.
Poul-Henning Kamp [Sat, 26 Oct 1996 08:22:09 +0000 (08:22 +0000)]
Update this to match my version.

27 years agoVarious cosmetics
Poul-Henning Kamp [Sat, 26 Oct 1996 08:19:07 +0000 (08:19 +0000)]
Various cosmetics
Improve chances of troublefree 64bit operation. [imp]

Noticed by: Warner Losh <imp@village.org>

27 years agosprintf --> snprintf
Alexander Langer [Sat, 26 Oct 1996 04:08:57 +0000 (04:08 +0000)]
sprintf --> snprintf

Use _PATH_DEV instead of hard coded "/dev/"

Obtained from: OpenBSD, Jason Downs <downsj@OpenBSD.ORG>

27 years agoPOSIX requires stdio buffers be flushed on abort.
Alexander Langer [Sat, 26 Oct 1996 01:42:33 +0000 (01:42 +0000)]
POSIX requires stdio buffers be flushed on abort.

Obtained from: OpenBSD, Thorsten Lockert <tholo@OpenBSD.ORG>

27 years agoFix transcription error I introduced in last patch. This created a
Warner Losh [Sat, 26 Oct 1996 00:46:34 +0000 (00:46 +0000)]
Fix transcription error I introduced in last patch.  This created a
fencepost error that would run one off the end of the buffer.

Noticed by: Bruce Evans

27 years agoRemoved initialization of a variable that went away. Oops.
Bruce Evans [Sat, 26 Oct 1996 00:11:57 +0000 (00:11 +0000)]
Removed initialization of a variable that went away.  Oops.

27 years agoAllow the specification of a mountpoint, and resolve it s disk device
Joerg Wunsch [Fri, 25 Oct 1996 20:38:40 +0000 (20:38 +0000)]
Allow the specification of a mountpoint, and resolve it s disk device
using the fstab.

Closes  PR bin/129.

Submitted by: jmg@nike.efn.org (John-Mark Gurney)

27 years agoFix a problem where the command line could be used to overflow a stack
Warner Losh [Fri, 25 Oct 1996 18:14:48 +0000 (18:14 +0000)]
Fix a problem where the command line could be used to overflow a stack
buffer which could be made to lead to a root shell.  This patch is
OpenBSD's solution to the problem, and will silently truncate the
output rather than overflow the buffer.

Obtained from: OpenBSD

27 years agoDon't allow reassembly to create packets bigger than IP_MAXPACKET, and count
Bill Fenner [Fri, 25 Oct 1996 17:57:53 +0000 (17:57 +0000)]
Don't allow reassembly to create packets bigger than IP_MAXPACKET, and count
attempts to do so.
Don't allow users to source packets bigger than IP_MAXPACKET.
Make UDP length and ipovly's protocol length unsigned short.

Reviewed by: wollman
Submitted by: (partly by) kml@nas.nasa.gov (Kevin Lahey)

27 years agoDeclare pointers to signal handling functions in full instead of as
Bruce Evans [Fri, 25 Oct 1996 16:20:34 +0000 (16:20 +0000)]
Declare pointers to signal handling functions in full instead of as
sig_t's so that <sys/signal.h> isn't a prerequisite.

27 years agoGive ypxfr the ability to detect the presence of the YP_INTERDOMAIN
Bill Paul [Fri, 25 Oct 1996 16:13:09 +0000 (16:13 +0000)]
Give ypxfr the ability to detect the presence of the YP_INTERDOMAIN
and YP_SECURE flags so that it can properly add them to newly created
maps when needed. This applies only when using the 'standard' method
for map transfers. When using rpc.ypxfrd, the whole map is copied
verbatim, along with any special entries that may be encoded in it.

Also made -Wall a little quieter for ypxfrd_getmap.c.

27 years agoRemoved unused #includes.
Bruce Evans [Fri, 25 Oct 1996 16:09:31 +0000 (16:09 +0000)]
Removed unused #includes.

Strength-reduced used #include.

Staticized pcaintr().

Fixed some style bugs.

27 years agoUse the same format for the "expect N shift reduce conflicts" message
Bruce Evans [Fri, 25 Oct 1996 15:50:17 +0000 (15:50 +0000)]
Use the same format for the "expect N shift reduce conflicts" message
as in the one other place in /usr/src that prints such an "expect"
message (amd).

27 years agoMade this work for non-root again. The security fixes in rev.1.11
Bruce Evans [Fri, 25 Oct 1996 15:36:42 +0000 (15:36 +0000)]
Made this work for non-root again.  The security fixes in rev.1.11
were equivalent to disabling its setgid'ness, since the default
kernel was not distinguished from a user-specified kernel.

27 years agoRestored order of cuac above ttyc.
Bruce Evans [Fri, 25 Oct 1996 15:01:33 +0000 (15:01 +0000)]
Restored order of cuac above ttyc.

Fixed some style bugs for cua* and tty*.

Removed superfluous chmod for consolectl.

FIxed a tiny security bug for perfmon and changed the style for
perfmon to match the style of the non-std devices.

27 years agoBuild intermediate object files for mkinit, mknodes and mksyntax
Bruce Evans [Fri, 25 Oct 1996 14:49:24 +0000 (14:49 +0000)]
Build intermediate object files for mkinit, mknodes and mksyntax
so that simple regresssion tests based on `cmp' work.  mkdep still
doesn't work right for these tools.  They should probably be in
separate directories.

Sorted dependencies.

27 years agoImproved comment about `all' target.
Bruce Evans [Fri, 25 Oct 1996 14:22:50 +0000 (14:22 +0000)]
Improved comment about `all' target.

Use a for loop instead of massive duplication in the build-tools target.

27 years agoUse macros from timmerreg.h instead of private ones.
Bruce Evans [Fri, 25 Oct 1996 14:00:47 +0000 (14:00 +0000)]
Use macros from timmerreg.h instead of private ones.

Use global timer_freq instead of private TIMER_CLK.

Removed unused #includes.

Fixed some comments.

27 years agoPrint the clock calibration messages all on one (long) line again so
Bruce Evans [Fri, 25 Oct 1996 13:46:21 +0000 (13:46 +0000)]
Print the clock calibration messages all on one (long) line again so
that they are easy to grep for.

Removed now-unused i586 counter variables.

Fixed some style bugs.

27 years agoImproved biasing of i586 clock by adjusting for hardclock() latency.
Bruce Evans [Fri, 25 Oct 1996 13:01:56 +0000 (13:01 +0000)]
Improved biasing of i586 clock by adjusting for hardclock() latency.
I decided to do this for every hardclock() call instead of lazily
in microtime().  The lazy method is simpler but has more overhead
if microtime() is called a lot.

CPU_THISTICKLEN() is now a no-op and should probably go away.
Previously it did nothing directly but had the side effect of
setting i586_last_tick for CPU_CLOCKUPDATE() and i586_avg_tick for
debugging.  CPU_CLOCKUPDATE() now uses a better method and
i586_avg_tick is too much trouble to maintain.

Reduced nesting of #includes in the usual case.

Increased nesting of #includes when CLOCK_HAIR is defined.  This
is a kludge to get typedefs for inline functions only when the
inline functions are used.  Normally only kern_clock.c defines
this.  kern_clock.c can't include the i386 headers directly.

Removed unused LOCORE support.

27 years agoRemoved #include of <machine/clock.h>. It is no longer used, and would
Bruce Evans [Fri, 25 Oct 1996 12:26:19 +0000 (12:26 +0000)]
Removed #include of <machine/clock.h>.  It is no longer used, and would
break when I remove LOCORE support from clock.h.
I586_CTR_MULTIPLIER_SHIFT = 32 from clock.h is actually still used, but
32 is so magic that it doesn't get used explicitly.

27 years agoAdded Michael Butschky <butsch@computi.erols.com>, to the additional
Masafumi Max NAKANE [Fri, 25 Oct 1996 10:30:37 +0000 (10:30 +0000)]
Added Michael Butschky <butsch@computi.erols.com>, to the additional
contributor list.

27 years agoUnremoved used #include of <sys/systm.h> for the !GUPROF case.
Bruce Evans [Fri, 25 Oct 1996 06:58:53 +0000 (06:58 +0000)]
Unremoved used #include of <sys/systm.h> for the !GUPROF case.

27 years agoMoved #include of <sys/types.h> earlier so that this compiles when
Bruce Evans [Fri, 25 Oct 1996 06:48:29 +0000 (06:48 +0000)]
Moved #include of <sys/types.h> earlier so that this compiles when
<stdio.h> doesn't (bogusly) include <sys/types.h>.

Cleaned up #includes.

27 years ago- KNF cleanup.
Justin T. Gibbs [Fri, 25 Oct 1996 06:43:10 +0000 (06:43 +0000)]
- KNF cleanup.
- Add support for memory mapped I/O.

27 years ago- KNF cleanup.
Justin T. Gibbs [Fri, 25 Oct 1996 06:42:53 +0000 (06:42 +0000)]
- KNF cleanup.
- Add support for memory mapped I/O.
- Use DMA to get SCBs down to the adapters.
- Remove old paging code.
- Be much smarter about how we allocate SCB space.  The old, simple method
  wasted almost half a page per SCB. Ooops.
- Make command complete interrupt processing more efficient.
- Break the monolithic ahc_intr into sub-routines.  The sub-routines handle
  rare, special case events so the function call is not a penalty and the
  removal of the code from the main routine most likely improves performance
  instruction prefech will work better and less code is pushed into the cache.
- Never, ever allow tagged queueing if a device has disconnection disabled.
- Clean up and simplify timeout code.  Many of the changes are to handle the
  new DMA scheme.

27 years agoKNF cleanup.
Justin T. Gibbs [Fri, 25 Oct 1996 06:35:38 +0000 (06:35 +0000)]
KNF cleanup.

Update to handle new arg to ahc_alloc.

27 years agoGo back to using DMA to get SCBs down to the adapter.
Justin T. Gibbs [Fri, 25 Oct 1996 06:34:59 +0000 (06:34 +0000)]
Go back to using DMA to get SCBs down to the adapter.

SCB paging is now handled almost entirely by the sequencer and also uses
DMA.  This should make SCB paging at least an order of magnitude more
efficient and vastly simplifies the implementation.

Add a few space optimizations so this code still fits on aic7770 chips.

Update comments.

27 years agoChange recently added diagnostics to more descriptive
Andrey A. Chernov [Fri, 25 Oct 1996 00:13:14 +0000 (00:13 +0000)]
Change recently added diagnostics to more descriptive