]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoshow maxmtu.
ume [Fri, 24 Oct 2003 18:00:17 +0000 (18:00 +0000)]
show maxmtu.

Obtained from: KAME

20 years agoSince dp->dom_ifattach calls malloc() with M_WAITOK, we cannot
ume [Fri, 24 Oct 2003 16:57:59 +0000 (16:57 +0000)]
Since dp->dom_ifattach calls malloc() with M_WAITOK, we cannot
use mutex lock directly here.  Protect ifp->if_afdata instead.

Reported by: grehan

20 years agoSysctl names should not contain dots. Convert them to underlines.
harti [Fri, 24 Oct 2003 16:44:27 +0000 (16:44 +0000)]
Sysctl names should not contain dots. Convert them to underlines.

20 years agoAdd dumb console driver and related bits.
simokawa [Fri, 24 Oct 2003 15:44:10 +0000 (15:44 +0000)]
Add dumb console driver and related bits.

dcons(4): very simple console and gdb port driver
dcons_crom(4): FireWire attachment
dconschat(8): User interface to dcons

Tested with: i386, i386-PAE, and sparc64.

20 years agoMdoc Janitor:
hmp [Fri, 24 Oct 2003 15:42:38 +0000 (15:42 +0000)]
Mdoc Janitor:

  * Use uppercase for .Dt macro arguments.

  * Use 'manual' instead of 'man' for consistency.

20 years agoFix for FW_ASYREQ.
simokawa [Fri, 24 Oct 2003 13:55:51 +0000 (13:55 +0000)]
Fix for FW_ASYREQ.
- set send.pay_len correctly.
- copy response only if needed.
- remove unnecessary 'err = 0'.

20 years agoMention the fact that our crontab is not fully POSIX.2 conform, because
harti [Fri, 24 Oct 2003 13:02:39 +0000 (13:02 +0000)]
Mention the fact that our crontab is not fully POSIX.2 conform, because
it doesn't allow the dangerous variant of calling it without any
argument.

20 years agoAllow nghook to execute a program with the data socket connected to
harti [Fri, 24 Oct 2003 10:01:36 +0000 (10:01 +0000)]
Allow nghook to execute a program with the data socket connected to
stdin and stdout instead of relaying the data. Now it is possible
to say:

nghook -e path: hook /usr/local/bin/foo arg1 arg2

and foo will have the hook to path: at file descriptors 0 and 1.

Add an option to specify control messages to be send to the node before
either executing the program or entering the data relay loop.

20 years agoDon't check timeout just after booted.
simokawa [Fri, 24 Oct 2003 07:42:21 +0000 (07:42 +0000)]
Don't check timeout just after booted.
Some transactions could be considered wrongly to be timeout
bacause interrupts are disabled during boot process.

20 years agoModule build infrastructure for the NgATM SAA layer.
harti [Fri, 24 Oct 2003 07:42:08 +0000 (07:42 +0000)]
Module build infrastructure for the NgATM SAA layer.

20 years agoNetgraph part of the NgATM signalling AA layer. These nodes can
harti [Fri, 24 Oct 2003 07:39:11 +0000 (07:39 +0000)]
Netgraph part of the NgATM signalling AA layer. These nodes can
also be used as a general-purpose transport protocol above any
packet layer (IP, UDP).

20 years agoBackswards is as backwards does: If we're MPSAFE, then we don't need
imp [Fri, 24 Oct 2003 07:20:13 +0000 (07:20 +0000)]
Backswards is as backwards does: If we're MPSAFE, then we don't need
giant, which implies that we need to take out giant it we're NOT
MPSAFE.

# I can't believe the number of people that looked at this failed to
# detect this.

20 years agoRemove unused header. See also ia64/disasm/disasm.h.
marcel [Fri, 24 Oct 2003 06:53:43 +0000 (06:53 +0000)]
Remove unused header. See also ia64/disasm/disasm.h.

