]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
28 years agoFix cpu_fork for real.
Poul-Henning Kamp [Thu, 25 Apr 1996 06:20:19 +0000 (06:20 +0000)]
Fix cpu_fork for real.

Suggested by:  bde

28 years agoFix logic bug in pci bridge code. For a PCI-PCI bridge, secondary
Satoshi Asami [Thu, 25 Apr 1996 06:04:27 +0000 (06:04 +0000)]
Fix logic bug in pci bridge code.  For a PCI-PCI bridge, secondary
should be <= than subordinate, not the other way around.

They are both true if the bridge is not cascaded (i.e., twin-channel
scsi/e-net adapters won't be affected by this bug), which is probably why
it was unnoticed until today.

28 years agoRegardless of whether or not the check for IPv4 is useful, we certainly
David Greenman [Thu, 25 Apr 1996 02:34:37 +0000 (02:34 +0000)]
Regardless of whether or not the check for IPv4 is useful, we certainly
don't need to assign the "ip" pointer twice.

28 years agoalloca() was being called with highly bogus arguments due to brain
Jordan K. Hubbard [Thu, 25 Apr 1996 01:50:18 +0000 (01:50 +0000)]
alloca() was being called with highly bogus arguments due to brain
fade.  Fixed.

28 years agoThe traceon and traceoff directives aren't in this version ncurses.
Jordan K. Hubbard [Thu, 25 Apr 1996 01:18:30 +0000 (01:18 +0000)]
The traceon and traceoff directives aren't in this version ncurses.
Guess nobody's built these tests for quite awhile!

28 years agoWhen a local symbol that would normally be eliminated by "-x" or
John Polstra [Wed, 24 Apr 1996 23:31:08 +0000 (23:31 +0000)]
When a local symbol that would normally be eliminated by "-x" or
"-X" must survive, because of references from relocations, don't
qualify the symbol name with the name of the input file.  This
saves some string space.  It makes libc_pic.a about 2.4% smaller.

Adapted from a suggestion by Bruce Evans.

28 years agoChange "Found end of tape. Load next tape ..." messages to say
Jordan K. Hubbard [Wed, 24 Apr 1996 21:20:17 +0000 (21:20 +0000)]
Change "Found end of tape.  Load next tape ..." messages to say
"volume" instead of tape.  Running cpio off of /dev/fd0 and having
it say "give me the next tape" is kind of ludicrous.. :-)

28 years agoClose a security hole in sliplogin.
Paul Traina [Wed, 24 Apr 1996 20:18:25 +0000 (20:18 +0000)]
Close a security hole in sliplogin.
If you use sliplogin as a user shell (in /etc/passwd) upgrade to this version.
Reviewed by: bde, peter
Submitted by: AUS CERT
Obtained from: Linux sliplogin-2.02

28 years agoReject all IP versions but 4.
Poul-Henning Kamp [Wed, 24 Apr 1996 15:44:34 +0000 (15:44 +0000)]
Reject all IP versions but 4.

28 years agoAdd missing "int" to static var.
Satoshi Asami [Wed, 24 Apr 1996 09:42:22 +0000 (09:42 +0000)]
Add missing "int" to static var.

28 years agoThis fixes kmem_malloc/kmem_free (and malloc/free of objects of > 8K).
John Dyson [Wed, 24 Apr 1996 04:16:45 +0000 (04:16 +0000)]
This fixes kmem_malloc/kmem_free (and malloc/free of objects of > 8K).
A page index was calculated incorrectly in vm_kern, and vm_object_page_remove
removed pages that should not have been.

28 years agoFix reverse logic bug which caused the ethernet configuration to never work.
Nate Williams [Wed, 24 Apr 1996 00:04:10 +0000 (00:04 +0000)]
Fix reverse logic bug which caused the ethernet configuration to never work.

28 years ago- This code adds some backwards compatability hacks for buggy APM BIOS
Nate Williams [Tue, 23 Apr 1996 19:59:14 +0000 (19:59 +0000)]
- This code adds some backwards compatability hacks for buggy APM BIOS
  implementations, and synchronizes us with the Nomad's latest code.

This code is based on the Nomad code, but heavily hacked by me.

Reviewed by: phk
Submitted by: the 'Nomads'

28 years agoFormat the already applied PCCARD additions to use KNF form. No
Nate Williams [Tue, 23 Apr 1996 18:36:56 +0000 (18:36 +0000)]
Format the already applied PCCARD additions to use KNF form.  No
functional changes.

