]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoA little bit of anti-foot-shooting. Use utimes(2) rather than
Peter Wemm [Fri, 15 Nov 2002 22:43:56 +0000 (22:43 +0000)]
A little bit of anti-foot-shooting.  Use utimes(2) rather than
the deprecated utime(3).  utimes(2) uses timeval, but utime(3) uses
time_t's.  If you do bad things (like I did) by mixing up include files
with libc, then install can do strange things if you mismatch the time_t
stuff.  utime() is emulated entirely within libc.

Approved by:  re (jhb)

21 years agoutmp.ut_time and lastlog.ll_time are explicitly int32_t rather than
Peter Wemm [Fri, 15 Nov 2002 22:42:00 +0000 (22:42 +0000)]
utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than
time_t.  Deal with the possibility that time_t != int32_t.  This boils
down to this sort of thing:
 -   time(&ut.ut_time);
 +   ut.ut_time = time(NULL);
and similar for ctime(3) etc.  I've kept it minimal for the stuff
that may need to be portable (or 3rd party code), but used Matt's time32
stuff for cases where that isn't as much of a concern.

Approved by: re (jhb)

21 years agoDo not assume that time_t is an int.
Peter Wemm [Fri, 15 Nov 2002 22:36:57 +0000 (22:36 +0000)]
Do not assume that time_t is an int.

Approved by: re (jhb)

21 years agoTest the water. Make time_t long (64 bit) on ia64 since we do not have
Peter Wemm [Fri, 15 Nov 2002 22:35:34 +0000 (22:35 +0000)]
Test the water.  Make time_t long (64 bit) on ia64 since we do not have
to worry about ABI vs released systems yet.  This is mostly transparent
since there is no significant exposure in the syscall interface.  The
things that go wrong are mostly userland stuff - time(&intvariable).

Reviewed by: dfr, marcel
Approved by: re (jhb)

21 years agoRework the checking out of the doc, src, and ports trees a bit to make it
John Baldwin [Fri, 15 Nov 2002 22:03:25 +0000 (22:03 +0000)]
Rework the checking out of the doc, src, and ports trees a bit to make it
more manageable.
- Add some helper variables (CVS_{SRC,DOC,PORTS}ARGS) to be used when
  using CVS to checkout files.  We stick release tags in these helper
  variables if they are defined and then use only one cvs command instead
  of two cvs commands with an .ifdef to choose between them.
- rm the old src/doc/ports directories as separate commands from the
  CVS comands so that the rm commands don't need to be duplicated.
- Simplify the DOMINIMALDOCPORTS case by overriding RELEASEPORTSMODULE to
  be ${MINIMALDOCPORTS} thus removing yet another nearly-duplicate cvs
  command in an .ifdef.
- Add support for grabbing src/ and doc/ from external directories
  specified via EXTSRCDIR and EXTDOCDIR instead of from CVS.  The same
  is not done for ports/ quite yet as the DOMINIMALDOCPORTS case is a
  bit tricky.

The rerelease target scripts have not been changed to use the helper
variables yet, so there is still some room for improvement.

Submitted by: kuriyama (4)

21 years agoDocument NOCDROM and NO_FLOPPIES.
John Baldwin [Fri, 15 Nov 2002 20:55:37 +0000 (20:55 +0000)]
Document NOCDROM and NO_FLOPPIES.

21 years agoAllow a person to specify NOCDROM to skip the cdrom.1 target during a
John Baldwin [Fri, 15 Nov 2002 20:51:27 +0000 (20:51 +0000)]
Allow a person to specify NOCDROM to skip the cdrom.1 target during a
release build.

PR: 45300
Submitted by: David Yeske <dyeske@yahoo.com>

21 years agoExplicitly add lang/perl5 to the disc1 packages. Practically speaking,
Bruce A. Mah [Fri, 15 Nov 2002 19:34:31 +0000 (19:34 +0000)]
Explicitly add lang/perl5 to the disc1 packages.  Practically speaking,
this is unnecessary, because some other port is likely to depend on it
anyways.  But just to be safe...

21 years agoBackout rev. 1.263.
Ruslan Ermilov [Fri, 15 Nov 2002 18:44:09 +0000 (18:44 +0000)]
Backout rev. 1.263.

Approved by: jmallett

21 years agoBack out rev 1.150; things are more complicated than this.
Sam Leffler [Fri, 15 Nov 2002 18:42:10 +0000 (18:42 +0000)]
Back out rev 1.150; things are more complicated than this.

21 years agoif_attach should not sleep; change malloc's M_WAITOK to M_NOWAIT
Sam Leffler [Fri, 15 Nov 2002 18:35:41 +0000 (18:35 +0000)]
if_attach should not sleep; change malloc's M_WAITOK to M_NOWAIT

