]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoMove the process_fork event out from under Giant. This one is easy,
peter [Sun, 14 Mar 2004 01:48:32 +0000 (01:48 +0000)]
Move the process_fork event out from under Giant.  This one is easy,
since there are no consumers in the tree.  Document this.

20 years agoCompare spppq to NULL instead of using spppq as a boolean.
rwatson [Sun, 14 Mar 2004 01:32:44 +0000 (01:32 +0000)]
Compare spppq to NULL instead of using spppq as a boolean.

20 years agoFix some style bugs in previous commit.
trhodes [Sun, 14 Mar 2004 01:29:05 +0000 (01:29 +0000)]
Fix some style bugs in previous commit.
Fix 'broken' ifdefs.
icc does not support profiling yet so remove unfinished code which was
supposed to help.

Submitted by: netchild (original version)
Reviewed by: ru

20 years agoDefine AF_ARP/PF_ARP.
mdodd [Sun, 14 Mar 2004 00:49:09 +0000 (00:49 +0000)]
Define AF_ARP/PF_ARP.

20 years agoDe-register.
mdodd [Sun, 14 Mar 2004 00:44:11 +0000 (00:44 +0000)]
De-register.

20 years agoAllow swap-backed devices to run without Giant.
alc [Sun, 14 Mar 2004 00:24:30 +0000 (00:24 +0000)]
Allow swap-backed devices to run without Giant.

20 years agoTMPDIR is magic, use TMPMNT
phk [Sat, 13 Mar 2004 23:01:08 +0000 (23:01 +0000)]
TMPDIR is magic, use TMPMNT

Spotted by: harold barker <hvb@fs0.sm.dsms.com>

20 years agoRegen for mpsafe kse_create()
peter [Sat, 13 Mar 2004 22:32:17 +0000 (22:32 +0000)]
Regen for mpsafe kse_create()

20 years agoPush Giant down a little further:
peter [Sat, 13 Mar 2004 22:31:39 +0000 (22:31 +0000)]
Push Giant down a little further:
- no longer serialize on Giant for thread_single*() and family in fork,
  exit and exec
- thread_wait() is mpsafe, assert no Giant
- reduce scope of Giant in exit to not cover thread_wait and just do
  vm_waitproc().
- assert that thread_single() family are not called with Giant
- remove the DROP/PICKUP_GIANT macros from thread_single() family
- assert that thread_suspend_check() s not called with Giant
- remove manual drop_giant hack in thread_suspend_check since we know it
  isn't held.
- remove the DROP/PICKUP_GIANT macros from thread_suspend_check() family
- mark kse_create() mpsafe

20 years agoRe-kill ispcvt on amd64 - rc.d/syscons was fixed ages ago.
peter [Sat, 13 Mar 2004 22:18:34 +0000 (22:18 +0000)]
Re-kill ispcvt on amd64 - rc.d/syscons was fixed ages ago.

20 years agoMFp4: comment out options that don't exist so that they cannot be
peter [Sat, 13 Mar 2004 22:16:34 +0000 (22:16 +0000)]
MFp4: comment out options that don't exist so that they cannot be
accidently added to config files and be silently accepted.
Comment out one bogo-option that crept into NOTES.

20 years agoDiff reduction with current. Correct comment about ed etc.
peter [Sat, 13 Mar 2004 22:14:18 +0000 (22:14 +0000)]
Diff reduction with current.  Correct comment about ed etc.

20 years agoMove the non-MD machine/dvcfg.h and machine/physio_proc.h to a common
peter [Sat, 13 Mar 2004 19:46:27 +0000 (19:46 +0000)]
Move the non-MD machine/dvcfg.h and machine/physio_proc.h to a common
MI area before they proliferate more.

20 years agoDrastically clean up the legacy host-pci bridge table. We don't need
peter [Sat, 13 Mar 2004 19:21:35 +0000 (19:21 +0000)]
Drastically clean up the legacy host-pci bridge table.  We don't need
all the ancient Intel/VIA/SIS/etc chipsets on amd64 systems.  Even the
newer intel stuff won't need this since we use acpi by default and we
don't have all their magic programming information.  Just use a generic
"Host to PCI bridge" name if we ever hit this code.

20 years agoMFi386: nuke pci_cfgintr
peter [Sat, 13 Mar 2004 19:19:13 +0000 (19:19 +0000)]
MFi386: nuke pci_cfgintr

20 years agoReduce the scope of the Giant lock being held for non-mpsafe syscalls.
peter [Sat, 13 Mar 2004 19:15:43 +0000 (19:15 +0000)]
Reduce the scope of the Giant lock being held for non-mpsafe syscalls.
There was way too much code being covered.

