]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years ago- To make it easier to compile *printf() and *scanf() without
David Schultz [Sun, 2 May 2004 10:55:06 +0000 (10:55 +0000)]
- To make it easier to compile *printf() and *scanf() without
  floating-point support, remove default definition of FLOATING_POINT
  from the source, and change the compile-time option to
  NO_FLOATING_POINT.
- Remove the HEXFLOAT option.  It saves an insignificant amount of
  space (<0.1% of the size of libc on i386) and complicates vfprintf()
  and checkfmt().

20 years agoWhen *printf() and *scanf() are compiled without floating-point
David Schultz [Sun, 2 May 2004 10:55:05 +0000 (10:55 +0000)]
When *printf() and *scanf() are compiled without floating-point
support, fmtcheck() should not accept format strings that contain
floating-point formats.

20 years ago- style(9) improvements courtesy of bde.
Sean Kelly [Sun, 2 May 2004 07:07:54 +0000 (07:07 +0000)]
- style(9) improvements courtesy of bde.
- Revise the former commit to behave nicer on filenames containing
  multiple '.' characters.
- Prevent the generation of macros starting with "__".

20 years agoRename ip_claim_next_hop() to m_claim_next_hop(), give it an extra arg
Darren Reed [Sun, 2 May 2004 06:36:30 +0000 (06:36 +0000)]
Rename ip_claim_next_hop() to m_claim_next_hop(), give it an extra arg
(the type of tag to claim) and push it out of ip_var.h into mbuf.h alongside
all of the other macros that work ok mbuf's and tag's.

20 years agoRemove old cy driver files. They have been repo-copied to sys/dev/cy and
Bruce Evans [Sun, 2 May 2004 05:38:49 +0000 (05:38 +0000)]
Remove old cy driver files.  They have been repo-copied to sys/dev/cy and
sys/dev/ic and adjusted to work there.