20 years agostyle.
ume [Fri, 24 Oct 2003 06:53:12 +0000 (06:53 +0000)]
style.

Reported by: bde

20 years agoRemove ia64_pack_bundle() and ia64_unpack_bundle(). They are not
marcel [Fri, 24 Oct 2003 06:52:21 +0000 (06:52 +0000)]
Remove ia64_pack_bundle() and ia64_unpack_bundle(). They are not
used anymore.

20 years agoRemove unused file. db_disasm() has been implemented in db_interface.c
marcel [Fri, 24 Oct 2003 06:48:41 +0000 (06:48 +0000)]
Remove unused file. db_disasm() has been implemented in db_interface.c
now.

20 years ago - Push down Giant from vm_pageout() to vm_pageout_scan(), freeing
alc [Fri, 24 Oct 2003 06:43:04 +0000 (06:43 +0000)]
 - Push down Giant from vm_pageout() to vm_pageout_scan(), freeing
   vm_pageout_page_stats() from Giant.
 - Modify vm_pager_put_pages() and vm_pager_page_unswapped() to expect the
   vm object to be locked on entry.  (All of the pager routines now expect
   this.)

20 years agoImplement db_disasm() by using the new disassembler. Temporarily
marcel [Fri, 24 Oct 2003 06:42:03 +0000 (06:42 +0000)]
Implement db_disasm() by using the new disassembler. Temporarily
unimplement db_write_breakpoint() and db_clear_breakpoint().

20 years agoReduce the number of tcp time_wait structs to maxsockets / 5; this ensures
silby [Fri, 24 Oct 2003 05:44:14 +0000 (05:44 +0000)]
Reduce the number of tcp time_wait structs to maxsockets / 5; this ensures
that at most 20% of sockets can be in time_wait at one time, ensuring
that time_wait sockets do not starve real connections from inpcb
structures.

No implementation change is needed, jlemon already implemented a nice
LRU-ish algorithm for tcp_tw structure recycling.

This should reduce the need for sysadmins to lower the default msl on
busy servers.

20 years agoUse a TR of size 1 << IA64_ID_PAGE_SHIFT instead of 16M to avoid
arun [Fri, 24 Oct 2003 04:56:58 +0000 (04:56 +0000)]
Use a TR of size 1 << IA64_ID_PAGE_SHIFT instead of 16M to avoid
overlapping TR/TC entries (which results in a machine check). Note
that we don't look at the size of the memory descriptor, because
it doesn't guarantee non-overlap.

With this change, a UP kernel could boot on a Intel Tiger4 machine
with the following options:

options         LOG2_ID_PAGE_SIZE=26 # 64M
options         LOG2_PAGE_SIZE=14               # 16K

Approved by: marcel

20 years agooops, EAI_NONAME is not EAINONAME.
ume [Fri, 24 Oct 2003 03:49:38 +0000 (03:49 +0000)]
oops, EAI_NONAME is not EAINONAME.

20 years agoAdd __va_copy and make it always visible, in spite of the __ISO_C_VISIBLE
peter [Fri, 24 Oct 2003 02:50:39 +0000 (02:50 +0000)]
Add __va_copy and make it always visible, in spite of the __ISO_C_VISIBLE
setting.  Make va_copy be an alias if __ISO_C_VISIBLE >= 1999.

Why?  more than a few ports have an autoconf that looks for __va_copy
because it is available on glibc.  It is critical that we use it if
at all possible on amd64.  It generally isn't a problem for i386 and its
ilk because autoconf driven code tends to fall back to an assignment.

20 years agoDon't use fuword() or suword() unconditionally. They explicitly
marcel [Fri, 24 Oct 2003 02:33:26 +0000 (02:33 +0000)]
Don't use fuword() or suword() unconditionally. They explicitly
disallow reading or writing.