28 years ago- Make pccardd release it's allocated io space and sets the mem.cardaddr
Nate Williams [Tue, 23 Apr 1996 16:46:48 +0000 (16:46 +0000)]
- Make pccardd release it's allocated io space and sets the mem.cardaddr
  even if DEBUG is not set.
- #ifdef protect DEBUG printf's

Submitted by: sos

28 years agoAdds the APM hooks into the generic pccard kernel files. With this code
Nate Williams [Tue, 23 Apr 1996 16:03:08 +0000 (16:03 +0000)]
Adds the APM hooks into the generic pccard kernel files.  With this code
in place device drivers can now register power-down/power-up routines so
that we can use common routines to power-up/power-down cards for
insert/removals, suspend/resume, etc..

Reviewed by: phk
Submitted by: the 'Nomads'

28 years agoAdd support for SOCKS if enabled.
Paul Traina [Tue, 23 Apr 1996 06:01:10 +0000 (06:01 +0000)]
Add support for SOCKS if enabled.
Remove a useless bind() call (why did that ever get in there?)

28 years agoAdd support for socks
Paul Traina [Tue, 23 Apr 1996 05:18:43 +0000 (05:18 +0000)]
Add support for socks

28 years agoFix second instance of the inb type when getting the current sequencer address.
Justin T. Gibbs [Tue, 23 Apr 1996 04:47:02 +0000 (04:47 +0000)]
Fix second instance of the inb type when getting the current sequencer address.

Submitted by: Nate Williams <nate@sri.MT.net>

28 years agoFix a typo in the RESTART_SEQUENCER macro that could have caused
Justin T. Gibbs [Tue, 23 Apr 1996 04:22:41 +0000 (04:22 +0000)]
Fix a typo in the RESTART_SEQUENCER macro that could have caused
strange results.  This  bug has been in here for a loooong time.
Many thanks to Pedro Salenbauch for finding this.

Submitted by: pedrosal@nce.ufrj.br (Pedro Salenbauch)

28 years agoBring this into sync.
Jordan K. Hubbard [Tue, 23 Apr 1996 01:29:35 +0000 (01:29 +0000)]
Bring this into sync.

I still have a _very very annoying_ display bug which occurs when a menu
item causes a submenu to be displayed - the screen repaints for the original
menu (which is restored upon return from the submenu) are off by about 4
characters.  I've tried restoring the screen, the cursor position, you name
it - same deal.  Grrrr!  This commit is my first step in trying to get someone
else to help me look into this one since I'm just tearing my hair out at this
point!

28 years agoCosmetic tweaks.
Jordan K. Hubbard [Tue, 23 Apr 1996 01:25:04 +0000 (01:25 +0000)]
Cosmetic tweaks.

28 years agoNew variable NOOBJLINK
Wolfram Schneider [Mon, 22 Apr 1996 23:31:39 +0000 (23:31 +0000)]
New variable NOOBJLINK
Create 'obj' directory in current directory instead
a symbolic link to the 'obj' tree if defined. [not set]

Print a warning if 'obj' tree (/usr/obj) does not exist.

Change default 'obj' directory from ``obj.${MACHINE}'' back to
``obj'', unfortunately many Makefiles are wired with the name ``obj''.

Add some comments for variables and targets.

28 years agoUpdated the laptop 'kludge' file. Hopefully this can go away soon.
Nate Williams [Mon, 22 Apr 1996 22:29:40 +0000 (22:29 +0000)]
Updated the laptop 'kludge' file.  Hopefully this can go away soon.

Submitted by: The 'Nomads'

28 years agotypo shmrsh -> smrsh
Paul Traina [Mon, 22 Apr 1996 20:30:09 +0000 (20:30 +0000)]
typo shmrsh -> smrsh

28 years agoAdd a couple of needed X11 libraries. Discovered when trying to build a
John Polstra [Mon, 22 Apr 1996 20:24:56 +0000 (20:24 +0000)]
Add a couple of needed X11 libraries.  Discovered when trying to build a
static version.

28 years ago- add apm to the GENERIC kernel (disabled by default), and add some comments
Nate Williams [Mon, 22 Apr 1996 19:40:28 +0000 (19:40 +0000)]
- add apm to the GENERIC kernel (disabled by default), and add some comments
  regarding apm to LINT
