16 years agoDocument SUSv3 conformity.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:53:46 +0000 (11:53 +0000)]
Document SUSv3 conformity.

16 years agoUse consistent wording, blank has been changed to empty (which is POSIX
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:48:47 +0000 (11:48 +0000)]
Use consistent wording, blank has been changed to empty (which is POSIX
terminology), reflect this.

16 years agoAdd DIAGNOSTICS.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:46:52 +0000 (11:46 +0000)]

Specify conformity to SUSv3 and note how the utility is ahead of the standard
as described in the FUTURE DIRECTIONS of said standard.

16 years agoRemove part about 89 and 1989, we live in the 21st century now.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:33:34 +0000 (11:33 +0000)]
Remove part about 89 and 1989, we live in the 21st century now.

16 years agoDocument that dirname does conform to SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:24:54 +0000 (11:24 +0000)]
Document that dirname does conform to SUSv3.

16 years agoDocument that we do not conform to SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:22:36 +0000 (11:22 +0000)]
Document that we do not conform to SUSv3.


basename blah/blah// does not trim the trailing slashes, which is required
by SUSv3.

16 years agoDocument the fact we do not conform to 1003.1-2004/SUSv3.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:18:09 +0000 (11:18 +0000)]
Document the fact we do not conform to 1003.1-2004/SUSv3.

16 years agoAdd SUSv3 information.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 11:07:32 +0000 (11:07 +0000)]
Add SUSv3 information.

16 years agoActually add a copyright name.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 10:21:43 +0000 (10:21 +0000)]
Actually add a copyright name.

Noticed by: Svan

16 years agoAdd EXAMPLES.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:27:22 +0000 (09:27 +0000)]

16 years agoAdd DIAGNOSTICS.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:23:47 +0000 (09:23 +0000)]

16 years agoAdd manual page.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 09:13:48 +0000 (09:13 +0000)]
Add manual page.

16 years agoAdd sshd example, might be useful for jails.
Jeroen Ruigrok/asmodai [Sun, 31 Jul 2005 08:31:52 +0000 (08:31 +0000)]
Add sshd example, might be useful for jails.

Submitted by: Tomaz Borstnar

16 years agoUpdate the physio(9) manual page to reflect reality. Clean up the
Hiten Pandya [Sun, 31 Jul 2005 01:51:43 +0000 (01:51 +0000)]
Update the physio(9) manual page to reflect reality.  Clean up the
mdoc while I am around.

16 years agoForced commit to ensure revision 1.18 fixed a build break introduced
Hiten Pandya [Sun, 31 Jul 2005 01:50:38 +0000 (01:50 +0000)]
Forced commit to ensure revision 1.18 fixed a build break introduced
by me.

Submitted-by: Peter Avalos <pavalos@theshell.com>

16 years ago*** empty log message ***
Hiten Pandya [Sun, 31 Jul 2005 01:27:50 +0000 (01:27 +0000)]
*** empty log message ***

16 years agoFix macro name in comment.
Joerg Sonnenberger [Sat, 30 Jul 2005 21:52:28 +0000 (21:52 +0000)]
Fix macro name in comment.

16 years agoRegen.
Joerg Sonnenberger [Sat, 30 Jul 2005 20:31:01 +0000 (20:31 +0000)]

16 years agoMove ostat definition from sys/stat.h into emulation43bsd/stat.h.
Joerg Sonnenberger [Sat, 30 Jul 2005 20:29:40 +0000 (20:29 +0000)]
Move ostat definition from sys/stat.h into emulation43bsd/stat.h.

16 years agoFix manpage links.
Sascha Wildner [Sat, 30 Jul 2005 20:15:48 +0000 (20:15 +0000)]
Fix manpage links.

16 years agoGC unused variable.
Joerg Sonnenberger [Sat, 30 Jul 2005 18:52:35 +0000 (18:52 +0000)]
GC unused variable.

16 years agoSince we have a table for each device anyway, we can also use it to
Joerg Sonnenberger [Sat, 30 Jul 2005 18:15:18 +0000 (18:15 +0000)]
Since we have a table for each device anyway, we can also use it to
describe the default RID to use.

