]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoWhite space nit the crept in during merge.
Robert Watson [Mon, 21 Oct 2002 17:01:30 +0000 (17:01 +0000)]
White space nit the crept in during merge.

21 years agoSince the Biba and MLS access checks are identical to the open checks,
Robert Watson [Mon, 21 Oct 2002 16:39:12 +0000 (16:39 +0000)]
Since the Biba and MLS access checks are identical to the open checks,
collapse the two cases more cleanly: rather than wrapping an access
check around open, simply provide the open implementation for the
access vector entry.  No functional change.

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

21 years agoCleanup of relabel authorization checks -- almost identical logic,
Robert Watson [Mon, 21 Oct 2002 16:35:54 +0000 (16:35 +0000)]
Cleanup of relabel authorization checks -- almost identical logic,
we just break out some of the tests better.  Minor change in that
we now better support incremental update of labels.

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

21 years ago- Abort all OCBs for timeout.
Hidetoshi Shimokawa [Mon, 21 Oct 2002 15:36:59 +0000 (15:36 +0000)]
- Abort all OCBs for timeout.
- Improve warning message.

21 years agoUse if_printf() instead of printf() to print diagnositic messages in the
Brooks Davis [Mon, 21 Oct 2002 14:38:28 +0000 (14:38 +0000)]
Use if_printf() instead of printf() to print diagnositic messages in the
form "rdp#: blah".

21 years agoUse if_printf(ifp, "blah") instead of
Brooks Davis [Mon, 21 Oct 2002 14:37:31 +0000 (14:37 +0000)]
Use if_printf(ifp, "blah") instead of
printf("%s%d: blah", ifp->if_name, ifp->if_unit).

21 years agoMake floppy-making part of release.9 conditional on *BOOTSIZE
Ruslan Ermilov [Mon, 21 Oct 2002 14:21:08 +0000 (14:21 +0000)]
Make floppy-making part of release.9 conditional on *BOOTSIZE
rather than on "pc98" (rev. 1.710) and "sparc64" (rev. 1.711).

21 years agoReplace in_pcbladdr() with a more generic inner subroutine for
Ian Dowse [Mon, 21 Oct 2002 13:55:50 +0000 (13:55 +0000)]
Replace in_pcbladdr() with a more generic inner subroutine for
in_pcbconnect() called in_pcbconnect_setup(). This version performs
all of the functions of in_pcbconnect() except for the final
committing of changes to the PCB. In the case of an EADDRINUSE error
it can also provide to the caller the PCB of the duplicate connection,
avoiding an extra in_pcblookup_hash() lookup in tcp_connect().

This change will allow the "temporary connect" hack in udp_output()
to be removed and is part of the preparation for adding the
IP_SENDSRCADDR control message.

Discussed on: -net
Approved by: re

21 years agoAdd a bus_space_unmap() for the puc (and possibly other) drivers.
Andrew Gallatin [Mon, 21 Oct 2002 13:48:29 +0000 (13:48 +0000)]
Add a bus_space_unmap() for the puc (and possibly other) drivers.

21 years agoAdd some documentation of FreeBSD's special synchronization quirks
Andrew Gallatin [Mon, 21 Oct 2002 12:54:13 +0000 (12:54 +0000)]
Add some documentation of FreeBSD's special synchronization quirks
which may surprise developers coming from Solaris, or other platforms
which have a similar interface, but slightly different rules.

Reviewed by: jhb, ru

21 years agoA better version of disabling SGR support in grotty(1).
Ruslan Ermilov [Mon, 21 Oct 2002 12:29:57 +0000 (12:29 +0000)]
A better version of disabling SGR support in grotty(1).

21 years agoFix LSRR option length check: it has to be less or equal remained header's
Maxim Konovalov [Mon, 21 Oct 2002 11:43:46 +0000 (11:43 +0000)]
Fix LSRR option length check: it has to be less or equal remained header's
length minus sizeof(struct ip).

MFC after: 1 week