- Disabled the statistics clock on machines which have an APM BIOS and
  have the options "APM_BROKEN_STATCLOCK" enabled (which is default
  in GENERIC now)
- move around some of the code in clock.c dealing with the rtc to make
  it more obvios the effects of disabling the statistics clock

Reviewed by: bde

28 years agoFix a segfault which occurs when it gets an empty input line.
Sujal Patel [Mon, 22 Apr 1996 18:37:22 +0000 (18:37 +0000)]
Fix a segfault which occurs when it gets an empty input line.
Closes PR bin/1153

Reviewed by: smpatel
Submitted by: Matthew C. Mead (mmead@Glock.COM)

28 years agoThe default number of tags in the SCB paging case was supposed to be
Justin T. Gibbs [Mon, 22 Apr 1996 13:21:40 +0000 (13:21 +0000)]
The default number of tags in the SCB paging case was supposed to be
8 not the 18 I was using during some of my own testing.  Ooops.

For those that want to change the number for experimentation, you can
set the value on line 1553 of this file.

28 years agoThis fixes a troubling oversight in some of the pmap code enhancements.
John Dyson [Mon, 22 Apr 1996 05:23:08 +0000 (05:23 +0000)]
This fixes a troubling oversight in some of the pmap code enhancements.
One of the manifiestations of the problem includes the -4 RSS problem
in ps.

Reviewed by: dyson
Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>

28 years agoFind official home of smrsh
Paul Traina [Sun, 21 Apr 1996 19:50:46 +0000 (19:50 +0000)]
Find official home of smrsh

28 years agoEnable proper installation of sendmail restricted shell smrsh(8).
Paul Traina [Sun, 21 Apr 1996 19:48:07 +0000 (19:48 +0000)]
Enable proper installation of sendmail restricted shell smrsh(8).

This program is a wrapper for the prog mailer in sendmail.  It does shell
meta character masking and restricts the list of executables to those found
in /usr/libexec/sm.bin.

The default sendmail.cf file does not use this tool, however you can enable
it by either changing /bin/sh to /usr/libexec/smrsh or adding the line
FEATURE(smrsh) into your sendmail .mc file and rebuilding your .cf file.

For more info, RTFMP.

28 years agoAdd /usr/libexec/sm.bin for smrsh(8)
Paul Traina [Sun, 21 Apr 1996 19:40:20 +0000 (19:40 +0000)]
Add /usr/libexec/sm.bin for smrsh(8)

28 years agoAdd "-x" to the linker command for building shared libraries. This
John Polstra [Sun, 21 Apr 1996 17:45:38 +0000 (17:45 +0000)]
Add "-x" to the linker command for building shared libraries.  This
eliminates many local symbols that could not be removed by the "ld -r -x"
steps on the individual object files.  It makes shared libraries
substantially smaller -- almost 11%, in the case of libc.so.3.0.

28 years agoFixed in-line IP header checksumming. It was performed on the wrong header
Bruce Evans [Sun, 21 Apr 1996 13:47:43 +0000 (13:47 +0000)]
Fixed in-line IP header checksumming.  It was performed on the wrong header
in one case.

28 years agoTake out quotes around MOTIFLIB. Clarify comments a bit, most users
Satoshi Asami [Sun, 21 Apr 1996 08:56:32 +0000 (08:56 +0000)]
Take out quotes around MOTIFLIB.  Clarify comments a bit, most users
don't have to touch neither X11BASE nor MOTIFLIB.

Reported by: kmitch@phantasma.bevc.blacksburg.va.us

28 years agoUpdate to face reality. We now support the aic7850, aic7860 and aic7880.
Justin T. Gibbs [Sat, 20 Apr 1996 21:37:49 +0000 (21:37 +0000)]
Update to face reality.  We now support the aic7850, aic7860 and aic7880.

Mention Ultra support and SCB paging.

Remove references to AHC_TAGENABLE.

28 years agoAdd PCI IDs for the aic7860 (basically an aic7850 Ultra) and the aic7855
Justin T. Gibbs [Sat, 20 Apr 1996 21:31:27 +0000 (21:31 +0000)]
Add PCI IDs for the aic7860 (basically an aic7850 Ultra) and the aic7855
(HP motherboard aic7850 controllers).

Properly handle 4 bit controller SCSI IDs.

Update my copyright.