20 years agoSwitch to using the moved cy driver (adjust pathnames and remove "count"
Bruce Evans [Sun, 2 May 2004 05:21:29 +0000 (05:21 +0000)]
Switch to using the moved cy driver (adjust pathnames and remove "count"
parameter).

Keep using it only in the i386 NOTES for now.  It is fairly MI, but it
doesn't use bus-space and has a couple of i386 i/o instructions in pci
intitialization.

20 years agoRemove the static reservation of the asr major number
Scott Long [Sun, 2 May 2004 03:51:53 +0000 (03:51 +0000)]
Remove the static reservation of the asr major number

20 years agoRemove the defAlignLong and getAlignLong macros. I guess that the original
Scott Long [Sun, 2 May 2004 03:33:18 +0000 (03:33 +0000)]
Remove the defAlignLong and getAlignLong macros.  I guess that the original
intent was to make sure that message structs allocated off of the stack were
4-byte aligned.  However, the macros as defined did absolutely nothing.
And since I2O forces you to manually copy messages down to the hardware, there
really is no point of enforced alignment anyways.

20 years agoApply patch from gzip web page to correctly decompress files larger than
Tim J. Robbins [Sun, 2 May 2004 02:54:37 +0000 (02:54 +0000)]
Apply patch from gzip web page to correctly decompress files larger than
4GB on architectures with 64-bit long integers.

20 years agoTeach rpcgen to generate .h files properly when the input filename contains
Sean Kelly [Sun, 2 May 2004 01:55:23 +0000 (01:55 +0000)]
Teach rpcgen to generate .h files properly when the input filename contains
characters that can't be used in preprocessor macros.

PR: bin/66156
Submitted by: K S Braunsdorf <rpc@ksb.npcguild.org>

20 years agoA security issue: An archive containing a symlink to another
Tim Kientzle [Sun, 2 May 2004 00:43:02 +0000 (00:43 +0000)]
A security issue: An archive containing a symlink to another
directory, then a file with that symlink as a prefix can drop a file
outside of the current directory, which can be a security hole.

Plug this hole by refusing to extract files if a prefix of the
pathname is a symlink.  The -P option disables this check.

20 years agoInclude appropriate flag header on Linux.
Tim Kientzle [Sun, 2 May 2004 00:38:38 +0000 (00:38 +0000)]
Include appropriate flag header on Linux.

20 years agoRemove the bogus printing of the asr control device major number. Also
Scott Long [Sun, 2 May 2004 00:27:54 +0000 (00:27 +0000)]
Remove the bogus printing of the asr control device major number.  Also
rename the control device from rasr%d to asr%d.  This starts us down the
path of divorcing ourselves from a very bogus design in the management
apps.  Since the apps are open source now, they will likely be updated
and fixed before 5.3.

20 years agoStyle fixes, most suggested by bde.
Tim Kientzle [Sat, 1 May 2004 21:47:31 +0000 (21:47 +0000)]
Style fixes, most suggested by bde.

20 years agoReduce differences with cy_isa.c: fixed an unsorted include.
Bruce Evans [Sat, 1 May 2004 18:43:00 +0000 (18:43 +0000)]
Reduce differences with cy_isa.c: fixed an unsorted include.

Remove unused includes.

20 years agoReduce differences with cy_pci.c: add a description of this file, and
Bruce Evans [Sat, 1 May 2004 18:42:14 +0000 (18:42 +0000)]
Reduce differences with cy_pci.c: add a description of this file, and
don't use too many tabs in declarations.

Attempt to complete KNFization of this file (1 more indentation fix).

20 years agoBuild gpt(8) on all platforms, except sparc64. Currently gpt(8) is
Marcel Moolenaar [Sat, 1 May 2004 18:17:23 +0000 (18:17 +0000)]
Build gpt(8) on all platforms, except sparc64. Currently gpt(8) is
not endian agnostic and thus will create big-endian GPTs on sparc64.
This we don't support. So, before gpt(8) can be used on a big-endian
machine, it has to deal with the endianness.

20 years agoAdd missing word
Christian Brueffer [Sat, 1 May 2004 18:11:20 +0000 (18:11 +0000)]
Add missing word

20 years agoAdjust pathnames for the move from i386/isa to dev/cy.
Bruce Evans [Sat, 1 May 2004 18:09:16 +0000 (18:09 +0000)]
Adjust pathnames for the move from i386/isa to dev/cy.

Adjust staticness and a variable name for the split of cy.c into cy.c and
cy_isa.c.  Use the new header required for the split to avoid repeating
declarations in cy_pci.c.

20 years agoNew header for exporting declarations of things not closely related to
Bruce Evans [Sat, 1 May 2004 17:44:03 +0000 (17:44 +0000)]
New header for exporting declarations of things not closely related to
hardware.  A couple of the declarations were misplaced in cy_pci.c, and
cy_isa.c needs a couple more.  The exported interfaces should be cleaner.

20 years agoRemoved bits related to isa configuration. These have been moved to
Bruce Evans [Sat, 1 May 2004 17:21:07 +0000 (17:21 +0000)]
Removed bits related to isa configuration.  These have been moved to
cy_isa.c via a repo-copy of this file (except for some static declarations
which will become non-static in a new header).

20 years agoRemove bits not related to isa configuration. This file was repo-copied
Bruce Evans [Sat, 1 May 2004 17:10:23 +0000 (17:10 +0000)]
Remove bits not related to isa configuration.  This file was repo-copied
from cy.c.

20 years ago- Remove obsolete examples.
Yoshihiro Takahashi [Sat, 1 May 2004 06:53:38 +0000 (06:53 +0000)]
- Remove obsolete examples.
- Add a comment about meaning of flags.
- Disable unused defines.

20 years agoMerged from sys/dev/sio/sio.c revision 1.428.
Yoshihiro Takahashi [Sat, 1 May 2004 06:46:10 +0000 (06:46 +0000)]
Merged from sys/dev/sio/sio.c revision 1.428.

20 years agoCorrectly test *Reply_Ptr in ASR_resetIOP(). Thanks to dhartmei for pointing
Scott Long [Sat, 1 May 2004 06:32:01 +0000 (06:32 +0000)]
Correctly test *Reply_Ptr in ASR_resetIOP().  Thanks to dhartmei for pointing
this out.

20 years agoRe-indent some silly sub-blocks in asr_attach().
Scott Long [Sat, 1 May 2004 06:12:58 +0000 (06:12 +0000)]
Re-indent some silly sub-blocks in asr_attach().

20 years agoRemove ASR_get_sc() and reference the softc in the dev_t. For some nefarious
Scott Long [Sat, 1 May 2004 05:56:57 +0000 (05:56 +0000)]
Remove ASR_get_sc() and reference the softc in the dev_t.  For some nefarious
reason, the I2O protocol requires knowledge of all I2O devices in the system,
so we can't get rid of the evil linked-list of softc's yet.

20 years agoRemove the DOMINO and MODE0 device attachments. They never did anything.
Scott Long [Sat, 1 May 2004 05:19:39 +0000 (05:19 +0000)]
Remove the DOMINO and MODE0 device attachments.  They never did anything.
Remove a bunch of obfuscating macros.

20 years agoVerify the MADT checksum before using the table.
Marcel Moolenaar [Sat, 1 May 2004 04:08:14 +0000 (04:08 +0000)]
Verify the MADT checksum before using the table.

Submitted by: njl

20 years agoFix m4 to properly handle bitwise operators &, ^, and |. Fix operator
Sean Kelly [Sat, 1 May 2004 03:59:43 +0000 (03:59 +0000)]
Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.

PR: bin/60914
Reviewed by: petef
Discussed with: jeff, petef

20 years agom4 script to test the functionality of math operators in eval().
Sean Kelly [Sat, 1 May 2004 03:27:05 +0000 (03:27 +0000)]
m4 script to test the functionality of math operators in eval().

Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>

20 years agoMore whitespace style cleanups, also remove unneeded (void *) casts for bzero().
Scott Long [Sat, 1 May 2004 03:06:54 +0000 (03:06 +0000)]
More whitespace style cleanups, also remove unneeded (void *) casts for bzero().

20 years agoMany more style cleanups. Switch complex macros to being inline functions.
Scott Long [Sat, 1 May 2004 02:27:06 +0000 (02:27 +0000)]
Many more style cleanups.  Switch complex macros to being inline functions.
Put @includes in a better spot.  Fix many cases of 2 space indents and spaces
between a function name and the parens.  Use KASSERT instead of a home-rolled
ASSERT.  Remove some undeeded caddr casts.

20 years agoA new version that does exponents and lots of other neat things. Update
Sean Kelly [Sat, 1 May 2004 02:15:58 +0000 (02:15 +0000)]
A new version that does exponents and lots of other neat things. Update
from the original author of math.sed.

Submitted by: K S Braunsdorf <sed@ksb.npcguild.org>

20 years agoGet rid of a bunch of useless macros. STATIC becomes static, INLINE becomes
Scott Long [Sat, 1 May 2004 01:25:05 +0000 (01:25 +0000)]
Get rid of a bunch of useless macros.  STATIC becomes static, INLINE becomes
__inline where appropriate and gets nuked elsewhere, IN/OUT/INOUT go away.
Reformat code affected by this.

20 years agoFor both ifconfig and route if we didn't get enough memory from the
Doug Ambrisko [Fri, 30 Apr 2004 22:34:12 +0000 (22:34 +0000)]
For both ifconfig and route if we didn't get enough memory from the
prior sysctl due to the structure growing between calls try again.

Also try again for deleting routes if things fail.  We've seen
route -f fail this way which does not actually flush all routes.
This fixes it.  It will whine but it will do the work.

PR: 56732
Obtained from: IronPort

20 years agoSome enhancements and bug fix.
Doug Ambrisko [Fri, 30 Apr 2004 21:16:52 +0000 (21:16 +0000)]
Some enhancements and bug fix.
     -  Define option FORCECONSPEED to force the serial console to
        be CONSPEED.  I've run into a lot of boards in which
        the detect for prior speed doesn't work and ends up with
        broken console since it is at the wrong speed.
     -  If a serial port is marked as a console, but console=vidconsole
        and if the serial ports doesn't exist it will be probed and
        attached at a 8250 chip.  Then writes to that will freeze the
        system.
     -  Add an option flags 0x400000 to mark this as a potential
        comconsole in-case the one flaged with 0x10 does not exist
        in the system.

This makes it easier to deploy on systems with one or two serial ports.

Obtained from: IronPort

20 years agoSmall timer cleanups:
Bill Paul [Fri, 30 Apr 2004 20:51:55 +0000 (20:51 +0000)]
Small timer cleanups:

- Use the dh_inserted member of the dispatch header in the Windows
  timer structure to indicate that the timer has been "inserted into
  the timer queue" (i.e. armed via timeout()). Use this as the value
  to return to the caller in KeCancelTimer(). Previously, I was using
  callout_pending(), but you can't use that with timeout()/untimeout()
  without creating a potential race condition.

- Make ntoskrnl_init_timer() just a wrapper around ntoskrnl_init_timer_ex()
  (reduces some code duplication).

- Drop Giant when entering if_ndis.c:ndis_tick() and
  subr_ntorkrnl.c:ntoskrnl_timercall(). At the moment, I'm forced to
  use system callwheel via timeout()/untimeout() to handle timers rather
  than the callout API (struct callout is too big to fit inside the
  Windows struct KTIMER, so I'm kind of hosed). Unfortunately, all
  the callouts in the callwhere are not marked as MPSAFE, so when
  one of them fires, it implicitly acquires Giant before invoking the
  callback routine (and releases it when it returns). I don't need to
  hold Giant, but there's no way to stop the callout code from acquiring
  it as long as I'm using timeout()/untimeout(), so for now we cheat
  by just dropping Giant right away (and re-acquiring it right before
  the routine returns so keep the callout code happy). At some point,
  I will need to solve this better, but for now this should be a suitable
  workaround.

20 years agoRemove the GNU patch(1) sources that were committed to HEAD.
Marius Strobl [Fri, 30 Apr 2004 20:35:24 +0000 (20:35 +0000)]
Remove the GNU patch(1) sources that were committed to HEAD.

Approved by: ache, cvs, ru
MFC after: 2 weeks

20 years agoSome cleanups to the nexus code:
Thomas Moestl [Fri, 30 Apr 2004 19:50:51 +0000 (19:50 +0000)]
Some cleanups to the nexus code:
- Remove second license, the first was not that different and should be
  fine.
- Add nexus_attach(), and do not perform its task in nexus_probe() any
  more.
- Remove nexus_write_ivar(), since it was quite pointless.
- Remove superfluous devinfo members.
- Clean up some comments, minor style issues and prototypes.

20 years agoRemove inclusion of opt_ebus.h.
Thomas Moestl [Fri, 30 Apr 2004 19:19:55 +0000 (19:19 +0000)]
Remove inclusion of opt_ebus.h.

20 years agoDo at better job at unit numbering.
Søren Schmidt [Fri, 30 Apr 2004 18:49:03 +0000 (18:49 +0000)]
Do at better job at unit numbering.

20 years agoRemove the source file for the sio(4) EBus attachment here, too.
Marius Strobl [Fri, 30 Apr 2004 18:28:26 +0000 (18:28 +0000)]
Remove the source file for the sio(4) EBus attachment here, too.

20 years agoSpeed up hardlink detection by using a self-sizing hash
Tim Kientzle [Fri, 30 Apr 2004 18:17:51 +0000 (18:17 +0000)]
Speed up hardlink detection by using a self-sizing hash
table rather than the old linear list search.

On my "hardlink detection torture test", this reduced
user time from 4700 seconds down to 4.2 seconds
and wallclock time from 1:24:48 down to 1:08.
(Yes, that's over one THOUSAND times reduction in user time. ;-)
In the worst case, the new code doubles peak memory usage,
though it could actually reduce memory usage in many cases.

MFC after: 1 week
PR: misc/42167, bin/51151

20 years agoRemove the sio EBus attachment, which never worked with an unpatched
Thomas Moestl [Fri, 30 Apr 2004 17:25:47 +0000 (17:25 +0000)]
Remove the sio EBus attachment, which never worked with an unpatched
driver because sio(4) uses ISA-specific functions. uart(4) has full
support for the respective hardware and should be used instead.

20 years agoCheckpoint commit for an alternative WIP kernel module loader that isn't
Peter Wemm [Fri, 30 Apr 2004 16:32:40 +0000 (16:32 +0000)]
Checkpoint commit for an alternative WIP kernel module loader that isn't
as dependent on binutils features/quirks as the current one.  This one
loads plain .o files without having to mess with shared object mode.

This happens to be essential on amd64, because binutils hasn't implemented
all the quirks/features that we need for producing the hack non-PIC shared
objects.  As it turned out, .o format isn't all that inconvenient after
all.  It looks like the ability to use the same .o files for linking
directly into a static kernel or loading as a module might be worth it.

It is still very much a work-in-progress, but it is almost usable.  Other
changes are still needed in order to use it though, these have not been
committed yet.  There is still a memory corruption/overrun bug somewhere.
For example, test modules load and work, but the machine explodes a few
minutes later in vm_forkproc() or the like.  Notable missing things
include kldxref support, and loader(8) support.  I wanted to figure out
a working baseline set of code first.

20 years ago- Look into geom/gate/ and geom/concat/ for includes.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:23:08 +0000 (16:23 +0000)]
- Look into geom/gate/ and geom/concat/ for includes.
- Put geom/ subdirectories into separate line,
  while there are more to come.

20 years agoAdd g_concat.h and g_gate.h to be installed in
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:21:39 +0000 (16:21 +0000)]
Add g_concat.h and g_gate.h to be installed in
/usr/include/geom/(concat|gate)/.

20 years agoSpring cleanup of macros
Søren Schmidt [Fri, 30 Apr 2004 16:21:34 +0000 (16:21 +0000)]
Spring cleanup of macros

20 years agoGEOM Gate network daemon.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:19:50 +0000 (16:19 +0000)]
GEOM Gate network daemon.