21 years agoUpdate comment to note that the third floppy (for modules) has been
Murray Stokely [Mon, 21 Oct 2002 10:53:35 +0000 (10:53 +0000)]
Update comment to note that the third floppy (for modules) has been
implemented.  Add a note reminding developers to update drivers.conf.5
if they add new functionality here.

21 years agoNote that support for the third 'drivers floppy' has been implemented.
Murray Stokely [Mon, 21 Oct 2002 10:48:19 +0000 (10:48 +0000)]
Note that support for the third 'drivers floppy' has been implemented.
Also point to the AWK scripts instead of the older Perl ones, now that
they've been rewritten.

21 years agofix prototype of asyreqq().
Hidetoshi Shimokawa [Mon, 21 Oct 2002 10:21:49 +0000 (10:21 +0000)]
fix prototype of asyreqq().

21 years agoThese (userland) files shouldn't be here.
Hidetoshi Shimokawa [Mon, 21 Oct 2002 10:14:26 +0000 (10:14 +0000)]
These (userland) files shouldn't be here.

21 years agoRemove old build glue for removed games.
Mark Murray [Mon, 21 Oct 2002 10:05:14 +0000 (10:05 +0000)]
Remove old build glue for removed games.

21 years agoMove more games stuff to the attic.
Mark Murray [Mon, 21 Oct 2002 07:50:38 +0000 (07:50 +0000)]
Move more games stuff to the attic.

21 years agoGrammar nits.
Ruslan Ermilov [Mon, 21 Oct 2002 07:44:42 +0000 (07:44 +0000)]
Grammar nits.

Submitted by: Ken Stailey <kstailey@speakeasy.net>

21 years agoDeorbit complete. We dont build these anymore, so into the attic they go.
Mark Murray [Mon, 21 Oct 2002 07:40:27 +0000 (07:40 +0000)]
Deorbit complete. We dont build these anymore, so into the attic they go.

21 years agoTrack changed definition of the debug registers.
Poul-Henning Kamp [Mon, 21 Oct 2002 05:33:05 +0000 (05:33 +0000)]
Track changed definition of the debug registers.

Sorry for missing this the first time.

21 years agoAdd the USER_SR segment register to pcb state. Initialize correctly,
Peter Grehan [Mon, 21 Oct 2002 05:27:41 +0000 (05:27 +0000)]
Add the USER_SR segment register to pcb state. Initialize correctly,
and save/restore during a context switch.

The USER_SR could be overwritten when the current thread was switched
out with a faulting copyin/copyout.

Approved by: Benno

21 years agoI overlooked an absolute path.
Poul-Henning Kamp [Mon, 21 Oct 2002 05:25:02 +0000 (05:25 +0000)]
I overlooked an absolute path.

Submitted by: Henric Jungheim <henric@attbi.com>

21 years agoAll bpf.h/NBPF consumers are gone so stop generating bpf.h
Brooks Davis [Mon, 21 Oct 2002 05:09:04 +0000 (05:09 +0000)]
All bpf.h/NBPF consumers are gone so stop generating bpf.h

21 years agoDon't include the depricated "bpf.h" and always compile in bpf support
Brooks Davis [Mon, 21 Oct 2002 05:05:43 +0000 (05:05 +0000)]
Don't include the depricated "bpf.h" and always compile in bpf support
as per current practice.

21 years agoImplement working on ELF corefiles. Use kvm_read() when reading
Marcel Moolenaar [Mon, 21 Oct 2002 04:21:12 +0000 (04:21 +0000)]
Implement working on ELF corefiles. Use kvm_read() when reading
memory while mapping a virtual address to a physical address.
This allows us to work with virtual addresses for page tables,
provided it doesn't cause infinite recursion. Currently all
page tables are direct mapped.

21 years agoAdd a twiddle to create PTY's with a biba/equal or mls/equal label
Robert Watson [Mon, 21 Oct 2002 04:15:40 +0000 (04:15 +0000)]
Add a twiddle to create PTY's with a biba/equal or mls/equal label
instead of the default biba/high, mls/low, making it easier to use
ptys with these policies.  This isn't the final solution, but does
help.

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