20 years agoNew release note:
hrs [Sat, 13 Mar 2004 16:45:05 +0000 (16:45 +0000)]
New release note:
64-bit time_t on FreeBSD/sparc64,
em(4) hiccup during ifconfig em0 alias fixed,
ng_vlan(4) netgraph node type,
umass(4) ATAPI MMC commands support,
rc.d/gbde_swap and gbde_swap_enable in rc.conf,
mountd(8) -p <port> option,
nologin(8) syslog support,
OpenBSD's pf and the related userland utils imported,
SIZE attribute in distinfo enabled by default.

(when you find errors or inappropriate descriptions, please let me know.)

20 years agoFix a typo (s/acecss/access/).
hrs [Sat, 13 Mar 2004 16:21:39 +0000 (16:21 +0000)]
Fix a typo (s/acecss/access/).

20 years agoRecognise the 82845G AGP bridge, and poke it appropriately at
peadar [Sat, 13 Mar 2004 16:06:32 +0000 (16:06 +0000)]
Recognise the 82845G AGP bridge, and poke it appropriately at
attach/detach time.

Assigning the default behaviour to this particular device is
incorrect, corrupting the video BIOS aperture, and breaking
VESA support in the kernel and XFree86.

Reviewed By: dfr
MFC after: 1 week
PR: kern/62906

20 years agoCreate hierarchy before installing a new kernel. This is needed
ru [Sat, 13 Mar 2004 15:46:34 +0000 (15:46 +0000)]
Create hierarchy before installing a new kernel.  This is needed
because we require that a new kernel be installed prior to a new
world, and we may need some new directories to succeed.

Once MFCed, this will also help those poor souls who redundantly
``mv /modules /modules.old'' in RELENG_4 before an installkernel.

Requested by: many
MFC after: 3 days

20 years agoNow that contigfree() does not require Giant, don't grab it in busdma.
scottl [Sat, 13 Mar 2004 15:42:59 +0000 (15:42 +0000)]
Now that contigfree() does not require Giant, don't grab it in busdma.

20 years agoAdd Epson Perfection 1670 to the list of supported devices.
simon [Sat, 13 Mar 2004 13:54:07 +0000 (13:54 +0000)]
Add Epson Perfection 1670 to the list of supported devices.

20 years agoDon peril-sensitive glasses and throw the switch to move nologin(8) from
cperciva [Sat, 13 Mar 2004 11:02:37 +0000 (11:02 +0000)]
Don peril-sensitive glasses and throw the switch to move nologin(8) from
/sbin to /usr/sbin.  A symlink from /sbin/nologin -> /usr/sbin/nologin
is created for compatibility purposes.

This will probably not cause any problems, but anyone who is doing
anything particularly unusual with nologin(8) or shells in general might
be well advised to check that everything still works.

Bikesheds on: cvs-all, current

20 years agoAdd missing spaces after "logconfig" in example lines.
cperciva [Sat, 13 Mar 2004 09:51:43 +0000 (09:51 +0000)]
Add missing spaces after "logconfig" in example lines.

PR: docs/64082
Submitted by: Tsurutani Naoki
MFC after: 3 days

20 years agoAdd support for the Epson Perfection 1670 scanner.
tjr [Sat, 13 Mar 2004 08:45:16 +0000 (08:45 +0000)]
Add support for the Epson Perfection 1670 scanner.

20 years agoRegen
tjr [Sat, 13 Mar 2004 08:25:51 +0000 (08:25 +0000)]
Regen

20 years agoAdd EPSON Perfection 1670 scanner.
tjr [Sat, 13 Mar 2004 08:21:22 +0000 (08:21 +0000)]
Add EPSON Perfection 1670 scanner.

20 years agoRemove GIANT_REQUIRED from contigfree().
alc [Sat, 13 Mar 2004 07:09:15 +0000 (07:09 +0000)]
Remove GIANT_REQUIRED from contigfree().

20 years agoConstify interactive_ports, as its value is static, and therefore doesn't
rwatson [Sat, 13 Mar 2004 06:16:59 +0000 (06:16 +0000)]
Constify interactive_ports, as its value is static, and therefore doesn't
require synchronization.

20 years agoAdd annotations to mtx_lock(&Giant) in kern_select() and poll() that
rwatson [Sat, 13 Mar 2004 05:58:57 +0000 (05:58 +0000)]
Add annotations to mtx_lock(&Giant) in kern_select() and poll() that
we always grab Giant, even if we're actually only polling objects that
don't require giant.  Once socket locking is merged, there will be
strong motivation to fix this.

20 years agoRemove stale (unused) unit variables from if_tun and if_tap softc's.
rwatson [Sat, 13 Mar 2004 05:51:06 +0000 (05:51 +0000)]
Remove stale (unused) unit variables from if_tun and if_tap softc's.