20 years agoGEOM Gate network client and control utility.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:18:01 +0000 (16:18 +0000)]
GEOM Gate network client and control utility.

20 years agoGEOM Gate local control utility.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:15:13 +0000 (16:15 +0000)]
GEOM Gate local control utility.

20 years agoStuff shared between ggate utilities.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:13:45 +0000 (16:13 +0000)]
Stuff shared between ggate utilities.

20 years agoMakefile for building ggate utilities: ggatel(8), ggatec(8), ggated(8).
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:12:20 +0000 (16:12 +0000)]
Makefile for building ggate utilities: ggatel(8), ggatec(8), ggated(8).

20 years agoMakefile for geom_gate.ko.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:09:28 +0000 (16:09 +0000)]
Makefile for geom_gate.ko.

20 years agoKernel bits of GEOM Gate.
Pawel Jakub Dawidek [Fri, 30 Apr 2004 16:08:12 +0000 (16:08 +0000)]
Kernel bits of GEOM Gate.

20 years agoRemove the EBUS_DEBUG and IOMMU_DEBUG options, which are not used any
Thomas Moestl [Fri, 30 Apr 2004 15:21:25 +0000 (15:21 +0000)]
Remove the EBUS_DEBUG and IOMMU_DEBUG options, which are not used any
more.

