]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoMake bogus_offset local to bufinit().
Alan Cox [Tue, 7 Jan 2003 19:55:08 +0000 (19:55 +0000)]
Make bogus_offset local to bufinit().

21 years agoThe README refers to a LICENSE file, so add that file too.
Prafulla Deuskar [Tue, 7 Jan 2003 19:36:00 +0000 (19:36 +0000)]
The README refers to a LICENSE file, so add that file too.
BTW the license is also embedded in the source files.

MFC after: 1 day

21 years agoFix warnings & errors caused by my last commit.
Poul-Henning Kamp [Tue, 7 Jan 2003 19:09:10 +0000 (19:09 +0000)]
Fix warnings & errors caused by my last commit.

21 years agoThis patch fixes a problem caused by applications that rapidly and
Kirk McKusick [Tue, 7 Jan 2003 18:23:50 +0000 (18:23 +0000)]
This patch fixes a problem caused by applications that rapidly and
repeatedly truncate the same file. Each time the file is truncated,
a buffer is grabbed to store the indirect block numbers that need
to be freed. Those blocks cannot be freed until the inode claiming
them is written to disk. Thus, the number of buffers being held by
soft updates explodes and in extreme cases can run the kernel out
of buffers. The problem can be avoided by doing an fsync on the
file every debug.maxindirdep truncates (currently defaulted to 50).
The fsync causes the inode to be written so that the held buffers
can be freed. The check for excessive buffers is checked as part
of the existing hook for excessive dependencies (softdep_slowdown)
in the truncate code.

Reported by: David Schultz <dschultz@uclink.Berkeley.EDU>
Sponsored by:   DARPA & NAI Labs.
MFC after: 3 weeks

21 years agoCast the integer read as the first argument for %b to an unsigned integer
John Baldwin [Tue, 7 Jan 2003 18:17:18 +0000 (18:17 +0000)]
Cast the integer read as the first argument for %b to an unsigned integer
so it's value is not sign extended when assigned to the uintmax_t variable
used internally by printf.  For example, if bit 31 is set in the cpuid
feature word, then %b would print out the initial value as a 16 character
hexadecimal value.  Now it only prints out an 8 character value.

Reviewed by: bde

21 years agoNew release note: SA-02:44.
Bruce A. Mah [Tue, 7 Jan 2003 17:35:04 +0000 (17:35 +0000)]
New release note:  SA-02:44.

21 years agoAdd support for OPIE and PAM.
David E. O'Brien [Tue, 7 Jan 2003 17:31:23 +0000 (17:31 +0000)]
Add support for OPIE and PAM.

Submitted by: mikeh (reworked by me)

21 years agoUse manpage entities for ciss(4), iir(4), and trm(4).
Bruce A. Mah [Tue, 7 Jan 2003 16:55:03 +0000 (16:55 +0000)]
Use manpage entities for ciss(4), iir(4), and trm(4).

21 years agoNew release notes: fwcontrol(8) (+MFC), swapoff(8), xargs(1) -P,
Bruce A. Mah [Tue, 7 Jan 2003 16:48:23 +0000 (16:48 +0000)]
New release notes:  fwcontrol(8) (+MFC), swapoff(8), xargs(1) -P,
bzip2recover (+MFC).

Modified release notes:  compat4x update, awk 20021213 update,
OpenPam Daffodil.

MFCs noted:  cvs-1.11.2.1 20021201 snapshot.

Other changes:  Capitalize "FireWire" correctly.  Use manpage entities for
ciss(4), ida(4), iir(4), trm(4).

21 years agoCorrect a couple small typos.
Chris Costello [Tue, 7 Jan 2003 13:18:21 +0000 (13:18 +0000)]
Correct a couple small typos.

Submitted by: Attila Nagy <bra@fsn.hu>

21 years ago- Fix print format for FreeBSD-4
Hidetoshi Shimokawa [Tue, 7 Jan 2003 12:58:08 +0000 (12:58 +0000)]
- Fix print format for FreeBSD-4
- Reduce debug message.