20 years agoRemove two unused fields in the operand structure (o_read & o_write).
marcel [Fri, 24 Oct 2003 02:05:53 +0000 (02:05 +0000)]
Remove two unused fields in the operand structure (o_read & o_write).

20 years agoUpdate to latest from DRI CVS. Primary new feature is mostly-complete smpng
anholt [Fri, 24 Oct 2003 01:48:17 +0000 (01:48 +0000)]
Update to latest from DRI CVS.  Primary new feature is mostly-complete smpng
locking, and the apparently unnecessary locking for -stable has been removed.
This may fix issues with missed interrupts since April, which manifested
themselves as slowdowns or hangs in radeon, in particular. Many cleanups also
took place.  In the shared code, there are improvements to r128 driver
stability.

20 years agoo restructure initialization code so data structures are setup
sam [Fri, 24 Oct 2003 00:09:18 +0000 (00:09 +0000)]
o restructure initialization code so data structures are setup
  when loaded as a module
o cleanup data structures on module unload when no application has
  been started (i.e. kldload, kldunload w/o mrtd)
o remove extraneous unlocks immediately prior to destroying them

Supported by: FreeBSD Foundation

20 years agocheck return result from rtalloc1 before invoking RTUNLOCK
sam [Thu, 23 Oct 2003 21:41:00 +0000 (21:41 +0000)]
check return result from rtalloc1 before invoking RTUNLOCK

20 years agoWrites to p_flag in __setugid() no longer need Giant.
jhb [Thu, 23 Oct 2003 21:20:34 +0000 (21:20 +0000)]
Writes to p_flag in __setugid() no longer need Giant.

20 years agoMove the P_COWINPROGRESS flag from being a per-process p_flag to being a
jhb [Thu, 23 Oct 2003 21:14:08 +0000 (21:14 +0000)]
Move the P_COWINPROGRESS flag from being a per-process p_flag to being a
per-thread td_pflag which doesn't require any locks to read or write as it
is only read or written by curthread on itself.

Glanced at by: mckusick

20 years agoAdd appropriate const poisoning to the assert_*locked() family so that I can
wollman [Thu, 23 Oct 2003 18:17:36 +0000 (18:17 +0000)]
Add appropriate const poisoning to the assert_*locked() family so that I can
call ASSERT_VOP_LOCKED(vp, __func__) without a diagnostic.

Inspired by: the evil and rude OpenAFS cache manager code

20 years agoAdd simple support for AGP 3.0 including enabling 8x mode. The simple
jhb [Thu, 23 Oct 2003 18:08:56 +0000 (18:08 +0000)]
Add simple support for AGP 3.0 including enabling 8x mode.  The simple
part of the support is that it still assumes one master and one target
where as AGP 3.0 actually supports multiple devices on the bus.

Submitted by: Keith Whitwell <keith@tungstengraphics.com>
Sponsored by: The Weather Channel

20 years agoworkaround to have backward compatibility for EAI_NODATA.
ume [Thu, 23 Oct 2003 17:54:17 +0000 (17:54 +0000)]
workaround to have backward compatibility for EAI_NODATA.
it will be removed on 23 Apr 2004.

Submitted by: terry

20 years agoRemove unnecessary casts to (caddr_t) for if_broadcastaddr.
imp [Thu, 23 Oct 2003 17:48:53 +0000 (17:48 +0000)]
Remove unnecessary casts to (caddr_t) for if_broadcastaddr.

20 years agoUse a switch statement on the devid instead of if-else for determing which
jhb [Thu, 23 Oct 2003 17:48:30 +0000 (17:48 +0000)]
Use a switch statement on the devid instead of if-else for determing which
code to use to see if the onboard video has been disabled or not.

Submitted by: Keith Whitwell <keith@tungstengraphics.com>

20 years agoRemove unnecessary (caddr_t) casts of if_broadcastaddr.
imp [Thu, 23 Oct 2003 17:47:55 +0000 (17:47 +0000)]
Remove unnecessary (caddr_t) casts of if_broadcastaddr.