20 years agoConstify iso88025_broadcastaddr to make it clear no explicit
rwatson [Sat, 13 Mar 2004 05:46:26 +0000 (05:46 +0000)]
Constify iso88025_broadcastaddr to make it clear no explicit
synchronization is required.

20 years agoConst-poison atmulticastaddr, which should be read but not modified.
rwatson [Sat, 13 Mar 2004 05:27:17 +0000 (05:27 +0000)]
Const-poison atmulticastaddr, which should be read but not modified.
While there, remove (caddr_t) casting of ethernet addresses, which
among other things discards the qualifier.  This makes it clear that
atmulticastaddr does not require synchronization.

20 years agoFix odd grammar in comment.
cperciva [Sat, 13 Mar 2004 05:16:42 +0000 (05:16 +0000)]
Fix odd grammar in comment.

PR: docs/64190
Submitted by: Dan Langille

20 years agoAdd standard copyright notice; fix style bugs. (Reported by bde)
cperciva [Sat, 13 Mar 2004 04:41:40 +0000 (04:41 +0000)]
Add standard copyright notice; fix style bugs.  (Reported by bde)
Remove NO_NOLOGIN_LOG option now that we're off the root partition.

20 years agoWhen nologin(8) is installed in /usr/sbin/, create a symlink from
cperciva [Sat, 13 Mar 2004 04:39:45 +0000 (04:39 +0000)]
When nologin(8) is installed in /usr/sbin/, create a symlink from
/sbin/nologin for compatibility purposes.  Also, remove the NO_NOLOGIN_LOG
option; we don't need to worry about conserving space as much on the /usr
partition.

Note that usr.sbin/nologin is not yet hooked up to the build.

20 years agoAlign the offset in vn_rdwr_inchunks() so that at most the first and
bde [Sat, 13 Mar 2004 02:56:27 +0000 (02:56 +0000)]
Align the offset in vn_rdwr_inchunks() so that at most the first and
the last chunk are misaligned relative to a MAXBSIZE byte boundary.
vn_rdwr_inchunks() is used mainly for elf core dumps, and elf sections
are usually perfectly misaligned relative to MAXBSIZE, and chunking
prevents the file system from doing much realigning.

This gives a surprisingly large speedup for core dumps -- from 50 to
13 seconds for a 512MB core dump here.  The pessimization was mostly
from an interaction of the misalignment with IO_DIRECT.  It increased
the number of i/o's for each chunk by a factor of 5 (3 writes and 2
read-before-writes instead of 1 write).

20 years agoDon't allow interfaces to be renamed to the empty string.
brooks [Sat, 13 Mar 2004 02:35:03 +0000 (02:35 +0000)]
Don't allow interfaces to be renamed to the empty string.
While I'm here, errors aren't bools.

Pointed out by: hmp

20 years agoRemove if_withname. It came in with the KAME import, but never got
brooks [Sat, 13 Mar 2004 02:31:40 +0000 (02:31 +0000)]
Remove if_withname.  It came in with the KAME import, but never got
used.  Should someone need its functionality, it's a really expensive
implementation of:
ifnet_byindex(sdl->sdl_index)

Reviewed by:    bde, ume

20 years agoFixed some English usage errors.
bde [Sat, 13 Mar 2004 00:56:11 +0000 (00:56 +0000)]
Fixed some English usage errors.

20 years agoFixed description of cx device. Use similar wording for ctau device
bde [Sat, 13 Mar 2004 00:46:33 +0000 (00:46 +0000)]
Fixed description of cx device.  Use similar wording for ctau device
(NETGRAPH_CRONYX toggles NETGRAPH support for both).  Fixed formatting
of description of cx device.

Discussed with: rik

20 years agoCapitalize I/O
brueffer [Sat, 13 Mar 2004 00:12:09 +0000 (00:12 +0000)]
Capitalize I/O

20 years agoFix 10 year old size-of-bcopy bug.
cperciva [Sat, 13 Mar 2004 00:11:05 +0000 (00:11 +0000)]
Fix 10 year old size-of-bcopy bug.

PR: bin/43930
Submitted by: Alan Barrett
Approved by: rwatson (mentor)
MFNetBSD: revision 1.35
MFC after: 3 days

20 years agoThe print mask's first part is the base, not the total number of bit
ru [Fri, 12 Mar 2004 23:52:32 +0000 (23:52 +0000)]
The print mask's first part is the base, not the total number of bit
identifiers.

20 years agoShow the polling(4) flag on the interface.
ru [Fri, 12 Mar 2004 23:43:40 +0000 (23:43 +0000)]
Show the polling(4) flag on the interface.

