]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoMerged from sys/dev/syscons/scterm-sc.c revision 1.16.
nyan [Tue, 7 Aug 2001 12:10:17 +0000 (12:10 +0000)]
Merged from sys/dev/syscons/scterm-sc.c revision 1.16.

23 years agoDon't call wakeup() while we are in DDB. The patch was
yokota [Tue, 7 Aug 2001 11:51:26 +0000 (11:51 +0000)]
Don't call wakeup() while we are in DDB. The patch was
developed by bde. I added the same check in one more place
where wakeup() might be called during the DDB session.
Submitted by: bde

23 years agoSpelling.
mckay [Tue, 7 Aug 2001 11:09:17 +0000 (11:09 +0000)]
Spelling.

23 years agoFix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'.
tg [Tue, 7 Aug 2001 11:09:15 +0000 (11:09 +0000)]
Fix warnings resulting from `-Wredundant-decls -Wstrict-prototypes'.

23 years agoFix some fractured english. The translators can ignore this.
markm [Tue, 7 Aug 2001 09:14:51 +0000 (09:14 +0000)]
Fix some fractured english. The translators can ignore this.

23 years agoHopefully squish the problem of mm creating sendmail files in
dougb [Tue, 7 Aug 2001 06:22:12 +0000 (06:22 +0000)]
Hopefully squish the problem of mm creating sendmail files in
the source tree once and for all.

Pointed out by: A cast of thousands

Reviewed by: asmodai

23 years agoDocument sx_try_[sx]lock().
jasone [Tue, 7 Aug 2001 04:29:53 +0000 (04:29 +0000)]
Document sx_try_[sx]lock().

23 years agoConstify, staticize, and set WARNS=2.
mike [Mon, 6 Aug 2001 23:20:06 +0000 (23:20 +0000)]
Constify, staticize, and set WARNS=2.

MFC after: 3 days

23 years agoAdd PCI ID for Cisco Aironet 350 Series cards. The patch differs
brooks [Mon, 6 Aug 2001 23:14:16 +0000 (23:14 +0000)]
Add PCI ID for Cisco Aironet 350 Series cards.  The patch differs
slightly from the submitted one.

PR: kern/29415
Submitted by: Bob Fleck <rfleck@cigital.com>

23 years agoo Correctly define rcsid.
mike [Mon, 6 Aug 2001 22:01:31 +0000 (22:01 +0000)]
o Correctly define rcsid.
o Add consts where appropriate.
o Rename some variables that were shadowing global declarations.
o Remove register storage-classes.
o Make errmsg a const, so we can just set error messages instead
  of using sprintf/strcpy.
o Set WARNS=2

Reviewed by: bde, des

23 years agoRecognise @option directives instead of falling through to the default
kris [Mon, 6 Aug 2001 20:09:26 +0000 (20:09 +0000)]
Recognise @option directives instead of falling through to the default
"unknown command" clause.

PR: 29262

23 years agoMake AAC_COMPAT_LINUX optional once again.
scottl [Mon, 6 Aug 2001 19:40:47 +0000 (19:40 +0000)]
Make AAC_COMPAT_LINUX optional once again.

Submitted by: julian

23 years agoprinted current sequence number of the SA. accordingly, changed
ume [Mon, 6 Aug 2001 19:40:01 +0000 (19:40 +0000)]
printed current sequence number of the SA.  accordingly, changed
into sadb_x_sa2_sequence from sadb_x_sa2_reserved3 in the sadb_x_sa2
structure.  Also the output of setkey is changed.  sequence number
of the sadb is replaced to the end of the output.

Obtained from: KAME

23 years agodo not play too much trick with evaluation order. from netbsd
ume [Mon, 6 Aug 2001 19:34:41 +0000 (19:34 +0000)]
do not play too much trick with evaluation order.  from netbsd

Obtained from: KAME

23 years agofixed to make a response in key_spdadd(). reported by <R.P.Koster@kpn.com>
ume [Mon, 6 Aug 2001 19:32:47 +0000 (19:32 +0000)]
fixed to make a response in key_spdadd().  reported by <R.P.Koster@kpn.com>

Obtained from: KAME

23 years agomerged key_cmpsaidx_*.
ume [Mon, 6 Aug 2001 19:31:13 +0000 (19:31 +0000)]
merged key_cmpsaidx_*.

Obtained from: KAME

23 years agoblah, fix missing commas in 'SEE ALSO' section.
scottl [Mon, 6 Aug 2001 19:21:27 +0000 (19:21 +0000)]
blah, fix missing commas in 'SEE ALSO' section.

23 years agoAfter confering with sheldonh, it was decided that the tuning section should
scottl [Mon, 6 Aug 2001 18:16:46 +0000 (18:16 +0000)]
After confering with sheldonh, it was decided that the tuning section should
be renamed back to 'Tuning' and should be a subsection under 'Description'.
also make a few other minor tweaks.

Reviewed by: sheldonh (in principal)

23 years ago-Finished cleanup of old 'ThinkPad' comments that are no longer useful.
nate [Mon, 6 Aug 2001 16:04:39 +0000 (16:04 +0000)]
-Finished cleanup of old 'ThinkPad' comments that are no longer useful.

Reminded by: bde

23 years agoNow properly use logger's facility argument
nsayer [Mon, 6 Aug 2001 15:52:42 +0000 (15:52 +0000)]
Now properly use logger's facility argument

23 years agoGet the order of the sys/_lock.h and sys/_mutex.h headers right.
jhb [Mon, 6 Aug 2001 14:25:35 +0000 (14:25 +0000)]
Get the order of the sys/_lock.h and sys/_mutex.h headers right.

23 years agoPreviously, the ELF linker would always just store the pointer to a
green [Mon, 6 Aug 2001 14:21:57 +0000 (14:21 +0000)]
Previously, the ELF linker would always just store the pointer to a
filename passed in via the module loader functions in the GDB
"sharedlibrary" support structures.  This isn't good, since the pointer
would become stale in almost every case (not the pre-loaded case, of
course).

Change this to malloc()ed copy of the string and finally fix the reason
that gdb -k's "sharedlibrary" command stopped working.

Obtained from: LOMAC/FreeBSD (cf. NAI Labs)

23 years agoFixed one more breakage introduced in 1.103 cleanup.
ru [Mon, 6 Aug 2001 13:03:38 +0000 (13:03 +0000)]
Fixed one more breakage introduced in 1.103 cleanup.
ICMP types were reported incorrectly:

# ipfw add allow icmp from any to any icmptypes 0,8

PR: bin/29185
Submitted by: Mike Durian <durian@boogie.com>

23 years agoMake this compile again.
dfr [Mon, 6 Aug 2001 12:52:55 +0000 (12:52 +0000)]
Make this compile again.

23 years agoRemove usage of nonexistent vm_mtx.
dfr [Mon, 6 Aug 2001 12:52:17 +0000 (12:52 +0000)]
Remove usage of nonexistent vm_mtx.

23 years agoNote that the doc collection is not branched.
nik [Mon, 6 Aug 2001 06:52:24 +0000 (06:52 +0000)]
Note that the doc collection is not branched.

23 years agoRemove the fildesc_clone() function and its associated unnecessary code.
chris [Mon, 6 Aug 2001 05:56:33 +0000 (05:56 +0000)]
Remove the fildesc_clone() function and its associated unnecessary code.
It didn't implement the proper /dev/fd functionality (which would be to
include in the directory listing /dev/fd/n if the process has fd n open)
anyway.

Anything needing access to /dev/fd/n where n > 2 can use the optional
fdescfs module, which implements this properly and does not cause any
trouble with devfs.

Discussed with: phk

23 years agoRemove old blurb about BIND being updated to 8.2.3.
dd [Mon, 6 Aug 2001 05:26:06 +0000 (05:26 +0000)]
Remove old blurb about BIND being updated to 8.2.3.

23 years agoNote MFC of BIND 8.2.4.
dd [Mon, 6 Aug 2001 05:25:15 +0000 (05:25 +0000)]
Note MFC of BIND 8.2.4.

23 years agoPut the linux compat ioctl interface on death row. Add FreeBSD
scottl [Mon, 6 Aug 2001 04:34:47 +0000 (04:34 +0000)]
Put the linux compat ioctl interface on death row.  Add FreeBSD
definitions of all of the ioctls, plus round out all ioctl definitions to
match what exists for linux.  Allow ioctls to be called through either the
native or linux interface, though no apps exist (yet) that can take
advantage of native calling.

23 years agoMissed this one in my 80-column sweep.
scottl [Mon, 6 Aug 2001 03:52:40 +0000 (03:52 +0000)]
Missed this one in my 80-column sweep.

23 years agoDon't do unsafe activities inside signal handlers. Just set a flag and
kris [Mon, 6 Aug 2001 03:19:22 +0000 (03:19 +0000)]
Don't do unsafe activities inside signal handlers.  Just set a flag and
return.

Obtained from: OpenBSD
Reviewed by: audit

23 years agoHandle dmmu protection faults as well as misses. Enable tracking of
jake [Mon, 6 Aug 2001 02:34:20 +0000 (02:34 +0000)]
Handle dmmu protection faults as well as misses.  Enable tracking of
the modify and reference tte bits.  Implementing allocating of tsb pages.
Make tsb_stte_lookup do the right thing with the kernel pmap.

23 years agoAdd page fault and high level tsb miss handlers.
jake [Mon, 6 Aug 2001 02:32:38 +0000 (02:32 +0000)]
Add page fault and high level tsb miss handlers.

23 years agoHandle switching switching mmu contexts and mapping the new primary tsb.
jake [Mon, 6 Aug 2001 02:31:30 +0000 (02:31 +0000)]
Handle switching switching mmu contexts and mapping the new primary tsb.
Rework some register usage and code placement.  Comment.

23 years agoSave the primary mmu context around calls to the prom, and install
jake [Mon, 6 Aug 2001 02:29:13 +0000 (02:29 +0000)]
Save the primary mmu context around calls to the prom, and install
nucleus context.  The prom runs at trap level 0, so there's no
implicit nucleus context and we have to force it.

23 years agoRemove some debug code.
jake [Mon, 6 Aug 2001 02:27:59 +0000 (02:27 +0000)]
Remove some debug code.

23 years agoHandle managed and unmanaged mapping better. Allocate an vm object for
jake [Mon, 6 Aug 2001 02:27:34 +0000 (02:27 +0000)]
Handle managed and unmanaged mapping better.  Allocate an vm object for
the tsb pages.

23 years agoAdd trap handlers for dmmu faults from user mode, and for faults from
jake [Mon, 6 Aug 2001 02:26:04 +0000 (02:26 +0000)]
Add trap handlers for dmmu faults from user mode, and for faults from
accessing user address space in kernel mode.

23 years agoThe kernel runs at a much lower address now.
jake [Mon, 6 Aug 2001 02:24:52 +0000 (02:24 +0000)]
The kernel runs at a much lower address now.

23 years agoFix macros for dealing with tte contexts.
jake [Mon, 6 Aug 2001 02:24:18 +0000 (02:24 +0000)]
Fix macros for dealing with tte contexts.
Add tte bits for initializing tsbs and for specifying managed mappings.

23 years agoForced commit. Last should have gone to tlb.h
jake [Mon, 6 Aug 2001 02:23:16 +0000 (02:23 +0000)]
Forced commit.  Last should have gone to tlb.h

Move the kernel and user tsb address to the end of the first 4 gigs.
Remove some stuff that's no long used.

23 years agoOops. Last commit to tsb.h should have gone here.
jake [Mon, 6 Aug 2001 02:21:53 +0000 (02:21 +0000)]
Oops. Last commit to tsb.h should have gone here.

Fix macros for eadling with tte contexts and add macros for sfsr fields.

23 years agoFix macros for setting and extracting the context field in ttes and
jake [Mon, 6 Aug 2001 02:20:36 +0000 (02:20 +0000)]
Fix macros for setting and extracting the context field in ttes and
add macros for the fields in sfsr.

23 years agoAdd a vm_object and page count to struct pmap for allocating tsb pages.
jake [Mon, 6 Aug 2001 02:19:52 +0000 (02:19 +0000)]
Add a vm_object and page count to struct pmap for allocating tsb pages.

23 years agoAdd code model medlow to cflags and move the kernel load address from
jake [Mon, 6 Aug 2001 02:18:39 +0000 (02:18 +0000)]
Add code model medlow to cflags and move the kernel load address from
just before the memory hole to 4 megs.  Special case building exception.s
like locore.s, it needs to at the beginning so the branches out from the
trap table don't overflow.

23 years agoThe Intel 440MX ACPI timer seems to work properly, so add it to the list
msmith [Sun, 5 Aug 2001 23:20:32 +0000 (23:20 +0000)]
The Intel 440MX ACPI timer seems to work properly, so add it to the list
here.  Restructure slightly so that adding more devices is easier.

Submitted by: Jose Gabriel J Marcelino <gabriel@maquina.com>

23 years ago aic7xxx.c:
gibbs [Sun, 5 Aug 2001 22:20:12 +0000 (22:20 +0000)]
  aic7xxx.c:
Correct an off by one in our critical section handling.
SEQADDR always reads the next instruction to execute,
so we must subtract one from its value before making
comparisons with entries in the critical section table.

Print a few additional registers whenever we dump
card state.

Show the SCB_CONTROL and SCB_TAG values for all pending
SCBs in card SCB ram when dumping card state.

aic7xxx.seq:
Fix a bug introduced while optimizing the SDPTR path.
We would ack the SDPTR message twice on Ultra2 or better
chips if it occurred after all data had been transferred
for a transaction.

Change our workaround for the PCI2.1 retry bug on some
chips.  Although the previous workaround was logically
correct, its faster method of draining the FIFO seemed
to occassionally confuse the FIFO state.  We now drain
the FIFO at half the speed which avoids the problem.

aic7xxx_pci.c:
Chips with the PCI 2.1 retry bug can't handle a 16byte
cachesize.  If the cachesize is set to 16bytes, drop
it to 0.

23 years agocan not -> cannot
dd [Sun, 5 Aug 2001 22:07:27 +0000 (22:07 +0000)]
can not -> cannot

23 years ago- Removed comment about ThinkPad keyboards from the PCVT line. Any ThinkPad
nate [Sun, 5 Aug 2001 21:56:11 +0000 (21:56 +0000)]
- Removed comment about ThinkPad keyboards from the PCVT line.  Any ThinkPad
  that needs this probably won't run -current, as it's at least 5 years old.

23 years agoMake the sample entries actually syntactically correct. :-/
nsayer [Sun, 5 Aug 2001 20:26:03 +0000 (20:26 +0000)]
Make the sample entries actually syntactically correct. :-/

23 years agoo Move APNIC flag from -p to -A. Since, -p is usually associated
mike [Sun, 5 Aug 2001 19:37:12 +0000 (19:37 +0000)]
o Move APNIC flag from -p to -A.  Since, -p is usually associated
  with specifying a port.
o Add the -p flag for specifying a port.  (PR: 28790)  This is
  useful for querying rwhois servers.  Example:
    whois -h rwhois.exodus.net -p rwhois 216.136.180.0
o Add the -c flag which allows one to get the same whois server
  that would normally be determined if no arguments were specified.
  (Concept based on work by phantom, requested by ache)  Example:
    whois -c ru TCNET-MNT-RIPN
o Deprecate -R flag in favour of -c ru.

PR: 28790
Reviewed by: -audit, ache, phantom

23 years agoFix a number of bugs and annoyances in fdisk, many of which were
iedowse [Sun, 5 Aug 2001 16:24:13 +0000 (16:24 +0000)]
Fix a number of bugs and annoyances in fdisk, many of which were
pointed out by bde:
- Ask for user confirmation before adjusting to a head/cylinder
  boundary (only when running interactively), and separate this
  adjustment from the automatic calculation of c/h/s parameters.
- In sanitize_partition, don't change any values in the slice until
  we know that the automatic adjustment will succeed.
- When auto-adjusting, ignore unused slices and give an appropriate
  error for other zero-size slices depending on the cause.
- Change dos() to do all of the c/h/s calculations for a whole slice;
  this fixes a bug where the ending c/h/s of an unused slice was set
  incorrectly.
- When changing the active slice, detect the currently active slice
  number instead of always defaulting to slice 4.
- Call fflush(stdout) before calling fgets().
- Test for fgets() returning NULL so we don't loop on EOF.

Reviewed by: bde

23 years agoCorrect some pastos.
dd [Sun, 5 Aug 2001 16:03:04 +0000 (16:03 +0000)]
Correct some pastos.

Submitted by: Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>

23 years agoDocument -d in usage.
dd [Sun, 5 Aug 2001 16:01:34 +0000 (16:01 +0000)]
Document -d in usage.

Submitted by: Martin Kammerhofer <mkamm@sbox.tu-graz.ac.at>

23 years agoAdd a little pizzaz to the sample entries. :-)
nsayer [Sun, 5 Aug 2001 16:00:40 +0000 (16:00 +0000)]
Add a little pizzaz to the sample entries. :-)

23 years agoAdd some sample entries to illustrate battery state monitoring.
nsayer [Sun, 5 Aug 2001 15:45:21 +0000 (15:45 +0000)]
Add some sample entries to illustrate battery state monitoring.

23 years agoDocument the two new sysctl variables introduced in rev 1.154 of tty.c.
sheldonh [Sun, 5 Aug 2001 13:14:46 +0000 (13:14 +0000)]
Document the two new sysctl variables introduced in rev 1.154 of tty.c.

23 years agoClean up previous delta:
sheldonh [Sun, 5 Aug 2001 11:15:23 +0000 (11:15 +0000)]
Clean up previous delta:

* Fix typo (defautls).
* Don't use hard sentence breaks in new text.
* Don't introduce the use of the second person (you).
* Use the standard "IMPLEMENTATION NOTES" section name instead of the
  non-standard "TUNING".

23 years agoFix logic error resulting in incorrect calculation of login time
jon [Sun, 5 Aug 2001 09:41:20 +0000 (09:41 +0000)]
Fix logic error resulting in incorrect calculation of login time

PR: bin/4204
Submitted by: Anatoly A. Orehovsky <tolik@www.tomsk.su>
MFC after: 4 weeks

23 years agoFix using /usr/bin/ftp as a slave process on the end of a pipe by calling
jon [Sun, 5 Aug 2001 08:39:58 +0000 (08:39 +0000)]
Fix using /usr/bin/ftp as a slave process on the end of a pipe by calling
fflush(stdout).  This is one ancient PR...

PR: bin/1589
Submitted by: imp

23 years agoOnce again throw out the calculation of si_iosize_max and set it to 64K.
scottl [Sun, 5 Aug 2001 07:26:31 +0000 (07:26 +0000)]
Once again throw out the calculation of si_iosize_max and set it to 64K.
Although it can go higher, it is not safe to so do on arrays with many
members.  Compromise by adding a tunable, "hw.aac.iosize_max" that can be
set at boottime.  Also document in the aac(4) manpage.

MFC after: 4 weeks

23 years agoNow that we are setting a bit in the PCIC_INT_GEN (0x3) register, we
imp [Sun, 5 Aug 2001 07:02:42 +0000 (07:02 +0000)]
Now that we are setting a bit in the PCIC_INT_GEN (0x3) register, we
can't blindly write zero into it to disable the card.  We must
preserve this bit.  This changes pcic_disable to only clear the bits
we know we need to clear on card disable, thus preserving the magic
bit for many TI bridges.

This appears to have fixed the problems that people are reporting
about the system failing to recognize cards being inserted or removed
(or both).  Greg: This may fix your problem too :-).

23 years agoOrder PCIC_INT_GEN bits large to small, like all other registers.
imp [Sun, 5 Aug 2001 06:59:32 +0000 (06:59 +0000)]
Order PCIC_INT_GEN bits large to small, like all other registers.

23 years agoBugfixes. Close a race and logic bug in the timeout handling, don't call the
scottl [Sun, 5 Aug 2001 06:20:13 +0000 (06:20 +0000)]
Bugfixes.  Close a race and logic bug in the timeout handling, don't call the
interrupt handler from the upper half, etc.  This fixes some serious stability
problems that we were seeing on our production server.  These patches have
been tested for almost 6 months and are a highly recommended MFC candidate.

Reviewed by: gibbs, merry, msmith
MFC after: 4 days

23 years agoFix a couple of copyright issues and an 80 column nit that I missed before
scottl [Sun, 5 Aug 2001 06:15:00 +0000 (06:15 +0000)]
Fix a couple of copyright issues and an 80 column nit that I missed before

23 years agovarargs -> stdarg
dd [Sun, 5 Aug 2001 05:39:16 +0000 (05:39 +0000)]
varargs -> stdarg

23 years agoAdd a missing semicolon to unbreak the kernel build with INVARIANTS
tmm [Sun, 5 Aug 2001 03:55:02 +0000 (03:55 +0000)]
Add a missing semicolon to unbreak the kernel build with INVARIANTS
(which was unfortunately turned off in the confguration I used for the
last test build).

Spotted by: jake
Pointy hat to: tmm

23 years agoSigh. Add two files needed for the sparc64 fp contect switching code
tmm [Sun, 5 Aug 2001 03:47:02 +0000 (03:47 +0000)]
Sigh. Add two files needed for the sparc64 fp contect switching code
that were forgotten in the last commit.

Pointy hat to:  tmm

23 years agoIt's bad enough to capitalize the name of the executable at the
dd [Sat, 4 Aug 2001 22:11:08 +0000 (22:11 +0000)]
It's bad enough to capitalize the name of the executable at the
beginning of the sentence, but at the very least it shouldn't be done
in the middle of a sentence!

23 years agoFix style/consistency in Makefile and repair static module building.
markm [Sat, 4 Aug 2001 21:51:14 +0000 (21:51 +0000)]
Fix style/consistency in Makefile and repair static module building.

Submitted by: bde(partially)

23 years agoDon't clobber CFLAGS
markm [Sat, 4 Aug 2001 21:49:30 +0000 (21:49 +0000)]
Don't clobber CFLAGS

Submitted by: bde

23 years agoDon't clobber CFLAGS.
markm [Sat, 4 Aug 2001 21:48:18 +0000 (21:48 +0000)]
Don't clobber CFLAGS.

Submitted by: bde

23 years agoWhitespace fixes.
jhb [Sat, 4 Aug 2001 20:49:29 +0000 (20:49 +0000)]
Whitespace fixes.

23 years agoAxe unused and invalid astpending globaldata member.
jhb [Sat, 4 Aug 2001 20:47:54 +0000 (20:47 +0000)]
Axe unused and invalid astpending globaldata member.

23 years agoAxe unused and invalid GD_ASTPENDING symbol.
jhb [Sat, 4 Aug 2001 20:46:46 +0000 (20:46 +0000)]
Axe unused and invalid GD_ASTPENDING symbol.

23 years ago- Fix a comment.
jhb [Sat, 4 Aug 2001 20:43:48 +0000 (20:43 +0000)]
- Fix a comment.
- Whitespace fixes.

Submitted by: bde

23 years agoAdd a zdestroy() function to the zone allocator. This is needed for the
tmm [Sat, 4 Aug 2001 20:17:05 +0000 (20:17 +0000)]
Add a zdestroy() function to the zone allocator. This is needed for the
unload case of modules that use their own zones.
It has been tested with the nfs module.

23 years agoAdd floating point context switching code for sparc64.
tmm [Sat, 4 Aug 2001 18:55:15 +0000 (18:55 +0000)]
Add floating point context switching code for sparc64.

Reviewed by: jake

23 years agoMake use of the new features of libdevstat to allow iostat to work on
tmm [Sat, 4 Aug 2001 18:30:54 +0000 (18:30 +0000)]
Make use of the new features of libdevstat to allow iostat to work on
crash dumps, and make it use sysctl for all data retrievals in the
"live" case (i.e. when not using iostat on a crash dump).
Remove setgid kmem for the iostat executable, it is not needed any
more after these changes.

Reviewed by: ken

23 years agoAdd some features to libdevstat, and overhaul the interface a bit:
tmm [Sat, 4 Aug 2001 18:25:48 +0000 (18:25 +0000)]
Add some features to libdevstat, and overhaul the interface a bit:

1.) prefix all functions in the library with devstat_ (compatability
    functions are available for all functions that were chaned in an
    incompatible way, but are deprecated).
2.) Add a pointer to a kvm_t as the first argument to functions that
    used to get their information via sysctl; they behave the same
    as before when NULL is passed as this argument, otherwise, the
    information is obtained via libkvm using the supplied handle.
3.) Add a new function, devstat_compute_statistics(), that is intended
    to replace the old compute_stats() function. It offers more
    statistics data, and has a more flexible interface.

libdevstat does now require libkvm; a library depedency is added, so
that libkvm only needs to be explicitely specified for statically linked
programs.
The library major version number is bumped.

Submitted by: Sergey A. Osokin <osa@freebsd.org.ru>, ken (3)
Reviewed by: ken

23 years agoExport the tk_nin and tk_nout variables (number of tty input/output
tmm [Sat, 4 Aug 2001 18:09:24 +0000 (18:09 +0000)]
Export the tk_nin and tk_nout variables (number of tty input/output
characters) as sysctls (kern.tty_nin and kern.tty_nout).

23 years agoExport the head structure for the device statistics STAILQ in
tmm [Sat, 4 Aug 2001 18:02:47 +0000 (18:02 +0000)]
Export the head structure for the device statistics STAILQ in
sys/devicestat.h, so that the queue can be walked in crashdumps using
libkvm.

23 years agoWhen running aplication joined multicast address,
ume [Sat, 4 Aug 2001 17:10:14 +0000 (17:10 +0000)]
When running aplication joined multicast address,
removing network card, and kill aplication.
imo_membership[].inm_ifp refer interface pointer
after removing interface.
When kill aplication, release socket,and imo_membership.
imo_membership use already not exist interface pointer.
Then, kernel panic.

PR: 29345
Submitted by: Inoue Yuichi <inoue@nd.net.fujitsu.co.jp>
Obtained from: KAME
MFC after: 3 days

23 years agoFix the bug where this modulke was not checking the priamry GID, only
markm [Sat, 4 Aug 2001 09:19:31 +0000 (09:19 +0000)]
Fix the bug where this modulke was not checking the priamry GID, only
the GIDS in /etc/group or NIS's group map.

Tested by: sheldonh
PR: 29349

23 years agoKill debug output for sn device. It is confusing the natives
imp [Sat, 4 Aug 2001 05:27:52 +0000 (05:27 +0000)]
Kill debug output for sn device.  It is confusing the natives

23 years agoLink to libcipher in the usual way. `bdes' depended on a nonexistent
bde [Fri, 3 Aug 2001 22:28:25 +0000 (22:28 +0000)]
Link to libcipher in the usual way.  `bdes' depended on a nonexistent
library.  This only worked because of the undocmented feature of make(1)
that targets named foo.a are always up to date.

Fixed some style bugs.

23 years agoDon't clobber the default for CFLAGS.
bde [Fri, 3 Aug 2001 21:45:54 +0000 (21:45 +0000)]
Don't clobber the default for CFLAGS.

23 years agoAdd KTR_INTR tracepoints for when clock interrupts are triggered.
jhb [Fri, 3 Aug 2001 20:54:41 +0000 (20:54 +0000)]
Add KTR_INTR tracepoints for when clock interrupts are triggered.

23 years agoWhen global anycast address was assigned to lo0, wrong source
ume [Fri, 3 Aug 2001 19:10:31 +0000 (19:10 +0000)]
When global anycast address was assigned to lo0, wrong source
address was selected.

Reported by: Shingo WATANABE <nabe@nabechan.org>
Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
MFC after: 3 days

23 years agoAnton kindly pointed out (and fixed) a bug in the Jail handling of the
rwatson [Fri, 3 Aug 2001 18:21:06 +0000 (18:21 +0000)]
Anton kindly pointed out (and fixed) a bug in the Jail handling of the
bind() call on IPv4 sockets:

  Currently, if one tries to bind a socket using INADDR_LOOPBACK inside a
  jail, it will fail because prison_ip() does not take this possibility
  into account.  On the other hand, when one tries to connect(), for
  example, to localhost, prison_remote_ip() will silently convert
  INADDR_LOOPBACK to the jail's IP address.  Therefore, it is desirable to
  make bind() to do this implicit conversion as well.

  Apart from this, the patch also replaces 0x7f000001 in
  prison_remote_ip() to a more correct INADDR_LOOPBACK.

This is a 4.4-RELEASE "during the freeze, thanks" MFC candidate.

Submitted by: Anton Berezin <tobez@FreeBSD.org>
Discussed with at some point: phk
MFC after: 3 days

23 years agoRemove dangling prototype for the now defunct procfs_kmemaccess()
rwatson [Fri, 3 Aug 2001 17:51:05 +0000 (17:51 +0000)]
Remove dangling prototype for the now defunct procfs_kmemaccess()
call.

Obtained from: TrustedBSD Project

23 years agoMFS: Avoid dropping fragments in the absence of an interface address.
dcs [Fri, 3 Aug 2001 17:36:06 +0000 (17:36 +0000)]
MFS: Avoid dropping fragments in the absence of an interface address.

Noticed by: fenner
Submitted by: iedowse
Not committed to current by: iedowse ;-)

23 years agoCollapse a Pmem case in with the other debugging files case for procfs,
rwatson [Fri, 3 Aug 2001 17:20:34 +0000 (17:20 +0000)]
Collapse a Pmem case in with the other debugging files case for procfs,
as there are now "unusual" protection properties to Pmem that differ
from the other files.  While I'm at it, introduce proc locking for
the other files, which was previously present only in the Pmem case.

Obtained from: TrustedBSD Project

23 years agoRemove read permission for group on the /proc/*/mem file, since kmem
rwatson [Fri, 3 Aug 2001 17:15:40 +0000 (17:15 +0000)]
Remove read permission for group on the /proc/*/mem file, since kmem
no longer requires access.

Reviewed by: tmm
Obtained from: TrustedBSD Project

23 years agoPrior to support for almost all ps activity via sysctl, ps used procfs,
rwatson [Fri, 3 Aug 2001 17:13:23 +0000 (17:13 +0000)]
Prior to support for almost all ps activity via sysctl, ps used procfs,
and so special-casing was introduced to provide extra procfs privilege
to the kmem group.  With the advent of non-setgid kmem ps, this code
is no longer required, and in fact, can is potentially harmful as it
allocates privilege to a gid that is increasingly less meaningful.
Knowledge of specific gid's in kernel is also generally bad precedent,
as the kernel security policy doesn't distinguish gid's specifically,
only uid 0.

This commit removes reference to kmem in procfs, both in terms of
access control decisions, and the applying of gid kmem to the
/proc/*/mem file, simplifying the associated code considerably.
Processes are still permitted to access the mem file based on
the debugging policy, so ps -e still works fine for normal
processes and use.

Reviewed by: tmm
Obtained from: TrustedBSD Project

23 years agoDon't terminate the uiomove() loop on a zero-length mbuf. It's not
fenner [Fri, 3 Aug 2001 16:51:53 +0000 (16:51 +0000)]
Don't terminate the uiomove() loop on a zero-length mbuf.  It's not
 particularly nice that IPSEC inserts a zero-length mbuf into the
 chain, and that bug should be fixed too, but interfaces should be
 robust to bad input.
Print the interface name when TUNDEBUG()ing about dropping an mbuf.

23 years agoConvert to using the same method of detecting the secure directory as other
gshapiro [Fri, 3 Aug 2001 16:22:47 +0000 (16:22 +0000)]
Convert to using the same method of detecting the secure directory as other
usr.sbin programs.

Noted by: markm

23 years agoRevamp and diff-reduce the various secure telnets. Make sure that
markm [Fri, 3 Aug 2001 16:03:26 +0000 (16:03 +0000)]
Revamp and diff-reduce the various secure telnets. Make sure that
Kerberos5 has _a_ telnet (which is not currently K5 enabled).
Incorporate BDE's static linking fixes.

23 years agoNote MFC of file 3.36.
dd [Fri, 3 Aug 2001 12:31:43 +0000 (12:31 +0000)]
Note MFC of file 3.36.