]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agotrack bpf changes
Sam Leffler [Thu, 14 Nov 2002 23:45:13 +0000 (23:45 +0000)]
track bpf changes

Reviewed by: many
Approved by: re

21 years agoo track changes to ethernet input packet handling
Sam Leffler [Thu, 14 Nov 2002 23:44:37 +0000 (23:44 +0000)]
o track changes to ethernet input packet handling
o track changes to bpf
o track changes to make ng hooks more private

Reviewed by: many
Approved by: re

21 years agoo eliminate separate callback interface for h/w tagged input packets; instead
Sam Leffler [Thu, 14 Nov 2002 23:43:16 +0000 (23:43 +0000)]
o eliminate separate callback interface for h/w tagged input packets; instead
  drivers "tag packets" with an m_tag and the input packet handling recognizes
  such packets and does the right thing
o track the number of active vlans on an interface; this lets lots of places
  only do vlan-specific processing when needed
o track changes to ether_ifdetach/ether_ifattach
o track bpf changes
o eliminate the use of M_PROTO1 for communicating to drivers about tagged
  packets
o eliminate the use of IFF_LINK0 for drivers communicating to the vlan code
  that they support h/w tagging; replaced by explicit interface capabilities
o add ifnet capabilities for h/w tagging and support of "large mtu's"
o use new interface capabilities to auto-configure use of large mtu's and h/w
  tagging
o add support for proper handling of promiscuous mode
o document driver/vlan communication conventions

Reviewed by: many
Approved by: re

21 years agoo add if_nvlans member to track the number of vlans active on an interface
Sam Leffler [Thu, 14 Nov 2002 23:36:28 +0000 (23:36 +0000)]
o add if_nvlans member to track the number of vlans active on an interface
o add if_input member for interface drivers to call through to pass packets "up"
o remove ethernet-specific function decls (moved to ethernet.h)

Reviewed by: many
Approved by: re

21 years agoo change input packet handling to eliminate the pointer to the struct
Sam Leffler [Thu, 14 Nov 2002 23:35:06 +0000 (23:35 +0000)]
o change input packet handling to eliminate the pointer to the struct
  ether_header; instead drivers are to leave the Ethernet header at the
  front of the packet
o add declarations for netgraph and vlan hooks that were removed from ethernet.h
o change various in-file calling conventions to track change in input API
o fixup bridge support to handle Ethernet header no longer being stripped
o add consistency checks to ether_input to catch problems with the change
  in the API; some of these may want to be moved to #ifdef DIAGNOSTIC at a
  later time (though they are not too expensive to leave as is)
o change ether_demux to eliminate the passing of the Ethernet header; it is
  now expected at the front of the packet a la ether_input
o add ether_sprintf compatibility shim
o change ether_ifattach API to remove "bpf supported param" and add a pointer
  to the MAC address to be installed for the LL address (this is for future
  changes to divest struct arpcom from struct ifnet)
o change ether_ifdetach API to remove "bpf support param"

Reviewed by: many
Approved by: re

21 years agogeneral cleanups mostly aimed at improving portability of drivers
Sam Leffler [Thu, 14 Nov 2002 23:28:47 +0000 (23:28 +0000)]
general cleanups mostly aimed at improving portability of drivers

o ETHER_* (ETHER_ALIGN, ETHER_MAX_FRAME, ETHER_CRC_LEN, etc.)
o M_HASFCS for drivers to indicate packets include FCS
o remove global declarations for ng_ether* and vlan_* since these
  represent a private contract between the if_ethersubr.c code and
  certain parts of the system that should not normally be abused
o add ether_* declarations that were elsewhere
o remove ETHER_BPF_* since they are no longer used with the parameter
  no longer passed to ether_ifattach and ether_ifdetach

Reviewed by: many
Approved by: re

21 years agoo add support for multiple link types per interface (e.g. 802.11 and Ethernet)
Sam Leffler [Thu, 14 Nov 2002 23:24:13 +0000 (23:24 +0000)]
o add support for multiple link types per interface (e.g. 802.11 and Ethernet)
o introduce BPF_TAP and BPF_MTAP macros to hide implementation details and
  ease code portability
o use m_getcl where appropriate

Reviewed by: many
Approved by: re
Obtained from: NetBSD (multiple link type support)

21 years agoMake sure that we don't pick up installed packages on the host when
Bruce A. Mah [Thu, 14 Nov 2002 23:17:00 +0000 (23:17 +0000)]
Make sure that we don't pick up installed packages on the host when
we print dependencies (required by rev. 1.424 of ports/Mk/bsd.port.mk).