20 years agoRemove the separate kernel option for Sun APB PCI-PCI bridges and make
Marius Strobl [Fri, 30 Apr 2004 15:00:41 +0000 (15:00 +0000)]
Remove the separate kernel option for Sun APB PCI-PCI bridges and make
support for them conditional on the pci(4) kernel option instead.

OK'ed by: tmm

20 years agoEnable _KPOSIX_PRIORITY_SCHEDULING by default, it works fine on sparc64.
Marius Strobl [Fri, 30 Apr 2004 14:16:39 +0000 (14:16 +0000)]
Enable _KPOSIX_PRIORITY_SCHEDULING by default, it works fine on sparc64.

OK'ed by: tmm

20 years agoUpdate the reference to the FreeBSD sparc64 mailing list, its name has
Marius Strobl [Fri, 30 Apr 2004 14:04:21 +0000 (14:04 +0000)]
Update the reference to the FreeBSD sparc64 mailing list, its name has
changed a while back.

20 years agoSorry for doing this backwards, but as with most release related stuff
Ken Smith [Fri, 30 Apr 2004 13:52:09 +0000 (13:52 +0000)]
Sorry for doing this backwards, but as with most release related stuff
we only pay attention to it during release time and at the moment it's
a -stable release in progress.

This is a MFS I guess, moving rev 1.536.2.113 to HEAD.  I ran out of
time to follow through with doing this last night.  Sorry for the delay.

