]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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.

26 years agoFix some style bugs.
Guido van Rooij [Wed, 10 Dec 1997 20:33:59 +0000 (20:33 +0000)]
Fix some style bugs.
Submitted by: bruce

26 years agoMerge from OpenBSD:
Eivind Eklund [Wed, 10 Dec 1997 17:52:49 +0000 (17:52 +0000)]
Merge from OpenBSD:
> Error out if someone tries to mv a mount point.  Old behavior was to
> move all files contained in the mounted filesystem to the dest. dir
> which could be quite nasty.  Personally, I think rename(2) should
> return EPERM or EINVAL instead of EXDEV.

Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>

26 years agoSync with sys/i386/conf/files.i386, majors.i386 and options.i386
KATO Takenori [Wed, 10 Dec 1997 09:28:59 +0000 (09:28 +0000)]
Sync with sys/i386/conf/files.i386, majors.i386 and options.i386
revisions 1.181, 1.23 and 1.64, respectively.

26 years agodocument some things that others and I have done to the tree... these
John-Mark Gurney [Wed, 10 Dec 1997 07:41:24 +0000 (07:41 +0000)]
document some things that others and I have done to the tree... these
include the PnP and Luigi's Sound code...

in the security section, talk about the f00f bug being fixed...

26 years agoQuiet some lint.
John Dyson [Wed, 10 Dec 1997 04:14:23 +0000 (04:14 +0000)]
Quiet some lint.

26 years agonatd 1_10 => 1_11
Brian Somers [Wed, 10 Dec 1997 02:14:57 +0000 (02:14 +0000)]
natd 1_10 => 1_11
  Cosmetic style changes
  Use u_short for port values.
Submitted by: Ari Suutari <ari@suutari.iki.fi>

26 years agoSync with original source: add FreeBSD 2.2.5, NetBSD 1.3, and OpenBSD 2.2
Wolfram Schneider [Tue, 9 Dec 1997 22:53:06 +0000 (22:53 +0000)]
Sync with original source: add FreeBSD 2.2.5, NetBSD 1.3, and OpenBSD 2.2

26 years agoAdd LIBZ
Wolfram Schneider [Tue, 9 Dec 1997 20:17:49 +0000 (20:17 +0000)]
Add LIBZ

26 years agoLog all failed mount attempts.
Guido van Rooij [Tue, 9 Dec 1997 18:43:44 +0000 (18:43 +0000)]
Log all failed mount attempts.
Also add a flag (-l) so mountd will also log all succeeded requests
to mountd.

26 years agoeliminated a previously unnoticde compile warning about use of
Jamil J. Weatherbee [Tue, 9 Dec 1997 12:41:13 +0000 (12:41 +0000)]
eliminated a previously unnoticde compile warning about use of
__inline, not good to use anyway ?!?!!

26 years agothe alog.c file respectively, added in wrong order by accident
Jamil J. Weatherbee [Tue, 9 Dec 1997 12:07:50 +0000 (12:07 +0000)]
the alog.c file respectively, added in wrong order by accident

26 years agoadd entry in LINT for alog driver
Jamil J. Weatherbee [Tue, 9 Dec 1997 12:04:49 +0000 (12:04 +0000)]
add entry in LINT for alog driver
added line to files.i386 to compile in alog.c optionally as a driver

26 years agoSync with sys/i386/isa/mse.c and syscons.c revisions 1.36 and 1.242,
KATO Takenori [Tue, 9 Dec 1997 11:58:02 +0000 (11:58 +0000)]
Sync with sys/i386/isa/mse.c and syscons.c revisions 1.36 and 1.242,
respectively.

26 years agoRemove obsolete psm driver options: PSM_ACCEL, PSM_EMULATION,
Kazutaka YOKOTA [Tue, 9 Dec 1997 11:56:19 +0000 (11:56 +0000)]
Remove obsolete psm driver options: PSM_ACCEL, PSM_EMULATION,
PSM_CHECKSYNC.

26 years agoSync with sys/i386/i386/userconfig.c revision 1.98.
KATO Takenori [Tue, 9 Dec 1997 11:55:25 +0000 (11:55 +0000)]
Sync with sys/i386/i386/userconfig.c revision 1.98.

26 years agoadding alogio.h to system include files
Jamil J. Weatherbee [Tue, 9 Dec 1997 11:43:04 +0000 (11:43 +0000)]
adding alogio.h to system include files