21 years agoUnhook the per-policy parsing/printing MAC modules in libc to prepare
Robert Watson [Mon, 21 Oct 2002 03:54:24 +0000 (03:54 +0000)]
Unhook the per-policy parsing/printing MAC modules in libc to prepare
to bring in the new MAC label management API.  With the new API
revision, we have only policy-agnostic code in libc and the base
kernel.

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

21 years agotrack gratuitous change to sys/i386/include/reg.h
Sam Leffler [Mon, 21 Oct 2002 03:47:22 +0000 (03:47 +0000)]
track gratuitous change to sys/i386/include/reg.h

21 years agoUse if_printf(ifp, "blah") instead of printf("ppp%d: blah", ifp->if_unit).
Brooks Davis [Mon, 21 Oct 2002 03:41:58 +0000 (03:41 +0000)]
Use if_printf(ifp, "blah") instead of printf("ppp%d: blah", ifp->if_unit).

21 years agoUse if_printf(ifp, "blah") instead of printf("vlan%d: blah", ifp->if_unit).
Brooks Davis [Mon, 21 Oct 2002 03:40:30 +0000 (03:40 +0000)]
Use if_printf(ifp, "blah") instead of printf("vlan%d: blah", ifp->if_unit).

21 years agoUse if_printf(ifp, "blah") instead of printf("sl%d: blah", sc->sc_if.if_unit).
Brooks Davis [Mon, 21 Oct 2002 03:35:25 +0000 (03:35 +0000)]
Use if_printf(ifp, "blah") instead of printf("sl%d: blah", sc->sc_if.if_unit).

21 years agoMake static in our normal manner.
David E. O'Brien [Mon, 21 Oct 2002 03:21:50 +0000 (03:21 +0000)]
Make static in our normal manner.

Submitted by: bde

21 years agoUse if_printf(ifp, "blah") and device_printf(dev, "blah") instead of
Brooks Davis [Mon, 21 Oct 2002 02:54:50 +0000 (02:54 +0000)]
Use if_printf(ifp, "blah") and device_printf(dev, "blah") instead of
printf("%s%d: blah", ifp->if_name, ifp->if_xname).  This eliminates the
need to store the unit number in the softc.

21 years agoUse if_printf(ifp, "blah") instead of
Brooks Davis [Mon, 21 Oct 2002 02:51:56 +0000 (02:51 +0000)]
Use if_printf(ifp, "blah") instead of
printf("%s%d: blah", ifp->if_name, ifp->if_xname).

21 years agocrash(8) is a manual page, not a `section'.
Giorgos Keramidas [Mon, 21 Oct 2002 01:27:41 +0000 (01:27 +0000)]
crash(8) is a manual page, not a `section'.

21 years agoMinor typo fixes.
Giorgos Keramidas [Mon, 21 Oct 2002 01:24:10 +0000 (01:24 +0000)]
Minor typo fixes.

21 years agoUse .Ed to terminate .Bd display.
Giorgos Keramidas [Mon, 21 Oct 2002 01:13:46 +0000 (01:13 +0000)]
Use .Ed to terminate .Bd display.

21 years agoFixed some unsorting.
Bruce Evans [Mon, 21 Oct 2002 00:38:18 +0000 (00:38 +0000)]
Fixed some unsorting.