28 years agoImplement SCB paging which allows up to 255 active commands on aic7770
Justin T. Gibbs [Sat, 20 Apr 1996 21:29:27 +0000 (21:29 +0000)]
Implement SCB paging which allows up to 255 active commands on aic7770
(Rev E or greater), aic7850, aic7860, aic7870, and aic7880 controllers.
SCB paging is enabled with the option "AHC_SCBPAGING_ENABLE".  Full
comments on the algorithm are at the top of i386/scsi/aic7xxx.c.

options "AHC_TAGENABLE" and "AHC_QUEUE_FULL" have been removed.  The
default is 4 tags without SCB paging, 8 with.

Clear the SCSIRSTI bit after throwing a bus reset.  Some cards seem to get
confused otherwise.

Handle SCSIRSTI interrupts before checking to see if there is a valid
SCB in use since this can happen. (Clears PR# i386/1123)

Clean up the way we determine the number of SCBs on the card
(courtesy of Dan Eischen).

Guard against attempts to negotiate wide to a narrow controller.

Fix some comments.

Update my copyrights.

28 years agoChange the devconf description from "ISA or EISA bus" to "ISA bus" now
Justin T. Gibbs [Sat, 20 Apr 1996 21:22:32 +0000 (21:22 +0000)]
Change the devconf description from "ISA or EISA bus" to "ISA bus" now
that we have eisaconf.

28 years agoTurn on SCB paging for aic7770 chips rev E or greater.
Justin T. Gibbs [Sat, 20 Apr 1996 21:21:50 +0000 (21:21 +0000)]
Turn on SCB paging for aic7770 chips rev E or greater.

Update my copyrights.

28 years agoImplement SCB paging. This allows up to 255 active commands on
Justin T. Gibbs [Sat, 20 Apr 1996 21:20:31 +0000 (21:20 +0000)]
Implement SCB paging.  This allows up to 255 active commands on
aic7770 >= Rev E, aic7850, aic7860, aic7870, and ai7880 based controllers.

Make findSCB safer for non-tagged commands when tagged commands are
active on the controller.  The symptoms of this problem were
"Overlapped commands attempted" messages during error recovery
attempts.

Compact scratch ram usage.  This leaves 8 bytes free for future use.

Clean up some comments.

aic7xxx_reg.h:
Update my copyright.

28 years agoAdd Doug Ambrisko for implementing LD_PRELOAD in the dynamic linker.
John Polstra [Sat, 20 Apr 1996 18:43:54 +0000 (18:43 +0000)]
Add Doug Ambrisko for implementing LD_PRELOAD in the dynamic linker.

28 years agoImplement support for LD_PRELOAD in the dynamic linker. Remove
John Polstra [Sat, 20 Apr 1996 18:29:50 +0000 (18:29 +0000)]
Implement support for LD_PRELOAD in the dynamic linker.  Remove
descriptions of LD_NO_INTERN_SEARCH and LD_NOSTD_PATH from the manual
page, since they are not supported.

Submitted by: Doug Ambrisko <ambrisko@ambrisko.roble.com>

28 years agoImplement support for LD_PRELOAD in the dynamic linker.
John Polstra [Sat, 20 Apr 1996 18:27:56 +0000 (18:27 +0000)]
Implement support for LD_PRELOAD in the dynamic linker.

Submitted by: Doug Ambrisko <ambrisko@ambrisko.roble.com>

28 years agoAdded sup5.freebsd.org (burka.rdy.com)
Dima Ruban [Sat, 20 Apr 1996 08:12:46 +0000 (08:12 +0000)]
Added sup5.freebsd.org (burka.rdy.com)
Obtained from: DNS :-)

28 years agoAnother bug fix for the DITEM_REDRAW case.
Jordan K. Hubbard [Sat, 20 Apr 1996 01:56:06 +0000 (01:56 +0000)]
Another bug fix for the DITEM_REDRAW case.

28 years agoMake the DITEM_RECREATE option work properly.
Jordan K. Hubbard [Sat, 20 Apr 1996 01:28:20 +0000 (01:28 +0000)]
Make the DITEM_RECREATE option work properly.

28 years agoAdd Paul Traina as the new security officer.
Jordan K. Hubbard [Sat, 20 Apr 1996 00:17:53 +0000 (00:17 +0000)]
Add Paul Traina as the new security officer.

28 years agoExclude devices. Character ones modes changes often and proper names
Andrey A. Chernov [Fri, 19 Apr 1996 22:28:01 +0000 (22:28 +0000)]
Exclude devices. Character ones modes changes often and proper names
guessing involves too much AI.