26 years agoexcuse me, adding alog.4 man page now forgot to commit previously
Jamil J. Weatherbee [Tue, 9 Dec 1997 11:38:02 +0000 (11:38 +0000)]
excuse me, adding alog.4 man page now forgot to commit previously

26 years agoAdded alog.4 man page to /usr/src/share/man/man4/man4.i386/ directory
Jamil J. Weatherbee [Tue, 9 Dec 1997 11:36:36 +0000 (11:36 +0000)]
Added alog.4 man page to /usr/src/share/man/man4/man4.i386/ directory
Altered Makefile in that directory so that make builds the alog.4 man page

26 years agoAdded major 86 for the alog driver.
Jamil J. Weatherbee [Tue, 9 Dec 1997 10:51:11 +0000 (10:51 +0000)]
Added major 86 for the alog driver.

26 years agoBack out last commit re dmesg.boot
Daniel O'Callaghan [Tue, 9 Dec 1997 10:06:49 +0000 (10:06 +0000)]
Back out last commit re dmesg.boot

26 years agoMake rc record boottime dmesg to /var/log/dmesg.boot, so the data
Daniel O'Callaghan [Tue, 9 Dec 1997 07:22:04 +0000 (07:22 +0000)]
Make rc record boottime dmesg to /var/log/dmesg.boot, so the data
is preserved after it scrolls out of the dmesg buffer.

26 years agoCode to prevent a panic caused by procfs_exit(). Note that i don't know
Sean Eric Fagan [Tue, 9 Dec 1997 05:03:41 +0000 (05:03 +0000)]
Code to prevent a panic caused by procfs_exit().  Note that i don't know
what is teh root cause -- but, sometimes, a procfs vnode in pfshead is
apparantly corrupt (or a UFS vnode instead).  Without this patch, I can
get it to panic by doing (in csh)

while (1)
ps auxwww
end

and it will panic when the PID's wrap.  With it, it does not panic.
Yes -- I know that this is NOT the right way to fix it.  But I haven't
been able to get it to panic yet (which confuses me).  I am going to
be looking into the vgone() code now, as that may be a part of it.

26 years agoThe improvements to clock statistics by Tor Egge
Steve Passe [Mon, 8 Dec 1997 23:00:24 +0000 (23:00 +0000)]
The improvements to clock statistics by Tor Egge
Wrappered and enabled by the define BETTER_CLOCK (on by default in smpyests.h)

Reviewed by: smp@csn.net
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>

26 years agoThe improvements to clock statistics by Tor Egge
Steve Passe [Mon, 8 Dec 1997 22:59:39 +0000 (22:59 +0000)]
The improvements to clock statistics by Tor Egge
Wrappered and enabled by the define BETTER_CLOCK (on by default in smpyests.h)

apic_vector.s also contains a small change I (smp) made to eliminate
the double level INT problem.  It seems stable, but I haven't the tools
in place to prove it fixes the problem.

Reviewed by: smp@csn.net
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>

26 years agoMention pftp as an alternative command to enable passive mode.
Ollivier Robert [Mon, 8 Dec 1997 22:09:44 +0000 (22:09 +0000)]
Mention pftp as an alternative command to enable passive mode.

