Commit Graph

113105 Commits

Author SHA1 Message Date
phk
537769f699 Remove filtering on major device number. These are assigned randomly
these days so filtering on them makes no sense other than as a foot-shooting
device.
2005-02-27 17:22:36 +00:00
delphij
116d1ffddd Remove the check about whether MALLOC_EXTRA_SANITY is defined,
surrounding the undef'ing it.  It does not seem necessary to
undef some symbol that is not exist, and gcc does not complain
about whether a symbol is exist before #undef'ing it out.

Spotted by:	mingyanguo via ChinaUnix.net forum
Reviewed by:	phk
2005-02-27 17:16:16 +00:00
phantom
31ef43753e Add NLS catalogs support to strerror(), strerror_r() and strsignal().
Controlled by NLS define, currently disabled by default.

Idea obtained from:	NetBSD
2005-02-27 16:58:28 +00:00
phantom
4d2cd8e010 There's no '-new' argument for gencat(1) anymore 2005-02-27 16:36:54 +00:00
phantom
ffdbc9bc05 . Bump .Dd's
. Note POSIX 1003.1-2001 conformation
. Add ERRORS section for catgets(3)
. Note what catopen(3) returns EINVAL, if catalog is corrupt
2005-02-27 16:30:16 +00:00
phantom
db7bc61c50 Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean and removing of stdio dependency from NLS
functions (catalog files now are processed via mmap())

Also following changes were done (against NetBSD version):

. If mmap() failed, set errno to EINVAL and do not try to munmap() file

Obtained from:	NetBSD
2005-02-27 16:26:49 +00:00
phantom
49c043ebad Remove unused now stuff, also set WARNS to 8 2005-02-27 16:25:14 +00:00
phantom
e171f073ac Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean.

Also following changes were done:

. Remove of outdated support for generating of include files for
  NLS catalogs being generated.
. Integrate my old code optimizations
. ANSI'fy prototypes
. Remove duplicate defines, and cleanup includes
. Remove first (unused) argument from error() function
. Const'ify (gencat now WARNS=8 clean)
. Convert corrupt() and nomem() functions to macros
. Add *temporary* note what '-new' command line argument is
  deprecated now (instead of exiting with error message)

WARNING: format of generated .cat files is changed!

XXX: re-add support for *updating* of .cat files, NetBSD has this
functionality disabled

Obtained from:	NetBSD (mostly)
2005-02-27 16:23:14 +00:00
phantom
a6997be1f4 Bring in NetBSD's improvements and cleanups to NLS subsystem, making
it type and endian clean and removing of stdio dependency from NLS
functions (catalog files now are processed via mmap()).

Also following changes were done (against NetBSD version):

. ANSI'fy prototypes
. Mention FreeBSD in comments
. Pull in sys/types.h instead of sys/_types.h since some types used here
  are defined in sys/types.h

Obtained from:	NetBSD (mostly)
2005-02-27 16:20:53 +00:00
brueffer
c50bb2eb16 man page -> manual page 2005-02-27 15:49:07 +00:00
marius
2965f978f2 The zs(4) driver is superseded by uart(4) and broken in -CURRENT. Remove
it from the sparc64 kernel config files and delete its fhc(4) and sbus(4)
front-end.

Agreed with:	marcel
2005-02-27 15:23:58 +00:00
mux
f0c921b436 Fix a stupid bogon from myself, sc->revision wasn't initialized when
testing it to know whether we should enable the 82503 serial mode...
Move code to the right location and disallow the use of the 82503
serial mode if the sc->revision field is 0 again.  This makes fxp(4)
work correctly with ATMEL 350 93C46 cards (3 port 82559 based with a
82555 PHY), as well as with the older ATMEL 220 93C46 (same flavour)
and with the even older 10Mbps-only 82557 cards with the 82503 serial
interface.

Tested by:	Andre Albsmeier <andrer@albsmeier.net>, krion
MFC after:	2 weeks
2005-02-27 15:12:50 +00:00
phantom
23d961a13f . Static'ize functions exported via function reference variables only.
. Replace inclusion of sys/param.h to sys/cdefs.h and sys/types.h where
  appropriate.
. move _*_init() prototypes to mblocal.h, and remove these prototypes
  from .c files