21 years agoAdd an entry for libugidfw.
Chris Costello [Tue, 7 Jan 2003 11:30:53 +0000 (11:30 +0000)]
Add an entry for libugidfw.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoDocument the file system firewall interface library functions.
Chris Costello [Tue, 7 Jan 2003 11:23:43 +0000 (11:23 +0000)]
Document the file system firewall interface library functions.

Sponsored by: DARPA, Network Associates Laboratories

21 years agoTeach sysinstall about rpcbind, rpc.lockd, and rpc.statd. As an added
Scott Long [Tue, 7 Jan 2003 07:46:50 +0000 (07:46 +0000)]
Teach sysinstall about rpcbind, rpc.lockd, and rpc.statd.  As an added
bonus, rpcbind will be enabled automatically if rpc.lockd, rpc.statd, amd,
NFS Server, or NIS is enabled.

21 years agoClear some KSE fields after kse mode was turned off.
David Xu [Tue, 7 Jan 2003 06:56:43 +0000 (06:56 +0000)]
Clear some KSE fields after kse mode was turned off.

21 years ago#include "namespace.h" to get a prototype for _err().
Tim J. Robbins [Tue, 7 Jan 2003 06:55:58 +0000 (06:55 +0000)]
#include "namespace.h" to get a prototype for _err().

21 years agoRemove an unused variable: mbresult.
Tim J. Robbins [Tue, 7 Jan 2003 06:20:47 +0000 (06:20 +0000)]
Remove an unused variable: mbresult.

21 years ago#include <stdlib.h> for free()'s prototype.
Tim J. Robbins [Tue, 7 Jan 2003 06:17:13 +0000 (06:17 +0000)]
#include <stdlib.h> for free()'s prototype.

21 years agoUse hidden names (_close, _dup2, _waitpid, etc.) where appropriate.
Tim J. Robbins [Tue, 7 Jan 2003 06:07:56 +0000 (06:07 +0000)]
Use hidden names (_close, _dup2, _waitpid, etc.) where appropriate.

21 years agoAdd waitpid to the list of hidden names for use by wordexp.c and grantpt.c.
Tim J. Robbins [Tue, 7 Jan 2003 06:05:35 +0000 (06:05 +0000)]
Add waitpid to the list of hidden names for use by wordexp.c and grantpt.c.

21 years agoForgot to call setrunnable() for un-idled thread.
David Xu [Tue, 7 Jan 2003 06:04:33 +0000 (06:04 +0000)]
Forgot to call setrunnable() for un-idled thread.

21 years agoCheck signals for idled threads.
David Xu [Tue, 7 Jan 2003 05:56:38 +0000 (05:56 +0000)]
Check signals for idled threads.

21 years agoTypo fixes.
Giorgos Keramidas [Tue, 7 Jan 2003 05:06:27 +0000 (05:06 +0000)]
Typo fixes.

PR: docs/46815
Submitted by: SUZUKI Koichi <koich@cac.co.jp>

21 years agoWe've had something like this file since 1992, so therefore this file
Warner Losh [Tue, 7 Jan 2003 04:37:40 +0000 (04:37 +0000)]
We've had something like this file since 1992, so therefore this file
is a derivitive work, so the copyright notice in the file should say
1992-2003.

21 years agoDon't call fw_bus_probe() twice when successive self-id packets received.
Hidetoshi Shimokawa [Tue, 7 Jan 2003 04:26:45 +0000 (04:26 +0000)]
Don't call fw_bus_probe() twice when successive self-id packets received.
This change should stabilize SBP-II device probing.

21 years agoPut the ASIC revision into the device description string so it appears
John Polstra [Tue, 7 Jan 2003 01:33:03 +0000 (01:33 +0000)]
Put the ASIC revision into the device description string so it appears
in the dmesg output.

MFC after: 3 days

21 years agoo Only try to recopy the mbuf into an mbuf cluster if
Maxime Henrion [Tue, 7 Jan 2003 01:01:20 +0000 (01:01 +0000)]
o Only try to recopy the mbuf into an mbuf cluster if
  bus_dmamap_load_mbuf() returned EFBIG.
o Fix mbuf leaks in an error (rare) code path.
o Reuse the TX descriptor if xl_encap() failed instead of
  just picking the next one.
o Better error messages.