28 years agoFix up the badly out of date struct proc's p_flags.
Sujal Patel [Fri, 19 Apr 1996 22:23:27 +0000 (22:23 +0000)]
Fix up the badly out of date struct proc's p_flags.
Flags aren't printed in hexadecimal, as documented.

28 years agoDelete duplicate "make sure you have at least one device supplying
Satoshi Asami [Fri, 19 Apr 1996 21:50:32 +0000 (21:50 +0000)]
Delete duplicate "make sure you have at least one device supplying
teminator power".

Noticed by: <yoshiaki@kt.rim.or.jp>

28 years agocontents file for /usr/share/doc/papers
Wolfram Schneider [Fri, 19 Apr 1996 21:26:27 +0000 (21:26 +0000)]
contents file for /usr/share/doc/papers

28 years agoadd ``contents'' to SUBDIR
Wolfram Schneider [Fri, 19 Apr 1996 21:24:34 +0000 (21:24 +0000)]
add ``contents'' to SUBDIR

28 years agoYet more b_flags fixes. The previous ones broke the clearing of B_DONE
Bruce Evans [Fri, 19 Apr 1996 19:34:19 +0000 (19:34 +0000)]
Yet more b_flags fixes.  The previous ones broke the clearing of B_DONE
and B_READ before writing.  This was was fatal.  They also broke the
clearing of B_INVAL before doing i/o.  This didn't actually matter.

Submitted by: mostly by joerg

28 years agoFixed removal of devfs entries for the real slice corresponding to the
Bruce Evans [Fri, 19 Apr 1996 19:22:29 +0000 (19:22 +0000)]
Fixed removal of devfs entries for the real slice corresponding to the
compatibility slice.  They were forgotten on last-close and then
creating them on first-open failed.

Devfs entries for slices other than the one containing the root file
system are still invisible unless you open a non-devfs inode on the
slice.

28 years agoRemoved bogus includes of <sys/types.h> from synopses.
Bruce Evans [Fri, 19 Apr 1996 19:00:26 +0000 (19:00 +0000)]
Removed bogus includes of <sys/types.h> from synopses.

This commit covers the man pages for most of the ANSI library functions.
A few others such as strtol.3 have to mention <sys/types.h> because they
mix ANSI interfaces with less well designed extensions.

28 years agoDon't include <sys/types.h> when it isn't used.
Bruce Evans [Fri, 19 Apr 1996 18:40:25 +0000 (18:40 +0000)]
Don't include <sys/types.h> when it isn't used.

This commit covers most of the ANSI library functions. Many others only
need <sys/types.h> because they use u_xxx.

28 years agoDon't depend on <sys/types.h> including <sys/cdefs.h>.
Bruce Evans [Fri, 19 Apr 1996 17:39:57 +0000 (17:39 +0000)]
Don't depend on <sys/types.h> including <sys/cdefs.h>.

28 years agoFix timezone names for Mountain time.
Garrett Wollman [Fri, 19 Apr 1996 15:15:41 +0000 (15:15 +0000)]
Fix timezone names for Mountain time.
Fixes PR 1150

Submitted by: colsen@usa.net

28 years agoAdded `const' to types of sys_siglist and sys_signame.
Bruce Evans [Fri, 19 Apr 1996 14:07:44 +0000 (14:07 +0000)]
Added `const' to types of sys_siglist and sys_signame.

28 years agoAdded `const' to types of sys_errlist and sys_nerr.
Bruce Evans [Fri, 19 Apr 1996 14:02:03 +0000 (14:02 +0000)]
Added `const' to types of sys_errlist and sys_nerr.

Use .Va instead of .Fa to describe these variables.

Say a little about inconsistent declarations of sys_errlist in the BUGS
section.

28 years agoFix a bug which did not properly bias checklist items by their scroll
Jordan K. Hubbard [Fri, 19 Apr 1996 10:39:16 +0000 (10:39 +0000)]
Fix a bug which did not properly bias checklist items by their scroll
factor.

28 years agoRevise the responsibility roster a bit.
Jordan K. Hubbard [Fri, 19 Apr 1996 07:44:17 +0000 (07:44 +0000)]
Revise the responsibility roster a bit.

