Commit Graph

85242 Commits

Author SHA1 Message Date
jmallett
e3f329cf95 Kill initialisation and shadow warnings. Half-hearted cleanup (e.g. only the
more important ones) of format warnings.  XXX Lots of this assumes int32 can
be printed with %d.  Yuck.

Reviewed by:	bde
2003-01-19 12:13:47 +00:00
phk
8c86643870 #ifdef NO_GEOM these files entirely. When NO_GEOM is removed as an
option the files can be removed.
2003-01-19 11:51:35 +00:00
phk
8d59d4ab24 Remove the last stray NO_GEOM option in our example kernel config files. 2003-01-19 11:50:45 +00:00
sos
ec6cc45e47 Fix the 48bit access support for the older Promise 66/100 controllers, the
first attempt was wrong and could cause r/w timeouts.

Add yet another Promise PCI id.
2003-01-19 11:47:32 +00:00
tjr
3ff0b1753c Remove unnecessary locking of Giant around nanotime() in clock_gettime(). 2003-01-19 11:28:22 +00:00
phk
3feaa592f3 Mark more code #ifdef NODEVFS 2003-01-19 11:26:13 +00:00
phk
be470e56d7 Originally when DEVFS was added, a global variable "devfs_present"
was used to control code which were conditional on DEVFS' precense
since this avoided the need for large-scale source pollution with
#include "opt_geom.h"

Now that we approach making DEVFS standard, replace these tests
with an #ifdef to facilitate mechanical removal once DEVFS becomes
non-optional.

No functional change by this commit.
2003-01-19 11:03:07 +00:00
jmallett
eaa6ad0521 Add support to marshal a filesystem to a newfs(8) command that could be used
to create it.  A small number of options are not marshalled as they are things
it would be dumb to spit out, as they are used by internal computations, and
newfs may change them, or they may not be directly apparent.
2003-01-19 10:25:11 +00:00
phk
4ac5487e31 When we use DEVFS, we don't need the /dev/tty pseudo-driver to do
more than return ENXIO from its open routine, so most of this file
is unneeded.

A straight #ifdef'ing would look quite messy, and make the file
quite unreadable, so instead I have simply added the DEVFS version
of the file at the top, protected by #ifndef NODEVFS.

Once we have removed NODEVFS option, we can retain 86 the 86 lines at
the top and drop the other 287 lines.
2003-01-19 10:23:47 +00:00
phk
ac4faedd50 Move NODEVFS and NO_GEOM to opt_global.h.
This allows me to mark code which they control with #ifdef without
polluting files with #includes of opt_devfs.h and opt_geom.h.

Once these two options are removed, this will allow mechanical removal
of the bits their removal makes obsolete.
2003-01-19 10:02:47 +00:00
sam
d6f98e9715 fix ioctl handling for setting wep keys 2003-01-19 07:08:03 +00:00
alfred
350ce2bfaa useracc() is mpsafe so we only need to hold Giant
over the call to nanosleep1()

Pointed out by: tjr
2003-01-19 06:51:10 +00:00
marcel
5499df59fc o Move the contents of <machine/floatingpoint.h> over to
<machine/ieeefp.h> where it belongs.
o  Remove the i386 specific inclusion of <machine/floatingpoint.h>
   from <ieeefp.h>, now that including <machine/ieeefp.h> is enough
   for all architectures.
o  Allow <machine/ieeefp.h> to inline the functions exposed by the
   headers by checking for _IEEEFP_INLINED_ in the MI header. When
   defined, prototypes are not given and it is assumed that the MD
   headers, when inlining only a subset of the functions provide
   prototypes for the functions not being inlined.

Based on patch from: Terry Lambert <tlambert2@mindspring.com>
Tested with: make release.
2003-01-19 06:01:33 +00:00
jmallett
44d487430d Let libufs handle all the work with regard to going through a list of cgs, now. 2003-01-19 05:51:36 +00:00
jmallett
e7f8221d17 Store not only the current cylinder group in the series (i.e. next that needs
to be read in) but also the last cylinder group in the series (i.e. what is
stored in the structure).
2003-01-19 05:46:23 +00:00
obrien
bdc4cc0489 Complete the support of the on-board xl(4) on nVidia nForce2 mobo's.
Submitted by:	Mikko S. Hyvarinen <morphy@morphy.iki.fi>
2003-01-19 04:47:54 +00:00
obrien
87dfc9444b Use checksum-recursive rather than fetch-recursive-list in PREFETCHDISTFILES
so as to catch errors ASAP rather than later between the ports cvs checkout
and docs cvs checkout.  If a distfile doesn't checksum OK, it is very
hard to restart the release with "make rerelease" as that target assumes
all the cvs checkout's happened OK, and if that is not the case the cvs
update that is attempted fails..
2003-01-19 04:31:53 +00:00
ache
0734368e4e Add (unsigned char) cast to ctype macros
Handle NULL return from malloc and strdup
2003-01-19 03:05:01 +00:00
obrien
53dd2b1497 Remove miidevs.h and generate it from miidevs at compile time.
The devlist2h.awk tool to do this has been repocopied to sys/tools/.
2003-01-19 02:59:34 +00:00
jake
03ce7f79b9 Make xl sparc64 too. 2003-01-19 02:54:10 +00:00
mtm
5318fe9827 Kill whitespace at EOL.
Approved by: markm (mentor)
Noticed by:  ru
2003-01-19 01:49:31 +00:00
jmallett
00d7c64c14 Don't crash when utilities are dumb and try to read less than the disk block
size (dumpfs may try to read the cylinder size (or is is sector size?) by way
of bread).  Prevents a bounds error.
2003-01-19 01:39:53 +00:00
jmallett
e6ae134def Use libufs to read one cylinder group from the disk at a time. 2003-01-19 01:31:49 +00:00
jmallett
a30dd516d3 Add facility to read one, or a string of, cylinger groups. 2003-01-19 01:31:26 +00:00
obrien
aeef5c94de Sync with NetBSD -- sl_add() now returns an int. 2003-01-19 01:16:01 +00:00
jmallett
a4c36c78c2 Simplify the main function now that libufs will hunt for the disk for us. 2003-01-19 01:02:25 +00:00
jmallett
954241579e Hunt for a disk to operate on, if we're passed a partition mountpoint, etc.
Concept reviewed by:	phk
2003-01-19 00:43:17 +00:00
imp
6085806633 Fix comment about what we do when there are no listeners. 2003-01-19 00:34:17 +00:00
jmallett
4493411deb Per-variable\ entry headers, to allow the 'ps -otime -otime=FOO' or similar
case to do the right thing and affect exactly one column.  This is consistent
with GNU ps(1) in BSD mode, and POLA.
2003-01-19 00:31:16 +00:00
tmm
6521d6661b Make the xl driver work on sparc64:
- Add conversions to/from little endian for fields that the NIC accesses
  by DMA as required.