Adding a couple of variables to make tweaking the CD-ROM label and .iso
filenames easier.

20 years agoNew release note:
Hiroki Sato [Fri, 30 Apr 2004 11:52:34 +0000 (11:52 +0000)]
New release note:
jail(8) raw socket support,
mmap(2) security fix,
TCP connection reset handling improved, and
import of lukemftp 2004/04/26 snapshot.

MFC:
rarpd(8) multiple IP addresses support.

20 years agoAllow disks with a GPT to be used on big-endian machines. The GPT is
Marcel Moolenaar [Fri, 30 Apr 2004 05:05:39 +0000 (05:05 +0000)]
Allow disks with a GPT to be used on big-endian machines. The GPT is
little-endian by definition and needs byte-swap operations for any
multi-byte field. While here fix indentation.

20 years agoCreate missing directories when extracting hardlinks and symlinks.
Tim Kientzle [Fri, 30 Apr 2004 01:31:20 +0000 (01:31 +0000)]
Create missing directories when extracting hardlinks and symlinks.

20 years agoCheck that specified in the command line path is actually a directory,
Maxim Sobolev [Fri, 30 Apr 2004 00:20:58 +0000 (00:20 +0000)]
Check that specified in the command line path is actually a directory,
otherwise we are risking to coredump later on.