21 years agoDon't reference the maxlen and flags fields in the ring control blocks
John Polstra [Mon, 6 Jan 2003 23:46:47 +0000 (23:46 +0000)]
Don't reference the maxlen and flags fields in the ring control blocks
as separate 16-bit entities.  Some of the ring control blocks are
in NIC memory, so they must be referenced using 32-bit accesses.
Smaller accesses have been observed to fail under some conditions.
This caused the rings to be set up wrong, leading to writes by the
card outside of the intended bounds of the rings.  This problem was
diagnosed by Michael Barthelow.  Don Bowman submitted a patch which
fixed the problem using a slightly different approach.

Reference ring control blocks in NIC memory using a pointer to
volatile.

Parenthesize the BGE_HOSTADDR macro definition properly.

MFC after: 3 days

21 years agoRemove redundant documenation.
Tom Rhodes [Mon, 6 Jan 2003 23:20:55 +0000 (23:20 +0000)]
Remove redundant documenation.

PR: 46253
Submitted by: Jeroen Ruigrok van der Werven <asmodai@wxs.nl>

21 years agoCorrect order of alignment in EXAMPLES.
Tom Rhodes [Mon, 6 Jan 2003 22:52:57 +0000 (22:52 +0000)]
Correct order of alignment in EXAMPLES.

PR: 42760
Submitted by: Christian Brueffer <chris@unixpages.org>

21 years agoHappy new year 2003 !
Sebastien Gioria [Mon, 6 Jan 2003 22:17:27 +0000 (22:17 +0000)]
Happy new year 2003 !

21 years agoConvert to use bus_dmamap_load_mbuf(); decouple software TX descriptors
Thomas Moestl [Mon, 6 Jan 2003 22:12:57 +0000 (22:12 +0000)]
Convert to use bus_dmamap_load_mbuf(); decouple software TX descriptors
from the hardware descriptors to avoid the overhead of having a DMA
map for each of them. Bump the number of hardware descriptors to 128,
and use half as many software descriptors for now.
Some minor cleanups.

21 years agomore crypto test stuff:
Sam Leffler [Mon, 6 Jan 2003 22:11:56 +0000 (22:11 +0000)]
more crypto test stuff:

o cryptotest can now run multiple threads with -t option
o cryptotest can now "profile" time spent doing symmetric ops with -p
o cryptostats dumps the crypto statistics block
o cryptokeystat is an openbsd app that tests public key ops

21 years ago- Convert to use bus_dmamap_load_mbuf().
Thomas Moestl [Mon, 6 Jan 2003 22:09:01 +0000 (22:09 +0000)]
- Convert to use bus_dmamap_load_mbuf().
- remove DPRINTF(), there is a CTR*() for any of them, and KTR is
  far more useful to debug this driver.
- some cleanups; remove some unused code and definitions.

21 years agoChange the iommu code to be able to handle more than one DVMA area per
Thomas Moestl [Mon, 6 Jan 2003 21:59:54 +0000 (21:59 +0000)]
Change the iommu code to be able to handle more than one DVMA area per
map. Use this new feature to implement iommu_dvmamap_load_mbuf() and
iommu_dvmamap_load_uio() functions in terms of a new helper function,
iommu_dvmamap_load_buffer(). Reimplement the iommu_dvmamap_load()
to use it, too.
This requires some changes to the map format; in addition to that,
remove unused or redundant members.
Add SBus and Psycho wrappers for the new functions, and make them
available through the respective DMA tags.

21 years agoUpdate release documentation copyright dates.
Bruce A. Mah [Mon, 6 Jan 2003 21:59:16 +0000 (21:59 +0000)]
Update release documentation copyright dates.

21 years agoMajor update to the refuse file.
Tom Rhodes [Mon, 6 Jan 2003 21:56:10 +0000 (21:56 +0000)]
Major update to the refuse file.

PR: 44164
Submitted by: Sergei Kolobov <sergei@kolobov.com>

21 years agodon't reference a pkthdr after M_MOVE_PKTHDR has "remove it"; instead
Sam Leffler [Mon, 6 Jan 2003 21:33:54 +0000 (21:33 +0000)]
don't reference a pkthdr after M_MOVE_PKTHDR has "remove it"; instead
reference the pkthdr now in the destination of the move

Sponsored by: Vernier Networks