20 years agoThese are changes to allow to use the Intel C/C++ compiler (lang/icc)
trhodes [Fri, 12 Mar 2004 21:45:33 +0000 (21:45 +0000)]
These are changes to allow to use the Intel C/C++ compiler (lang/icc)
to build the kernel. It doesn't affect the operation if gcc.

Most of the changes are just adding __INTEL_COMPILER to #ifdef's, as
icc v8 may define __GNUC__ some parts may look strange but are
necessary.

Additional changes:
 - in_cksum.[ch]:
   * use a generic C version instead of the assembly version in the !gcc
     case (ASM code breaks with the optimizations icc does)
     -> no bad checksums with an icc compiled kernel
     Help from: andre, grehan, das
     Stolen from:  alpha version via ppc version
     The entire checksum code should IMHO be replaced with the DragonFly
     version (because it isn't guaranteed future revisions of gcc will
     include similar optimizations) as in:
        ---snip---
          Revision  Changes    Path
          1.12      +1 -0      src/sys/conf/files.i386
          1.4       +142 -558  src/sys/i386/i386/in_cksum.c
          1.5       +33 -69    src/sys/i386/include/in_cksum.h
          1.5       +2 -0      src/sys/netinet/igmp.c
          1.6       +0 -1      src/sys/netinet/in.h
          1.6       +2 -0      src/sys/netinet/ip_icmp.c

          1.4       +3 -4      src/contrib/ipfilter/ip_compat.h
          1.3       +1 -2      src/sbin/natd/icmp.c
          1.4       +0 -1      src/sbin/natd/natd.c
          1.48      +1 -0      src/sys/conf/files
          1.2       +0 -1      src/sys/conf/files.amd64
          1.13      +0 -1      src/sys/conf/files.i386
          1.5       +0 -1      src/sys/conf/files.pc98
          1.7       +1 -1      src/sys/contrib/ipfilter/netinet/fil.c
          1.10      +2 -3      src/sys/contrib/ipfilter/netinet/ip_compat.h
          1.10      +1 -1      src/sys/contrib/ipfilter/netinet/ip_fil.c
          1.7       +1 -1      src/sys/dev/netif/txp/if_txp.c
          1.7       +1 -1      src/sys/net/ip_mroute/ip_mroute.c
          1.7       +1 -2      src/sys/net/ipfw/ip_fw2.c
          1.6       +1 -2      src/sys/netinet/igmp.c
          1.4       +158 -116  src/sys/netinet/in_cksum.c
          1.6       +1 -1      src/sys/netinet/ip_gre.c
          1.7       +1 -2      src/sys/netinet/ip_icmp.c
          1.10      +1 -1      src/sys/netinet/ip_input.c
          1.10      +1 -2      src/sys/netinet/ip_output.c
          1.13      +1 -2      src/sys/netinet/tcp_input.c
          1.9       +1 -2      src/sys/netinet/tcp_output.c
          1.10      +1 -1      src/sys/netinet/tcp_subr.c
          1.10      +1 -1      src/sys/netinet/tcp_syncache.c
          1.9       +1 -2      src/sys/netinet/udp_usrreq.c

          1.5       +1 -2      src/sys/netinet6/ipsec.c
          1.5       +1 -2      src/sys/netproto/ipsec/ipsec.c
          1.5       +1 -1      src/sys/netproto/ipsec/ipsec_input.c
          1.4       +1 -2      src/sys/netproto/ipsec/ipsec_output.c

          and finally remove
            sys/i386/i386        in_cksum.c
            sys/i386/include     in_cksum.h
        ---snip---
 - endian.h:
   * DTRT in C++ mode
 - quad.h:
   * we don't use gcc v1 anymore, remove support for it
   Suggested by: bde (long ago)
 - assym.h:
   * avoid zero-length arrays (remove dependency on a gcc specific
     feature)
     This change changes the contents of the object file, but as it's
     only used to generate some values for a header, and the generator
     knows how to handle this, there's no impact in the gcc case.
   Explained by: bde
   Submitted by: Marius Strobl <marius@alchemy.franken.de>
 - aicasm.c:
   * minor change to teach it about the way icc spells "-nostdinc"
   Not approved by: gibbs (no reply to my mail)
 - bump __FreeBSD_version (lang/icc needs to know about the changes)

Incarnations of this patch survive gcc compiles since a loooong time,
I use it on my desktop. An icc compiled kernel works since Nov. 2003
(exceptions: snd_* if used as modules), it survives a build of the
entire ports collection with icc.

Parts of this commit contains suggestions or submissions from
Marius Strobl <marius@alchemy.franken.de>.

Reviewed by: -arch
Submitted by: netchild