21 years agoUpdate sparc64 installation instructions. Because sysinstall now
Bruce A. Mah [Fri, 15 Nov 2002 17:57:51 +0000 (17:57 +0000)]
Update sparc64 installation instructions.  Because sysinstall now
works on sparc64, this document can now use (almost) the same
procedures as i386, et al.  CDROM booting instructions are cut-and-pasted
from the older sparc64/install.sgml file, which is now unlinked from
the document build.

This document is a long ways from perfect, but it's better than shipping
instructions for an installation procedure that doesn't apply anymore.

While here, add some SGML comments to help others navigate the sources.

21 years agoCatch up with sam's changes to network interfaces.
Maxime Henrion [Fri, 15 Nov 2002 14:36:33 +0000 (14:36 +0000)]
Catch up with sam's changes to network interfaces.

21 years agoFixed style(9)
Yoshihiro Takahashi [Fri, 15 Nov 2002 13:24:29 +0000 (13:24 +0000)]
Fixed style(9)

21 years agoFix to build for pc98.
Yoshihiro Takahashi [Fri, 15 Nov 2002 13:18:41 +0000 (13:18 +0000)]
Fix to build for pc98.

21 years agoFixed two typos in comments.
Ruslan Ermilov [Fri, 15 Nov 2002 08:26:36 +0000 (08:26 +0000)]
Fixed two typos in comments.

21 years agoReturn EWOULDBLOCK for last thread in kse_release().
David Xu [Fri, 15 Nov 2002 00:53:59 +0000 (00:53 +0000)]
Return EWOULDBLOCK for last thread in kse_release().

Requested by: archie

21 years agoWhen about to do an execve(), don't reset the O_NONBLOCK flag on any file
Archie Cobbs [Fri, 15 Nov 2002 00:34:28 +0000 (00:34 +0000)]
When about to do an execve(), don't reset the O_NONBLOCK flag on any file
descriptors that have the close-on-exec flag set, as that will have no
effect anyway and might screw something else up if the file descriptor
happens to be shared with another process.

PR: standards/43335
MFC after: 1 week

21 years agoupdate vlandev description; vlan code now auto-recognizes devices that
Sam Leffler [Fri, 15 Nov 2002 00:31:49 +0000 (00:31 +0000)]
update vlandev description; vlan code now auto-recognizes devices that
support h/w tagging

21 years agodocument auto-recognition of device capabilities
Sam Leffler [Fri, 15 Nov 2002 00:25:33 +0000 (00:25 +0000)]
document auto-recognition of device capabilities

21 years agoo display new interface capability bits
Sam Leffler [Fri, 15 Nov 2002 00:02:21 +0000 (00:02 +0000)]
o display new interface capability bits
o capitilize capability bit strings for consistency

Approved by: re

21 years agonetwork interface and link layer changes:
Sam Leffler [Fri, 15 Nov 2002 00:00:15 +0000 (00:00 +0000)]
network interface and link layer changes:

o on input don't strip the Ethernet header from packets
o input packet handling is now done with if_input
o track changes to ether_ifattach/ether_ifdetach API
o track changes to bpf tapping
o call ether_ioctl for default handling of ioctl's
o use constants from net/ethernet.h where possible

Reviewed by: many
Approved by: re

21 years agotrack changes to ethernet input handling to no longer strip the Ethernet header
Sam Leffler [Thu, 14 Nov 2002 23:57:09 +0000 (23:57 +0000)]
track changes to ethernet input handling to no longer strip the Ethernet header

Reviewed by: many
Approved by: re

21 years agonetwork interface driver changes:
Sam Leffler [Thu, 14 Nov 2002 23:54:55 +0000 (23:54 +0000)]
network interface driver changes:

o don't strip the Ethernet header from inbound packets; pass packets
  up the stack intact (required significant changes to some drivers)
o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN)
o track ether_ifattach/ether_ifdetach API changes
o track bpf changes (use BPF_TAP and BPF_MTAP)
o track vlan changes (ifnet capabilities, revised processing scheme, etc.)
o use if_input to pass packets "up"
o call ether_ioctl for default handling of ioctls

Reviewed by: many
Approved by: re

21 years agoo track either_ifattach/ether_ifdetach API changes
Sam Leffler [Thu, 14 Nov 2002 23:49:09 +0000 (23:49 +0000)]
o track either_ifattach/ether_ifdetach API changes
o use if_input for input packet processing
o don't strip the Ethernet header for input packets
o use BPF_* macros bpf tapping
o call ether_ioctl to handle default ioctl case
o track vlan changes

Reviewed by: many
Approved by: re

21 years agotrack changes to not strip the Ethernet header from input packets
Sam Leffler [Thu, 14 Nov 2002 23:46:04 +0000 (23:46 +0000)]
track changes to not strip the Ethernet header from input packets

Reviewed by: many
Approved by: re

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