- Add some bus_dmamap_sync() calls, and correct some existing ones.
- Read the receiver information from the EEPROM in an endian-neutral
  manner.
- Load all RX and TX descriptors in a single DMA map up front, and
  get the bus addresses of individual descriptors by address arithmetic;
  this fixes multiple use of the descriptor tags, which would have
  undesired effects.
It seems that xl still does not work on e250 boxen, for reasons which
are not clear yet.

Reviewed by:	mux
2003-01-19 00:23:59 +00:00
jmallett
edceb163e8 When inserting a non-user-specified (e.g. not via -o or -O) format, don't dupe
one that is already there.  This is consistent with GNU ps(1)'s BSD mode, and
POLA.

Reported by:	Andy Farkas <andyf@speednet.com.au>
Tested by:	Andy Farkas <andyf@speednet.com.au>
2003-01-19 00:22:34 +00:00
obrien
18b1cd3be6 Use __FBSDID. 2003-01-19 00:17:03 +00:00
obrien
58aac8635b Protect against multiple inclusions. 2003-01-18 23:43:12 +00:00
obrien
aa5f5c4386 We don't need our own personal definition of __CONCAT. 2003-01-18 23:26:04 +00:00
obrien
d634217e6e Simplify the Makefile by just using our standard PROG variable. 2003-01-18 23:09:56 +00:00
tom
b8c6667de2 Note that Wisecom's PCI adapter works. 2003-01-18 21:47:48 +00:00
obrien
58127e30ae Rev 1.16 renamed VM_METER to VM_TOTAL. This is breaking 3rd-party apps.
So add a VM_METER compat define.

Submitted by:	Andy Fawcett <andy@athame.co.uk>
2003-01-18 21:14:02 +00:00
ue
ae94fee62a Add a missing word 2003-01-18 20:03:48 +00:00
alfred
ad1417e585 Document lock order reversals possible when calling allocation functions
with vnode interlocks held.

Emphasize that users need to be careful with malloc flags versus mbuf
flags.

Remove stale portion in vnode.9 about v_tag.  We don't have it anylonger.

Submitted by: Hiten Pandya <hiten@unixdaemons.com>
2003-01-18 19:51:52 +00:00
hsu
e51cb67095 Optimize away call to bzero() in the common case by directly checking
if a connection has any cached TAO information.
2003-01-18 19:03:26 +00:00
mux
b7babb3b23 Don't try to free() map in bus_dmamap_destroy() when it's
set to &nobounce_dmamap.  A similar bug was fixed by wpaul
in revision 1.19 of sys/alpha/alpha/busdma_machdep.c.
2003-01-18 18:33:56 +00:00
gioria
8e210f9f78 Allow French releases notes to be build correctly
Hat To:  Hiroki SATO  <hrs@eos.ocn.ne.jp>
2003-01-18 18:03:01 +00:00
ue
7fb628c664 MFbed: translation updates and fixes
early-adopter/article.sgml:	fixes only
errata/article.sgml:		1.17 -> 1.18
2003-01-18 16:42:18 +00:00
phk
f55309d685 Inline now trivial functions getccdbuf() and putccdbuf().
Fix another trivial memory-leak.
2003-01-18 12:23:49 +00:00
des
60b9ed7933 Don't truncate lines if an error occurred. 2003-01-18 12:15:34 +00:00
des
90177a2f2f Indentation cleanup. 2003-01-18 12:12:49 +00:00
grehan
5d9f4871f6 Removed unnecessary includes and brought up to date with ata
common code by adding lock functions.
2003-01-18 11:46:50 +00:00
phk
5c35a13d04 Fix minor memory-leak. 2003-01-18 11:33:06 +00:00
grehan
c046c0c238 Stub profile.h, required for userland builds.
Approved by:  Benno
2003-01-18 11:31:58 +00:00
grehan
39427152ad <machine/ieee.h>, taken from sparc64
Approved by:  Benno
2003-01-18 11:30:59 +00:00