Suggestion-from: me
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoPartially backout last commit. /usr/lib is added by GCC anyway and the
Joerg Sonnenberger [Sat, 30 Jul 2005 17:10:24 +0000 (17:10 +0000)]
Partially backout last commit. /usr/lib is added by GCC anyway and the
libc build is not ready yet for automatic -lc.

16 years ago- Use MAXPATHLEN
Liam J. Foy [Sat, 30 Jul 2005 16:44:12 +0000 (16:44 +0000)]

16 years agoStop installing profiling libraries as /usr/lib/lib${LIB}_p.a, because
Joerg Sonnenberger [Sat, 30 Jul 2005 13:59:45 +0000 (13:59 +0000)]
Stop installing profiling libraries as /usr/lib/lib${LIB}_p.a, because
it makes it really hard to support shared profiling. Instead, install
them into /usr/lib/profile and tweak GCC to look there first, when -pg
is given. Also add support for /usr/lib/debug and -g respective. If both
-pg and -g are given, profile has the precedence.

Now that libc.a is always used for the static case, link all shared
objects against libc, too. This makes it easier to detect libc mixing
and can be used for stricter link-time checks in the future.

16 years ago- Fix return values to conform with SUSv3
Liam J. Foy [Sat, 30 Jul 2005 11:53:52 +0000 (11:53 +0000)]
- Fix return values to conform with SUSv3

16 years ago-malign-functions is obsolete, use -falign-functions.
Sascha Wildner [Sat, 30 Jul 2005 09:10:33 +0000 (09:10 +0000)]
-malign-functions is obsolete, use -falign-functions.

16 years agoRemove items from TODO list that have been implemented in last major
Hiten Pandya [Sat, 30 Jul 2005 01:12:22 +0000 (01:12 +0000)]
Remove items from TODO list that have been implemented in last major
update to this module.

16 years agoDocument the standard and historical behavior that open(2) returns
Jeffrey Hsu [Fri, 29 Jul 2005 23:16:04 +0000 (23:16 +0000)]
Document the standard and historical behavior that open(2) returns
the lowest unused file descriptor in the process' file descriptor table.

16 years agoUse standard bool instead of our own Boolean type.
Max Okumoto [Fri, 29 Jul 2005 22:48:41 +0000 (22:48 +0000)]
Use standard bool instead of our own Boolean type.

16 years agoRemove redundent paramter to Compat_RunCmds(), since the it is
Max Okumoto [Fri, 29 Jul 2005 22:47:01 +0000 (22:47 +0000)]
Remove redundent paramter to Compat_RunCmds(), since the it is
contained within another object which is also passed.

16 years agofix some style(9) white space problems that I missed.
Max Okumoto [Fri, 29 Jul 2005 22:45:44 +0000 (22:45 +0000)]
fix some style(9) white space problems that I missed.

16 years agoRemove parameter names from prototypes.
Sascha Wildner [Fri, 29 Jul 2005 21:17:08 +0000 (21:17 +0000)]
Remove parameter names from prototypes.

16 years agoAdd minimal manual page explaining use of bread(9) and bwrite(9) kernel
Hiten Pandya [Fri, 29 Jul 2005 16:10:36 +0000 (16:10 +0000)]
Add minimal manual page explaining use of bread(9) and bwrite(9) kernel
functions.  A minimal explanation of buffer cache initialization process
is also explained

Note, developers interested in the internals of the above functions can
extend this and the buf(9) manual page.

16 years agoRestore NCURSES_CONST constness.
Joerg Sonnenberger [Fri, 29 Jul 2005 14:20:11 +0000 (14:20 +0000)]
Restore NCURSES_CONST constness.

16 years agoFresh installations don't have libtelnet installed and older FreeBSD
Joerg Sonnenberger [Thu, 28 Jul 2005 19:48:40 +0000 (19:48 +0000)]
Fresh installations don't have libtelnet installed and older FreeBSD
systems have to take the route over 1.2 anyway, so the magic to remove
libtelnet can go away.

16 years agoUse TARGET_LIBDIR variables instead of overriding LIBDIR.
Joerg Sonnenberger [Thu, 28 Jul 2005 19:43:55 +0000 (19:43 +0000)]
Use TARGET_LIBDIR variables instead of overriding LIBDIR.

16 years agoInstead of overriding LIBDIR, override the new TARGET_LIBDIR variables.
Joerg Sonnenberger [Thu, 28 Jul 2005 19:25:41 +0000 (19:25 +0000)]
Instead of overriding LIBDIR, override the new TARGET_LIBDIR variables.
This allows the normal dependency handling to be readded.