21 years agopurge extraneous clears of M_PKTHDR since M_MOVE_PKTHDR does this already
Sam Leffler [Mon, 6 Jan 2003 21:29:27 +0000 (21:29 +0000)]
purge extraneous clears of M_PKTHDR since M_MOVE_PKTHDR does this already

21 years agofix memory allocation problems and collateral damage:
Sam Leffler [Mon, 6 Jan 2003 21:23:06 +0000 (21:23 +0000)]
fix memory allocation problems and collateral damage:

o create a separate tag for each object allocated with bus_dmamem_alloc so
  the tag's maxsize is setup appropriately; this reduces memory allocation
  for the queue descriptors from 16M to what it should be and also fixes
  memory allocation for public key operands
o release bus dma resources on detach so module usage doesn't leak
o remove public key op disable now that bus dma memory allocation is fixed
o collect attach error handling in one place

Sponsored by: Vernier Networks

21 years ago- remove the unused parent DMA tag argument from
Thomas Moestl [Mon, 6 Jan 2003 20:54:07 +0000 (20:54 +0000)]
- remove the unused parent DMA tag argument from
  _nexus_dmamap_load_buffer()
- implement nexus_dmamap_load() in terms of _nexus_dmamap_load_buffer().
  Note that this is untested, as this code is not currently used (but
  might be later for UPA devices).
- move BUS_DMAMAP_NSEGS to bus_private.h
- disable the ecache flushing in nexus_dmamap_sync(); it should not be
  needed, although the docs are not entirely clear on that.

21 years agogeom_bsd need -lmd to link now.
Poul-Henning Kamp [Mon, 6 Jan 2003 20:11:32 +0000 (20:11 +0000)]
geom_bsd need -lmd to link now.

21 years agoBSD disklabels expose the controling label though the 'c' partition, and
Poul-Henning Kamp [Mon, 6 Jan 2003 20:10:41 +0000 (20:10 +0000)]
BSD disklabels expose the controling label though the 'c' partition, and
some trick is necessary to prevent further BSD geoms from attaching to
that.  Our old trick was to make sure we don't attach to a geom from
the "BSD" class, but this doesn't work if an intermediary geom obscures
this fact.  Instead, calculate the MD5 checksum of the label we target
and ask if anybody below us loves that label.  If they do we don't.

Coded by:       gordon.

21 years agoIn userland case include <errno.h>, not <err.h>. This is needed to make
Poul-Henning Kamp [Mon, 6 Jan 2003 20:05:45 +0000 (20:05 +0000)]
In userland case include <errno.h>, not <err.h>.  This is needed to make
the src/tools/regression/geom stuff compile.

21 years agoBump the IOMMU TSB size to 32kB, to match the default size on PCI
Thomas Moestl [Mon, 6 Jan 2003 19:48:31 +0000 (19:48 +0000)]
Bump the IOMMU TSB size to 32kB, to match the default size on PCI
systems.

21 years agoPrefix the members of struct bus_space_tag and struct bus_dma_tag with
Thomas Moestl [Mon, 6 Jan 2003 19:43:10 +0000 (19:43 +0000)]
Prefix the members of struct bus_space_tag and struct bus_dma_tag with
a uniqifier. No functional changes.

21 years agoBack out last commit.
Peter Wemm [Mon, 6 Jan 2003 19:30:21 +0000 (19:30 +0000)]
Back out last commit.

21 years agocorrect flags passed when allocation crypto request structures so we
Sam Leffler [Mon, 6 Jan 2003 18:52:05 +0000 (18:52 +0000)]
correct flags passed when allocation crypto request structures so we
don't block and the returned data is zero'd

21 years agoUpdate the supported systems section.
Hiroki Sato [Mon, 6 Jan 2003 18:26:46 +0000 (18:26 +0000)]
Update the supported systems section.

Reviewed by: nyan
References: [FreeBSD98-doc 637]

21 years agoMerge the following from the English version:
Hiroki Sato [Mon, 6 Jan 2003 17:51:59 +0000 (17:51 +0000)]
Merge the following from the English version:

1.119 -> 1.122 hardware/common/dev.sgml

1.344 -> 1.424 relnotes/common/new.sgml