20 years ago- style
ume [Thu, 23 Oct 2003 17:36:29 +0000 (17:36 +0000)]
- style
- index() -> strchr()
- stop use of MAXHOSTNAMELEN

Obtained from: KAME

20 years agoConst poison crc routines (why these aren't centralized, I'm not sure).
imp [Thu, 23 Oct 2003 16:57:38 +0000 (16:57 +0000)]
Const poison crc routines (why these aren't centralized, I'm not sure).

20 years agoConst poison the crc calcuation routines so const data can be sent to
imp [Thu, 23 Oct 2003 16:55:27 +0000 (16:55 +0000)]
Const poison the crc calcuation routines so const data can be sent to
it.

20 years agoUse IF_MAXUNIT instead of rolling our own identical TUN_MAXUNIT.
brooks [Thu, 23 Oct 2003 16:29:20 +0000 (16:29 +0000)]
Use IF_MAXUNIT instead of rolling our own identical TUN_MAXUNIT.

20 years agooops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.
ume [Thu, 23 Oct 2003 16:11:46 +0000 (16:11 +0000)]
oops, I forget to diable EAI_ADDRFAMILY and EAI_NODATA.

20 years agoFix several old bugs which got worse over time:
trhodes [Thu, 23 Oct 2003 16:09:20 +0000 (16:09 +0000)]
Fix several old bugs which got worse over time:

o WARNS should be WARNS?= (broke in rev 1.21).
o Includes should be sorted.
o Move "mntopt.h" out of the standard includes section.
o Rewrite usage() to match the manual page and make it < 80 characters.
o Remove extra .El call on line 187.  It is unused and causes mdoc(7) warnings.

Discussed with: bde

20 years agoMerge from p4 (noticed these changes with DES' if_ethersubr.c changes caused
imp [Thu, 23 Oct 2003 15:09:34 +0000 (15:09 +0000)]
Merge from p4 (noticed these changes with DES' if_ethersubr.c changes caused
a minor conflict):
o Use ETHER_ADDR_LEN in preference to '6'.
o Remove two unnecessary (caddr_t) casts.  One of them causes problems in
  my tree where etherbroadcastaddr is const, and (caddr_t) casts the const
  away.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 14:32:23 +0000 (14:32 +0000)]
Mdoc Janitor:

  * Add a forgotten .An macro for 'Jeroen Ruigrok van der Werven'.

Noticed by: simon@

20 years agoreorder functions to be in sync with KAME.
ume [Thu, 23 Oct 2003 14:32:03 +0000 (14:32 +0000)]
reorder functions to be in sync with KAME.

20 years agoEAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493
ume [Thu, 23 Oct 2003 13:55:36 +0000 (13:55 +0000)]
EAI_ADDRFAMILY and EAI_NODATA was deprecated in RFC3493
(aka RFC2553bis).  Now, getaddrinfo(3) returns EAI_NONAME
instead of EAI_NODATA.  Our getaddrinfo(3) nor getnameinfo(3)
didn't use EAI_ADDRFAMILY.

Obtained from: KAME

20 years agoPrint the correct ICMP statistics for "no return routes".
ru [Thu, 23 Oct 2003 13:53:19 +0000 (13:53 +0000)]
Print the correct ICMP statistics for "no return routes".

20 years agopreparation for RFC3493. EAI_NODATA was deprecated.
ume [Thu, 23 Oct 2003 13:50:01 +0000 (13:50 +0000)]
preparation for RFC3493.  EAI_NODATA was deprecated.

20 years agoClean up whitespace, remove "register" keyword, ANSIfy.
des [Thu, 23 Oct 2003 13:49:10 +0000 (13:49 +0000)]
Clean up whitespace, remove "register" keyword, ANSIfy.
No functional changes.