20 years agoThis are the build infrastructure changes to allow to use the
trhodes [Fri, 12 Mar 2004 21:36:12 +0000 (21:36 +0000)]
This are the build infrastructure changes to allow to use the
Intel C/C++ compiler (lang/icc) to build the kernel.

The icc CPUTYPE CFLAGS use icc v7 syntax, icc v8 moans about them, but
doesn't abort. They also produce CPU specific code (new instructions
of the CPU, not only CPU specific scheduling), so if you get coredumps
with signal 4 (SIGILL, illegal instruction) you've used the wrong
CPUTYPE.

Incarnations of this patch survive gcc compiles and my make universe.
I use it on my desktop.

To use it update share/mk, add
/usr/local/intel/compiler70/ia32/bin (icc v7, works)
or
/usr/local/intel_cc_80/bin (icc v8, doesn't work)
to your PATH, make sure you have a new kernel compile directory
(e.g. MYKERNEL_icc) and run
CFLAGS="-O2 -ip" CC=icc make depend
CFLAGS="-O2 -ip" CC=icc make
in it.

Don't compile with -ipo, the build infrastructure uses ld directly to
link the kernel and the modules, but -ipo needs the link step to be
performed with Intel's linker.

Problems with icc v8:
 - panic: npx0 cannot be emulated on an SMP system
 - UP: first start of /bin/sh results in a FP exception

Parts of this commit contains suggestions or submissions from
Marius Strobl <marius@alchemy.franken.de>.

Reviewed by: silence on -arch
Submitted by: netchild

20 years agoDo what the execve(2) manpage says and enforce what a Strictly
ru [Fri, 12 Mar 2004 21:06:20 +0000 (21:06 +0000)]
Do what the execve(2) manpage says and enforce what a Strictly
Conforming POSIX application should do by disallowing the argv
argument to be NULL.

PR: kern/33738
Submitted by: Marc Olzheim, Serge van den Boom
OK'ed by: nectar

20 years agoAllow kernel with the BOOTP option to boot when DHCP/BOOTP sets the root
brooks [Fri, 12 Mar 2004 20:37:40 +0000 (20:37 +0000)]
Allow kernel with the BOOTP option to boot when DHCP/BOOTP sets the root
path to an absolute path without a host name.  Previously, there was a
nasty POLA violation where a system would PXE boot until you added the
BOOTP option and then it would panic instead.

Reviewed by: tegge, Dirk-Willem van Gulik <dirkx at webweaving.org>
(a previous version)
Submitted by: tegge (getip function)

20 years agoThis is a temporary fix to solve a regression issue on sparc64 that
kensmith [Fri, 12 Mar 2004 20:35:21 +0000 (20:35 +0000)]
This is a temporary fix to solve a regression issue on sparc64 that
is caused by the way sparc64 registers its CPUs.  Nate will work on
a real fix shortly.

Approved by: njl

20 years agoRewrite sleepqueue manpage to catch up to the new sleep queue interface.
jhb [Fri, 12 Mar 2004 19:07:18 +0000 (19:07 +0000)]
Rewrite sleepqueue manpage to catch up to the new sleep queue interface.

20 years ago- Remove old sleep queues.
jhb [Fri, 12 Mar 2004 19:06:18 +0000 (19:06 +0000)]
- Remove old sleep queues.
- Remove sleepqueue argument from sleepq_set_timeout() since it is not
  used.

20 years agoFixup a comment.
jhb [Fri, 12 Mar 2004 19:05:46 +0000 (19:05 +0000)]
Fixup a comment.

20 years agoInstead of repeating most of vt102, make mvterm reference it.
schweikh [Fri, 12 Mar 2004 17:41:13 +0000 (17:41 +0000)]
Instead of repeating most of vt102, make mvterm reference it.

PR: 61796
Submitted by: Daniel Rudy <root@wildfire.danielrudy.org>
MFC after: 1 week

20 years agoAdd if_ndis_pci.c and if_ndis_pccard.c so that building the NDISulator
wpaul [Fri, 12 Mar 2004 17:31:29 +0000 (17:31 +0000)]
Add if_ndis_pci.c and if_ndis_pccard.c so that building the NDISulator
directly into the kernel works again. Also make the 'ndisapi' entries
not depend on pccard anymore.

Forgotten by: me
Noticed by: sos

20 years agoRemove a spurious backslash at EOL to get a proper xterm-ic entry.
schweikh [Fri, 12 Mar 2004 17:21:48 +0000 (17:21 +0000)]
Remove a spurious backslash at EOL to get a proper xterm-ic entry.

PR: 56956
Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz>
MFC after: 1 week

20 years agoDon't set ifp->if_output to ether_output(), since ether_ifattach()
mux [Fri, 12 Mar 2004 17:05:06 +0000 (17:05 +0000)]
Don't set ifp->if_output to ether_output(), since ether_ifattach()
will do it for us (we either call ether_ifattach() directly, or it
gets called within ieee80211_ifattach()).

Approved by: wpaul

20 years agoMove newsyslog.conf.5 to usr.sbin/newsyslog. There is no real history
trhodes [Fri, 12 Mar 2004 16:03:26 +0000 (16:03 +0000)]
Move newsyslog.conf.5 to usr.sbin/newsyslog.  There is no real history
other than 'initial revision' thus I did not request a repocopy.

Requested by:   ru, gad

20 years agoUnremoved a used variable in the PCCARD_ARCH case.
bde [Fri, 12 Mar 2004 15:28:13 +0000 (15:28 +0000)]
Unremoved a used variable in the PCCARD_ARCH case.

Reported by: tinderbox

20 years agoHide internal implementation details of UID/GID checks from the user.
ru [Fri, 12 Mar 2004 13:24:17 +0000 (13:24 +0000)]
Hide internal implementation details of UID/GID checks from the user.

20 years agoUse find(1) instead of ``pw groupshow'' to detect missing groups.
ru [Fri, 12 Mar 2004 13:20:24 +0000 (13:20 +0000)]
Use find(1) instead of ``pw groupshow'' to detect missing groups.
Restore checks for recently added PF groups.

Reviewed by: mlaier

20 years agoAdd id(1) (aka groups(1) aka whoami(1)) since it is used by install.sh.
des [Fri, 12 Mar 2004 13:10:04 +0000 (13:10 +0000)]
Add id(1) (aka groups(1) aka whoami(1)) since it is used by install.sh.

20 years agoTHe log message for the previous commit should have said:
bde [Fri, 12 Mar 2004 12:05:38 +0000 (12:05 +0000)]
THe log message for the previous commit should have said:

Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
PR: standards/56906

20 years agoReplace a manual check of a VMIO candidate with vn_canvmio(). This
des [Fri, 12 Mar 2004 12:02:12 +0000 (12:02 +0000)]
Replace a manual check of a VMIO candidate with vn_canvmio().  This
silences an annoying warning in getblk() when VMIO'ing on a directory
vnode, which can happen when vfs.vmiodirenable is 1.

Bring the warning message in line with reality at the same time.

Submitted by: hmp

20 years agoInitial support for C99's (or is it POSIX.1-2001's?) MATH_ERRNO,
bde [Fri, 12 Mar 2004 12:02:03 +0000 (12:02 +0000)]
Initial support for C99's (or is it POSIX.1-2001's?) MATH_ERRNO,
MATH_ERREXCEPTION and math_errhandling, so that C99 applications at
least have the possibility of determining that errno is not set for
math functions.  Set math_errhandling to the non-standard-conforming
value of 0 for now to indicate that we don't support either method
of reporting errors.  We intentionally don't support MATH_ERRNO
because errno is a mistake, and we are missing support for
MATH_ERREXCEPTION (<fenv.h>, compiler support for <fenv.h>, and
actually setting the exception flags correctly).