Submitted by: Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References: [doc-jp-work 560]

21 years agoStyle and comment fixes, no functional changes.
Thomas Moestl [Mon, 6 Jan 2003 17:35:40 +0000 (17:35 +0000)]
Style and comment fixes, no functional changes.

21 years agoBack out revisions 1.45 && 1.46, they are incorrect.
Tom Rhodes [Mon, 6 Jan 2003 17:28:46 +0000 (17:28 +0000)]
Back out revisions 1.45 && 1.46, they are incorrect.

Noticed by: schweikh

21 years agoLook for the correct method in sparc64_dmamap_load_mbuf() and
Thomas Moestl [Mon, 6 Jan 2003 17:17:26 +0000 (17:17 +0000)]
Look for the correct method in sparc64_dmamap_load_mbuf() and
sparc64_dmamap_load_uio().

21 years agoCompare pointers to NULL rather than make it look like they are ints.
David E. O'Brien [Mon, 6 Jan 2003 17:15:35 +0000 (17:15 +0000)]
Compare pointers to NULL rather than make it look like they are ints.

21 years agoDocument what .jcr and .eh_frame is.
Tom Rhodes [Mon, 6 Jan 2003 17:12:45 +0000 (17:12 +0000)]
Document what .jcr and .eh_frame is.

PR: 46638
Submitted by: Tim Kientzle <tim@kientzle.com>

21 years agoInitialize the cache line size register of all PCI devices in the
Thomas Moestl [Mon, 6 Jan 2003 17:12:23 +0000 (17:12 +0000)]
Initialize the cache line size register of all PCI devices in the
initial setup pass.

21 years agosave_realloc() should use reallocf() to close memory leaks.
David E. O'Brien [Mon, 6 Jan 2003 17:11:46 +0000 (17:11 +0000)]
save_realloc() should use reallocf() to close memory leaks.
item_add() should use safe_realloc() as it does no error checking itself.

21 years agoSome cleanup:
Thomas Moestl [Mon, 6 Jan 2003 17:10:07 +0000 (17:10 +0000)]
Some cleanup:
- move some constants into iommureg.h
- correct some comments
- use KASSERT() in one place instead of rolling our own
- take a sanity check out of #ifdef DIAGNOSTIC
- fix a syntax error in normally #ifdef'ed out debug code

21 years ago- remove some outdated comments
Thomas Moestl [Mon, 6 Jan 2003 16:51:06 +0000 (16:51 +0000)]
- remove some outdated comments
- tweak the announce message a bit
- remove '\n's from a few panic() calls
- don't use the DVMA base adress the firmware reports; instead, figure
  it out from the appropriate register on Sabres and let the IOMMU code
  choose it on Psychos. This also makes the IOMMU TSB size freely
  selectable.

21 years agoTerminate the usage message with \n.
Warner Losh [Mon, 6 Jan 2003 16:46:25 +0000 (16:46 +0000)]
Terminate the usage message with \n.

Submitted by: joe

21 years ago1.) fix a copy-and-paste-o in a panic() message
Thomas Moestl [Mon, 6 Jan 2003 16:36:05 +0000 (16:36 +0000)]
1.) fix a copy-and-paste-o in a panic() message
2.) pass the requesting child device (instead of the bus one) up when
    handling interrupt resources
3.) remeber to mark the resource list entry as unused in
    sbus_release_resource().

Reported by: scottl (3)