Reviewed (and partially submitted) by: kris

21 years agoo add IF_*bps macros for netbsd compatibility
Sam Leffler [Thu, 14 Nov 2002 23:16:18 +0000 (23:16 +0000)]
o add IF_*bps macros for netbsd compatibility
o add interface capabilities for vlan use and to signal jumbo frame support

Reviewed by: many
Approved by: re

21 years agoMFbed:
Udo Erdelhoff [Thu, 14 Nov 2002 22:24:08 +0000 (22:24 +0000)]
MFbed:
early-adopter/article.sgml: add lang=de
relnotes/common/new.sgml: 1.450 -> 1.451
relnotes/ia64/article.sgml: add lang=de

21 years agoAssume that packages passed on stdin are in bzip2 format, not gzip.
Bruce A. Mah [Thu, 14 Nov 2002 21:01:17 +0000 (21:01 +0000)]
Assume that packages passed on stdin are in bzip2 format, not gzip.
(sysinstall depends on this feature for package addition.)

Comment on hard-coded bzip2 usage in the spirit of rev. 1.58.

21 years agoRemove the remaining calls to free(), they are not needed anymore now
Olivier Houchard [Thu, 14 Nov 2002 19:54:33 +0000 (19:54 +0000)]
Remove the remaining calls to free(), they are not needed anymore now
device_get_softc() is used.

21 years agoMake dynamic PAM modules depend on dynamic PAM library.
Ruslan Ermilov [Thu, 14 Nov 2002 19:24:51 +0000 (19:24 +0000)]
Make dynamic PAM modules depend on dynamic PAM library.

Requested by: des, markm

21 years agoNew release note: SA-02:43.
Bruce A. Mah [Thu, 14 Nov 2002 17:59:11 +0000 (17:59 +0000)]
New release note:  SA-02:43.

21 years agoDefine `Sudden_Underflow' when compiling for the Alpha
Robert Drehmel [Thu, 14 Nov 2002 17:06:01 +0000 (17:06 +0000)]
Define `Sudden_Underflow' when compiling for the Alpha
architecture, mainly to avoid getting a SIGFPE signal sent
when calling strtod(3) with certain input.

The SIGFPE has been sent because the code was not aware that
a Gradual Underflow is handled in software via traps on the
Alpha architecture, but is not implemented in our Alpha kernel
layer.