20 years agoDo not print a warning about net.inet.pim.stats if errno is
des [Fri, 12 Mar 2004 11:22:50 +0000 (11:22 +0000)]
Do not print a warning about net.inet.pim.stats if errno is
ENOENT, because that means we do not have PIM in the kernel.

Submitted by: hmp
MFC after: 1 week

20 years agoFix copy&paste-o.
phk [Fri, 12 Mar 2004 06:51:21 +0000 (06:51 +0000)]
Fix copy&paste-o.

Spotted by: iedowse

20 years agoIf /conf/diskless_remount exists, use it to remount the entire /conf
brooks [Fri, 12 Mar 2004 04:40:16 +0000 (04:40 +0000)]
If /conf/diskless_remount exists, use it to remount the entire /conf
directory.  This allows multiple roots (say for different architectures)
to share the same set of /conf files.

20 years agoUse 'pw groupshow' instead of 'id -g' to see if a group exists.
gshapiro [Fri, 12 Mar 2004 03:46:15 +0000 (03:46 +0000)]
Use 'pw groupshow' instead of 'id -g' to see if a group exists.

PR: 64073
Submitted by: jhb
MFC after: 5 days

20 years agoPart 2 of rev 1.68. Update comment to match reality now that vm_endcopy
peter [Fri, 12 Mar 2004 00:16:48 +0000 (00:16 +0000)]
Part 2 of rev 1.68.  Update comment to match reality now that vm_endcopy
exists and we no longer copy to the end of the struct.

Forgotten by:  alfred and green