20 years agoConvert block comments into C-style that is understood by cpp(1).
Ruslan Ermilov [Thu, 29 Apr 2004 18:58:38 +0000 (18:58 +0000)]
Convert block comments into C-style that is understood by cpp(1).
Keep line comments in assembler style.  A few lines that match
the '^[[:space:]]+#' regexp still need to be fixed, somehow.

OK'ed by: bde, jhb

20 years agoRevert previous change to this file because it breaks some
Bosko Milekic [Thu, 29 Apr 2004 15:10:42 +0000 (15:10 +0000)]
Revert previous change to this file because it breaks some
things which compare /etc/fstab entries to results from
getfsstat().  The real way to fix this is to make 'ufs2'
a recognized filesystem (for real, no beating around the
bush).

This should fix things like 'umount -a -t ufs' now.
Appologies for the previous breakage.

20 years agoAdd the commented out rue(4) entry.
Yoshihiro Takahashi [Thu, 29 Apr 2004 08:33:26 +0000 (08:33 +0000)]
Add the commented out rue(4) entry.

20 years agoAdd more .Dv markup.
Sean Kelly [Thu, 29 Apr 2004 08:33:12 +0000 (08:33 +0000)]
Add more .Dv markup.

20 years agoAdd missing .Dv markup and a comma.
Sean Kelly [Thu, 29 Apr 2004 08:27:38 +0000 (08:27 +0000)]
Add missing .Dv markup and a comma.

20 years agoMFi386: revisions from 1.15 to 1.17.
Yoshihiro Takahashi [Thu, 29 Apr 2004 08:24:57 +0000 (08:24 +0000)]
MFi386: revisions from 1.15 to 1.17.

20 years agoMFi386: revisions from 1.16 to 1.18.
Yoshihiro Takahashi [Thu, 29 Apr 2004 08:24:30 +0000 (08:24 +0000)]
MFi386: revisions from 1.16 to 1.18.

20 years agoFix grammar to make it correctly wrong.
Colin Percival [Thu, 29 Apr 2004 06:14:00 +0000 (06:14 +0000)]
Fix grammar to make it correctly wrong.