With `Sudden_Underflow' defined, strtod(3) should not depend
on Gradual Underflow and adjust its calculations accordingly,
which means that other, more subtle errors than the sending of
SIGFPE could be solved by this.

Discussed with: bde
PR: alpha/12623
PR: alpha/17032
PR: alpha/43567
MFC after: 7 days

21 years agoMake the msg_size, msg_bufx and msg_bufr memebers of struct msgbuf
Thomas Moestl [Thu, 14 Nov 2002 16:11:12 +0000 (16:11 +0000)]
Make the msg_size, msg_bufx and msg_bufr memebers of struct msgbuf
signed, since they describe a ring buffer and signed arithmetic is
performed on them. This avoids some evilish casts.

Since this changes all but two members of this structure, style(9)
those remaining ones, too.

Requested by: bde
Reviewed by: bde (earlier version)

21 years agoAdd hints for ISA ATA controllers. At least one Digital AlphaPC 64 has
John Baldwin [Thu, 14 Nov 2002 14:59:27 +0000 (14:59 +0000)]
Add hints for ISA ATA controllers.  At least one Digital AlphaPC 64 has
one such beast.

Reported by: Rob Byrnes <rbyrnes@ozemail.com.au>

21 years agobde points out that the LIBC_MAJOR macro doesn't exist and requests
Warner Losh [Thu, 14 Nov 2002 14:06:14 +0000 (14:06 +0000)]
bde points out that the LIBC_MAJOR macro doesn't exist and requests
that we not use it here.  In its place I've put a comment about the
current state of play.

Submitted by: bde

21 years agoFix printf() format errors.
Maxime Henrion [Thu, 14 Nov 2002 14:02:32 +0000 (14:02 +0000)]
Fix printf() format errors.

Reviewed by: imp

21 years agoCopy EISA and PCI ahc(4) modules as well.
Ruslan Ermilov [Thu, 14 Nov 2002 13:26:19 +0000 (13:26 +0000)]
Copy EISA and PCI ahc(4) modules as well.

21 years agoPass correct parameters to bus_space_barrier() instead of 0
Maxime Henrion [Thu, 14 Nov 2002 13:25:53 +0000 (13:25 +0000)]
Pass correct parameters to bus_space_barrier() instead of 0
so that this code compiles on alpha.

21 years agoReset LogTag to NULL in closelog(3). This fixes mysterious crashes
Ruslan Ermilov [Thu, 14 Nov 2002 12:40:14 +0000 (12:40 +0000)]
Reset LogTag to NULL in closelog(3).  This fixes mysterious crashes
caused by dynamic PAM modules that call openlog(3) and closelog(3),
e.g. ports/security/pam_pwdfile.

What happened here is that the module first registered its "ident"
with openlog(3), then PAM library unloaded module with dlclose(3),
and the next call to syslog(3) resulted in SIGSEGV.

MFC after: 3 days

21 years agoDon't register the powerfail interrupt as fast in the
Thomas Moestl [Thu, 14 Nov 2002 11:29:16 +0000 (11:29 +0000)]
Don't register the powerfail interrupt as fast in the
non-DEBUGGER_ON_POWERFAIL case so that shutdown_nice() can be called
without problems.

Reported & tested by: Gavin Atkinson <gavin@ury.york.ac.uk>

21 years agoThis commit was generated by cvs2svn to compensate for changes in r106907,
Doug Barton [Thu, 14 Nov 2002 10:04:51 +0000 (10:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r106907,
which included commits to RCS files with non-trunk default branches.

21 years agoImport security patches from ISC for BIND version 8.3.3
Doug Barton [Thu, 14 Nov 2002 10:04:51 +0000 (10:04 +0000)]
Import security patches from ISC for BIND version 8.3.3

21 years agoInstall devd.conf(5).
Tim J. Robbins [Thu, 14 Nov 2002 10:00:01 +0000 (10:00 +0000)]
Install devd.conf(5).

21 years agoAdd a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
Maxim Sobolev [Thu, 14 Nov 2002 08:43:07 +0000 (08:43 +0000)]
Add a new newsyslog.conf flag - 'G', which if set tells newsyslog(8) that
the specified filename of the log to be rotated is in fact shell glob
pattern. In this case, all files matching this pattern will be rotated
using the same options. Useful in the case when there is no pre-defined
name for the logfiles (e.g. xtradius, samba etc).

Sponsored by: PortaOne Software Ltd
MFC after: 2 weeks

21 years agoo Fix _longjmp() to return 1 when the return value is given as 0.
Marcel Moolenaar [Thu, 14 Nov 2002 06:40:23 +0000 (06:40 +0000)]
o  Fix _longjmp() to return 1 when the return value is given as 0.
o  Remove the unwanted smartness in _longjmp() where it compares
   the current ar.bspstore with the saved ar.bspstore and restores
   ar.rnat based on it. This either avoids saving ar.rnat in the
   jmp_buf or is the consequence of not saving ar.rnat. All this
   complexity breaks libc_r where we use longjmp() to switch to
   different threads and the current ar.bspstore has no relation
   to the saved ar.bspstore. Thus: we save ar.rnat in setjmp()
   and simply restore ar.bspstore and ar.rnat in longjmp().

This code needs a cleanup.

21 years agoIn kse_release(), check if current thread is bound
David Xu [Thu, 14 Nov 2002 06:06:45 +0000 (06:06 +0000)]
In kse_release(), check if current thread is bound
and current kse mailbox was already initialized, also
prevent last thread from exiting unless we figure out
how to safely support null thread proc.

21 years agoPanic message strings do not need a trailing \n.
Warner Losh [Thu, 14 Nov 2002 05:35:57 +0000 (05:35 +0000)]
Panic message strings do not need a trailing \n.

Reviewed by: ken

21 years agoMFp4:
Warner Losh [Thu, 14 Nov 2002 05:22:37 +0000 (05:22 +0000)]
MFp4:
o Fix small style nit.  This was supposed to be part of the last batch of
  style fixes, but somehow didn't get merged.

21 years agoMFp4:
Warner Losh [Thu, 14 Nov 2002 05:20:39 +0000 (05:20 +0000)]
MFp4:
o Add support for bus_child_present call by implementing that method for cbb.

21 years agoMFp4:
Warner Losh [Thu, 14 Nov 2002 05:18:53 +0000 (05:18 +0000)]
MFp4:
o Make this code a little easier to understand by using simpler if
  statements, but nesting them.

21 years agoMFp4:
Warner Losh [Thu, 14 Nov 2002 05:15:50 +0000 (05:15 +0000)]
MFp4:
o Use 32-bit unsigned types for things that really are 32-bit quantities,
  not bus_addr_t.  These are not the same as a bus_addr_t, so don't use
  that here.  Harmless on i386, introduced problems on sparc64.

Submitted by: jhb

21 years agoRemove an impossible condition. pf->dev is always non-null here.
Warner Losh [Thu, 14 Nov 2002 05:13:52 +0000 (05:13 +0000)]
Remove an impossible condition.  pf->dev is always non-null here.

21 years agoMFp4:
Warner Losh [Thu, 14 Nov 2002 05:12:02 +0000 (05:12 +0000)]
MFp4:
o Add a diagnostic for an 'impossible' condition.
o Collapse common code.

21 years agominor correction to comment
Warner Losh [Thu, 14 Nov 2002 05:10:16 +0000 (05:10 +0000)]
minor correction to comment

21 years agoAdd second and thrid bus-toaster IDs
Warner Losh [Thu, 14 Nov 2002 05:08:22 +0000 (05:08 +0000)]
Add second and thrid bus-toaster IDs

21 years agoregen to 1.37
Warner Losh [Thu, 14 Nov 2002 05:07:20 +0000 (05:07 +0000)]
regen to 1.37

21 years agoAdd a third aic-based bustoaster.
Warner Losh [Thu, 14 Nov 2002 05:06:25 +0000 (05:06 +0000)]
Add a third aic-based bustoaster.

21 years agoPanic message should end with \n.
Warner Losh [Thu, 14 Nov 2002 05:03:11 +0000 (05:03 +0000)]
Panic message should end with \n.

Reviewed by: ken a while ago.

21 years agoAdd conditional code specific to ia64 to allow newfs(8)-ing FAT
Marcel Moolenaar [Thu, 14 Nov 2002 01:46:20 +0000 (01:46 +0000)]
Add conditional code specific to ia64 to allow newfs(8)-ing FAT
partitions marked as being of type efi. This change adds code to
1. actually run the newfs command at mount time (install.c),
2. display the newfs state on screen (label.c)
3. allow toggling of the newfs state (label.c)

Even though newfs(8)-ing FAT partitions can be of use on i386
machines in general, it has been opted to minimize impact for
now.

21 years agoAdd newfs_msdos to the crunch-mix. We need to be able to newfs an
Marcel Moolenaar [Thu, 14 Nov 2002 01:36:04 +0000 (01:36 +0000)]
Add newfs_msdos to the crunch-mix. We need to be able to newfs an
EFI partition.

21 years agoMinimal take on previous commit -- remove getopt and printf. Static size
Nate Lawson [Thu, 14 Nov 2002 01:14:35 +0000 (01:14 +0000)]
Minimal take on previous commit -- remove getopt and printf.  Static size
is reduced by 40k, dynamic by a few bytes.
Functional changes:
* "sleep -- arg" now returns usage() instead of ignoring the --
* "sleep -1" now returns immediately instead of returning usage()

Reviewed by: jmallett

21 years agoBack out previous commit since there is controversy about changing so much
Nate Lawson [Thu, 14 Nov 2002 00:20:58 +0000 (00:20 +0000)]
Back out previous commit since there is controversy about changing so much
in sleep including duping strtol(3).  Code changes also increased
dynamic size of sleep(1).

21 years agoWhen parsing the CIS, if a BAR tuple is encountered, enable the corresponding
Scott Long [Wed, 13 Nov 2002 22:53:48 +0000 (22:53 +0000)]
When parsing the CIS, if a BAR tuple is encountered, enable the corresponding
bit in the PCI command register for the device.  Otherwise, device drivers
that look at this register to see which types of BARs are usable will think
that none of them are.
This allows my Adaptec 1480A cardbus card to finally work.

Reviewed by: imp

21 years agoArgh, change declaration of two-dimensional array so that it actually
Daniel Eischen [Wed, 13 Nov 2002 21:55:22 +0000 (21:55 +0000)]
Argh, change declaration of two-dimensional array so that it actually
builds.

21 years agoRecognize the Serverworks CIOB30 host to pci bridge.
Peter Wemm [Wed, 13 Nov 2002 21:30:44 +0000 (21:30 +0000)]
Recognize the Serverworks CIOB30 host to pci bridge.

21 years agoTry to reword things a bit more to make it clearer.
John Baldwin [Wed, 13 Nov 2002 20:27:46 +0000 (20:27 +0000)]
Try to reword things a bit more to make it clearer.

Reviewed by: imp

21 years agoRemove getopt and strtol dependencies, reducing size of static exe.
Nate Lawson [Wed, 13 Nov 2002 20:12:26 +0000 (20:12 +0000)]
Remove getopt and strtol dependencies, reducing size of static exe.
Preserve older desired behavior, accept [+-]*[0-9]*\.[0-9]*
Remove a few unnecessary casts.

%ls -l /bin/sleep
-r-xr-xr-x  1 root  wheel  61332 Oct 28 05:16 /bin/sleep
%ls -l /usr/obj/usr/src/bin/sleep/sleep
-rwxr-xr-x  1 root  wheel  19124 Nov 13 12:12 /usr/obj/usr/src/bin/sleep/sleep

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoRemove dead code that hasn't been needed since the demise of share maps
Alan Cox [Wed, 13 Nov 2002 19:50:06 +0000 (19:50 +0000)]
Remove dead code that hasn't been needed since the demise of share maps
in various revisions of vm/vm_map.c between 1.148 and 1.153.

21 years agoMake this compile with whatever error-checking is enabled in buildworld
Daniel Eischen [Wed, 13 Nov 2002 19:35:40 +0000 (19:35 +0000)]
Make this compile with whatever error-checking is enabled in buildworld
and/or beast.

21 years ago- Fix some minor grammar and spelling nits.
John Baldwin [Wed, 13 Nov 2002 19:31:04 +0000 (19:31 +0000)]
- Fix some minor grammar and spelling nits.
- Massage the wording in a few places.
- Put .Nm on lines by itself so it renders correctly.

Reviewed by: imp

21 years agoNew release notes: SA-02:40, SA-02:41, SA-02:42.
Bruce A. Mah [Wed, 13 Nov 2002 19:21:09 +0000 (19:21 +0000)]
New release notes:  SA-02:40, SA-02:41, SA-02:42.

21 years agoAt initialization, override the pthread stub routines in libc
Daniel Eischen [Wed, 13 Nov 2002 18:13:26 +0000 (18:13 +0000)]
At initialization, override the pthread stub routines in libc
by filling in the jump table.

Convert uses of pthread routines within libc_r to use the internal
versions (_pthread_foo instead of pthread_foo).

Remove a couple of globals from application namespace.

21 years agoUse a jump table (a la Solaris) for pthread routines with default
Daniel Eischen [Wed, 13 Nov 2002 18:12:09 +0000 (18:12 +0000)]
Use a jump table (a la Solaris) for pthread routines with default
entries in the table being stubs.  While I'm here, add macros to
auto-generate the stubs.  A conforming threads library can override
the stub routines by filling in the jump table.

Add some entries to namespace.h and sync un-namespace.h to it.
Also add a comment to remind folks to update un-namespace.h
when changing namespace.h.

21 years agoRemove a commented out #include "opt_pci.h", it doesn't
Maxime Henrion [Wed, 13 Nov 2002 17:50:59 +0000 (17:50 +0000)]
Remove a commented out #include "opt_pci.h", it doesn't
exist anymore.

21 years agoThe pam_krb5 module stored a reference to a krb5_ccache structure as
Jacques Vidrine [Wed, 13 Nov 2002 17:46:15 +0000 (17:46 +0000)]
The pam_krb5 module stored a reference to a krb5_ccache structure as
PAM module state (created in pam_sm_authenticate and referenced later
in pam_sm_setcred and pam_sm_acct_mgmt).  However, the krb5_ccache
structure shares some data members with the krb5_context structure
that was used in its creation.  Since a new krb5_context is created
and destroyed at each PAM entry point, this inevitably caused the
krb5_ccache structure to reference free'd memory.

Now instead of storing a pointer to the krb5_ccache structure,
we store the name of the cache (e.g. `MEMORY:0x123CACHE') in
pam_sm_authenticate, and resolve the name in the other entry points.