20 years ago0x7FFFFFFFFF is >32 bits and needs an explicit LL.
des [Thu, 23 Oct 2003 13:42:03 +0000 (13:42 +0000)]
0x7FFFFFFFFF is >32 bits and needs an explicit LL.

20 years agoPlug a memory leak in the PAM child process. It is of no great consequence
des [Thu, 23 Oct 2003 08:27:16 +0000 (08:27 +0000)]
Plug a memory leak in the PAM child process.  It is of no great consequence
as the process is short-lived, and the leak occurs very rarely and always
shortly before the process terminates.

MFC after: 3 days

20 years agoConnect fabsl.c to the build.
des [Thu, 23 Oct 2003 08:23:51 +0000 (08:23 +0000)]
Connect fabsl.c to the build.

20 years agoAdd prototypes for all long double functions in C99. Leave them all
des [Thu, 23 Oct 2003 08:23:38 +0000 (08:23 +0000)]
Add prototypes for all long double functions in C99.  Leave them all
#if 0'd out, except for fabsl(3) which I've implemented.

20 years agoImplement fabsl(3), allowing the world to build with -fno-builtin.
des [Thu, 23 Oct 2003 08:20:47 +0000 (08:20 +0000)]
Implement fabsl(3), allowing the world to build with -fno-builtin.

20 years agoCleanup. Remove the md_flags for threads. It's not used. The flags
marcel [Thu, 23 Oct 2003 06:41:59 +0000 (06:41 +0000)]
Cleanup. Remove the md_flags for threads. It's not used. The flags
we had were bogus.
While here, reassign the copyright to the Project. There's nothing
in this files that originates from NetBSD, especially now that the
FreeBSD/alpha bits have been removed, but even then the amount of
inherited code that we actually used was nil.

20 years agoReimplement unaligned_fixup() using the new disassembler and a
marcel [Thu, 23 Oct 2003 06:32:34 +0000 (06:32 +0000)]
Reimplement unaligned_fixup() using the new disassembler and a
mcontext_t for the register values. Currently only ld8 and ldfd
instructions are handled as those are the ones we need now (a
misaligned ld8 occurs 4 times in ntpd(8) and a misaligned ldfd
occurs once in mozilla 1.4 and 1.5). Other instructions are added
when needed.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 06:24:55 +0000 (06:24 +0000)]
Mdoc Janitor:

  * Use 'manual' instead of 'man' for consistency.

20 years agoRemove unused include of <machine/inst.h>
marcel [Thu, 23 Oct 2003 06:23:55 +0000 (06:23 +0000)]
Remove unused include of <machine/inst.h>

20 years agoRemove prototype of unaligned_fixup() and fix a nearby style(9)
marcel [Thu, 23 Oct 2003 06:21:44 +0000 (06:21 +0000)]
Remove prototype of unaligned_fixup() and fix a nearby style(9)
bug.

20 years agoAdd prototypes for spillfd() and unaligned_fixup().
marcel [Thu, 23 Oct 2003 06:20:38 +0000 (06:20 +0000)]
Add prototypes for spillfd() and unaligned_fixup().

20 years agoAdd spillfd(). This function loads a double-precision FP register
marcel [Thu, 23 Oct 2003 06:19:06 +0000 (06:19 +0000)]
Add spillfd(). This function loads a double-precision FP register
at the first address and spills it to the second address. This
allows unaligned_fixup() to update the context of the process in
a way that assures proper rounding.
Similar functions for single-and extended-precision are added when
needed.

20 years agoUse amd64_set_fsbase() instead of calling sysarch() directly.
peter [Thu, 23 Oct 2003 06:12:57 +0000 (06:12 +0000)]
Use amd64_set_fsbase() instead of calling sysarch() directly.

20 years agoHook-up the new disassembler.
marcel [Thu, 23 Oct 2003 06:11:37 +0000 (06:11 +0000)]
Hook-up the new disassembler.