20 years agomdoc(7): New sentence should start on new line.
pjd [Thu, 11 Mar 2004 22:22:03 +0000 (22:22 +0000)]
mdoc(7): New sentence should start on new line.

Pointed out by: hmp

20 years agoTurn on logging for tftpd.
des [Thu, 11 Mar 2004 22:15:28 +0000 (22:15 +0000)]
Turn on logging for tftpd.

20 years agoDon't run fsck if there's no /etc/fstab.
kientzle [Thu, 11 Mar 2004 20:00:10 +0000 (20:00 +0000)]
Don't run fsck if there's no /etc/fstab.

In particular, this allows a "virgin" system installed from
source (installworld, installkernel, cd etc && make distribution)
to boot correctly and modestly simplifies the creation
of single-partition network/cdrom/CF bootable images.

20 years agoAdd reference to the g_access(9) manual page.
pjd [Thu, 11 Mar 2004 19:53:22 +0000 (19:53 +0000)]
Add reference to the g_access(9) manual page.

20 years agoConnect g_access(9) to the build.
pjd [Thu, 11 Mar 2004 19:51:14 +0000 (19:51 +0000)]
Connect g_access(9) to the build.

20 years agoAdd manual page for g_access(9) GEOM function.
pjd [Thu, 11 Mar 2004 19:23:48 +0000 (19:23 +0000)]
Add manual page for g_access(9) GEOM function.

20 years agoWhen I was a kid my work table was one cluttered mess an cleaning it up
phk [Thu, 11 Mar 2004 18:50:33 +0000 (18:50 +0000)]
When I was a kid my work table was one cluttered mess an cleaning it up
were a rather overwhelming task.  I soon learned that if you don't know
where you're going to store something, at least try to pile it next to
something slightly related in the hope that a pattern emerges.

Apply the same principle to the ffs/snapshot/softupdates code which have
leaked into specfs:  Add yet a buf-quasi-method and call it from the
only two places I can see it can make a difference and implement the
magic in ffs_softdep.c where it belongs.

It's not pretty, but at least it's one less layer violated.

20 years agoRemove unused variables.
jhb [Thu, 11 Mar 2004 18:50:05 +0000 (18:50 +0000)]
Remove unused variables.

20 years ago- Use variable names instead of numbers for the script arguments to
simon [Thu, 11 Mar 2004 18:12:48 +0000 (18:12 +0000)]
- Use variable names instead of numbers for the script arguments to
  improve readability.
- Use mktemp to create the temporary files and directory.
- Mount temporary md(4) backed file system on a temporary directory,
  instead of /mnt.

Approved by: phk

