]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoThis commit was generated by cvs2svn to compensate for changes in r142810,
Hartmut Brandt [Mon, 28 Feb 2005 17:27:11 +0000 (17:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r142810,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of bsnmpd 1.8
Hartmut Brandt [Mon, 28 Feb 2005 17:27:11 +0000 (17:27 +0000)]
Virgin import of bsnmpd 1.8

19 years agoVarParseLong: Move the initialisation of dynamic up which saves
Hartmut Brandt [Mon, 28 Feb 2005 17:23:17 +0000 (17:23 +0000)]
VarParseLong: Move the initialisation of dynamic up which saves
an else clause. Move the assignment to the lengthPtr down to
just before the return statements.

Patch: 7.81

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years agoIncrease the default stacksizes:
Joe Marcus Clarke [Mon, 28 Feb 2005 17:15:31 +0000 (17:15 +0000)]
Increase the default stacksizes:

32-bit 64-bit
main thread 2 MB 4 MB
other threads 1 MB 2 MB

Adapted from: libpthread
Approved by: deischen

19 years agoBuf_GetAll wants a pointer as its second argument, not a boolean -
Hartmut Brandt [Mon, 28 Feb 2005 17:05:26 +0000 (17:05 +0000)]
Buf_GetAll wants a pointer as its second argument, not a boolean -
replace FALSE by NULL.

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years agoGive a better advice on how to convert DOS text to UNIX text.
Yaroslav Tykhiy [Mon, 28 Feb 2005 17:05:00 +0000 (17:05 +0000)]
Give a better advice on how to convert DOS text to UNIX text.
The former tip used `col -bx', which would not only discard
CR's, but also expand TAB's and remove BS'en.  This effect is
not always wanted.

MFC after: 1 week

19 years agoUse 0 instead if NULL for vm_offset_t argument to windrv_lookup() to
Bill Paul [Mon, 28 Feb 2005 16:47:54 +0000 (16:47 +0000)]
Use 0 instead if NULL for vm_offset_t argument to windrv_lookup() to
silence compiler warnings.

19 years agoIn hardware/sparc64/proc-sparc64.sgml, Ultra 5 is listed twice times, avoid
Hideyuki KURASHINA [Mon, 28 Feb 2005 16:41:33 +0000 (16:41 +0000)]
In hardware/sparc64/proc-sparc64.sgml, Ultra 5 is listed twice times, avoid
duplication.

Noticed by: Ryusuke Suzuki <ryusuke at nucl dot sci dot hokudai dot ac dot jp>

19 years agoSupport running carp(4) over a vlan(4) parent interface.
Yaroslav Tykhiy [Mon, 28 Feb 2005 16:19:11 +0000 (16:19 +0000)]
Support running carp(4) over a vlan(4) parent interface.

Encouraged by: glebius

19 years agoDon't modify the input string in VarParseLong(). It is not
Hartmut Brandt [Mon, 28 Feb 2005 15:01:37 +0000 (15:01 +0000)]
Don't modify the input string in VarParseLong(). It is not
necessary to NUL-terminated it, because we know the lengths
from the pointers.

Patch: 7.80

Submitted by: Max Okumoto <okumoto@ucsd.edu>

19 years agoStep 1/2 of making "make distribute" work for cross-builds.
Ruslan Ermilov [Mon, 28 Feb 2005 14:16:53 +0000 (14:16 +0000)]
Step 1/2 of making "make distribute" work for cross-builds.

19 years agoIn bpf_setf(), protect against races between multiple user threads
Robert Watson [Mon, 28 Feb 2005 14:04:09 +0000 (14:04 +0000)]
In bpf_setf(), protect against races between multiple user threads
attempting to change the BPF filter on a BPF descriptor at the same
time: retrieve the old filter pointer under the same locked region
as setting the new pointer.

MFC after: 3 days

19 years agoAdd missing ()
Poul-Henning Kamp [Mon, 28 Feb 2005 13:49:06 +0000 (13:49 +0000)]
Add missing ()

19 years agoIncrease usefulness of telnet(1) as a protocol tester. By prepending
Anton Berezin [Mon, 28 Feb 2005 12:46:53 +0000 (12:46 +0000)]
Increase usefulness of telnet(1) as a protocol tester.  By prepending
"+" to the port number, disable option negotiation and allow
transferring of data with high bit set.

OKed by: markm (maintainer)
PR: 52032
Submitted by: Valentin Nechayev <netch maybe-at netch stop kiev stop ua>
MFC After: 2 weeks

19 years agoUpdate a comment describing bpf_iflist to indicate that the BPF interface
Robert Watson [Mon, 28 Feb 2005 12:35:52 +0000 (12:35 +0000)]
Update a comment describing bpf_iflist to indicate that the BPF interface
structures correspond to specific link layers, so the same network
interface may appear more than once.

MFC after: 3 days

19 years agoRemove unused field from carp softc.
Gleb Smirnoff [Mon, 28 Feb 2005 11:57:03 +0000 (11:57 +0000)]
Remove unused field from carp softc.

OK'ed by: mcbride@OpenBSD

19 years agoFix tcpdump(8) on carp(4) interface:
Gleb Smirnoff [Mon, 28 Feb 2005 11:54:36 +0000 (11:54 +0000)]
Fix tcpdump(8) on carp(4) interface:
- Use our loop DLT type, not OpenBSD. [1]
- The fields that are converted to network byte order are not 32-bit
  fields but 16-bit fields, so htons should be used in htonl. [1]
- Secondly, ip_input changes ip->ip_len into its value without
  the ip-header length. So, restore the length to make bpf happy. [1]
- Use bpf_mtap2(), use temporary af1, since bpf_mtap2 doesn't
  understand uint8_t af identifier.

Submitted by: Frank Volf [1]

19 years agoMFi386: revisions 1.1186 and 1187
Yoshihiro Takahashi [Mon, 28 Feb 2005 11:51:18 +0000 (11:51 +0000)]
MFi386: revisions 1.1186 and 1187
  - Connect "options MP_WATCHDOG" to the LINT builds.
  - Spell "options" correctly as "options ".

19 years agoCatch the case where the idle loop is entered with interrupts disabled,
Peter Grehan [Mon, 28 Feb 2005 09:49:00 +0000 (09:49 +0000)]
Catch the case where the idle loop is entered with interrupts disabled,
causing a hard hang.

19 years agoCatch up with the latest policies on knobs.
David E. O'Brien [Mon, 28 Feb 2005 09:42:08 +0000 (09:42 +0000)]
Catch up with the latest policies on knobs.

19 years agoAccept the old user interface for NO_CLEAN as it is a POLA violation as
David E. O'Brien [Mon, 28 Feb 2005 09:23:38 +0000 (09:23 +0000)]
Accept the old user interface for NO_CLEAN as it is a POLA violation as
we've eventually changed the user interface of a common command.

19 years agoTypo.
Pawel Jakub Dawidek [Mon, 28 Feb 2005 08:55:53 +0000 (08:55 +0000)]
Typo.

19 years ago- switch pcpu to a struct declaration ala amd64. It may be more efficient to
Peter Grehan [Mon, 28 Feb 2005 08:47:51 +0000 (08:47 +0000)]
- switch pcpu to a struct declaration ala amd64. It may be more efficient to
  cache-align this struct, but that's a topic for a far-in-the-future
  commit.
- eliminate commented-out reference to a non-existent pcpu field.

19 years agoUnbreak buildworld.
Ruslan Ermilov [Mon, 28 Feb 2005 07:16:39 +0000 (07:16 +0000)]
Unbreak buildworld.

19 years agoCorrectly set kernelname for kern.bootfile sysctl
Peter Grehan [Mon, 28 Feb 2005 07:14:13 +0000 (07:14 +0000)]
Correctly set kernelname for kern.bootfile sysctl

Noticed by: gad
Code stolen from: sparc64

19 years agoProtect against multiple includes and use _KERNEL to protect the PCI fns.
Nate Lawson [Mon, 28 Feb 2005 05:39:34 +0000 (05:39 +0000)]
Protect against multiple includes and use _KERNEL to protect the PCI fns.

19 years agoBump FreeBSD version for change to install acpica includes in /usr/include.
Nate Lawson [Mon, 28 Feb 2005 05:28:29 +0000 (05:28 +0000)]
Bump FreeBSD version for change to install acpica includes in /usr/include.

19 years agoAdd missing va_end() in fdc_cmd.
Pyun YongHyeon [Mon, 28 Feb 2005 05:14:45 +0000 (05:14 +0000)]
Add missing va_end() in fdc_cmd.
0 -> NULL in arguments of fdc_sense_int().

Reminded by: joerg

19 years agoInstall acpi includes in dev/acpica. This should later be trimmed (the pci
Nate Lawson [Mon, 28 Feb 2005 02:20:03 +0000 (02:20 +0000)]
Install acpi includes in dev/acpica.  This should later be trimmed (the pci
bus one is not needed) and ifdef _KERNEL added.

PR: kern/74215
MFC after: 1 day

19 years agoCorrect a macro name.
Christian Brueffer [Mon, 28 Feb 2005 02:02:27 +0000 (02:02 +0000)]
Correct a macro name.

PR: 78171
Submitted by: "Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
MFC after: 3 days

19 years agoTypos and grammar fixes, wordsmithing
Christian Brueffer [Mon, 28 Feb 2005 01:33:10 +0000 (01:33 +0000)]
Typos and grammar fixes, wordsmithing

19 years agoThere were two calls to cardbus_do_cis when cardbus_do_cis changed,
Warner Losh [Mon, 28 Feb 2005 01:27:24 +0000 (01:27 +0000)]
There were two calls to cardbus_do_cis when cardbus_do_cis changed,
yet I only changed one of them.  So when we loaded drivers, we'd fail
to allocate resources correct.

This pointed out that we were doing the wrong thing when we failed to
attach a child.  We released all the resources and almost deleted the
child.  Instead, we should keep the resources allocated so when/if a
driver is loaded, we can go w/o having to allocate them.  We use
pci_cfg_save/restore to restore the BARs with these resources.

This seems to fix the problems that we were seeing that I thought
might have magically gone away in the last revision of cardbus.c (but
really didn't).

Noticed by: avatar (nicely done!)

19 years agoExpose pci_cfg_safe/restore for subclasses of pci to use.
Warner Losh [Mon, 28 Feb 2005 01:14:15 +0000 (01:14 +0000)]
Expose pci_cfg_safe/restore for subclasses of pci to use.

19 years agoSpell "options" correctly as "options ".
David E. O'Brien [Mon, 28 Feb 2005 00:58:06 +0000 (00:58 +0000)]
Spell "options" correctly as "options ".

19 years agoConnect "options MP_WATCHDOG" to the LINT builds.
David E. O'Brien [Mon, 28 Feb 2005 00:55:16 +0000 (00:55 +0000)]
Connect "options MP_WATCHDOG" to the LINT builds.

19 years agoAdd FreeBSD ID.
David E. O'Brien [Mon, 28 Feb 2005 00:53:29 +0000 (00:53 +0000)]
Add FreeBSD ID.

19 years agoUse mss_{format,speed}() rather than chn_set{format,speed}() and hold
Matthew N. Dodd [Sun, 27 Feb 2005 23:32:21 +0000 (23:32 +0000)]
Use mss_{format,speed}() rather than chn_set{format,speed}() and hold
mss lock across call.

This allows my Thinkpad 600E to resume with the sound driver loaded and
vchans enabled.

19 years ago- Add md_provsize field to metadata, which will help with
Pawel Jakub Dawidek [Sun, 27 Feb 2005 23:07:47 +0000 (23:07 +0000)]
- Add md_provsize field to metadata, which will help with
  shared-last-sector problem.
  After this change, even if there is more than one provider with the same
  last sector, the proper one will be chosen based on its size.
  It still doesn't fix the 'c' partition problem (when da0s1 can be confused
  with da0s1c) and situation when 'a' partition starts at offset 0
  (then da0s1a can be confused with da0s1 and da0s1c). One can use '-h'
  option there, when creating device or avoid sharing last sector.
  Actually, when providers share the same last sector and their size is equal,
  they provide exactly the same data, so the name (da0s1, da0s1a, da0s1c)
  isn't important at all.
- Provide backward compatibility.
- Update copyright's year.

MFC after: 1 week

19 years agoAlso handle d_maj hints from cloning drivers correctly.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:57:32 +0000 (22:57 +0000)]
Also handle d_maj hints from cloning drivers correctly.

19 years agoWhine about any drivers which hardcode the device major number.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:41:07 +0000 (22:41 +0000)]
Whine about any drivers which hardcode the device major number.

19 years agoFix typo.
Pawel Jakub Dawidek [Sun, 27 Feb 2005 22:34:07 +0000 (22:34 +0000)]
Fix typo.

19 years agoMFi386: rev 1.3:
David E. O'Brien [Sun, 27 Feb 2005 22:31:35 +0000 (22:31 +0000)]
MFi386: rev 1.3:
- Add debug.watchdog tunable, so we can specify watchdog CPU from loader
  which will help to debug hangs on boot.
- Remove 'U' from debug.watchdog sysctl definition, so if we set it to '-1'
  it really shows '-1'.
- Fix comment.

19 years agoFix grammatical issue.
Tom Rhodes [Sun, 27 Feb 2005 22:24:24 +0000 (22:24 +0000)]
Fix grammatical issue.

Submitted by: ceri

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:19:35 +0000 (22:19 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:17:51 +0000 (22:17 +0000)]
Use dynamic major number allocation.

19 years agoBackout NLS catalog handling, until all edge cases are resolved
Alexey Zelkin [Sun, 27 Feb 2005 22:17:47 +0000 (22:17 +0000)]
Backout NLS catalog handling, until all edge cases are resolved

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:16:58 +0000 (22:16 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:16:30 +0000 (22:16 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:11:02 +0000 (22:11 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:02:37 +0000 (22:02 +0000)]
Use dynamic major number allocation.

19 years agostyle.Makefile(5): remove trailing spaces.
David E. O'Brien [Sun, 27 Feb 2005 22:02:31 +0000 (22:02 +0000)]
style.Makefile(5): remove trailing spaces.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:02:04 +0000 (22:02 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:02:03 +0000 (22:02 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:01:09 +0000 (22:01 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 22:00:45 +0000 (22:00 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation.
Poul-Henning Kamp [Sun, 27 Feb 2005 21:59:52 +0000 (21:59 +0000)]
Use dynamic major number allocation.

19 years agoUse dynamic major number allocation for /dev/console, there is no
Poul-Henning Kamp [Sun, 27 Feb 2005 21:52:42 +0000 (21:52 +0000)]
Use dynamic major number allocation for /dev/console, there is no
longer any benefit from hard wiring it.

Remove special hack used to wire major to zero despite zero having a
different magic meaning as well.

19 years agoAdd my birthday.
Simon Barner [Sun, 27 Feb 2005 21:34:08 +0000 (21:34 +0000)]
Add my birthday.

Approved by: arved (mentor)

19 years agoUnbreak !NLS case
Alexey Zelkin [Sun, 27 Feb 2005 21:17:22 +0000 (21:17 +0000)]
Unbreak !NLS case

19 years agoRemove debug printout of major/minor numbers, print name instead.
Poul-Henning Kamp [Sun, 27 Feb 2005 21:16:26 +0000 (21:16 +0000)]
Remove debug printout of major/minor numbers, print name instead.

19 years ago- Add GEOM_LIBRARY_PATH environment variable which allows to specify an
Pawel Jakub Dawidek [Sun, 27 Feb 2005 21:14:58 +0000 (21:14 +0000)]
- Add GEOM_LIBRARY_PATH environment variable which allows to specify an
  alternative to /lib/geom/ path where shared libraries are stored.
- Improve debugging.

MFC after: 3 days

19 years agoIf the receiver sends an ack that is out of [snd_una, snd_max],
Paul Saab [Sun, 27 Feb 2005 20:39:04 +0000 (20:39 +0000)]
If the receiver sends an ack that is out of [snd_una, snd_max],
ignore the sack options in that segment. Else we'd end up
corrupting the scoreboard.

Found by: Raja Mukerji (raja at moselle dot com)
Submitted by: Mohan Srinivasan

19 years agoMake the format of LC_COLLATE files architecture independent.
Ruslan Ermilov [Sun, 27 Feb 2005 20:31:13 +0000 (20:31 +0000)]
Make the format of LC_COLLATE files architecture independent.

19 years agoFix two cut'n'paste'os which violated format of NLS catalogs
Alexey Zelkin [Sun, 27 Feb 2005 19:42:48 +0000 (19:42 +0000)]
Fix two cut'n'paste'os which violated format of NLS catalogs

19 years agoFix build on sparc64.
Ruslan Ermilov [Sun, 27 Feb 2005 19:37:51 +0000 (19:37 +0000)]
Fix build on sparc64.

19 years agoBootstrap gencat(1).
Ruslan Ermilov [Sun, 27 Feb 2005 19:13:41 +0000 (19:13 +0000)]
Bootstrap gencat(1).

OK'ed by: phantom

19 years agouse uiomove return value instead of always returning 0 when doing a
Sam Leffler [Sun, 27 Feb 2005 18:58:31 +0000 (18:58 +0000)]
use uiomove return value instead of always returning 0 when doing a
readlink of a fast link

Noticed by: Coverity Prevent analysis tool
Reviewed by: phk

19 years agoicmp6_notify_error uses IP6_EXTHDR_CHECK, which in turn calls
Hajimu UMEMOTO [Sun, 27 Feb 2005 18:57:10 +0000 (18:57 +0000)]
icmp6_notify_error uses IP6_EXTHDR_CHECK, which in turn calls
m_pullup.  icmp6_notify_error continued to use the old pointer,
which after the m_pullup is not suitable as a packet header any
longer (see m_move_pkthdr).
and this is what causes the kernel panic in sbappendaddr later on.

PR: kern/77934
Submitted by: Gerd Rausch <gerd@juniper.net>
MFC after: 2 days

19 years agoRevert accidiental removal of string.h inclusion.
Alexey Zelkin [Sun, 27 Feb 2005 18:39:02 +0000 (18:39 +0000)]
Revert accidiental removal of string.h inclusion.

19 years agofix typo.
Hajimu UMEMOTO [Sun, 27 Feb 2005 18:23:29 +0000 (18:23 +0000)]
fix typo.

MFC after: 2 days

19 years agoFix typo
Alexey Zelkin [Sun, 27 Feb 2005 18:18:32 +0000 (18:18 +0000)]
Fix typo

19 years agoEnable processing of NLS catalogs while building/installing of libc
Alexey Zelkin [Sun, 27 Feb 2005 18:09:52 +0000 (18:09 +0000)]
Enable processing of NLS catalogs while building/installing of libc

19 years agoAdd russian version of libc NLS catalog
Alexey Zelkin [Sun, 27 Feb 2005 18:09:09 +0000 (18:09 +0000)]
Add russian version of libc NLS catalog

Translated by: Valeriy Kravchuk <openxs@ipnet.kiev.ua>
Alexey Dokuchaev <danfe@nsu.ru>

19 years agoinitialized the last arg to ip6_process_hopopts(), because the recent
Hajimu UMEMOTO [Sun, 27 Feb 2005 18:07:18 +0000 (18:07 +0000)]
initialized the last arg to ip6_process_hopopts(), because the recent
code requires it to be 0 when a jumbo payload option is contained.

PR: kern/77934
Submitted by: Gerd Rausch <gerd@juniper.net>
Obtained from: KAME
MFC after: 2 days

19 years agoAdd template NLS catalog for strerror(), strerror_r() and strsignal()
Alexey Zelkin [Sun, 27 Feb 2005 17:59:39 +0000 (17:59 +0000)]
Add template NLS catalog for strerror(), strerror_r() and strsignal()
localization support

19 years agoAdd SHSEC class to the list of geom(8)-aware classes.
Pawel Jakub Dawidek [Sun, 27 Feb 2005 17:56:59 +0000 (17:56 +0000)]
Add SHSEC class to the list of geom(8)-aware classes.

MFC after: 3 days

19 years agoChange the spin lock logic to a reasonable one. We should spin when
Xin LI [Sun, 27 Feb 2005 17:45:55 +0000 (17:45 +0000)]
Change the spin lock logic to a reasonable one.  We should spin when
the lock is held by other thread, but not when nobody owns it.  According
to deischen@, this part of code will never be hit in our threads
library, since it does not use locks without wait/wakeup functions.

Spotted by: mingyanguo via ChinaUnix.net forum
Reviewed by: deischen

19 years agoRemove filtering on major device number. These are assigned randomly
Poul-Henning Kamp [Sun, 27 Feb 2005 17:22:36 +0000 (17:22 +0000)]
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.

19 years agoRemove the check about whether MALLOC_EXTRA_SANITY is defined,
Xin LI [Sun, 27 Feb 2005 17:16:16 +0000 (17:16 +0000)]
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

19 years agoAdd NLS catalogs support to strerror(), strerror_r() and strsignal().
Alexey Zelkin [Sun, 27 Feb 2005 16:58:28 +0000 (16:58 +0000)]
Add NLS catalogs support to strerror(), strerror_r() and strsignal().
Controlled by NLS define, currently disabled by default.

Idea obtained from: NetBSD

19 years agoThere's no '-new' argument for gencat(1) anymore
Alexey Zelkin [Sun, 27 Feb 2005 16:36:54 +0000 (16:36 +0000)]
There's no '-new' argument for gencat(1) anymore

19 years ago. Bump .Dd's
Alexey Zelkin [Sun, 27 Feb 2005 16:30:16 +0000 (16:30 +0000)]
. 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

19 years agoBring in NetBSD's improvements and cleanups to NLS subsystem, making
Alexey Zelkin [Sun, 27 Feb 2005 16:26:49 +0000 (16:26 +0000)]
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

19 years agoRemove unused now stuff, also set WARNS to 8
Alexey Zelkin [Sun, 27 Feb 2005 16:25:14 +0000 (16:25 +0000)]
Remove unused now stuff, also set WARNS to 8

19 years agoBring in NetBSD's improvements and cleanups to NLS subsystem, making
Alexey Zelkin [Sun, 27 Feb 2005 16:23:14 +0000 (16:23 +0000)]
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)

19 years agoBring in NetBSD's improvements and cleanups to NLS subsystem, making
Alexey Zelkin [Sun, 27 Feb 2005 16:20:53 +0000 (16:20 +0000)]
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)

19 years agoman page -> manual page
Christian Brueffer [Sun, 27 Feb 2005 15:49:07 +0000 (15:49 +0000)]
man page -> manual page

19 years agoThe zs(4) driver is superseded by uart(4) and broken in -CURRENT. Remove
Marius Strobl [Sun, 27 Feb 2005 15:23:58 +0000 (15:23 +0000)]
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

19 years agoFix a stupid bogon from myself, sc->revision wasn't initialized when
Maxime Henrion [Sun, 27 Feb 2005 15:12:50 +0000 (15:12 +0000)]
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

19 years ago. Static'ize functions exported via function reference variables only.
Alexey Zelkin [Sun, 27 Feb 2005 15:11:09 +0000 (15:11 +0000)]
. 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

19 years agoANSI'fy prototypes
Alexey Zelkin [Sun, 27 Feb 2005 14:54:23 +0000 (14:54 +0000)]
ANSI'fy prototypes

19 years agoReplace usage of strerror()/strcpy() with strerror_r() here, reducing
Alexey Zelkin [Sun, 27 Feb 2005 14:51:27 +0000 (14:51 +0000)]
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

19 years agoZero out the entire "struct __collate_st_chain_pri", or garbage
Ruslan Ermilov [Sun, 27 Feb 2005 14:05:38 +0000 (14:05 +0000)]
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.)

19 years agoATA -> PATA/SATA, to make clear that this driver supports both kinds
Christian Brueffer [Sun, 27 Feb 2005 13:15:51 +0000 (13:15 +0000)]
ATA -> PATA/SATA, to make clear that this driver supports both kinds
of controllers.

Inspired by: xy <xy@packetflood.net>
MFC after: 3 days

19 years agoDon't mention PATA support, all listed controllers are SATA.
Christian Brueffer [Sun, 27 Feb 2005 13:14:28 +0000 (13:14 +0000)]
Don't mention PATA support, all listed controllers are SATA.

Inspired by: xy <xy@packetflood.net>
MFC after: 3 days

19 years agoAdd device id for the Ali M1671 host to AGP bridge.
Olivier Houchard [Sun, 27 Feb 2005 13:05:34 +0000 (13:05 +0000)]
Add device id for the Ali M1671 host to AGP bridge.

19 years agoAttempt to free any static TLS space used by a shared library when it
Doug Rabson [Sun, 27 Feb 2005 12:55:40 +0000 (12:55 +0000)]
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

19 years agoAdded the convenience "distribution" target which calls the
Ruslan Ermilov [Sun, 27 Feb 2005 12:11:35 +0000 (12:11 +0000)]
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.

19 years agoMake it clear we no longer support source upgrades from
Ruslan Ermilov [Sun, 27 Feb 2005 11:51:46 +0000 (11:51 +0000)]
Make it clear we no longer support source upgrades from
versions prior to 5.3.

19 years agoAdd missing continuation.
Ruslan Ermilov [Sun, 27 Feb 2005 11:48:45 +0000 (11:48 +0000)]
Add missing continuation.