21 years agoUnbreak Alpha world.
David E. O'Brien [Mon, 21 Oct 2002 00:26:48 +0000 (00:26 +0000)]
Unbreak Alpha world.
We are seeing "/usr/libexec/ld-elf.so.1: groff: too few PT_LOAD segments",
however it appears that there really is only one PT_LOAD segment in the groff
binary.  It is unclear if `rtld' or `ld' is at fault here -- but using an
RELENG_4 `ld' binary allows one to build a working dynamic groff binary.

Submitted by: gallatin

21 years agoUse a warns setting we can catch regressions with.
David E. O'Brien [Sun, 20 Oct 2002 23:50:28 +0000 (23:50 +0000)]
Use a warns setting we can catch regressions with.

21 years agoIn cb_dumphdr() we were calling buf_write() with di->priv as the
Marcel Moolenaar [Sun, 20 Oct 2002 23:39:43 +0000 (23:39 +0000)]
In cb_dumphdr() we were calling buf_write() with di->priv as the
pointer to a dumperinfo instead of di. A brainfart, surely. This
bug went unnoticed for all this time because the pointer is only
used by buf_write() when it can write a completely filled buffer
to the dump device. This depends on the number of memory chunks
that needs to be dumped. This has apparently been low enough that
it has never happened up until this point.

21 years agoFix the calculations of the length of the unread message buffer
Thomas Moestl [Sun, 20 Oct 2002 23:13:05 +0000 (23:13 +0000)]
Fix the calculations of the length of the unread message buffer
contents. The code was subtracting two unsigned ints, stored the
result in a log and expected it to be the same as of a signed
subtraction; this does only work on platforms where int and long
have the same size (due to overflows).
Instead, cast to long before the subtraction; the numbers are
guaranteed to be small enough so that there will be no overflows
because of that.

21 years agoUse more verbose diagnostics for wrong DIGIT range
Andrey A. Chernov [Sun, 20 Oct 2002 23:09:26 +0000 (23:09 +0000)]
Use more verbose diagnostics for wrong DIGIT range

21 years agoHook up opt_mac.h to the build dependencies. The way we currently
Robert Watson [Sun, 20 Oct 2002 22:59:17 +0000 (22:59 +0000)]
Hook up opt_mac.h to the build dependencies.  The way we currently
handle this stuff is dangerous. :-)

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

21 years agoAdd opt_mac.h to dependencies for if_stf.c module.
Robert Watson [Sun, 20 Oct 2002 22:57:22 +0000 (22:57 +0000)]
Add opt_mac.h to dependencies for if_stf.c module.

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

21 years agoFix two instances of variant struct definitions in sys/netinet:
Poul-Henning Kamp [Sun, 20 Oct 2002 22:52:07 +0000 (22:52 +0000)]
Fix two instances of variant struct definitions in sys/netinet:

Remove the never completed _IP_VHL version, it has not caught on
anywhere and it would make us incompatible with other BSD netstacks
to retain this version.

Add a CTASSERT protecting sizeof(struct ip) == 20.

Don't let the size of struct ipq depend on the IPDIVERT option.

This is a functional no-op commit.

Approved by: re

21 years agoMissed a case of _POSIX_MAC_PRESENT -> _PC_MAC_PRESENT rename.
Robert Watson [Sun, 20 Oct 2002 22:50:43 +0000 (22:50 +0000)]
Missed a case of _POSIX_MAC_PRESENT -> _PC_MAC_PRESENT rename.

Pointed out by: phk

21 years agoDo not try to work around ``poor (un)sign extension code''
Robert Drehmel [Sun, 20 Oct 2002 22:50:13 +0000 (22:50 +0000)]
Do not try to work around ``poor (un)sign extension code''
creation by GCC-2.6.3.  Casting pointers to unsigned char
to volatile pointers to unsigned char seemed to produce
better results on the ia32 architecture with old versions
of GCC.
The current FreeBSD system compiler GCC-3.2.1 emits
better sign extension code for non-volatile variables:

volatile char c;
int i = c;

is compiled to:
...
movb -1(%ebp), %al
movbsl %al, %eax
movl %eax, -8(%ebp)
...

char c;
int i = c;

is compiled to:
...
movbsl -1(%ebp), %eax
movl %eax, -8(%ebp)
...

The same holds for zero-extension of dereferenced pointers
to volatile unsigned char.
When compiled on alpha or sparc64, the code produced for the
two examples above does not differ.

21 years agoWhen dumping thread info, only include the filename and line if we actually
Juli Mallett [Sun, 20 Oct 2002 22:49:06 +0000 (22:49 +0000)]
When dumping thread info, only include the filename and line if we actually
know what file! (Prevents use of NULL).

MFC after: 1 day
Reviewed by: deischen

21 years agoAlways put the "access" macro argument in (), it might be an expression.
Poul-Henning Kamp [Sun, 20 Oct 2002 22:48:08 +0000 (22:48 +0000)]
Always put the "access" macro argument in (), it might be an expression.

This is a purely stylistic change.

21 years agoNo need to specify CTLTYPE_INT when we use SYSCTL_INT.
Poul-Henning Kamp [Sun, 20 Oct 2002 22:46:50 +0000 (22:46 +0000)]
No need to specify CTLTYPE_INT when we use SYSCTL_INT.

21 years agoWhen packets pass in and out of six-to-four (STF) tunnels, perform
Robert Watson [Sun, 20 Oct 2002 22:39:55 +0000 (22:39 +0000)]
When packets pass in and out of six-to-four (STF) tunnels, perform
labeling checks and operations as with other network interfaces.
Eventually, if it proves desirable, we might want to offer special
casing of this or other tunnel interfaces where we have an existing
label of interest, rather than treating it as though it's an
entirely fresh mbuf in the incoming/outgoing encapsulation directions.

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

21 years agoWe have mem{cpy,cmp,set} functions in the kernel, don't #define them to
Poul-Henning Kamp [Sun, 20 Oct 2002 22:35:20 +0000 (22:35 +0000)]
We have mem{cpy,cmp,set} functions in the kernel, don't #define them to
b{copy,zero,cmp} functions anymore.

Spotted by: FlexeLint.

21 years agoWe have memset() and memcpy() in the kernel now, so we don't need to
Poul-Henning Kamp [Sun, 20 Oct 2002 22:33:42 +0000 (22:33 +0000)]
We have memset() and memcpy() in the kernel now, so we don't need to
#define them to bzero and bcopy.

Spotted by: FlexeLint

21 years agoWhen a packet is sent via a FDDI interface, perform appropriate MAC
Robert Watson [Sun, 20 Oct 2002 22:27:59 +0000 (22:27 +0000)]
When a packet is sent via a FDDI interface, perform appropriate MAC
transmission checks; when it is received, label the packet appropriately.
Although we don't have a local FDDI setup to test this with, the
labeling and checks are identical to other interface classes.

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

21 years agoWhen a packet is destined for delivery via an ATM medium, perform
Robert Watson [Sun, 20 Oct 2002 22:20:48 +0000 (22:20 +0000)]
When a packet is destined for delivery via an ATM medium, perform
appropriate interface transmission checks and delivery labeling.  While
we don't have a local ATM configuration, this code is almost identical
to all other interface classes.

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

21 years agoAnother baby step toward getting sysinstall working:
Sam Leffler [Sun, 20 Oct 2002 22:19:37 +0000 (22:19 +0000)]
Another baby step toward getting sysinstall working:

o fillin media s/h/c fields from new XML phk just added; need this because
  sysinstall uses them in the fdisk look-alike
o add new tags to xml parser
o cleanup parser a touch; remove unused tags and move tag parsing stuff to
  a table to simplify future additions
o redo callback to pass 64-bit values since mediasize overflows u_int32_t
o loosen parsing sanity checks a touch to deal with new xml we must handle
o move sector size probing to non-geom handling since we now get it from xml
o remove WHOLE_DISK_SLICE buggery now that we get mediasize from xml

21 years agoAdd devd to the build.
Warner Losh [Sun, 20 Oct 2002 22:16:52 +0000 (22:16 +0000)]
Add devd to the build.

21 years agodevd. A daemon that hooks into the kernel's /dev/devctl to produce
Warner Losh [Sun, 20 Oct 2002 22:15:17 +0000 (22:15 +0000)]
devd.  A daemon that hooks into the kernel's /dev/devctl to produce
arbitrary commands when devices come and go in the device tree (which is
different than the /dev directory).

This is an initial version.  Much of the planned power isn't here.
Instead of doing the full matching, we always run /etc/devd-generic.
/etc/devd.generic will go away at some point, I think.

I'm committing it in this early state so I can start getting feedback
from early adapters.

Approved by: re

21 years agoRename _POSIX_FOO_PRESENT and friends from POSIX.1e to _PC_FOO_PRESENT
Robert Watson [Sun, 20 Oct 2002 22:11:13 +0000 (22:11 +0000)]
Rename _POSIX_FOO_PRESENT and friends from POSIX.1e to _PC_FOO_PRESENT
and related friends.  This would have been corrected had POSIX.1e
progressed to a standard.

Pointed out by: wollman

21 years agoImplement _POSIX_ACL_PATH_MAX, which returns the maximum number of ACL
Robert Watson [Sun, 20 Oct 2002 22:08:26 +0000 (22:08 +0000)]
Implement _POSIX_ACL_PATH_MAX, which returns the maximum number of ACL
entries for a file system node using pathconf().

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

21 years agoWhen a packet is multicast encapsulated, give labeled policies the
Robert Watson [Sun, 20 Oct 2002 21:59:00 +0000 (21:59 +0000)]
When a packet is multicast encapsulated, give labeled policies the
opportunity to preserve the label.

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

21 years agoSet kernelname in sparc64_init() so that the kern.bootfile
Maxime Henrion [Sun, 20 Oct 2002 21:55:35 +0000 (21:55 +0000)]
Set kernelname in sparc64_init() so that the kern.bootfile
sysctl works.  This stuff should probably be made MI.

Reviewed by: jake

21 years agoDon't examine an un-initialized variable.
Poul-Henning Kamp [Sun, 20 Oct 2002 21:52:05 +0000 (21:52 +0000)]
Don't examine an un-initialized variable.

Spotted by: FlexeLint.

21 years agoTeach UFS to respond to pathconf() tests for _POSIX_ACL_EXTENDED and
Robert Watson [Sun, 20 Oct 2002 21:49:41 +0000 (21:49 +0000)]
Teach UFS to respond to pathconf() tests for _POSIX_ACL_EXTENDED and
_POSIX_MAC_PRESENT based on available mount flags, if the services are
available.

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

21 years agoCorrect mis-spelling in pathconf constant _POSIX_ACL_CAP_PRESENT to
Robert Watson [Sun, 20 Oct 2002 21:45:07 +0000 (21:45 +0000)]
Correct mis-spelling in pathconf constant _POSIX_ACL_CAP_PRESENT to
be the more correct _POSIX_CAP_PRESENT.

21 years agoSplit out most of the logic from in_pcbbind() into a new function
Ian Dowse [Sun, 20 Oct 2002 21:44:31 +0000 (21:44 +0000)]
Split out most of the logic from in_pcbbind() into a new function
called in_pcbbind_setup() that does everything except commit the
changes to the PCB. There should be no functional change here, but
in_pcbbind_setup() will be used by the soon-to-appear IP_SENDSRCADDR
control message implementation to check or allocate the source
address and port.

Discussed on: -net
Approved by: re

21 years agoGDB 5.2.1 doesn't build on sparc64 right now.
David E. O'Brien [Sun, 20 Oct 2002 21:42:55 +0000 (21:42 +0000)]
GDB 5.2.1 doesn't build on sparc64 right now.

21 years agoRemove extern declarations of stuff which is static in nfs_node.c
Poul-Henning Kamp [Sun, 20 Oct 2002 21:40:55 +0000 (21:40 +0000)]
Remove extern declarations of stuff which is static in nfs_node.c
Move related macro to nfs_node.c

Spotted by: FlexeLint

21 years ago - Replace two instances of vm_page_sleep_busy() with the page queue
Alan Cox [Sun, 20 Oct 2002 21:40:17 +0000 (21:40 +0000)]
 - Replace two instances of vm_page_sleep_busy() with the page queue
   mutex-friendly vm_page_sleep_if_busy().
 - Introduce page queue locking in pmap_page_lookup() and
   pmap_release_free_page().
 - Simplify the invalidation of the pmap's ptphint in
   pmap_release_free_page().  (MFi386 pmap.c revision 1.362.)

21 years ago'&' not used for pointers to functions.
Poul-Henning Kamp [Sun, 20 Oct 2002 21:31:16 +0000 (21:31 +0000)]
'&' not used for pointers to functions.

Spotted by: FlexeLint

21 years agoRemove even more '&' from pointers to functions.
Poul-Henning Kamp [Sun, 20 Oct 2002 21:30:02 +0000 (21:30 +0000)]
Remove even more '&' from pointers to functions.

Spotted by: FlexeLint

21 years agoAdd an actual implementation of kse_wakeup()
Julian Elischer [Sun, 20 Oct 2002 21:08:47 +0000 (21:08 +0000)]
Add an actual implementation of kse_wakeup()
Submitted by: Davidxu

21 years agoStamping out more Danglish.
Poul-Henning Kamp [Sun, 20 Oct 2002 20:59:10 +0000 (20:59 +0000)]
Stamping out more Danglish.

21 years agogive alpha a bus_space_subregion() so that ahd_pci compiles and moves
Andrew Gallatin [Sun, 20 Oct 2002 20:55:37 +0000 (20:55 +0000)]
give alpha a bus_space_subregion() so that ahd_pci compiles and moves
LINT one file further on.  Only 999,999 or so more files to go..

21 years agoDon't us an array[1], it just hides where '&' isn't used right.
Poul-Henning Kamp [Sun, 20 Oct 2002 20:53:42 +0000 (20:53 +0000)]
Don't us an array[1], it just hides where '&' isn't used right.

Be consistent about functions being static.

Verified by: md5 hash of generated .o file.

21 years agoUse ENOSPC error return, not ENOMEM.
Poul-Henning Kamp [Sun, 20 Oct 2002 20:50:31 +0000 (20:50 +0000)]
Use ENOSPC error return, not ENOMEM.

Use %jd rather than %lld.

21 years agoChange the definition of the debugging registers to be an array, so
Poul-Henning Kamp [Sun, 20 Oct 2002 20:48:56 +0000 (20:48 +0000)]
Change the definition of the debugging registers to be an array, so
that we can index into it, rather than do pointer gymnastics on a
structure containing 8 elements.

Verified by: MD5 hash on the produced .o files.

21 years ago'&' is not needed to pointerize functions.
Poul-Henning Kamp [Sun, 20 Oct 2002 20:42:25 +0000 (20:42 +0000)]
'&' is not needed to pointerize functions.

Spotted by: FlexeLint

21 years agoConnect ubsa module to build.
Alexander Kabaev [Sun, 20 Oct 2002 20:35:14 +0000 (20:35 +0000)]
Connect ubsa module to build.

Forgotten by: kan

21 years agoNow that the sectorsize and mediasize are properties of the provider,
Poul-Henning Kamp [Sun, 20 Oct 2002 20:28:24 +0000 (20:28 +0000)]
Now that the sectorsize and mediasize are properties of the provider,
don't take the detour over the I/O path to discover them using getattr(),
we can just pick them out directly.

Do note though, that for now they are only valid after the first open
of the underlying disk device due compatibility with the old disk_create()
API.  This will change in the future so they will always be valid.

Sponsored by:   DARPA & NAI Labs.

21 years agoThe g_id*() functions are not needed in the userland test-suite so
Poul-Henning Kamp [Sun, 20 Oct 2002 20:08:44 +0000 (20:08 +0000)]
The g_id*() functions are not needed in the userland test-suite so
#ifdef _KERNEL them rather than deal with a copyin simulation.

Sponsored by: DARPA & NAI Labs

21 years ago o Reinline vm_page_undirty(), reducing the kernel size. (This reverts
Alan Cox [Sun, 20 Oct 2002 19:57:55 +0000 (19:57 +0000)]
 o Reinline vm_page_undirty(), reducing the kernel size.  (This reverts
   a part of vm_page.h revision 1.87 and vm_page.c revision 1.167.)

21 years agoAdd checks for DIGIT set consistency to prevent common misinterpretation
Andrey A. Chernov [Sun, 20 Oct 2002 19:56:15 +0000 (19:56 +0000)]
Add checks for DIGIT set consistency to prevent common misinterpretation
automatically.
Remove output file on error.
Staticize functions declared as static.

21 years agoStick .Os between .Dd and .Dt
Chris Costello [Sun, 20 Oct 2002 19:45:39 +0000 (19:45 +0000)]
Stick .Os between .Dd and .Dt

21 years agoMove .Os to its proper location in the document.
Chris Costello [Sun, 20 Oct 2002 19:44:36 +0000 (19:44 +0000)]
Move .Os to its proper location in the document.

21 years agoUse microuptime() instead of microtime() to bound the flush wait to
Thomas Moestl [Sun, 20 Oct 2002 19:41:21 +0000 (19:41 +0000)]
Use microuptime() instead of microtime() to bound the flush wait to
avoid hiccups in case of system time adjustment.

21 years agoo Spelling, punctuation and markup fixes.
Chris Costello [Sun, 20 Oct 2002 19:38:28 +0000 (19:38 +0000)]
o Spelling, punctuation and markup fixes.
o Correctly use the "No chain is stronger than its weakest link" adage.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoo Use .Cm for 'attach', 'detach', 'init', 'setkey', and 'destroy' commands
Chris Costello [Sun, 20 Oct 2002 19:20:26 +0000 (19:20 +0000)]
o Use .Cm for 'attach', 'detach', 'init', 'setkey', and 'destroy' commands
o Fix some punctuation and wording
o Wording consistency in command-line option documentation
o Make use of mdoc's markup a bit more (quoting and the like)

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoMake the sectorsize a property of providers so we can include it in the XML
Poul-Henning Kamp [Sun, 20 Oct 2002 19:18:07 +0000 (19:18 +0000)]
Make the sectorsize a property of providers so we can include it in the XML
output.

Sponsored by: DARPA & NAI Labs

21 years agos/dettach/detach/g etc.
Poul-Henning Kamp [Sun, 20 Oct 2002 19:08:56 +0000 (19:08 +0000)]
s/dettach/detach/g etc.

Pointed out by: chris

21 years agoUse %jd instead of %lld now that we have it.
Poul-Henning Kamp [Sun, 20 Oct 2002 18:48:12 +0000 (18:48 +0000)]
Use %jd instead of %lld now that we have it.

21 years agoIt makes more sense for the fwheads and fwsectors properties to be in
Poul-Henning Kamp [Sun, 20 Oct 2002 18:46:25 +0000 (18:46 +0000)]
It makes more sense for the fwheads and fwsectors properties to be in
the provider stanza rather than the geom stanza.

21 years agoFix data corruption caused by last byte in oddly sized transfers being read
Tor Egge [Sun, 20 Oct 2002 18:43:11 +0000 (18:43 +0000)]
Fix data corruption caused by last byte in oddly sized transfers being read
to wrong location in RxBuf and written from wrong location in TxBuf.

21 years agoInclude fwsectors and gfwheads in the XML output for the disks we know.
Poul-Henning Kamp [Sun, 20 Oct 2002 18:09:01 +0000 (18:09 +0000)]
Include fwsectors and gfwheads in the XML output for the disks we know.

Sponsored by: DARPA & NAI Labs.

21 years agoRemove a boatload of '&' which are surplus to the requirements.
Poul-Henning Kamp [Sun, 20 Oct 2002 18:02:46 +0000 (18:02 +0000)]
Remove a boatload of '&' which are surplus to the requirements.

Validated by: md5 hash is unchanged.

21 years agoRevert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().
Poul-Henning Kamp [Sun, 20 Oct 2002 17:54:17 +0000 (17:54 +0000)]
Revert last commit, there actually was a -1 waaaaay down in pcireg_cfgread().

21 years agoHide inline assembly if lint is defined.
Poul-Henning Kamp [Sun, 20 Oct 2002 17:30:30 +0000 (17:30 +0000)]
Hide inline assembly if lint is defined.

21 years ago"id" is never going to be -1 when it is unsigned.
Poul-Henning Kamp [Sun, 20 Oct 2002 17:21:43 +0000 (17:21 +0000)]
"id" is never going to be -1 when it is unsigned.

Spotted by: FlexeLint