20 years agoThis commit was generated by cvs2svn to compensate for changes in r126854,
des [Thu, 11 Mar 2004 18:04:03 +0000 (18:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r126854,
which included commits to RCS files with non-trunk default branches.

20 years agoMFP4 (#47094): avoid bogus NULL pointer warnings when building with -DDEBUG.
des [Thu, 11 Mar 2004 18:04:03 +0000 (18:04 +0000)]
MFP4 (#47094): avoid bogus NULL pointer warnings when building with -DDEBUG.

20 years agoProperly vector all bwrite() and BUF_WRITE() calls through the same path
phk [Thu, 11 Mar 2004 18:02:36 +0000 (18:02 +0000)]
Properly vector all bwrite() and BUF_WRITE() calls through the same path
and s/BUF_WRITE()/bwrite()/ since it now does the same as bwrite().

20 years agoRemove unused mnt_reservedvnlist field.
phk [Thu, 11 Mar 2004 16:59:57 +0000 (16:59 +0000)]
Remove unused mnt_reservedvnlist field.

20 years agoRemove unused second arg to vfinddev().
phk [Thu, 11 Mar 2004 16:33:11 +0000 (16:33 +0000)]
Remove unused second arg to vfinddev().
Don't call addaliasu() on VBLK nodes.

20 years agoProperly count references of our dev_t to avoid triggering a KASSERT in
le [Thu, 11 Mar 2004 14:11:08 +0000 (14:11 +0000)]
Properly count references of our dev_t to avoid triggering a KASSERT in
dev_strategy().

Submitted by:   dwmalone
Approved by:    grog (mentor)

20 years agoCorrectly account for extra bits in unit numbers when looking for
phk [Thu, 11 Mar 2004 14:11:02 +0000 (14:11 +0000)]
Correctly account for extra bits in unit numbers when looking for
next free unit.

20 years agoAdd yet another VIA pci id.
sos [Thu, 11 Mar 2004 14:08:11 +0000 (14:08 +0000)]
Add yet another VIA pci id.

20 years agoStop setting ifp->if_output to ether_output() since ether_ifattach()
mux [Thu, 11 Mar 2004 14:04:59 +0000 (14:04 +0000)]
Stop setting ifp->if_output to ether_output() since ether_ifattach()
does it for us already.

20 years agoDon't implement anything in the ffs family in <machine/cpufunc.h>
bde [Thu, 11 Mar 2004 13:38:54 +0000 (13:38 +0000)]
Don't implement anything in the ffs family in <machine/cpufunc.h>
in the non-_KERNEL case.  This "fixes" applications that include
this "kernel-only" header and also include <strings.h> (or get
<strings.h> via the default _BSD_VISIBLE pollution in <string.h>.
In C++ there was a fatal error: the declaration specifies C linkage
but the implementation gives C++ linkage.  In C there was only a
static/extern mismatch if the headers were included in a certain order
order, and a partially redundant declaration for all include orders;
gcc emits incomplete or wrong diagnostics for these, but only for
compiling with -Wsystem-headers and certain other warning options, so
the problem was usually not seen for C.

Ports breakage reported by: kris

20 years agoAdd clone_setup() function rather than rely on lazy initialization.
phk [Thu, 11 Mar 2004 12:58:55 +0000 (12:58 +0000)]
Add clone_setup() function rather than rely on lazy initialization.

Requested by: rwatson

20 years agoFixed assorted misuses of NULL in integer context.
bde [Thu, 11 Mar 2004 11:58:16 +0000 (11:58 +0000)]
Fixed assorted misuses of NULL in integer context.

20 years agoFixed mispellings of '\0' as NULL.
bde [Thu, 11 Mar 2004 11:41:54 +0000 (11:41 +0000)]
Fixed mispellings of '\0' as NULL.

20 years agoFixed a misspelling of 0 as NULL.
bde [Thu, 11 Mar 2004 11:30:57 +0000 (11:30 +0000)]
Fixed a misspelling of 0 as NULL.

Fixed a nearby bug.  The "play it safe" code in dosysctl() was unsafe
because it overran the buffer by 1 if sysctl() filled all of the buffer.

Fixed a nearby style bug in output.  Not just 1, but 2 extra newlines
were printed at the end by "vmstat -m" and "vmstat -z".  Don't print
any newlines explicitly.  This depends on 2 of the many formatting
bugs in the corresponding sysctls.  First, the sysctls return an extra
newline at the end of the strings.  This also messes up output from
sysctl(8).  Second, the sysctls return an extra newline at the beginning
of the strings.  This is good for separating the 2 tables output by
"vmstat -mz" and for starting the header on a new line in plain sysctl
output, but gives a bogus extra newline at the beginning for "vm -[m | z]"
and "sysctl -n [kern.malloc | vm.zone]".

Fixed some nearby style bugs in the source code:
- the same line that misspelled 0 as NULL also spelled NULL as 0.
- the size was doubled twice in the realloc loop.
- the "play it safe" comment was misleading.  Terminating the buffer
  is bogus because dosysctl() is only meant to work with sysctls that
  return strings and the terminator is part of a string.  However, the
  kern.malloc sysctl has more than style bugs.  It also doesn't return
  a string.  Termination is needed to work around this bug.

20 years agoReplace <iostream.h> with <iostream> to remove annoying warning
josef [Thu, 11 Mar 2004 10:43:35 +0000 (10:43 +0000)]
Replace <iostream.h> with <iostream> to remove annoying warning
of using deprecated header.

Approved by:    dwhite, simon(mentor)
Reviewed by:    mlaier
Submitted by:   Stefan Farfeleder <stefan@fafoe.narf.at>
PR:             bin/63781

20 years agoFixed a misspelling of '\0' as NULL.
bde [Thu, 11 Mar 2004 10:22:25 +0000 (10:22 +0000)]
Fixed a misspelling of '\0' as NULL.

20 years agoFixed misspellings of 0 as NULL.
bde [Thu, 11 Mar 2004 10:19:45 +0000 (10:19 +0000)]
Fixed misspellings of 0 as NULL.

20 years agoFixed misspellings of '\0' as NULL.
bde [Thu, 11 Mar 2004 10:12:05 +0000 (10:12 +0000)]
Fixed misspellings of '\0' as NULL.

20 years agoFixed a misspelling of 0 as NULL.
bde [Thu, 11 Mar 2004 10:09:01 +0000 (10:09 +0000)]
Fixed a misspelling of 0 as NULL.

20 years agoFixed misspellings of 0 as NULL.
bde [Thu, 11 Mar 2004 10:01:12 +0000 (10:01 +0000)]
Fixed misspellings of 0 as NULL.

20 years agoFixed misspellings of 0 as NULL.
bde [Thu, 11 Mar 2004 09:56:04 +0000 (09:56 +0000)]
Fixed misspellings of 0 as NULL.