. use _none_init() in __setrunelocale() instead of duplicating code
. move __mb* variables from table.c to none.c allowing us to not to
  export _none_*() externs, and appropriately remove them from mblocal.h

Ok'ed by:	tjr
2005-02-27 15:11:09 +00:00
phantom
31651f25d8 ANSI'fy prototypes 2005-02-27 14:54:23 +00:00
phantom
7c1e0a15c7 Replace usage of strerror()/strcpy() with strerror_r() here, reducing
number of required operations to get error message and avoiding of strerror's
buffer clobbering.

Also ANSI'fy prototypes while I'm here
2005-02-27 14:51:27 +00:00
ru
7157282f84 Zero out the entire "struct __collate_st_chain_pri", or garbage
appears in LC_COLLATE files (due to alignment).  An alternative
would be to bump STR_LEN to 16.

(This is in preparation to make LC_COLLATE files architecture
independent.)
2005-02-27 14:05:38 +00:00
brueffer
1c7f944f0e ATA -> PATA/SATA, to make clear that this driver supports both kinds
of controllers.

Inspired by:	xy <xy@packetflood.net>
MFC after:	3 days
2005-02-27 13:15:51 +00:00
brueffer
701341d00d Don't mention PATA support, all listed controllers are SATA.
Inspired by:	xy <xy@packetflood.net>
MFC after:	3 days
2005-02-27 13:14:28 +00:00
cognet
c07fb60c69 Add device id for the Ali M1671 host to AGP bridge. 2005-02-27 13:05:34 +00:00
dfr
0c34e7e727 Attempt to free any static TLS space used by a shared library when it
is unloaded. This allows applications which load and unload libraries
like libGL.so.1 several times to work properly.

MFC after: 2 days
2005-02-27 12:55:40 +00:00
ru
5d9bc16368 Added the convenience "distribution" target which calls the
target of the same name from src/etc/Makefile with a proper
environment, suitable to be used during upgrades and cross-
builds.
2005-02-27 12:11:35 +00:00
ru
129e10db74 Make it clear we no longer support source upgrades from
versions prior to 5.3.
2005-02-27 11:51:46 +00:00
ru
18d2c99237 Add missing continuation. 2005-02-27 11:48:45 +00:00
mlaier
efbe004890 Unbreak the build. carp_iamatch6 and carp_macmatch6 are not supposed to be
static as they are used elsewhere.
2005-02-27 11:32:26 +00:00
ru
0434ec5fe8 As threatened, drop support for source upgrades from pre-5.3.
Inspired by:	obrien
2005-02-27 11:22:58 +00:00
njl
6583ba4496 command_args is redundant.
Submitted by:	Pawel Worach
2005-02-27 07:11:47 +00:00
njl
10f6e11df5 Due to a couple complaints about C3 failing on an old Compaq Armada and
a mobile Celeron, disable it by default for the release.  We'll have to
nail the last few cases later.
2005-02-27 04:05:50 +00:00
njl
0dae5d8c1d Make a pass through all drivers checking specs for desired behavior on
SMP systems.  It appears all drivers except ichss should attach to each
CPU and that settings should be performed on each CPU.  Add comments about
this.  Also, add a guard for p4tcc's identify method being called more than
once.
2005-02-27 02:43:02 +00:00
gad
ada3533e8b The previous commit was *not* an MFC of any revision! I do intend to MFC
it, but one obviously doesn't MFC changes *into* -current!
2005-02-27 02:01:31 +00:00
njl
a59663d2e5 Move the AC line checking code into its own function, reducing the
ifdef __i386__ stuff for APM.  Tested as working correctly on i386 and
compile-tested on sparc64.
2005-02-27 01:58:49 +00:00
gad
4044e01081 MFC 1.22: Fix -0 vs -L/-I processing, mainly so that 'xargs -0 -I []' will
do something sensible (namely: treat then '\0' as the EOL character, when
deciding what "a line" is for -N).  Note that  -I implies -N.