20 years ago-U is now implemented. (It's been recognized by bsdtar for a while;
Tim Kientzle [Thu, 29 Apr 2004 05:22:13 +0000 (05:22 +0000)]
-U is now implemented.  (It's been recognized by bsdtar for a while;
now libarchive actually supports the underlying request.)

20 years agoImplement ARCHIVE_EXTRACT_UNLINK for regular files. This supports the
Tim Kientzle [Thu, 29 Apr 2004 05:19:42 +0000 (05:19 +0000)]
Implement ARCHIVE_EXTRACT_UNLINK for regular files.  This supports the
-U flag to bsdtar.  Essentially, this option breaks existing hard
links.  According to SUSv2, tar is supposed to overwrite existing
files on extract by default which, in particular, preserves
existing hard links.  Note that this is yet another bug in gtar; it
appears to always break existing links.  (Maybe gtar's -U is broken?)

I'm unsure about how to handle this for other file types; the current
code always unlinks first unless the NO_OVERWRITE flag is specified.
I've commented this issue liberally and will come back to it later.

20 years agoAdd a new fortune from petef.
Sean Kelly [Thu, 29 Apr 2004 04:36:36 +0000 (04:36 +0000)]
Add a new fortune from petef.

Obtained from: petef

20 years agoDon't do malloc(M_WAITOK) for sound buffers while locks are held.
Brian Feldman [Thu, 29 Apr 2004 02:51:59 +0000 (02:51 +0000)]
Don't do malloc(M_WAITOK) for sound buffers while locks are held.

20 years agoFix a memory leak in ng_get_string_token. A dynamically-allocated
John Polstra [Thu, 29 Apr 2004 01:37:11 +0000 (01:37 +0000)]
Fix a memory leak in ng_get_string_token.  A dynamically-allocated
buffer wasn't freed if the function failed.

MFC after: 3 days

20 years agoBump manual page date for last update.
Simon L. B. Nielsen [Wed, 28 Apr 2004 23:16:06 +0000 (23:16 +0000)]
Bump manual page date for last update.

Suggested by: ru

20 years agoSpelling: s/Unlinke/Unlike/
Tom Rhodes [Wed, 28 Apr 2004 22:25:47 +0000 (22:25 +0000)]
Spelling: s/Unlinke/Unlike/

PR: 66063

20 years agoFix up a little language. Remove reference to sysctl(9). Fix reference to
Sean Kelly [Wed, 28 Apr 2004 21:42:36 +0000 (21:42 +0000)]
Fix up a little language. Remove reference to sysctl(9). Fix reference to
watchdog(9) (was watchdogd(9)).

20 years agoThanks to David's patches, we can now simplify these makefiles
Ruslan Ermilov [Wed, 28 Apr 2004 21:31:21 +0000 (21:31 +0000)]
Thanks to David's patches, we can now simplify these makefiles
further, and just use PROG directly (without FILES).

Suggested by: bde

20 years agoProperly merge boot0sio.s and boot0.s into boot0.S.
Ruslan Ermilov [Wed, 28 Apr 2004 21:14:40 +0000 (21:14 +0000)]
Properly merge boot0sio.s and boot0.s into boot0.S.

20 years agoSwitch to using C99 comments in assembler preprocessed with cpp(1).
Ruslan Ermilov [Wed, 28 Apr 2004 20:55:01 +0000 (20:55 +0000)]
Switch to using C99 comments in assembler preprocessed with cpp(1).

20 years ago- Properly merge boot0sio.s and boot0.s into boot0.S.
Ruslan Ermilov [Wed, 28 Apr 2004 20:49:17 +0000 (20:49 +0000)]
- Properly merge boot0sio.s and boot0.s into boot0.S.
  boot0sio.s was repo-copied to boot0.S.

- Rename boot0ext.s to boot0ext.S, to stay consistent
  with other preprocessed asm files around here, and
  for better portability.

Repocopied by: joe

20 years agoKeep track of threads waiting in kse_release() to avoid a race
Daniel Eischen [Wed, 28 Apr 2004 20:36:53 +0000 (20:36 +0000)]
Keep track of threads waiting in kse_release() to avoid a race
condition where kse_wakeup() doesn't yet see them in (interruptible)
sleep queues.  Also add an upcall check to sleepqueue_catch_signals()
suggested by jhb.

This commit should fix recent mysql hangs.

Reviewed by: jhb, davidxu
Mysql'd by: Robin P. Blanchard <robin.blanchard at gactr uga edu>

20 years agoRefuse to extract entries with '..' in pathname.
Tim Kientzle [Wed, 28 Apr 2004 18:53:07 +0000 (18:53 +0000)]
Refuse to extract entries with '..' in pathname.

Pointed out by: David Schultz

20 years agoRemove code that fiddles with Giant in ndis_ticktask() that snuck in
Bill Paul [Wed, 28 Apr 2004 17:06:18 +0000 (17:06 +0000)]
Remove code that fiddles with Giant in ndis_ticktask() that snuck in
during previous commit.

20 years agoTemporary precaution measure until repocopy requests are
Ruslan Ermilov [Wed, 28 Apr 2004 16:16:16 +0000 (16:16 +0000)]
Temporary precaution measure until repocopy requests are
processed: don't forget to clean generated .s sources.

20 years agoo Add a missed description for m_free(9).
Maxim Konovalov [Wed, 28 Apr 2004 14:53:49 +0000 (14:53 +0000)]
o Add a missed description for m_free(9).

Optained from: NetBSD
MFC after: 1 week

20 years agoAfter talking to Bruce Evans and reading more standards specs,
Ruslan Ermilov [Wed, 28 Apr 2004 14:31:44 +0000 (14:31 +0000)]
After talking to Bruce Evans and reading more standards specs,
switch to using C99-style comments everywhere in preprocessed
assembler.  The reason is that lines starting with the regexp
'^[[:space:]]#' are treated as preprocessing directives, and
while it seems to work now with GCC, it's not necessarily has
to work.  Use C99 comments `//' for the trailing comments to
save whitespace.

20 years agoRemove the EBus stopgap of r1.248; a proper fix is in place now.
Thomas Moestl [Wed, 28 Apr 2004 13:43:11 +0000 (13:43 +0000)]
Remove the EBus stopgap of r1.248; a proper fix is in place now.

20 years agoProtect som cross-script invocations by checks to see that the target
Poul-Henning Kamp [Wed, 28 Apr 2004 13:20:15 +0000 (13:20 +0000)]
Protect som cross-script invocations by checks to see that the target
script exists.  This allows pruning of rc.d scripts without getting
too many ugly boottime error message

20 years agoInitdiskless must run before ipfw, or people will not be able to
Poul-Henning Kamp [Wed, 28 Apr 2004 13:18:22 +0000 (13:18 +0000)]
Initdiskless must run before ipfw, or people will not be able to
use the conf/* stuff for their firewall configuration.

Running ipfw before could seem to make sense in that it would allow
one to setup access to the NFS server on a "default-deny" kernel,
but it is pretty obvious to the casual observer that such a configuration
never makes it far enough to mount the NFS-root in the first place.

20 years agoFix the EBus driver to work with the new PCI code. Unlike other PCI
Thomas Moestl [Wed, 28 Apr 2004 13:06:46 +0000 (13:06 +0000)]
Fix the EBus driver to work with the new PCI code. Unlike other PCI
bridges, the EBus bridge has resource ranges it claims exclusively to
map its children into in its BARs. Hence, we need to allocate these
completely and manage them for the children, instead of just passing
allocations through to the PCI layer as we did before.

While being there, split ebus_probe(), which did also contain code
normally belonging into the attach method, into ebus_probe() and
ebus_attach(), and perform some minor cleanups.

20 years agoSheesh...
Poul-Henning Kamp [Wed, 28 Apr 2004 11:44:28 +0000 (11:44 +0000)]
Sheesh...

Turn your back on SNMP for a decade and they go and make upper
versus lowercase initial letter part of the specification.

I told them ASN.1 was a bad mistake, but would they listen ?  Ohhh no!

20 years agoMFi386: Use C (and CPP) style comments for assembler-with-cpp
Ruslan Ermilov [Wed, 28 Apr 2004 10:15:31 +0000 (10:15 +0000)]
MFi386: Use C (and CPP) style comments for assembler-with-cpp
sources, for lines that start with a comment.

20 years agoUse C (and CPP) style comments for assembler-with-cpp sources,
Ruslan Ermilov [Wed, 28 Apr 2004 10:09:21 +0000 (10:09 +0000)]
Use C (and CPP) style comments for assembler-with-cpp sources,
for lines that start with a comment.

20 years agoUse C (and CPP) style comments for assembler-with-cpp sources,
Ruslan Ermilov [Wed, 28 Apr 2004 09:57:12 +0000 (09:57 +0000)]
Use C (and CPP) style comments for assembler-with-cpp sources,
for lines that start with a comment.

20 years ago- Use C (and CPP) style comments for assembler-with-cpp sources,
Ruslan Ermilov [Wed, 28 Apr 2004 09:49:22 +0000 (09:49 +0000)]
- Use C (and CPP) style comments for assembler-with-cpp sources,
  for lines that start with a comment.
- Preserve as(1) style comments for the rest.