16 years agoEliminate USEGNUDIR and instead allow the target directory to be
Joerg Sonnenberger [Thu, 28 Jul 2005 19:19:47 +0000 (19:19 +0000)]
Eliminate USEGNUDIR and instead allow the target directory to be
specified directly.

16 years agoThere is a case when B_VMIO is clear where a buffer can be placed on the
Matthew Dillon [Thu, 28 Jul 2005 18:15:09 +0000 (18:15 +0000)]
There is a case when B_VMIO is clear where a buffer can be placed on the
EMPTY or EMPTYKVA queues without being disassociated from its vnode.
This can lead to a duplicate logical block panic in the red-black tree code.
Rework brelse() to ensure that buffers are properly cleaned up before being
placed on said queues, and add assertions to validate other cases.

Reported-by: Tomaz Borstnar
16 years agoIf multiple processes are being traced and some other process has a write
Matthew Dillon [Thu, 28 Jul 2005 18:10:23 +0000 (18:10 +0000)]
If multiple processes are being traced and some other process has a write
error, the vnode ref that we rely on from p_tracep can get ripped out from
under us, causing a panic.  vref() a the ktrace vnode for the duration of
the write rather then relying on the ref from p_tracep.

16 years agoRemove break after return.
Joerg Sonnenberger [Thu, 28 Jul 2005 16:57:09 +0000 (16:57 +0000)]
Remove break after return.

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoWhile setting up a transmit packet disable interupts on the card then
Joerg Sonnenberger [Thu, 28 Jul 2005 16:56:37 +0000 (16:56 +0000)]
While setting up a transmit packet disable interupts on the card then
re-enable them after we are done setting up the packet.  This seems to
fix the MPI350 newer firmware hangs.