21 years agoBah, just use %zu for printing size_t.
Mike Barcroft [Mon, 6 Jan 2003 16:31:39 +0000 (16:31 +0000)]
Bah, just use %zu for printing size_t.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r108794,
Dag-Erling Smørgrav [Mon, 6 Jan 2003 16:07:51 +0000 (16:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r108794,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of OpenPAM Daffodil.
Dag-Erling Smørgrav [Mon, 6 Jan 2003 16:07:51 +0000 (16:07 +0000)]
Vendor import of OpenPAM Daffodil.

21 years agoFix a type that crept in during my last commit here.
Tom Rhodes [Mon, 6 Jan 2003 15:30:55 +0000 (15:30 +0000)]
Fix a type that crept in during my last commit here.

Noticed by: Stefan Farfeleder <stefan@fafoe.dyndns.org>
Pointy hat: trhodes

21 years agoAdd SCSI MO device support.
Yoshihiro Takahashi [Mon, 6 Jan 2003 13:43:15 +0000 (13:43 +0000)]
Add SCSI MO device support.

Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>

21 years agoCorrect file descriptor leaks in lseek and do_dup.
Jacques Vidrine [Mon, 6 Jan 2003 13:19:05 +0000 (13:19 +0000)]
Correct file descriptor leaks in lseek and do_dup.
The leak in lseek was introduced in vfs_syscalls.c revision 1.218.
The leak in do_dup was introduced in kern_descrip.c revision 1.158.

Submitted by: iedowse

21 years agoFix warnings on 64bits architectures.
Maxime Henrion [Mon, 6 Jan 2003 12:07:38 +0000 (12:07 +0000)]
Fix warnings on 64bits architectures.

Noticed by: alpha tinderbox

21 years agoMove dashutdown from SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_FIRST.
Peter Wemm [Mon, 6 Jan 2003 08:28:15 +0000 (08:28 +0000)]
Move dashutdown from SHUTDOWN_PRI_DEFAULT to SHUTDOWN_PRI_FIRST.
Otherwise, the scsi devices that it is trying to issue commands to may
have gone away.  This is what caused shutdown to hang on ia64 systems
with mpt scsi controllers.  The bus system has torn down the device tree
and reset the mpt controller etc, and suddenly along comes dashutdown
and wants to issue a few more scsi commands....  <HANG!>

This shouldn't work on i386 either, but it seems to work solely due
to luck.

21 years agoMFp4: make it work
Warner Losh [Mon, 6 Jan 2003 08:09:41 +0000 (08:09 +0000)]
MFp4: make it work

o Expand variables correctly.
o Set variables for each event.
o rewrite event loop to execute the commands in the config file, rather
  than the hard wired generic command
o better(?) debug when running -d
o sort vectors of actions so that we just have to search for the first
  one to match rather than the best one that matches.
o better attempts to clear all resources used on 'restart'
o Remove now bogus comments

MFC After: 1 centiyear

21 years agoUse device_printf() and s/fc->dev/fc->bdev/.
Hidetoshi Shimokawa [Mon, 6 Jan 2003 08:07:20 +0000 (08:07 +0000)]
Use device_printf() and s/fc->dev/fc->bdev/.

21 years agodevd not devdd
Warner Losh [Mon, 6 Jan 2003 08:03:00 +0000 (08:03 +0000)]
devd not devdd

submitted by: joe

21 years agoUpdate kernbb(8) to deal with GCC's new way of doing things.
Poul-Henning Kamp [Mon, 6 Jan 2003 07:46:26 +0000 (07:46 +0000)]
Update kernbb(8) to deal with GCC's new way of doing things.

21 years agoThis is all "#if defined(__i386__) && __GNUC__ >= 2":
Poul-Henning Kamp [Mon, 6 Jan 2003 07:40:49 +0000 (07:40 +0000)]
This is all "#if defined(__i386__) && __GNUC__ >= 2":

Add support for GCC's --test-coverage --profile-arcs options.

Add code to call the functions listed in the .ctors section, these are
used to string the per .o file counter blocks into a linked list.

Add empty __bb_fork_func() to cope with GCC magic gandling of exec*()
named functions.

To add support for other platforms should be trivial, but involves
determining the exact data-types gcc uses on that platform.

21 years agoPrevent buffer overflow in format_cmd() by properly tracking maximum
Jordan K. Hubbard [Mon, 6 Jan 2003 07:39:02 +0000 (07:39 +0000)]
Prevent buffer overflow in format_cmd() by properly tracking maximum
buffer size.
Reported by: Lionnel CHAPTAL <Lionnel.Chaptal@IPricot.com>
MFC after: 1 week

21 years agoAdd two symbols start_ctors and stop_ctors to allow us to find the
Poul-Henning Kamp [Mon, 6 Jan 2003 07:37:15 +0000 (07:37 +0000)]
Add two symbols start_ctors and stop_ctors to allow us to find the
.ctors section so we can call the constructors.

21 years agostrfmon(3) does not correctly handle multibyte characters in the
Tim J. Robbins [Mon, 6 Jan 2003 06:21:25 +0000 (06:21 +0000)]
strfmon(3) does not correctly handle multibyte characters in the
format string.

21 years agoNote that the printf(3) and scanf(3) family of functions don't deal with
Tim J. Robbins [Mon, 6 Jan 2003 06:19:19 +0000 (06:19 +0000)]
Note that the printf(3) and scanf(3) family of functions don't deal with
multibyte characters in the format string correctly.

21 years agoFix fc->dev to fc->bdev.
Hidetoshi Shimokawa [Mon, 6 Jan 2003 05:57:48 +0000 (05:57 +0000)]
Fix fc->dev to fc->bdev.

21 years agoLink a.out(5) to aout(5) to follow the module name.
Tom Rhodes [Mon, 6 Jan 2003 05:18:42 +0000 (05:18 +0000)]
Link a.out(5) to aout(5) to follow the module name.

21 years agoAdd two new manual pages. Welcome the ida(4) and iir(4) manual pages.
Tom Rhodes [Mon, 6 Jan 2003 04:51:20 +0000 (04:51 +0000)]
Add two new manual pages.  Welcome the ida(4) and iir(4) manual pages.

21 years agoWe have a usable 'LOGIN_NAME_MAX' now.
David E. O'Brien [Mon, 6 Jan 2003 04:42:20 +0000 (04:42 +0000)]
We have a usable 'LOGIN_NAME_MAX' now.

21 years agoAdd the POSIX sanctioned "LOGIN_NAME_MAX" -- Maximum length of a login name.
David E. O'Brien [Mon, 6 Jan 2003 04:33:47 +0000 (04:33 +0000)]
Add the POSIX sanctioned "LOGIN_NAME_MAX" -- Maximum length of a login name.
Minimum Acceptable Value: _POSIX_LOGIN_NAME_MAX.
The comments at the bottom of this file claim sysconf(3) provides this value,
but it seems sysconf(3) hasn't implemented this yet.

21 years agoCast return values of sizeof() to int so they can be printed with %d.
Mike Barcroft [Mon, 6 Jan 2003 04:33:46 +0000 (04:33 +0000)]
Cast return values of sizeof() to int so they can be printed with %d.
The size of this struct is unlikely to ever grow beyond what an int
can represent.

Noticed by: alpha tinderbox

21 years agoNeed to prototype strsuftollx() to quiet a warning.
David E. O'Brien [Mon, 6 Jan 2003 04:09:20 +0000 (04:09 +0000)]
Need to prototype strsuftollx() to quiet a warning.

21 years agoMake the "nbsd_20030105" import build.
David E. O'Brien [Mon, 6 Jan 2003 03:03:53 +0000 (03:03 +0000)]
Make the "nbsd_20030105" import build.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r108760,
David E. O'Brien [Mon, 6 Jan 2003 02:26:00 +0000 (02:26 +0000)]
This commit was generated by cvs2svn to compensate for changes in r108760,
which included commits to RCS files with non-trunk default branches.

21 years agoNetBSD files needed to build LukeM's ftpd src as taken from the NetBSD CVS repo.
David E. O'Brien [Mon, 6 Jan 2003 02:26:00 +0000 (02:26 +0000)]
NetBSD files needed to build LukeM's ftpd src as taken from the NetBSD CVS repo.
The "portable" release of this is just lagging way too far behind
what is in NetBSD's base.

21 years agoMove ia64_sapics and ia64_sapic_count from interrupt.c to sapic.c
Marcel Moolenaar [Mon, 6 Jan 2003 02:09:08 +0000 (02:09 +0000)]
Move ia64_sapics and ia64_sapic_count from interrupt.c to sapic.c
and declare them extern in interrupt.c. This eliminates the need
for ia64_add_sapic(), which is called from sapic.c.
While here, reformat ia64_enable() in interrupt.c to improve
indentation and add a sysctl (machdep.apic) to dump the I/O APIC
entries currently programmed into all I/O APICs. The latter can
help analyze interrupt problems.
Note that the sysctl is not intended as a userland (software)
interface. It may be changed in the future to include counters
so that vmstat -i can make use of it. It may also be removed...

21 years agoOoops, use the full name of XL_FLAG_EEPROM_OFFSET_30
Mike Silbersack [Mon, 6 Jan 2003 01:55:12 +0000 (01:55 +0000)]
Ooops, use the full name of XL_FLAG_EEPROM_OFFSET_30

Noticed by: Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>

21 years agoMove the itm reload to a single place rather than having two identical
Peter Wemm [Mon, 6 Jan 2003 01:53:55 +0000 (01:53 +0000)]
Move the itm reload to a single place rather than having two identical
copies of the reload.  Note that we use the precomputed itm_reload value
so that we can avoid a division in the kernel.  The ia64 cpu does not
have integer divide, so this would have been done by a floating point
operation.

21 years agoReplace the hardcoding of 255 as the clock interrupt vector with
Marcel Moolenaar [Mon, 6 Jan 2003 01:39:25 +0000 (01:39 +0000)]
Replace the hardcoding of 255 as the clock interrupt vector with
CLOCK_VECTOR and define it as 254, not 255. Vector 255 is already
in use as the AP wakeup vector on the HP rx2600.

This needs to be made more dynamic. The likelyhood of vector 254
being in use is pretty small, but we already have code to assign
vectors to IPIs (see sal.c) and it's preobably better to have a
centralized "vector manager" that hands out vectors based on
some imput (like priority).

21 years agoExplicitly have the timecounter init happen after the cpu_initclocks is
Peter Wemm [Mon, 6 Jan 2003 01:01:08 +0000 (01:01 +0000)]
Explicitly have the timecounter init happen after the cpu_initclocks is
called.  Otherwise (depending on a non-deterministic sort), the timecounter
code can be initialized before the clock rate has been set (on ia64) and it
assumes hz = 100, rather than the real value of 1024.  I'm not sure how much
gets upset by this.

Glanced at by: phk

21 years agoEnable pppctl(8) on ia64.
Marcel Moolenaar [Mon, 6 Jan 2003 01:00:26 +0000 (01:00 +0000)]
Enable pppctl(8) on ia64.

21 years agoPort libc_r to ia64. We need to do things slightly different
Marcel Moolenaar [Mon, 6 Jan 2003 00:56:23 +0000 (00:56 +0000)]
Port libc_r to ia64. We need to do things slightly different
because we have 2 stacks per thread: the regular downward
memory stack and the irregular upward register stack. This
implementation lets both stacks grow toward each other. An
alternative scheme is to have them grow away from each other.
The alternate scheme has the advantage that both stack grow
toward guard pages. Since libc_r is virtually dead and we
really want the *context stuff for thread switching, we don't
try to be perfect, just functional.

21 years agoAdd support for the 3c555 miniPCI chipset.
Mike Silbersack [Mon, 6 Jan 2003 00:46:03 +0000 (00:46 +0000)]
Add support for the 3c555 miniPCI chipset.

Submitted by: johannes <johannes@paradise.net.nz>
PR: 46603
MFC after: 3 days

21 years agoManually inline handleclock(). There's only a single caller and
Marcel Moolenaar [Mon, 6 Jan 2003 00:38:35 +0000 (00:38 +0000)]
Manually inline handleclock(). There's only a single caller and
handleclock itself is trivial.

While here, replace (itc_frequency+hz/2)/hz with itm_reload for
consistency. There's now a single place where we determine the
ITM reload value.

21 years agoAdd two MII_SETs to provide a bit more time between operations in
Mike Silbersack [Mon, 6 Jan 2003 00:36:13 +0000 (00:36 +0000)]
Add two MII_SETs to provide a bit more time between operations in
xl_sync; this appears to be necessary with certain systems.

Requested by: Michael Class <michael_class@gmx.net>

21 years agoCount interrupts as soon as possible. This makes sure interrupts are
Marcel Moolenaar [Mon, 6 Jan 2003 00:25:31 +0000 (00:25 +0000)]
Count interrupts as soon as possible. This makes sure interrupts are
counted even when there are no handlers.

21 years agoMerge our .Nm changes into the nbsd_20030105 import.
David E. O'Brien [Mon, 6 Jan 2003 00:20:26 +0000 (00:20 +0000)]
Merge our .Nm changes into the nbsd_20030105 import.