28 years agosavectx returns through cpu_switch in case of the child, so it must
Poul-Henning Kamp [Fri, 19 Apr 1996 07:28:04 +0000 (07:28 +0000)]
savectx returns through cpu_switch in case of the child, so it must
return void just like cpu_switch.  Fix prototype and usage from machdep.c

28 years agoFix the man page to reflect the recent addition of RFNOWAIT and the removal of
Sujal Patel [Thu, 18 Apr 1996 23:36:41 +0000 (23:36 +0000)]
Fix the man page to reflect the recent addition of RFNOWAIT and the removal of
Plan9 specific flags.

28 years agoWhoops, shouldn't really have been here, but what the heck: remove some
Poul-Henning Kamp [Thu, 18 Apr 1996 21:37:43 +0000 (21:37 +0000)]
Whoops, shouldn't really have been here, but what the heck: remove some
stale comments.

28 years agoFix a bogon. cpu_fork & savectx ecpected cpu_switch to restore %eax,
Poul-Henning Kamp [Thu, 18 Apr 1996 21:34:53 +0000 (21:34 +0000)]
Fix a bogon.  cpu_fork & savectx ecpected cpu_switch to restore %eax,
they shouldn't.

28 years ago- Save/restore the FS data segment.
Nate Williams [Thu, 18 Apr 1996 19:22:59 +0000 (19:22 +0000)]
- Save/restore the FS data segment.

Reviewed by: bde

28 years ago- Addition of my name to the APM Copyright
Nate Williams [Thu, 18 Apr 1996 19:21:47 +0000 (19:21 +0000)]
- Addition of my name to the APM Copyright
- More code cleanups
- #ifdef DEBUG debugging code
- More consistant printfs
- Better handling of the apm_int() assembly code (mostly from Bruce Evans)

Reviewed by: bde

28 years agoUpdate an offset field for i386 a.out core files, so that the program
John Polstra [Thu, 18 Apr 1996 19:05:58 +0000 (19:05 +0000)]
Update an offset field for i386 a.out core files, so that the program
name comes out right again.

Note: Don't bring this change directly into the -stable branch.  The
appropriate offset for -stable is different.

28 years agoFix a typo in the syntax for indirect offsets.
John Polstra [Thu, 18 Apr 1996 18:17:14 +0000 (18:17 +0000)]
Fix a typo in the syntax for indirect offsets.

28 years agoThree speed-ups in the output path (two small, one substantial):
Garrett Wollman [Thu, 18 Apr 1996 15:49:06 +0000 (15:49 +0000)]
Three speed-ups in the output path (two small, one substantial):

1) Require all callers to pass a valid route pointer to ip_output()
   so that we don't have to check and allocate one off the stack
   as was done before.  This eliminates one test and some stack
    bloat from the common (UDP and TCP) case.

2) Perform the IP header checksum in-line if it's of the usual length.
    This results in about a 5% speed-up in my packet-generation test.

3) Use ip_vhl field rather than ip_v and ip_hl bitfields.

28 years agoDefine a few macros useful in the _IP_VHL case.
Garrett Wollman [Thu, 18 Apr 1996 15:42:50 +0000 (15:42 +0000)]
Define a few macros useful in the _IP_VHL case.

28 years agoFix a warning by not referencing ip_output() as a pr_output() member.
Garrett Wollman [Thu, 18 Apr 1996 15:41:51 +0000 (15:41 +0000)]
Fix a warning by not referencing ip_output() as a pr_output() member.

28 years agoAlways call ip_output() with a valid route pointer. For igmp, also get the
Garrett Wollman [Thu, 18 Apr 1996 15:41:11 +0000 (15:41 +0000)]
Always call ip_output() with a valid route pointer.  For igmp, also get the
multicast option structure off the stack rather than malloc.

28 years agoAdd an inline function to compute the common-case IP header checksum.
Garrett Wollman [Thu, 18 Apr 1996 15:39:27 +0000 (15:39 +0000)]
Add an inline function to compute the common-case IP header checksum.

28 years agoRemove a long-standing window leak I just noticed.
Jordan K. Hubbard [Thu, 18 Apr 1996 13:36:39 +0000 (13:36 +0000)]
Remove a long-standing window leak I just noticed.

28 years agoRemove the special-case behavior for fire actions that return
Jordan K. Hubbard [Thu, 18 Apr 1996 13:21:26 +0000 (13:21 +0000)]
Remove the special-case behavior for fire actions that return
DITEM_FAILURE - formerly they would simply act as an implicit "continue",
but this is wrong.  If you want this behavior, you should now return
with the DITEM_CONTINUE flag set.