20 years agoAdd implementations of amd64_[gs]et_[fg]sbase().
peter [Thu, 23 Oct 2003 06:07:09 +0000 (06:07 +0000)]
Add implementations of amd64_[gs]et_[fg]sbase().

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 06:06:33 +0000 (06:06 +0000)]
Mdoc Janitor:

  * Uppercase the .Dt command contents.

  * Remove incorrect usage of .Fa.

  * Use .Va for struct members, and .Vt for structs
    (correct replacement for .Fa)

  * Markup VM_* and MAP_* macros with .Dv command.

  * Replace 'man' with 'manual' for consistency.

20 years agoUse a more robust API altogether for the amd64_get_fsbase() etc functions.
peter [Thu, 23 Oct 2003 06:06:14 +0000 (06:06 +0000)]
Use a more robust API altogether for the amd64_get_fsbase() etc functions.

20 years agoAdd a new disassembler that improves over the previous disassembler
marcel [Thu, 23 Oct 2003 06:01:52 +0000 (06:01 +0000)]
Add a new disassembler that improves over the previous disassembler
in that it provides an abstract (intermediate) representation for
instructions. This significantly improves working with instructions
such as emulation of instructions that are not implemented by the
hardware (e.g. long branch) or enhancing implemented instructions
(e.g. handling of misaligned memory accesses). Not to mention that
it's much easier to print instructions.

Functions are included that provide a textual representation for
opcodes, completers and operands.

The disassembler supports all ia64 instructions defined by revision
2.1 of the SDM (Oct 2002).

20 years agoLook at the equipment list for amd64 as well as i386 for autodetecting
peter [Thu, 23 Oct 2003 05:52:52 +0000 (05:52 +0000)]
Look at the equipment list for amd64 as well as i386 for autodetecting
floppy drives in the absence of hints.

20 years agoCorrect #include file in SYNOPSIS:
hmp [Thu, 23 Oct 2003 05:47:38 +0000 (05:47 +0000)]
Correct #include file in SYNOPSIS:

    It is not sys/geom_disk.h, but located under geom/ directory,
    so, mark it geom/geom_disk.h.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 05:41:05 +0000 (05:41 +0000)]
Mdoc Janitor:

  * Uppercase .Dt command contents.

  * Make use of .Fo and .Fc for marking up functions with
    a lot of arguments.

    NOTE: Please do not use the `\' line seperator for mdoc(7)
    manual pages, as it has problems of its own on some displays;
    instead, consult the mdoc(7) manual on using .Fo and .Fc.

  * Change 'man' to 'manual' for consistency.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 05:34:13 +0000 (05:34 +0000)]
Mdoc Janitor:

  * Use the .Sx command for referencing sections.

20 years agoFix mismerge from one tree to another: add (
imp [Thu, 23 Oct 2003 05:33:53 +0000 (05:33 +0000)]
Fix mismerge from one tree to another: add (

20 years agoRenumber the sysarch vectors for amd64 specific syscalls so that I can
peter [Thu, 23 Oct 2003 05:31:23 +0000 (05:31 +0000)]
Renumber the sysarch vectors for amd64 specific syscalls so that I can
implement i386 compat numbers where it makes sense.  This would save a
syscall translation layer.  Yes, this breaks the abi slightly again, but
fortunately its just a recompile rather than tweaking the source.  I will
be fixing the libc stubs while I'm here.

20 years agoAdd a GEOM(4) MLINK.
hmp [Thu, 23 Oct 2003 05:27:38 +0000 (05:27 +0000)]
Add a GEOM(4) MLINK.

20 years agoAdd a PAE(4) MLINK for simplicity.
hmp [Thu, 23 Oct 2003 05:26:44 +0000 (05:26 +0000)]
Add a PAE(4) MLINK for simplicity.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 05:01:30 +0000 (05:01 +0000)]
Mdoc Janitor:

  * Add .Vt in the right places, transform some .Fa to .Vt, depending
    on discussion context.

  * When refering to the function malloc(), use .Fn, and not .Xr.

  * Add `The' to prefix a sentence when describing a function, so
    it results in ``The xxx() function..."

  * Use `system call' instead of `syscall'.

  * Improve the sentence which discusses accept_filt_generic_mod_event();
    Talk about moduledata_t, and refer to the DECLARE_MODULE(9) manual
    page.

  * Properly markup .An (Author Name) throughout the AUTHORS section.