This bug was uncovered by phkmalloc's free'd memory scrubbing.

Approved by: re (jhb)

21 years agoRemove opt_pci.h from SRCS, it doesn't exist anymore.
Maxime Henrion [Wed, 13 Nov 2002 17:45:42 +0000 (17:45 +0000)]
Remove opt_pci.h from SRCS, it doesn't exist anymore.

21 years agoUse `krb5_get_err_text' instead of `error_message' so that instead of
Jacques Vidrine [Wed, 13 Nov 2002 17:44:29 +0000 (17:44 +0000)]
Use `krb5_get_err_text' instead of `error_message' so that instead of
e.g.

   Unknown error: -1765328378

we get

   Client not found in Kerberos database

Another way to accomplish this would have been to leave
`error_message' alone, but to explicitly load the Kerberos com_err
error tables.  However, I don't really like the idea of a PAM module
dorking with global tables.

Approved by: re (jhb)

21 years agoRemove opt_pci.h from SRCS.
Maxime Henrion [Wed, 13 Nov 2002 17:43:37 +0000 (17:43 +0000)]
Remove opt_pci.h from SRCS.

21 years agoRemove a bunch of #include "opt_pci.h".
Maxime Henrion [Wed, 13 Nov 2002 17:40:15 +0000 (17:40 +0000)]
Remove a bunch of #include "opt_pci.h".

21 years agoUnbreak kernel build.
Maxime Henrion [Wed, 13 Nov 2002 17:34:12 +0000 (17:34 +0000)]
Unbreak kernel build.

Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com>

21 years agoAdd ia64 documents to RELNOTESng snapshot.
Bruce A. Mah [Wed, 13 Nov 2002 17:28:44 +0000 (17:28 +0000)]
Add ia64 documents to RELNOTESng snapshot.

21 years agoDon't set atime / mtime if we don't have an output file, which can happen
Dag-Erling Smørgrav [Wed, 13 Nov 2002 16:04:20 +0000 (16:04 +0000)]
Don't set atime / mtime if we don't have an output file, which can happen
in certain failure scenarii (mostly DNS trouble).

21 years agoIntroduce a condition variable to avoid returning EBUSY when
Robert Watson [Wed, 13 Nov 2002 15:47:09 +0000 (15:47 +0000)]
Introduce a condition variable to avoid returning EBUSY when
the MAC policy list is busy during a load or unload attempt.
We assert no locks held during the cv wait, meaning we should
be fairly deadlock-safe.  Because of the cv model and busy
count, it's possible for a cv waiter waiting for exclusive
access to the policy list to be starved by active and
long-lived access control/labeling events.  For now, we
accept that as a necessary tradeoff.

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

21 years agoAdd support for the C99 %t format modifier.
Maxime Henrion [Wed, 13 Nov 2002 15:15:59 +0000 (15:15 +0000)]
Add support for the C99 %t format modifier.

21 years agoAdd the sys/stddef.h header, so that we can have ptrdiff_t
Maxime Henrion [Wed, 13 Nov 2002 15:14:57 +0000 (15:14 +0000)]
Add the sys/stddef.h header, so that we can have ptrdiff_t
definition in the kernel.  It also includes the offsetof()
definition which, according to bde@ should be here and not
in sys/types.h, and the definition of NULL so that we're
closer to make it closer to standard C.

Reviewed by: mike

21 years agoTake __FreeBSD_version into account when BOOTSTRAPPING.
Ruslan Ermilov [Wed, 13 Nov 2002 13:49:29 +0000 (13:49 +0000)]
Take __FreeBSD_version into account when BOOTSTRAPPING.

21 years agoActually check if stdbool.h exists when BOOTSTRAPPING.
Ruslan Ermilov [Wed, 13 Nov 2002 13:47:48 +0000 (13:47 +0000)]
Actually check if stdbool.h exists when BOOTSTRAPPING.

21 years agomtree(8) wasn't a bootstrap tool since 2000/07/23 (Makefile.inc1,v 1.161).
Ruslan Ermilov [Wed, 13 Nov 2002 12:03:27 +0000 (12:03 +0000)]
mtree(8) wasn't a bootstrap tool since 2000/07/23 (Makefile.inc1,v 1.161).

21 years agoBootstrapping aid for 4.0-RELEASE.
Ruslan Ermilov [Wed, 13 Nov 2002 11:50:40 +0000 (11:50 +0000)]
Bootstrapping aid for 4.0-RELEASE.

21 years agoFix a constant in the standard namespace not to depend on another
Mike Barcroft [Wed, 13 Nov 2002 11:49:24 +0000 (11:49 +0000)]
Fix a constant in the standard namespace not to depend on another
constant in the BSD namespace.

21 years agoDue to a memory alignment sizeof(struct ipfw_flow_id) is bigger than
Maxim Konovalov [Wed, 13 Nov 2002 11:31:44 +0000 (11:31 +0000)]
Due to a memory alignment sizeof(struct ipfw_flow_id) is bigger than
ipfw_flow_id structure actual size and bcmp(3) may fail to compare
them properly. Compare members of these structures instead.

PR: kern/44078
Submitted by: Oleg Bulyzhin <oleg@rinet.ru>
Reviewed by: luigi
MFC after: 2 weeks

21 years agoDocument loader tunables hw.pci.enable_io_modes and
Matthew N. Dodd [Wed, 13 Nov 2002 09:43:53 +0000 (09:43 +0000)]
Document loader tunables hw.pci.enable_io_modes and
hw.pci.allow_unsupported_io_range.

Submitted by:  Hiten Pandya <hiten@angelica.unixdaemons.com>
Approved by:  re (murray)

21 years agoConvert kernel compile option PCI_ALLOW_UNSUPPORTED_IO_RANGE to
Matthew N. Dodd [Wed, 13 Nov 2002 09:42:25 +0000 (09:42 +0000)]
Convert kernel compile option PCI_ALLOW_UNSUPPORTED_IO_RANGE to
a loader tunable hw.pci.allow_unsupported_io_range.

Submitted by:  Hiten Pandya <hiten@angelica.unixdaemons.com>
Approved by:  re (murray)

21 years agoStaticize local variable.
Matthew N. Dodd [Wed, 13 Nov 2002 09:40:09 +0000 (09:40 +0000)]
Staticize local variable.

Submitted by:  Hiten Pandya <hiten@angelica.unixdaemons.com>
Obtained from:  re (murray)

21 years agoLoader tunable 'machdep.disable_mtrrs'.
Matthew N. Dodd [Wed, 13 Nov 2002 09:37:43 +0000 (09:37 +0000)]
Loader tunable 'machdep.disable_mtrrs'.
Sysctl of same name to reflect status.

Submitted by:  jhb
Approved by:  re (murray)
MFC after:  1 day

21 years agoAlso test for type efi everywhere we currently test for type fat.
Marcel Moolenaar [Wed, 13 Nov 2002 05:39:59 +0000 (05:39 +0000)]
Also test for type efi everywhere we currently test for type fat.
With this change there's no a priori difference between EFI and
FAT partitions. With this change and the corresponding change to
libdisk, we can create EFI partitions, just like regular FAT
partitions.

21 years agoMove pmap_collect() out of the machine-dependent code, rename it
Alan Cox [Wed, 13 Nov 2002 05:39:58 +0000 (05:39 +0000)]
Move pmap_collect() out of the machine-dependent code, rename it
to reflect its new location, and add page queue and flag locking.

Notes: (1) alpha, i386, and ia64 had identical implementations
of pmap_collect() in terms of machine-independent interfaces;
(2) sparc64 doesn't require it; (3) powerpc had it as a TODO.

21 years agoHandle EFI partitions the same as regular FAT partitions. The only
Marcel Moolenaar [Wed, 13 Nov 2002 05:31:32 +0000 (05:31 +0000)]
Handle EFI partitions the same as regular FAT partitions. The only
difference between the two from a low-level point of view is that
the partition type is different. This change adds EFI related cases
to existing switch statements with existing FAT related cases.

21 years agoMajor #46 was also MIA.
Peter Wemm [Wed, 13 Nov 2002 01:42:59 +0000 (01:42 +0000)]
Major #46 was also MIA.

21 years agoPut echo on a diet, removing unnecessary use of stdio and getopt.
Nate Lawson [Wed, 13 Nov 2002 01:39:02 +0000 (01:39 +0000)]
Put echo on a diet, removing unnecessary use of stdio and getopt.

Before...
-r-xr-xr-x  1 root  wheel  58636 Oct 28 05:16 /bin/echo
After...
-rwxr-xr-x  1 root  wheel  12824 Nov 12 17:39 /usr/obj/usr/src/bin/echo/echo

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoNote that 101 is unused, rather than leave it out of the file.
Peter Wemm [Wed, 13 Nov 2002 00:25:01 +0000 (00:25 +0000)]
Note that 101 is unused, rather than leave it out of the file.
Add some historical information.  This can be removed as majors
are recycled.

21 years agoAdd LOGIN_SETMAC to the list of flags that can't be set without class
Robert Watson [Tue, 12 Nov 2002 22:30:01 +0000 (22:30 +0000)]
Add LOGIN_SETMAC to the list of flags that can't be set without class
information, since we rely on the pwd entry to know what MAC labels
to set as part of the login process.

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

21 years agoUse a clean flags variable when creating chunks from scripts instead of
John Baldwin [Tue, 12 Nov 2002 21:18:54 +0000 (21:18 +0000)]
Use a clean flags variable when creating chunks from scripts instead of
leaking flags from earlier chunks into later ones.

PR: bin/40655
Submitted by: Thomas Zenker <thz@Lennartz-electronic.de>

21 years agoFix a "bug" in sysctl(8). Limit the length when we print a string from
Peter Wemm [Tue, 12 Nov 2002 21:18:21 +0000 (21:18 +0000)]
Fix a "bug" in sysctl(8).  Limit the length when we print a string from
the kernel rather than ignoring the length and keeping on going till we
finally hit a \0 character in the buffer.

21 years agoRemove a line that set the status to success. We already do that at the
John Baldwin [Tue, 12 Nov 2002 21:12:42 +0000 (21:12 +0000)]
Remove a line that set the status to success.  We already do that at the
beginning, so the best this could achieve would be to mask an earlier
failure.  Break instead of continue for another failure case.

21 years agoTry to cleanup the non-interactive disk labeling code a bit. Rework
John Baldwin [Tue, 12 Nov 2002 21:09:58 +0000 (21:09 +0000)]
Try to cleanup the non-interactive disk labeling code a bit.  Rework
the loop that runs through the environment variables to be a bit more
intuitive.  Also, change some 'continue's in failure cases to 'break's
instead.  If we are going to fail, we should just do it.

PR: bin/40654
Submitted by: Thomas Zenker <thz@Lennartz-electronic.de> (partially)

21 years agoDo a bit of cleanup. new_part() basically ignored the passed in size
John Baldwin [Tue, 12 Nov 2002 20:48:49 +0000 (20:48 +0000)]
Do a bit of cleanup.  new_part() basically ignored the passed in size
argument as of revision 1.52 (July 12, 1996, about a month after I
graduated from high school) when 'newfs -u' support was axed, so remove it.
This also allows us to remove a hack in the create partition case where we
created the partition twice since we didn't have the size the first time.

21 years agoTurn off duplicate lock checking for inp locks because udp_input()
Jeffrey Hsu [Tue, 12 Nov 2002 20:44:38 +0000 (20:44 +0000)]
Turn off duplicate lock checking for inp locks because udp_input()
intentionally locks two inp records simultaneously.

21 years agoDoh, fix a bug in previous commit. The default is to newfs for new
John Baldwin [Tue, 12 Nov 2002 20:40:15 +0000 (20:40 +0000)]
Doh, fix a bug in previous commit.  The default is to newfs for new
partitions, not to !newfs.

21 years agoWhen setting the mountpoint name, remember any previous setting of the
John Baldwin [Tue, 12 Nov 2002 20:26:52 +0000 (20:26 +0000)]
When setting the mountpoint name, remember any previous setting of the
newfs flag for this partition.

PR: bin/31837
Reported by: Oliver Breuninger <ob@www.partner.de>

21 years agoMake 'agp', 'tun', and 'if_txp' be modules on the mfsroot floppy instead of
John Baldwin [Tue, 12 Nov 2002 19:30:00 +0000 (19:30 +0000)]
Make 'agp', 'tun', and 'if_txp' be modules on the mfsroot floppy instead of
just removing them from BOOTMFS using dokern.sh.

21 years agoFix bogus return values from libc_r's writev() routine in situations where
Archie Cobbs [Tue, 12 Nov 2002 19:01:49 +0000 (19:01 +0000)]
Fix bogus return values from libc_r's writev() routine in situations where
a partial-write is followed by an error.

PR: 43335
MFC after: 3 days

21 years agorelease.9 for ia64 cannot be currently cross-built -- gpt(8)
Ruslan Ermilov [Tue, 12 Nov 2002 17:51:02 +0000 (17:51 +0000)]
release.9 for ia64 cannot be currently cross-built -- gpt(8)
is built on ia64 only.

21 years ago[DAIVD O'BRIEN's OPINION]
David E. O'Brien [Tue, 12 Nov 2002 17:31:12 +0000 (17:31 +0000)]
[DAIVD O'BRIEN's OPINION]
Head off what I think is an abuse of the TRB, and disable lukemftpd.

21 years ago- Add fwmem_xfer_req() and use this in other functions.
Hidetoshi Shimokawa [Tue, 12 Nov 2002 17:19:21 +0000 (17:19 +0000)]
- Add fwmem_xfer_req() and use this in other functions.

21 years ago- Remove unused code.
Hidetoshi Shimokawa [Tue, 12 Nov 2002 17:16:20 +0000 (17:16 +0000)]
- Remove unused code.
- Fix style.

21 years agofix wording.
Hidetoshi Shimokawa [Tue, 12 Nov 2002 17:11:32 +0000 (17:11 +0000)]
fix wording.