Also make the semantics of DITEM_RESTORE quite a bit different - rather
than restore the screen back to pre-menu state, we restore the menu
itself.  This is more correct for a variety of reasons when dealing with
nested menus (whoops!).

28 years agoUse -X to be xargs-friendly
Andrey A. Chernov [Thu, 18 Apr 1996 10:34:07 +0000 (10:34 +0000)]
Use -X to be xargs-friendly
Check devices too, follow original BSD intention
Find only executable files with s-bits, close PR bin/1022
Reset locale to C to have equal results in any case

28 years agoFix sgetrune/sputrune arg type: was unsigned int instead of size_t
Andrey A. Chernov [Thu, 18 Apr 1996 07:13:42 +0000 (07:13 +0000)]
Fix sgetrune/sputrune arg type: was unsigned int instead of size_t

28 years agoFix error in wcstombs: byte count not counted
Andrey A. Chernov [Thu, 18 Apr 1996 07:01:46 +0000 (07:01 +0000)]
Fix error in wcstombs: byte count not counted
Remove unneded casts in sgetrune/sputrune
Submitted by: wcstombs fix by Mihoko Tanaka <m_tonaka@pa.yokogawa.co.jp>

28 years agoFix usage: message to print out corrrectly.
Nate Williams [Thu, 18 Apr 1996 05:23:47 +0000 (05:23 +0000)]
Fix usage: message to print out corrrectly.

Submitted by: Tatsumi Hosokawa <hosokawa@mt.cs.keio.ac.jp>

28 years agoAdded RCS Id and BSD-style copyrights to individual files.
Nate Williams [Thu, 18 Apr 1996 04:25:17 +0000 (04:25 +0000)]
Added RCS Id and BSD-style copyrights to individual files.

28 years agoAdded a disabled psm0 (PS/2) mouse device, using the new 'disable'
Nate Williams [Thu, 18 Apr 1996 04:02:30 +0000 (04:02 +0000)]
Added a disabled psm0 (PS/2) mouse device, using the new 'disable'
keyword.

28 years agoMention swapinfo as .Nm, so it will be referenced by mkwhatis.
Joerg Wunsch [Wed, 17 Apr 1996 20:50:44 +0000 (20:50 +0000)]
Mention swapinfo as .Nm, so it will be referenced by mkwhatis.

28 years agoDocument the possible EPERM return.
Joerg Wunsch [Wed, 17 Apr 1996 20:49:29 +0000 (20:49 +0000)]
Document the possible EPERM return.

Submitted by: imp@village.org (Warner Losh)

28 years agoImplement the RFNOWAIT flag for rfork(). If set this flag will cause the
Sujal Patel [Wed, 17 Apr 1996 17:05:08 +0000 (17:05 +0000)]
Implement the RFNOWAIT flag for rfork().  If set this flag will cause the
forked child to be dissociated from the parent).

Cleanup fork1(), implement vfork() and fork() in terms of rfork() flags.

Remove RFENVG, RFNOTEG, RFCNAMEG, RFCENVG which are Plan9 specific and cannot
possibly be implemented in FreeBSD.

Renumbered the flags to make up for the removal of the above flags.

Reviewed by: peter, smpatel
Submitted by: Mike Grupenhoff <kashmir@umiacs.umd.edu>

28 years agoSupport FreeBSD v2.1
Paul Traina [Wed, 17 Apr 1996 09:37:17 +0000 (09:37 +0000)]
Support FreeBSD v2.1

28 years agoAdd in linux support for the quickcam driver bottom half and
Paul Traina [Wed, 17 Apr 1996 09:00:53 +0000 (09:00 +0000)]
Add in linux support for the quickcam driver bottom half and
add a new "invasive camera scan" option for folks who have weird
cameras or weird parallel ports.

28 years agoFix a few bugs in argument processing.
Paul Traina [Wed, 17 Apr 1996 08:57:50 +0000 (08:57 +0000)]
Fix a few bugs in argument processing.

Submitted by: Timo Kokkonen <tjko@jyu.fi>

28 years agoMore changes to attempt to make this whole new dialog scheme more
Jordan K. Hubbard [Tue, 16 Apr 1996 12:17:27 +0000 (12:17 +0000)]
More changes to attempt to make this whole new dialog scheme more
robust.  The new "fire" actions, while affording signficantly more
interactivity to libdialog, come at a cost - if the fire action trashes
the screen then you're not going to be in Kansas anymore when you
come back to the menu and there had better be considerable extra
smarts in place for coping with such a situation.  These changes are my
attempt to do just that.