Obtained-from: FreeBSD (if_an.c,
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoSync with FreeBSD(if_an.c, if_aironet_ieee.h
Joerg Sonnenberger [Thu, 28 Jul 2005 16:55:17 +0000 (16:55 +0000)]
Sync with FreeBSD(if_an.c, if_aironet_ieee.h

- Bump up the general and status RID sizes
- Clear out an_dma_vaddr on free so we can test to see if dma is
  setup when the card is kldunloaded/kldloaded etc. only for MPI350
- Notify on RID read overflow and truncate this currently causes
  a panic in -stable when the stack during an ifconfig an0 is done
  with newer firmware

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoSync with FreeBSD(if_anreg.h, if_an.c and
Joerg Sonnenberger [Thu, 28 Jul 2005 16:52:44 +0000 (16:52 +0000)]
Sync with FreeBSD(if_anreg.h, if_an.c and

- Add support for Cisco latest firmware RID sizes that supports 25
- Fix up TX speed changes.
- Make mpi-350 cards sort-of work with new firmware.  It RXs okay but
TXs only work for about 14 packets then fails to get an interrupt.
The TX watchdog fires.  It has been reported that my hack for now
doesn't break cards with the older firmware.  It appears my card has
lost the ability to RX or TX at all but other peoples cards work.  I
assume it got damaged in tansport.

Obtained-from: FreeBSD
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoRemove unnecessary initialisations. Return ENXIO instead of 1 in
Joerg Sonnenberger [Thu, 28 Jul 2005 16:33:25 +0000 (16:33 +0000)]
Remove unnecessary initialisations. Return ENXIO instead of 1 in
an_pccard_probe. Separate error path and normal normal return in
ac_pccard_attach. GC AN_PCI_PLX_LOIO. Don't mess with PCI controll
register, it's already down by the PCI layer.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
In addition, reverse the return value of an_probe. It doesn't make sense
to return 0 on failure, if the callee are interested only in the error,
not the success code.

16 years agoUse pcidevs and common PCI probe style.
Joerg Sonnenberger [Thu, 28 Jul 2005 16:22:59 +0000 (16:22 +0000)]
Use pcidevs and common PCI probe style.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoAdd some useful GDB macros that have been sitting in my local tree,
Hiten Pandya [Thu, 28 Jul 2005 15:48:56 +0000 (15:48 +0000)]
Add some useful GDB macros that have been sitting in my local tree,
used for displaying mount structures, lsvfs, and vfsops iteration.

16 years agoRemove useless .PATH entries inherited from FreeBSD.
Joerg Sonnenberger [Thu, 28 Jul 2005 00:06:10 +0000 (00:06 +0000)]
Remove useless .PATH entries inherited from FreeBSD.

16 years agoFactor out an_detach, since the implementation for all busses is
Joerg Sonnenberger [Wed, 27 Jul 2005 21:56:32 +0000 (21:56 +0000)]
Factor out an_detach, since the implementation for all busses is
(almost) identical. Remove useless .PATH.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoFix typo.
David Rhodus [Wed, 27 Jul 2005 18:26:28 +0000 (18:26 +0000)]
Fix typo.

16 years agocvtstat doesn't exist.
Joerg Sonnenberger [Wed, 27 Jul 2005 15:56:18 +0000 (15:56 +0000)]
cvtstat doesn't exist.

16 years agoMerge revision 1.38 from FreeBSD:
Joerg Sonnenberger [Wed, 27 Jul 2005 14:35:55 +0000 (14:35 +0000)]
Merge revision 1.38 from FreeBSD:
Remove advertising clause from University of California Regent's
per letter dated July 22, 1999.

Approved by: core

16 years agoFix typo.
Joerg Sonnenberger [Wed, 27 Jul 2005 14:31:11 +0000 (14:31 +0000)]
Fix typo.

Found-by: corecode
16 years agoAdd a missing crit_exit().
Matthew Dillon [Wed, 27 Jul 2005 07:55:15 +0000 (07:55 +0000)]
Add a missing crit_exit().

Found-by: Tomaz Borstnar using DEBUG_CRIT_SECTIONS
16 years agoFreeBSD and NetBSD both use derivates of Sun's math library. On FreeBSD,
Joerg Sonnenberger [Tue, 26 Jul 2005 21:15:20 +0000 (21:15 +0000)]
FreeBSD and NetBSD both use derivates of Sun's math library. On FreeBSD,
it's been put into lib/msun, on NetBSD it is under lib/libm. Since
DragonFly misses a lot of the changes which went into both and I
consider the NetBSD version cleaner, switch to that.

Biggest difference to NetBSD is the omission of wrappers for non-IEEE757
floating point support. There's no point in supporting anything but IEEE
757 and that saves at least a function call per math entry point.

Addtionally, important the fpclassify, isinf, isnan and signbit
functions into libc as required for C99.

Remove the support for non-POSIX operation. matherr is pointless and
wasn't really supported anyway.

16 years agoAdd a new kernel compile debugging option, DEBUG_CRIT_SECTIONS. This fairly
Matthew Dillon [Tue, 26 Jul 2005 20:53:58 +0000 (20:53 +0000)]
Add a new kernel compile debugging option, DEBUG_CRIT_SECTIONS.  This fairly
invasive debugging option compiles matching code into the critical section
inlines and reports mismatches at run-time.   It is used to detect
missing/forgotten crit_exit() calls.

Note that because there are a number of places where critical sections are
manipulated outside the procedures that entered them, this code will
generate a number of false hits and should only be used under the direction
of experienced developers.

Note that the thread structure will be extended by this option.

16 years agoAdd missing crit_exit().
Matthew Dillon [Tue, 26 Jul 2005 20:48:41 +0000 (20:48 +0000)]
Add missing crit_exit().

16 years ago- Don't role our own - use err(3)
Liam J. Foy [Tue, 26 Jul 2005 20:17:31 +0000 (20:17 +0000)]
- Don't role our own - use err(3)

16 years agoAdd a missing FREE_LOCK() call.
Matthew Dillon [Tue, 26 Jul 2005 18:02:49 +0000 (18:02 +0000)]
Add a missing FREE_LOCK() call.

16 years agoSimplify conditional by making use of __DF_VISIBLE and __ISO_C_VISIBLE.
Joerg Sonnenberger [Tue, 26 Jul 2005 16:45:58 +0000 (16:45 +0000)]
Simplify conditional by making use of __DF_VISIBLE and __ISO_C_VISIBLE.

16 years agoAdd a new feature-test macro __DF_VISIBLE for those functions we want to
Joerg Sonnenberger [Tue, 26 Jul 2005 16:45:04 +0000 (16:45 +0000)]
Add a new feature-test macro __DF_VISIBLE for those functions we want to
explicitly enable independent of standards being choosen. This is the
default either when no other macro was provided or when _DRAGONFLY_SOURCE
or _NETBSD_SOURCE were specified.

16 years agoClean the VFS operations vector and related code:
Hiten Pandya [Tue, 26 Jul 2005 15:43:36 +0000 (15:43 +0000)]
Clean the VFS operations vector and related code:

* take advantage of C99 sparse structure initialisation, this allows
  us to initialise left out vfsops entries cleanly when vfs_register()
  is called; any vfsop entries that are not specified will be assigned
  vfs_std* functions.  the only exception to this rule is VFS_SYNC
  which is assigned vfs_stdnosync() since a file system may not have
  support for it.  file systems can simply assign vfs_stdsync if they
  do not have their own sync operation.

* add KKASSERTS to make sure that the VFS_ROOT, VFS_MOUNT and VFS_UNMOUNT
  vfs operations are provided by a file system being registered.  all of
  the above are necessary to ensure a minimally working file system.

* remove scattered no-op definitions of VFS_START() vfsop vector entry
  and take advantage of sparse vfsop initialisation.  VFS_START is only
  used by MFS to make ensure calling process is not swapped out when
  I/O is initialised.  The entry point is called from the mount path,
  before the file system is marked ready.

* remove scattered no-op definitions of VFS_QUOTACTL() vfsop vector entry
  and take advantage of sparse vfsop initialisation.

* give UFS a VFS_UNINIT vfsop entry and make use of it in ext2fs when
  ripping down the hash tables.

* many file systems in the kernel seem to not implement the complementing
  VFS_UNINIT() vfsop entry, this is not so much of a problem when the
  file system is compiled into the kernel, but it can leave leakage when
  compiled as KLD modules.  add uninitialisation code and entry points
  for ext2fs, ufs, fdescfs.  grab the ufs_ihash_token when free'ing the
  inode hash table at ripping time.

* add typedefs for all the vfsop entry points, make use of it in definition
  of struct vfsops; this results in clean and consolidate code.  use the
  typedefs for vfs_std* function prototypes.

16 years agoDrop GCC < 1 support, simplify inline assembly and use proper #error for
Joerg Sonnenberger [Tue, 26 Jul 2005 14:56:04 +0000 (14:56 +0000)]
Drop GCC < 1 support, simplify inline assembly and use proper #error for
!GCC case.

16 years agoDon't panic. Also races in the attach path.
Joerg Sonnenberger [Tue, 26 Jul 2005 12:40:38 +0000 (12:40 +0000)]
Don't panic. Also races in the attach path.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Paniced-for: eirikn

16 years agoRemove installation of the dragonfly{,.submit}.cf files since users may
Gregory Neil Shapiro [Tue, 26 Jul 2005 02:40:25 +0000 (02:40 +0000)]
Remove installation of the dragonfly{,.submit}.cf files since users may
do a 'make upgrade' before a 'make buildworld' and the .cf files won't
exist.  Strictly speaking, we don't need them in /etc/mail/ for
/etc/mail/Makefile to work properly anyway so this is a safe change.

I prefer this to adding the .cf files as dependencies to the upgrade
target since that target shouldn't do any building (i.e., 'make upgrade'
doesn't do things like 'make obj' first).

16 years agoRemove outdated information with regard to old tinderbox.
Hiten Pandya [Tue, 26 Jul 2005 00:29:38 +0000 (00:29 +0000)]
Remove outdated information with regard to old tinderbox.

16 years agoRemove reference to devd.
David Rhodus [Mon, 25 Jul 2005 18:57:36 +0000 (18:57 +0000)]
Remove reference to devd.

16 years agoUpdate the unifdef(1) utility to the latest code from FreeBSD, and the
Hiten Pandya [Mon, 25 Jul 2005 17:51:36 +0000 (17:51 +0000)]
Update the unifdef(1) utility to the latest code from FreeBSD, and the
manual page as well.

Obtained-from: FreeBSD

16 years agoRemove conditional bits about other operating systems, they are not
Hiten Pandya [Mon, 25 Jul 2005 17:25:51 +0000 (17:25 +0000)]
Remove conditional bits about other operating systems, they are not
required and just get in the way.

16 years agoInstall pam.d's README and convert.sh as part of upgrade_etc.
Joerg Sonnenberger [Mon, 25 Jul 2005 16:04:36 +0000 (16:04 +0000)]
Install pam.d's README and convert.sh as part of upgrade_etc.
Don't install or convert the configuration automatically, it might
surprise the administrator.

16 years agoAdd support for HP hn210e usb ethernet.
Joerg Sonnenberger [Mon, 25 Jul 2005 12:46:59 +0000 (12:46 +0000)]
Add support for HP hn210e usb ethernet.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Obtained-from: FreeBSD

16 years agoUnhook rc.d/network, it should be unused.
Joerg Sonnenberger [Mon, 25 Jul 2005 01:29:03 +0000 (01:29 +0000)]
Unhook rc.d/network, it should be unused.

16 years agoGC unused header from BSD libm.
Joerg Sonnenberger [Mon, 25 Jul 2005 00:46:16 +0000 (00:46 +0000)]
GC unused header from BSD libm.

16 years agoAdd most parts of the wide char stdio support. This is not hooked up
Joerg Sonnenberger [Mon, 25 Jul 2005 00:37:41 +0000 (00:37 +0000)]
Add most parts of the wide char stdio support. This is not hooked up

Obtained-from: NetBSD, mostly derived from FreeBSD

16 years agoBring DragonFly's sendmail infrastructure up to date. This commit includes:
Gregory Neil Shapiro [Mon, 25 Jul 2005 00:24:32 +0000 (00:24 +0000)]
Bring DragonFly's sendmail infrastructure up to date.  This commit includes:

- Upgrading base system from sendmail 8.12.10 to 8.13.4 (which includes
  native DragonFly support so DragonFly no longer needs to pretend to be
- Drop the FreeBSD-only add-ons of nobiff and nofsync for mail.local
  and the FreeBSD-customized Received: header format and instead use the
  distribution as released by sendmail.org.
- Default to /etc/mail/dragonfly.mc and /etc/mail/dragonfly.submit.mc
  instead of /etc/mail/freebsd{,.submit}.mc.
  - Users should be sure to 'cd /usr/src; make upgrade' to get the
    new dragonfly{,.submit}.mc files installed into /etc/mail/.
    (Or you can just do the sendmail portion with 'cd /usr/src/etc/sendmail;
    make upgrade'.)
- Support for per-host submit.mc files (i.e., /etc/mail/`hostname`.submit.mc).
- New SENDMAIL_CF_DIR make.conf variable for overriding location of the
  sendmail/cf directory (default is still /usr/share/sendmail/cf/).
- Better sendmail_enable checking in /etc/rc.sendmail.
- /etc/periodic/daily/150.clean-hoststat now does the right thing and only
  cleans expired host status entries using the purgestat command.

16 years agoAdd description of FPU for floating point conversion functions.
Joerg Sonnenberger [Sun, 24 Jul 2005 20:23:00 +0000 (20:23 +0000)]
Add description of FPU for floating point conversion functions.

16 years agoJust threat all ELF dynamic objects as shared libraries, don't verify
Joerg Sonnenberger [Sun, 24 Jul 2005 15:04:56 +0000 (15:04 +0000)]
Just threat all ELF dynamic objects as shared libraries, don't verify
the ELF OS ABI. This unbreaks ldd on shared libraries and works e.g. for
Linux libs too.

Remainder-from: corecode, buggs

16 years agoFix C++.
Joerg Sonnenberger [Sun, 24 Jul 2005 12:40:36 +0000 (12:40 +0000)]
Fix C++.

16 years agoregen.
Joerg Sonnenberger [Sat, 23 Jul 2005 23:27:28 +0000 (23:27 +0000)]

16 years agoRemove partial NetBSD support. It's pointless to have an emulation of
Joerg Sonnenberger [Sat, 23 Jul 2005 23:26:50 +0000 (23:26 +0000)]
Remove partial NetBSD support. It's pointless to have an emulation of
three syscalls (stat, lstat and fstat), the rest was never finished.

Discussed-with: dillon

16 years agoMerge __sFILEX into __FILE. Let __fpending handle the ungetc buffer
Joerg Sonnenberger [Sat, 23 Jul 2005 23:14:44 +0000 (23:14 +0000)]
Merge __sFILEX into __FILE. Let __fpending handle the ungetc buffer

16 years agoFirst step to cleaning up stdio. This breaks the libc ABI, all programs
Joerg Sonnenberger [Sat, 23 Jul 2005 20:23:06 +0000 (20:23 +0000)]
First step to cleaning up stdio. This breaks the libc ABI, all programs
have to be recompiled.

Make FILE an opaque type for normal operation (anything outside libc).
This means programs have to use the exported interface, they can neither
make static instances on the heap or access fields of their own.

Introduce a new type __FILE_public, which contains the fields accessed
by the various macros. It is placed first in the real FILE and the
macros cast the given FILE * to __FILE_public for access. To allow
better argument checks, all macros have been converted to inline
functions instead.

Merge the various stdio helper headers into a single priv_stdio.h. The
license from the original files has been kept, the third clause is gone
as part of the UCB copyright addendum. They haven't been changed in
FreeBSD at all.

Add two new helper functions, fcookie and __fpending to read parts of
the hidden state. The former is handy for funopen users, the latter
exists on other systems as well.

Cleanup some minor warnings on the way and hide some local functions
with static.

Adept libftpio and CVS to the chanced API.

16 years agoAdd shlock(1), a program for the safe creation of lock files from shell
Joerg Sonnenberger [Sat, 23 Jul 2005 19:47:15 +0000 (19:47 +0000)]
Add shlock(1), a program for the safe creation of lock files from shell
scripts. It's uses the same algorithm as implemented by Erik Fair, but
is easier to read and more stricter in checking for error conditions.

16 years agoSupport disablement of chflags in a jail, part 2/2. This actually isn't
Matthew Dillon [Sat, 23 Jul 2005 18:08:50 +0000 (18:08 +0000)]
Support disablement of chflags in a jail, part 2/2.  This actually isn't
a complete disablement.  Like FreeBSD user-level chflags always work.  This
syctl just controls whether root-level chflags should operate as a root
chflags or a user chflags inside a jail.

Submitted-by: Deyan Dyankov <deyan.dyankov@gmail.com>
Taken-from: FreeBSD

16 years agopthread_self is used by stdio.
Joerg Sonnenberger [Sat, 23 Jul 2005 14:16:13 +0000 (14:16 +0000)]
pthread_self is used by stdio.

16 years agoDo not compile the kernel with the stack protector. I've decided to tolerate
Matthew Dillon [Sat, 23 Jul 2005 07:33:43 +0000 (07:33 +0000)]
Do not compile the kernel with the stack protector.  I've decided to tolerate
the stack protector as a default for user programs, but not for the kernel.
The stack protector has known bugs and I frankly believe that it is far more
likely that we would hit one of its bugs verses it actually finding a
stack overflow in the kernel.

16 years agoFix a sockbuf race. Currently the m_free*() path can block, due to
Matthew Dillon [Sat, 23 Jul 2005 07:28:36 +0000 (07:28 +0000)]
Fix a sockbuf race.  Currently the m_free*() path can block, due to
objcache_put() blocking when it must access the global depot.  This breaks
the critical section *AND the BGL during a time when the sockbuf state is
inconsistent.  Another process accessing the same sockbuf would then
corrupt it.  Since depot access is fairly rare, this bug typically required
a number of hours to reproduce.

Delay the actual freeing of mbufs until after the sockbuf state has been
updated.  Encapsulate common operations in a procedure, and add additional
assertions.  NULL out sb_lastrecord when it becomes invalid, and add a
considerable amount of debugging code.

SOCKBUF_DEBUG has been added.  Note that this is a VERY EXPENSIVE
kernel compile option which should only be used when specifically debugging
the networking subsystem.

This is a stabilization patch is rather hackish.  A better cleanup will
occur once we are sure we've fixed all the bugs.

sbcheck provided by: Jeffrey Hsu
Reported-by: David Rhodus, Peter Avalos, YONETANI Tomokazu,
     Tomaz Borstnar, and numerous other people.

16 years agoFix a critical bug in the IPI messaging code, effecting SMP systems. In
Matthew Dillon [Sat, 23 Jul 2005 07:17:42 +0000 (07:17 +0000)]
Fix a critical bug in the IPI messaging code, effecting SMP systems.  In
order to avoid placing a load fence in the FIFO scanning loop the FIFO write
index is cached and the code then loops the read index until it reaches
the cached write index, rather then real-time write index.  However, if a
FIFO full condition occurs during the callback AND additional IPIQ messages
are queued to the current cpu by a remote cpu at the same time, a recursive
call to lwkt_process_ipiq*() can occur and advance the read index past
the cached write index of the parent processing loop.

An exact comparison against the cached write index was being used which
resulted in the parent processing loop blowing past the actual write
index and re-executing stale IPI messages.  Fix the comparison.

The nature of this bug combined with other bugs in the token code and the
sockbuf code (which were causing crashes far more often) made this a
particularly nasty problem to find, with it taking upwards of a week to
generate a crash and the crash occuring at the worst place imagineable
(a hard IPI interrupt) and doing terrible things (re-executing a stale
IPI message).  It took KTR logging on both the sending and receiving
side of the IPI code to nail the problem.

Very special thanks to Peter Avalos and David rhodus for their debugging
help.  And, most especially, David Rhodus for helping track this down over
the last *THREE* months.

Reported-by: David Rhodus, Peter Avalos, YONETANI Tomokazu, Tomaz Borstnar
Special-thanks-to: David Rhodus and Peter Avalos

16 years agoSplit monolithic /etc/pam.conf into separate files for each service
Joerg Sonnenberger [Fri, 22 Jul 2005 18:20:43 +0000 (18:20 +0000)]
Split monolithic /etc/pam.conf into separate files for each service
under /etc/pam.d. The README was obtained from FreeBSD, the convert.sh
script is inspired by convert.pl, but works with sh and awk only.

If you just want to convert your existing configuration to the new
format, run "sh /etc/pam.d/convert.sh". You can remove /etc/pam.conf

16 years agoGet rid off extraneous spaces in function prototypes.
Jeroen Ruigrok/asmodai [Fri, 22 Jul 2005 18:11:05 +0000 (18:11 +0000)]
Get rid off extraneous spaces in function prototypes.

16 years agoAdd information about console fonts.
Sascha Wildner [Fri, 22 Jul 2005 15:55:56 +0000 (15:55 +0000)]
Add information about console fonts.

16 years agoAdd emulation of statvfs and fstatvfs based on statfs / fstatfs.
Joerg Sonnenberger [Thu, 21 Jul 2005 21:33:26 +0000 (21:33 +0000)]
Add emulation of statvfs and fstatvfs based on statfs / fstatfs.

16 years agoSome more junk to remove after manual installation.
Joerg Sonnenberger [Thu, 21 Jul 2005 20:31:19 +0000 (20:31 +0000)]
Some more junk to remove after manual installation.

16 years agoRemove part about wscons. This will need information about our console
Jeroen Ruigrok/asmodai [Thu, 21 Jul 2005 20:08:53 +0000 (20:08 +0000)]
Remove part about wscons.  This will need information about our console

16 years agoReorder alphabetically.
Jeroen Ruigrok/asmodai [Thu, 21 Jul 2005 20:06:07 +0000 (20:06 +0000)]
Reorder alphabetically.

16 years agoAdd NetBSD's nls(7).
Jeroen Ruigrok/asmodai [Thu, 21 Jul 2005 20:04:53 +0000 (20:04 +0000)]
Add NetBSD's nls(7).

16 years agoMark zlib 1.2.2 as dead.
Joerg Sonnenberger [Thu, 21 Jul 2005 16:09:41 +0000 (16:09 +0000)]
Mark zlib 1.2.2 as dead.

16 years agoMerge from vendor branch ZLIB:
Joerg Sonnenberger [Thu, 21 Jul 2005 16:07:41 +0000 (16:07 +0000)]
Merge from vendor branch ZLIB:
Switch to zlib 1.2.3, imported under contrib/zlib-1.2 to reduce impact
of latter updates. Remove fix the inflate bug, it is included already.

16 years agoSwitch to zlib 1.2.3, imported under contrib/zlib-1.2 to reduce impact
Joerg Sonnenberger [Thu, 21 Jul 2005 16:07:41 +0000 (16:07 +0000)]
Switch to zlib 1.2.3, imported under contrib/zlib-1.2 to reduce impact
of latter updates. Remove fix the inflate bug, it is included already.