26 years agoA couple of fixes from bruce: first of all, psignal is a void (stupid
Sean Eric Fagan [Mon, 8 Dec 1997 22:09:39 +0000 (22:09 +0000)]
A couple of fixes from bruce:  first of all, psignal is a void (stupid
me; unfortunately, also makes it hard ot check for errors); second, I had
managed to forget a change to PIOCSFL (it should be _IOW, not _IOR) I had
in my local copy, and Bruce called me on it.

Submitted by: bde

26 years agoThis is a hack. Decode IEEE 802.1Q VLAN tagging so that we can decode
Garrett Wollman [Mon, 8 Dec 1997 21:42:35 +0000 (21:42 +0000)]
This is a hack.  Decode IEEE 802.1Q VLAN tagging so that we can decode
tagged traffic according to the encapsulated protocol.  It needs in
addition modifications to the filter generator which would deal with
checking the ethertype and vlan header as required.

26 years agochange ``ingored'' to ``ignored'' in two places. I noticed this typo
Gary Jennejohn [Mon, 8 Dec 1997 21:36:25 +0000 (21:36 +0000)]
change ``ingored'' to ``ignored'' in two places. I noticed this typo
when I ran tconv to test APE (A Programmer's Editor).

26 years agoAdd -P option to cp(1) for local to local copying.
Wolfram Schneider [Mon, 8 Dec 1997 21:02:36 +0000 (21:02 +0000)]
Add  -P option to cp(1) for local to local copying.
Pointed out by: bde

26 years agoDeal with inflate() returning avail_in == avail_out == 0
Brian Somers [Mon, 8 Dec 1997 20:22:12 +0000 (20:22 +0000)]
Deal with inflate() returning avail_in == avail_out == 0
We must call inflate again in case there's any pending output
despite our input buffer being empty.  If the output buffer
is in fact already flushed, inflate() returns Z_BUF_ERROR.
There isn't really an error !

26 years agoCorrect usage of `add' and `delete'.
Brian Somers [Mon, 8 Dec 1997 20:09:10 +0000 (20:09 +0000)]
Correct usage of `add' and `delete'.

26 years agoRemoved the annoying "apic_ipi might be stuck" message.
Steve Passe [Mon, 8 Dec 1997 18:36:02 +0000 (18:36 +0000)]
Removed the annoying "apic_ipi might be stuck" message.
Added commentary about the real problem and what needs to be done.

26 years agoExplicitly state that the -t option is required only when the
Kazutaka YOKOTA [Mon, 8 Dec 1997 11:54:42 +0000 (11:54 +0000)]
Explicitly state that the -t option is required only when the
moused command is not able to detect the appropriate protocol for the
give mouse automatically.

Suggested by: sos

26 years agoadd process id to tmp files... this prevents two runs from stomping
John-Mark Gurney [Mon, 8 Dec 1997 09:00:47 +0000 (09:00 +0000)]
add process id to tmp files...  this prevents two runs from stomping
over each other's tmp files...  (usr.bin/truss uncovered this bug)

26 years agoUse full path in synopsis. Sort #includes. Use .Tn for NIS.
Philippe Charnier [Mon, 8 Dec 1997 07:49:56 +0000 (07:49 +0000)]
Use full path in synopsis. Sort #includes. Use .Tn for NIS.

26 years agoSync with diffs I found in kerberised versions: -Wall, no `;' in macros.
Philippe Charnier [Mon, 8 Dec 1997 07:46:53 +0000 (07:46 +0000)]
Sync with diffs I found in kerberised versions: -Wall, no `;' in macros.

26 years agoCorrect a path.
Philippe Charnier [Mon, 8 Dec 1997 07:44:20 +0000 (07:44 +0000)]
Correct a path.

26 years agoUse Pa for files and Ar for arguments.
Philippe Charnier [Mon, 8 Dec 1997 07:43:13 +0000 (07:43 +0000)]
Use Pa for files and Ar for arguments.

26 years agoMFC: no \n in syslog strings. Change -P to -p in flags. EOF -> -1. Use err(3).
Philippe Charnier [Mon, 8 Dec 1997 07:41:13 +0000 (07:41 +0000)]
MFC: no \n in syslog strings. Change -P to -p in flags. EOF -> -1. Use err(3).

26 years ago- Changed strcmp to strncmp for checking the CIS manufacturer strings,
Nate Williams [Mon, 8 Dec 1997 06:35:07 +0000 (06:35 +0000)]
- Changed strcmp to strncmp for checking the CIS manufacturer strings,
  since we only store CIS_MAXSTR data, and the users may stick the
  'entire' CIS string returned from the card in /etc/pccard.conf and
  cause the comparison to (bogusly) fail.

Submitted by: Brad Karp <karp@eecs.harvard.edu>

26 years agoCorrect prototypes to match POSIX. Correct return code for aio_cancel.
John Dyson [Mon, 8 Dec 1997 02:18:25 +0000 (02:18 +0000)]
Correct prototypes to match POSIX.   Correct return code for aio_cancel.
Submitted by: Alex Nash <nash@mcs.com>

26 years agoUse at_exit() to invoke procfs_exit() instead of calling it directly.
Sean Eric Fagan [Mon, 8 Dec 1997 01:06:36 +0000 (01:06 +0000)]
Use at_exit() to invoke procfs_exit() instead of calling it directly.
Note that an unload facility should be used to call rm_at_exit() (if
procfs is being loaded as an LKM and is subsequently removed), but it
was non-obvious how to do this in the VFS framework.

Reviewed by: Julian Elischer

26 years agoVarious of the ISP users have commented that the 1.41 version of the
John Dyson [Mon, 8 Dec 1997 00:59:08 +0000 (00:59 +0000)]
Various of the ISP users have commented that the 1.41 version of the
nfs_bio.c code worked better than the 1.44.  This commit reverts
the important parts of 1.44 to 1.41, and we will fix it when we
can get a handle on the problem.

26 years agoFix PAP, CHAP & LQR req (I broke the byte ordering when
Brian Somers [Sun, 7 Dec 1997 23:55:29 +0000 (23:55 +0000)]
Fix PAP, CHAP & LQR req (I broke the byte ordering when
I did the deflate re-org).
Make PAP & CHAP negotiation prettier in the log file.
If both PAP & CHAP are `enabled' and the peer NAKs CHAP
suggesting PAP, be friendly and REQ PAP the next time.
This is in line with the rfc.

26 years agoUse `cp -R' instead `cp -r' for local to local coping
Wolfram Schneider [Sun, 7 Dec 1997 20:49:39 +0000 (20:49 +0000)]
Use `cp -R' instead `cp -r' for local to local coping
(e.g.: rcp -r /tmp/1 /tmp/2). See the cp(1) manpage for more details.

26 years agooops, remove a dangling predicate left over after a sentence was rewritten.
Garrett Wollman [Sun, 7 Dec 1997 20:25:45 +0000 (20:25 +0000)]
oops, remove a dangling predicate left over after a sentence was rewritten.

26 years agoAdd some more macro advice and correct spelling of ``parentheses''.
Garrett Wollman [Sun, 7 Dec 1997 20:19:20 +0000 (20:19 +0000)]
Add some more macro advice and correct spelling of ``parentheses''.

26 years agoAdded some advice to avoid typedef'ing structures, as this breaks
Garrett Wollman [Sun, 7 Dec 1997 19:53:44 +0000 (19:53 +0000)]
Added some advice to avoid typedef'ing structures, as this breaks
information-hiding.  Also recommended against naming typedefs to end
in _t unless POSIX or ANSI requires it, and in favor of using queue(3)
macros to generate lists rather than rolling one's own.

26 years agoAdded easterog() and easteroj() which compute orthodox easter for
Wolfgang Helbig [Sun, 7 Dec 1997 19:04:14 +0000 (19:04 +0000)]
Added easterog() and easteroj() which compute orthodox easter for
Gregorian and Julian Calendar.
Suggested by: Andrey

26 years agoSurround the call to procfs_exit() by #ifdef PROCFS/#endif -- much to my
Sean Eric Fagan [Sun, 7 Dec 1997 18:16:43 +0000 (18:16 +0000)]
Surround the call to procfs_exit() by #ifdef PROCFS/#endif -- much to my
surprise, procfs actually is optional, and some people truly do generate
kernels without it.  Wow.  I built a kernel without 'options PROCFS' and
it compiled and linked.

26 years agoAdded mouse.4.
Bruce Evans [Sun, 7 Dec 1997 18:07:37 +0000 (18:07 +0000)]
Added mouse.4.

26 years ago update hub.mc with the latest set of anti-spam rules
Jonathan M. Bresler [Sun, 7 Dec 1997 16:59:28 +0000 (16:59 +0000)]
update hub.mc with the latest set of anti-spam rules

Submitted by: jmb

26 years ago correct an error that i made in check_relay.
Jonathan M. Bresler [Sun, 7 Dec 1997 16:50:11 +0000 (16:50 +0000)]
correct an error that i made in check_relay.

check_relay cannot return temporary errors.
The temporary error is logged in the sendmail log, but on the SMTP
protocol level, sendmail returns '550 Access Denied'.
Reviewed by: jmb
Submitted by: Tor Egge <Tor.Egge@idi.ntnu.no>

26 years agoDocument recent mouse code changes.
Kazutaka YOKOTA [Sun, 7 Dec 1997 08:46:56 +0000 (08:46 +0000)]
Document recent mouse code changes.

26 years agos/ps/truss/
Peter Wemm [Sun, 7 Dec 1997 08:19:13 +0000 (08:19 +0000)]
s/ps/truss/

26 years agoThe `moused' daemon is made to support various serial mouse
Kazutaka YOKOTA [Sun, 7 Dec 1997 08:11:16 +0000 (08:11 +0000)]
The `moused' daemon is made to support various serial mouse
protocols to recognized extra buttons and wheel/roller. It now has
PnP COM device support code, thus, some recent mouse products are
automatically detected and an appropriate protocol is selected.
The `-i' option will print the result of auto-detection.

- Added support for the following SERIAL mice:
      ALPS GlidePoint, MS IntelliMouse, Kensington Thinking Mouse
  (Genius NetMouse, NetMouse Pro, ASCII MieMouse, Logitech MouseMan+,
  FirstMouse+ are compatible with MS IntelliMouse, when connected
  to a serial port, thus requires no explicit support)
- Added PnP serial mouse identification capability as defined
  by Microsoft and Hayes in "Plug and Play External COM Device
  Specification, rev 1.00".  This support will enable us to identify
  the correct protocol to use, or choose a compatible protocol for the
  given mouse.
- Utilize new ioctls defined in `mouse.h' to get hardware and protocol
  information on PS/2 and bus mouse devices.  Try to guess the correct
  protocol and port combination based on the obtained info.
- Use MOUSE_SETLEVEL ioctl.
- Use constants defined in `mouse.h' rather than using own definitions.
- A New command line option.  The -i option prints the information
  collected though the PnP code and psm/mse ioctls mentioned above,
  and just quits.  This is to test `moused's ability, or inability, to
  detect the correct protocol for the given mouse automatically.
- A new command line option.  The -m option maps a physical button
  to a logical button.
- A new command line option.  The -z option maps the Z axis movement to
  another axis or a pair of buttons.
- Add other options: -3, -C -F -P.
- Added a handler for SIGHUP.  This has been suggested by somebody in the
  past (I don't remember who).  He wanted this because he wants to attach
  or detach a mouse while his laptop is suspended.  Now `moused' will
  reopens and reinitialize the specified port whenever a SIGHUP is
  received.  I don't know how useful this can be...

26 years ago- Add support for the following mice to psm/moused/sysmouse:
Kazutaka YOKOTA [Sun, 7 Dec 1997 08:09:19 +0000 (08:09 +0000)]
- Add support for the following mice to psm/moused/sysmouse:

  MS IntelliMouse, Kensington Thinking Mouse, Genius NetScroll,
  Genius NetMouse, Genius NetMouse Pro, ALPS GlidePoint, ASCII
  MieMouse, Logitech MouseMan+, FirstMouse+

- The `psm' driver is made to recognize various models of PS/2 mice
and enable their extra features so that their additional buttons and
wheel/roller are recognized. The name of the detected model will be
printed at boot time.

- A set of new ioctl functions are added to the `psm', `mse' and
`sysmouse' drivers so that the userland program (such as the X server)
can query device information and change driver settings.

- The wheel/roller movement is handled as the `Z' axis movement by the
mouse drivers and the moused daemon. The Z axis movement may be mapped
to another axis movement or buttons.

- The mouse drivers support a new, standard mouse data format,
MOUSE_PROTO_SYSMOUSE format which can encode x, y, and x axis movement
and up to 10 buttons.

/sys/i386/include/mouse.h
- Added some fields to `mousestatus_t' to store Z axis movement
  and flag bits.
- Added the field `model' to `mousehw_t' to store mouse model code.
  Defined model codes.
- Extended `mousemode_t'.
- Added new protocols and some constants for them.
- Added new ioctl functions and structures.
- Removed obsolete ioctl definitions.

/sys/i386/include/console.h
- Added `dz' field to the structure `mouse_data' to pass Z axis movement
  to `syscons/sysmouse'.
- Removed LEFT_BUTTON, MIDDLE_BUTTON and RIGHT_BUTTON.  Use button bits
  defined in `mouse.h' instead.

/sys/i386/isa/psm.c
- Added a set of functions to detect various mice which have additional
  features (wheel and buttons) unavailable in the standard PS/2 mouse.
- Refined existing ioctl functions and added new ones.  Most important
  of all is MOUSE_SETLEVEL which manipulates the output level of the driver.
  While the output level remains zero, the output from the `psm' driver is
  in the standard PS/2 mouse format (three bytes long).  When the level
  is set to one, the `psm' driver will send data in the extended format.
  At the level two the driver uses the format which is native to the
  connected mouse is used. (Meaning that the output from the device is
  passed to the caller as is, unmodified.)  The `psm'  driver will pass
  such extended data format as is to the caller if the output level is
  two, but emulates the standard format if the output level is zero.
- Added kernel configuration flags to set initial resolution
  (PSM_CONFIG_RESOLUTION) and acceleration (PSM_CONFIG_ACCEL).
- Removed the compile options PSM_ACCEL, PSM_CHECKSYNC and PSM_EMULATION.
  Acceleration ratio is now specified by the kernel configuration flags
  stated above.  Sync check logic is refined and now standard.
  The sync check can be turned off by the new kernel configuration flags
  PSM_CONFIG_NOCHECKSYNC (0x100).  PSM_EMULATION has been of little use.
- Summer clean up :-)  Removed unused code and obsolete comments.

/sys/i386/isa/mse.c
- Created mseioctl() to deal with ioctl functions MOUSE_XXXX.
  Most importantly, the MOUSE_SETLEVEL ioctl will change the
  output format from the 5 byte format to the new, extended format
  so that the caller can take advantage of Z axis movement and additional
  buttons.
- Use constants defined in `mouse.h' rather than magic numbers.

/sys/i386/isa/syscons.c
- Changed scioctl() to reflect the new `console.h' and some of the new
  ioctls defined in `mouse.h'.  Most importantly, the MOUSE_SETLEVEL
  ioctl will change the `sysmouse' output format from the MouseSystems
  5 byte format to the new, extended format so that the caller can
  take advantage of Z axis movement and additional buttons.
- Added support for double/triple click actions of the left button and
  single click action of the right button in the virtual console.  The
  left button double click will select a word under the mouse pointer.
  The triple click will select a line and the single click of the right
  button will extend the selected region to the current position of
  the mouse pointer.  This will make the cut/paste support more compatible
  with xterm.

/sys/i386/isa/kbdio.h
- Added PSM_INTELLI_ID.

26 years agoRemoved obsolete options: PSM_CHECKSYNC, PSM_ACCEL and PSM_EMULATION.
Kazutaka YOKOTA [Sun, 7 Dec 1997 08:07:17 +0000 (08:07 +0000)]
Removed obsolete options: PSM_CHECKSYNC, PSM_ACCEL and PSM_EMULATION.

26 years ago- Added entry for 'Linksys Combo PCMCIA EthernetCard'
Nate Williams [Sun, 7 Dec 1997 05:20:56 +0000 (05:20 +0000)]
- Added entry for 'Linksys Combo PCMCIA EthernetCard'

Submitted by: Brad Karp <karp@eecs.harvard.edu>

26 years agoOnly allow one arg to `delete' - the mask & gateway aren't necessary.
Brian Somers [Sun, 7 Dec 1997 04:09:15 +0000 (04:09 +0000)]
Only allow one arg to `delete' - the mask & gateway aren't necessary.
Delete AF_LINK routes as well as AF_INET.
Allow the word `default' as the arg to `delete' or in place of the
first two args (dest & netmask) to `add'.
Accept INTERFACE as the third arg to `add'.

  You can now say `add default interface' to create a default route
  through the tun interface.  It's reported that subsequent bind()s
  will bind to a broadcast address and not to the address currently
  assigned to the tun device - this is the first step towards
  supporting that first connection that was around from before the
  dynamic IP negotiation....

26 years agoUse the new PF_LINGER flag -- when this is set in a process' proc structure,
Sean Eric Fagan [Sun, 7 Dec 1997 04:08:48 +0000 (04:08 +0000)]
Use the new PF_LINGER flag -- when this is set in a process' proc structure,
said process will not have its event mask cleared (and be restarted) on
the last close of a procfs/mem file for that pid.  This reduces the chance
that a truss-monitored process will be left hanging with these bits set
and nobody looking for it.

This is the least-tested change of all of these, I'm afraid.

26 years agoSlight performance improvement, removal of unneeded SPLs.
John Dyson [Sun, 7 Dec 1997 04:06:41 +0000 (04:06 +0000)]
Slight performance improvement, removal of unneeded SPLs.

26 years agoClear the stop events and wakeup the process on teh last close of the
Sean Eric Fagan [Sun, 7 Dec 1997 04:01:03 +0000 (04:01 +0000)]
Clear the stop events and wakeup the process on teh last close of the
procfs/mem file.  While this doesn't prevent an unkillable process, it
means that a broken truss prorgam won't do it accidently now (well,
there's a small window of opportunity).  Note that this requires the
change to truss I am about to commit.

26 years agoAdd a procfs-related flag for procp->p_pfsflags.
Sean Eric Fagan [Sun, 7 Dec 1997 03:59:26 +0000 (03:59 +0000)]
Add a procfs-related flag for procp->p_pfsflags.

26 years agoexplicitly set MAN8 since only MAN1 is defaulted.
Peter Wemm [Sun, 7 Dec 1997 02:35:18 +0000 (02:35 +0000)]
explicitly set MAN8 since only MAN1 is defaulted.

26 years agoAdd $Id$
Peter Wemm [Sun, 7 Dec 1997 02:30:43 +0000 (02:30 +0000)]
Add $Id$

26 years agodelete -static, add $Id$
Peter Wemm [Sun, 7 Dec 1997 02:29:28 +0000 (02:29 +0000)]
delete -static, add $Id$

26 years agoadd procctl
Peter Wemm [Sun, 7 Dec 1997 02:27:48 +0000 (02:27 +0000)]
add procctl

26 years agoMove procctl to the Attic, it's been copied to usr.sbin/procctl as
Peter Wemm [Sun, 7 Dec 1997 02:26:23 +0000 (02:26 +0000)]
Move procctl to the Attic, it's been copied to usr.sbin/procctl as
suggested by bde via sef.

26 years agoUse getopts instead getopt(1). This should fix the problem
Wolfram Schneider [Sun, 7 Dec 1997 01:00:56 +0000 (01:00 +0000)]
Use getopts instead getopt(1). This should fix the problem
with whitespaces in pattern.
PR: 5211

26 years agoDelete truss manpage link. We have now a real truss command.
Wolfram Schneider [Sat, 6 Dec 1997 23:40:13 +0000 (23:40 +0000)]
Delete truss manpage link. We have now a real truss command.

26 years agoCorrect cftypes128 index.
Brian Somers [Sat, 6 Dec 1997 22:43:58 +0000 (22:43 +0000)]
Correct cftypes128 index.

26 years agoMove nlist related defines from link.h into nlist.h. Clean up
John Polstra [Sat, 6 Dec 1997 17:59:52 +0000 (17:59 +0000)]
Move nlist related defines from link.h into nlist.h.  Clean up
nlist.h.

26 years agoFix incorrect format string in call to errx().
John Polstra [Sat, 6 Dec 1997 17:55:07 +0000 (17:55 +0000)]
Fix incorrect format string in call to errx().

26 years agoComplain about empty command lines.
Sean Eric Fagan [Sat, 6 Dec 1997 17:13:54 +0000 (17:13 +0000)]
Complain about empty command lines.

26 years agoerr(3) already includes strerror(errno) and a trailing \n
Peter Wemm [Sat, 6 Dec 1997 14:42:58 +0000 (14:42 +0000)]
err(3) already includes strerror(errno) and a trailing \n

26 years agorecognize "FreeBSD ELF" as an executable type
Peter Wemm [Sat, 6 Dec 1997 14:41:41 +0000 (14:41 +0000)]
recognize "FreeBSD ELF" as an executable type
close() takes a fd, not a char * :-)

26 years ago#include <unistd.h> to get it to compile
Peter Wemm [Sat, 6 Dec 1997 14:39:30 +0000 (14:39 +0000)]
#include <unistd.h> to get it to compile

Submitted by: Andreas Klemm <andreas@klemm.gtn.com>

26 years agoUse ENOIOCTL instead of -1 (= ERESTART) for diskslice ioctls that are
Bruce Evans [Sat, 6 Dec 1997 14:27:56 +0000 (14:27 +0000)]
Use ENOIOCTL instead of -1 (= ERESTART) for diskslice ioctls that are
not handled at a particular level.

26 years agoUse ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that are
Bruce Evans [Sat, 6 Dec 1997 13:25:01 +0000 (13:25 +0000)]
Use ENOIOCTL instead of -1 (= ERESTART) for tty ioctls that are
not handled at a particular level.  This fixes mainly restarting
of interrupted TIOCDRAINs and TIOCSETA{W,F}s.