MFC after:	3 days
2005-02-27 01:35:54 +00:00
njl
24b8592306 Add locking to handle multiple threads getting/setting frequencies at the
same time.  We use an sx lock and serialize the cpufreq device's
get/set/levels methods.
2005-02-27 01:34:08 +00:00
marcel
3ebf74b8a8 Unbreak !i386 platforms. Only i386 has APM, so don't try to fallback
on APM on other platforms.
2005-02-27 00:23:19 +00:00
trhodes
f5e3ae6b91 Use ~/.login_conf when discussing a user's local file.
Suggested by:	ru
2005-02-26 23:41:04 +00:00
bmah
fc57475ec6 Correct the minimum RAM requirements for i386 (24 MB to install,
12 MB to run).  These technically reflect 5.3-RELEASE figures,
but are probably closer to reality than the older numbers (8MB / 7MB).

While here, s/megs/MB/ to consistify our terminology.

PR:		docs/77304
Submitted by:	Ramiro Aceves
2005-02-26 23:40:09 +00:00
njl
2347ac87e8 Change the default levels for adaptive mode to 80% and 90%. On a system
with moderate IO going on, system usage can hover around 65-77% even
though it would benefit from higher performance.  Typically, only truly
idle systems pass the 90% mark so only demote then.
2005-02-26 23:22:00 +00:00
simon
1392998ad3 Add some commas and improve grammar.
Suggested by:	trhodes
2005-02-26 23:19:11 +00:00
njl
91e6bfeedc Remove SRCS line since it isn't needed for single-source programs.
Pointed out by:	ru
2005-02-26 22:50:25 +00:00
cognet
3eb9286d7e Only provide the dummy, non-atomic atomic_cmpset_32() if
ARM_HAS_ATOMIC_CMPSET_32 isn't defined.
2005-02-26 22:49:19 +00:00
njl
439dc64109 Note addition of p4tcc, new sysctls and tunable, update mdoc. 2005-02-26 22:48:04 +00:00
cognet
67e8b297b9 Add a new option, ARM_CACHE_LOCK_ENABLE (I forgot it in my last commit). 2005-02-26 22:41:07 +00:00
njl
d63a2d86cd Allow users to reject levels below a given frequency (in MHz) via the
debug.cpufreq.lowest tunable and sysctl.  Some systems seem to have problems
with the lowest frequencies so setting this prevents them from being
available or used.
2005-02-26 22:37:49 +00:00
ru
d8a075eada Add a note about new format of LC_CTYPE files. 2005-02-26 22:26:10 +00:00
njl
3bf54fe848 Don't bother with cpufreq_register if we're info-only.
Suggested by:	Jung-uk Kim
2005-02-26 22:09:05 +00:00
simon
39d7d1307a Remove redundant .Pp call.
Spotted by:	ru
2005-02-26 22:06:49 +00:00
ru
dc4d1e599e Added the "buildenv" target, for developers only!
CAVEAT: if you run tcsh(1) from within this target, this will
reset your PATH making this target mostly useless.  Careful!

Submitted by:	jmg, ru
2005-02-26 22:02:18 +00:00
bmah
8f4d38ef58 New release notes: ng_netflow(4) (+MFC) [1], syslog(3) thread-safe
(+MFC) [1], no ports/INDEX* in CVS (+MFC), GNOME 2.8.3 (+MFC), KDE
3.3.2 (+MFC), Xorg 6.8.1 (+MFC).

Wordsmithing:  pkg_version(8) -q.

Submitted by:	glebius [1]
2005-02-26 21:58:58 +00:00
simon
56f5954cf3 - Auto generate device listing for snd_neomagic(4).
MFC after:	3 days
2005-02-26 21:48:34 +00:00
ru
dff27cebe2 Make the format of LC_CTYPE files architecture independent by
introducing the disk formats for _RuneLocale and friends.

The disk formats do not have (useless) pointers and have 32-bit
quantities instead of rune_t and long.  (htonl(3) only works
with 32-bit quantities, so there's no loss).

Bootstrap mklocale(1) when necessary.  (Bootstrapping from 4.x
would be trivial (verified), but we no longer provide pre-5.3
source upgrades and this is the first commit to actually break
it.)
2005-02-26 21:47:54 +00:00
simon
b34b4a5a64 - Add manual page for snd_neomagic(4).
PR:		docs/78127
Submitted by:	Joel Dahl <joel@automatvapen.se>
MFC after:	3 days
2005-02-26 21:42:43 +00:00