28 years agoBack out my MOTIF_STATIC change, it is unnecessary
Andrey A. Chernov [Tue, 16 Apr 1996 11:47:29 +0000 (11:47 +0000)]
Back out my MOTIF_STATIC change, it is unnecessary

28 years agoRemove old cruft.
Mark Murray [Tue, 16 Apr 1996 06:38:56 +0000 (06:38 +0000)]
Remove old cruft.

28 years agoFix oder of subdirs so this will rebuild if .depends are blown away.
Mark Murray [Tue, 16 Apr 1996 06:06:53 +0000 (06:06 +0000)]
Fix oder of subdirs so this will rebuild if .depends are blown away.

28 years agoFix for PR #1146: the "next" pointer must be cached before calling soabort
David Greenman [Tue, 16 Apr 1996 03:50:08 +0000 (03:50 +0000)]
Fix for PR #1146: the "next" pointer must be cached before calling soabort
since the struct containing it may be freed.

28 years agoNIS cleanups and fixes, the next generation, continued.
Bill Paul [Tue, 16 Apr 1996 00:23:59 +0000 (00:23 +0000)]
NIS cleanups and fixes, the next generation, continued.

pwd_mkdb.c:

- Don't save the PLUSCNT and MINUSCNT tokens: we don't need them anymore.

- Count the + and - entires for NIS together instead of counting + and -
  entries seperately. Index all special NIS entries using new _PW_KEYYPBYNUM
  token.

pwd.h:

- Remove the PLUSBYNUM, MINUSBYNUM, PLUSCNT and MINUSCNT tokens and replace
  then with a single _PW_KEYYPBYNUM token.

28 years agoNIS cleanups and fixes, the next generation.
Bill Paul [Tue, 16 Apr 1996 00:22:41 +0000 (00:22 +0000)]
NIS cleanups and fixes, the next generation.

getnetgrent.c:

- Catch one bogon that snuck by: in _listmatch(), check for '\0'
  rather than '\n'; strings returned from yp_match() are terminated
  with a nul, not a newline.

getpwent.c:

- Rip out all of the +inclusion/-exclusion stuff from before and
  replace it with something a little less grotty. The main problem
  with the old mechanism was that it wasted many cycles processing
  NIS entries even after it already knew they were to be exlcuded
  (or not included, depending on your pointof view). The highlights
  of these changes include:

  o Uses an in-memory hash database table to keep track of all the
    -@netgroup, -user, and -@group exclusions.

  o Tries harder to duplicate the behavior normally obtained when using
    NIS inclusions/exclusions on a flat /etc/passwd file (meaning things
    come out in much the same order).

  o Uses seperate methods for handling getpwent() and getpwnam()/getpwuid()
    operations instead of trying to do everything with one general
    function, which didn't work as well as I thought it would.

  o Uses both getnetgrent() and innetgr() to try to save time where
    possible.

  o Use only one special token in the local password database
    (_PW_KEYYPBYNUM) instead of seperate tokens to mark + and -
    entries (and stop using the counter tokens too). If this new
    token doesn't exist, the code will make due with the standard
    _PW_KEYBYNUM token in order to support older databases that
    won't have the new token in them.

  All this is an attempt to make this stuff work better in environments
  with large NIS passwd databases.

28 years agoAdd man pages for the copy*, fetch*, and store* families of
Mike Pritchard [Mon, 15 Apr 1996 21:37:07 +0000 (21:37 +0000)]
Add man pages for the copy*, fetch*, and store* families of
kernel functions.

Also added timeout(9) to the makefile.

Reviewed by: joerg
Obtained from: NetBSD

28 years agoFix a few NIS-related bogons:
Bill Paul [Mon, 15 Apr 1996 16:17:04 +0000 (16:17 +0000)]
Fix a few NIS-related bogons:

- Clear the _yp_innetgr flag immediately after calling setnetgrent() from
  innetgr(). We only need the flag set to temporarily alter setnetgrent()'s
  behavior. Previously, it was being cleared too late.

- When in NIS-only mode, innetgr() was wasting time doing unecessary
  extra processing after it had already found a match.

- Remember to free memory allocated by the NIS functions during innetgr()
  searches.