20 years agomore unused item cleanup
imp [Thu, 23 Oct 2003 04:53:33 +0000 (04:53 +0000)]
more unused item cleanup

20 years agoBASE is no longer used, and is an appendix. Remove it.
imp [Thu, 23 Oct 2003 04:50:35 +0000 (04:50 +0000)]
BASE is no longer used, and is an appendix.  Remove it.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 03:52:07 +0000 (03:52 +0000)]
Mdoc Janitor:

  * Make use of .Xr for vput() and vrele() functions.

  * Reword (s/man/manual) in AUTHORS section.

20 years agoLearn basic C.
imp [Thu, 23 Oct 2003 03:42:47 +0000 (03:42 +0000)]
Learn basic C.
((uint32_t *) v) + 10 != ((caddr_t) v) + 10
so apply the cast later.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 03:14:21 +0000 (03:14 +0000)]
Mdoc Janitor:

  * Remove first person sentence start.

  * Make use of .Dv for LEASE_READ and LEASE_WRITE.

  * Move the LOCKS section below the standard mdoc(7) RETURN VALUES
    section.

  * Cleanup grammar for RETURN VALUES and AUTHORS section.

  * Remove redundant sentence on return values.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 03:07:56 +0000 (03:07 +0000)]
Mdoc Janitor:

  * Make use of .Sq mdoc command.

  * Add a .Pp for separating VOP_RECLAIM text from VOP_INACTIVE

  * Make use of .Fa for the vnode pointer function arg.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 02:33:03 +0000 (02:33 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 02:22:07 +0000 (02:22 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 02:15:46 +0000 (02:15 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 02:11:14 +0000 (02:11 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks in VFS_*(9) and VOP_*(9) manual pages.

20 years agoReduce debug messages.
simokawa [Thu, 23 Oct 2003 01:55:03 +0000 (01:55 +0000)]
Reduce debug messages.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 01:54:06 +0000 (01:54 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

  * NOTE: devstat(9) requires more mdoc(7) work.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 01:31:25 +0000 (01:31 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

  * Correct use of a period in DELAY(9).

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 01:14:18 +0000 (01:14 +0000)]
Mdoc Janitor:

  * Fix hard sentence breaks.

20 years agoMdoc Janitor:
hmp [Thu, 23 Oct 2003 01:08:38 +0000 (01:08 +0000)]
Mdoc Janitor:

  * Remove hard sentence breaks from last commit to this file.

20 years agoAllow access to the field if it is within the region size rounded up
njl [Wed, 22 Oct 2003 22:30:57 +0000 (22:30 +0000)]
Allow access to the field if it is within the region size rounded up
to a multiple of the access byte width.  This overcomes errors in the
AML often found in Toshiba laptops.  These errors were allowed by
the Microsoft ASL compiler and interpreter.  This will NOT be imported
by ACPI-CA so make the change on our local branch.  File was already off
the vendor branch.

Submitted by: blaz
Original idea: Rick Richardson for Linux

20 years agoAdd the ACPICA_PEDANTIC option which is off by default. Enabling it will
njl [Wed, 22 Oct 2003 22:27:49 +0000 (22:27 +0000)]
Add the ACPICA_PEDANTIC option which is off by default.  Enabling it will
enable strict checks of the AML.  Our default behavior will be to relax
checks to work on as many platforms as possible.  Also clean up and document
other ACPI options while I'm here.

20 years agomac_Finish break-out of kern_mac.c into parts:
rwatson [Wed, 22 Oct 2003 20:59:31 +0000 (20:59 +0000)]
mac_Finish break-out of kern_mac.c into parts:

  Include src/sys/security/mac/mac_internal.h in kern_mac.c.

  Remove redundant defines from the include: SYSCTL_DECL(), debug macros,
    composition macros.

  Unstaticize various bits now exposed to the remainder of the kernel:
    mac_init_label(), mac_destroy_label().

  Remove all the functions now implemented in mac_process/mac_vfs/mac_net/
    mac_pipe.  Also remove debug counters, sysctls exporting debug
    counters, enforcement flags, sysctls exporting enforcement flags.

  Leave module declaration, sysctl nodes, mactemp malloc type, system
    calls.

This should conclude MAC/LINT/NOTES breakage from the break-out process,
but I'm running builds now to make sure I caught everything.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoMove prototypes into their function.
trhodes [Wed, 22 Oct 2003 20:58:57 +0000 (20:58 +0000)]
Move prototypes into their function.

20 years agoVariable cleanup following break-out of kern_mac.c into sys/security/mac:
rwatson [Wed, 22 Oct 2003 20:47:41 +0000 (20:47 +0000)]
Variable cleanup following break-out of kern_mac.c into sys/security/mac:

  Unstaticize mac_late.
  Remove ea_warn_once, now in mac_vfs.c.
  Unstaticisize mac_policy_list, mac_static_policy_list, use
    struct mac_policy_list_head instead of LIST_HEAD() directly.
  Unstaticize and un-inline MAC policy locking functions so they can
    be referenced from mac_*.c.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoRename error_select() to mac_error_select(), and unstaticize so it
rwatson [Wed, 22 Oct 2003 20:42:22 +0000 (20:42 +0000)]
Rename error_select() to mac_error_select(), and unstaticize so it
can be used from src/sys/security/mac/mac_*.c.

Obtained from: TrustedBSD Project
Sponosred by: DARPA, Network Associates Laboratories

20 years agoHook up to the build for options MAC:
rwatson [Wed, 22 Oct 2003 20:39:33 +0000 (20:39 +0000)]
Hook up to the build for options MAC:

security/mac/mac_net.c
security/mac/mac_pipe.c
security/mac/mac_process.c
security/mac/mac_system.c
security/mac/mac_vfs.c

Note: Here begins a period of NOTES/LINT build breakage due to duplicate
symbols that will shortly be removed from kern_mac.c.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoRemove non-VFS related code from mac_vfs.c. Leave:
rwatson [Wed, 22 Oct 2003 20:29:41 +0000 (20:29 +0000)]
Remove non-VFS related code from mac_vfs.c.  Leave:

  Extended attribute transaction warning flag if transactions aren't
  supported on the EA implementation being used.

  Debug fallback flag to permit a less conservative fallback if reading
  an on-disk label fails.

  Enforce_fs toggle to enforce file systme access control.

  Debugging counters for file system objects: mounts, vnodes, devfs_dirents.

  Object initialization, destruction, copying, internalization,
  externalization, relabeling for file system objects.

  Life cycle operations for devfs entries.

  Generic extended attribute label implementation for use by UFS, UFS2 in
  multilabel mode.

  Generic single-level label implementation for use by all file systems
  when in singlelabel mode.

  Exec-time transition based on file label entry points.

  Vnode operation access control checks (many).

  Mount operation access control checks (few).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoFix a braino memory leak.
phk [Wed, 22 Oct 2003 20:28:46 +0000 (20:28 +0000)]
Fix a braino memory leak.

Found by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>

20 years agoMake WARNS=2 build without error.
trhodes [Wed, 22 Oct 2003 20:11:42 +0000 (20:11 +0000)]
Make WARNS=2 build without error.