]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd some fortunes and re-order the Feynman problem solving algorithm.
Thomas Gellekum [Wed, 24 Apr 2002 12:15:00 +0000 (12:15 +0000)]
Add some fortunes and re-order the Feynman problem solving algorithm.
Thanks to gsutter for the quotes.

Reviewed by: jkh

22 years agoContinue the cleanup preparations for UFS2 (& GEOM):
Poul-Henning Kamp [Wed, 24 Apr 2002 11:44:02 +0000 (11:44 +0000)]
Continue the cleanup preparations for UFS2 (& GEOM):

Use only one filedescriptor.  Open in R/O or R/W based in the '-N' option.
Make the filedescriptor a global variable instead of passing it around
as semi-global variable(s).

Remove the undocumented ability to specify type without '-T' option.

Replace fatal() with straight err(3)/errx(3).  Save calls to strerror()
where applicable.  Loose the progname variable.

Get the sense of the cpgflag test correct so we only issue warnings if
people specify cpg and can't get that.  It can be argued that this
should be an error.

Remove the check to see if the disk is mounted:  Open for writing
would fail if it were mounted.

Attempt to get the sectorsize and mediasize with the generic disk
ioctls, fall back to disklabel and /etc/disktab as we can.

Notice that on-disk labels still take precedence over /etc/disktab,
this is probably wrong, but not as wrong as the entire concept of
/etc/disktab is.

Sponsored by:   DARPA & NAI Labs.

22 years agoThe install.debug and reinstall.debug targets are needed solely
Ruslan Ermilov [Wed, 24 Apr 2002 11:26:19 +0000 (11:26 +0000)]
The install.debug and reinstall.debug targets are needed solely
to build kernel and kernel modules so stop supporting them in
bsd.subdir.mk and reimplement them in kern.post.mk and kmod.mk
as special versions of the install and reinstall targets, and
only define them if DEBUG is also defined (when debug versions
are really built).

Prompted by: bde

22 years agotypo in connect(2) error handling.
Hajimu UMEMOTO [Wed, 24 Apr 2002 10:43:40 +0000 (10:43 +0000)]
typo in connect(2) error handling.

Submitted by: Yukiyo Akisada <Yukiyo.Akisada@jp.yokogawa.com>
Obtained from: KAME
MFC after: 3 days

22 years agoFree(9) should be Giant-free.
Seigo Tanimura [Wed, 24 Apr 2002 09:59:18 +0000 (09:59 +0000)]
Free(9) should be Giant-free.

Suggested by: jhb

22 years agoSplit file system setup code out into a function called mount.
Jake Burkholder [Wed, 24 Apr 2002 05:54:10 +0000 (05:54 +0000)]
Split file system setup code out into a function called mount.
Implement vsnprintf.  Implement panic in terms of it.

22 years agoPrepare for a major update to the aac driver:
Scott Long [Wed, 24 Apr 2002 05:12:50 +0000 (05:12 +0000)]
Prepare for a major update to the aac driver:
Update the aac driver with the new crashdump api.
Protect sync fibs with a mutex.
Align all DMA buffers on a PAGE_SIZE boundary.

MFC after: 3 days

22 years agoStyle changes to reduce diff to things I did in the FSF repo.
David E. O'Brien [Wed, 24 Apr 2002 04:49:34 +0000 (04:49 +0000)]
Style changes to reduce diff to things I did in the FSF repo.

22 years agoFix bug where we were loosing our platform-wide ASM_COMMENT_START
David E. O'Brien [Wed, 24 Apr 2002 04:48:00 +0000 (04:48 +0000)]
Fix bug where we were loosing our platform-wide ASM_COMMENT_START
definition due to pollution in i386/unix.h.

22 years agoAdd me to the MAINTAINERS for 3dfx card stuff.
Coleman Kane [Wed, 24 Apr 2002 04:31:25 +0000 (04:31 +0000)]
Add me to the MAINTAINERS for 3dfx card stuff.

22 years agoAdd support for loading files other than /boot/loader. Useful if you're
Jake Burkholder [Wed, 24 Apr 2002 04:27:49 +0000 (04:27 +0000)]
Add support for loading files other than /boot/loader.  Useful if you're
loader is screwed and you want loader.old.
Rewrite the scaled down printf so it actually works right, and add support
for more formats.

22 years agoRemove sodropablereq - this function hasn't been used since the
Mike Silbersack [Wed, 24 Apr 2002 04:11:08 +0000 (04:11 +0000)]
Remove sodropablereq - this function hasn't been used since the
syncache went in.

MFC after: 3 days

22 years agoAdd an exit function.
Jake Burkholder [Wed, 24 Apr 2002 02:50:59 +0000 (02:50 +0000)]
Add an exit function.

22 years agoAdd -Wno-unused.
Jake Burkholder [Wed, 24 Apr 2002 02:50:36 +0000 (02:50 +0000)]
Add -Wno-unused.

22 years agomemcpy, memset -> bcopy, bzero.
Jake Burkholder [Wed, 24 Apr 2002 02:24:32 +0000 (02:24 +0000)]
memcpy, memset -> bcopy, bzero.

22 years agoClean up elf loading to not make assumptions about the ordering of sections.
Jake Burkholder [Wed, 24 Apr 2002 02:10:35 +0000 (02:10 +0000)]
Clean up elf loading to not make assumptions about the ordering of sections.
Don't load the symbol table; this is only needed for loading kernels and we
load the loader.

22 years agoRemove xfsread. Just call fsread directly.
Jake Burkholder [Wed, 24 Apr 2002 01:47:05 +0000 (01:47 +0000)]
Remove xfsread.  Just call fsread directly.

22 years agoRemove a bunch of unused variables, functions and macros. Allocate storage
Jake Burkholder [Wed, 24 Apr 2002 01:40:54 +0000 (01:40 +0000)]
Remove a bunch of unused variables, functions and macros.  Allocate storage
statically instead of using a faked up malloc.

22 years agoRearrange <netinet/in.h> so that it is easier to conditionalize
Mike Barcroft [Wed, 24 Apr 2002 01:26:11 +0000 (01:26 +0000)]
Rearrange <netinet/in.h> so that it is easier to conditionalize
sections for various standards.  Conditionalize sections for various
standards.  Use standards conforming spelling for types in the
sockaddr_in structure.

22 years agoWhitespace.
Bruce A. Mah [Wed, 24 Apr 2002 01:01:17 +0000 (01:01 +0000)]
Whitespace.

22 years agoNew release note: wi(4) hostap.
Bruce A. Mah [Wed, 24 Apr 2002 00:58:36 +0000 (00:58 +0000)]
New release note:  wi(4) hostap.

Modified release note:  Edited RFC 1948 note to reflect post-syncache reality.

Submitted by: Thomas Skibo <skibo@pacbell.net> (for hostap),
silby (for RFC 1948)

22 years agoMake Veritas Storage Appliance a HILUNS device.
Matt Jacob [Wed, 24 Apr 2002 00:00:55 +0000 (00:00 +0000)]
Make Veritas Storage Appliance a HILUNS device.

MFC after: 1 day

22 years agoBack out the NO_RCMNDS knob.
David E. O'Brien [Tue, 23 Apr 2002 23:59:51 +0000 (23:59 +0000)]
Back out the NO_RCMNDS knob.
1. The committer refused to respond to questions over the commit.
2. The servers rlogind, rshd, rexecd were not wrapped.
3. "rcmnds" as an abbreviation gets an order of magnitude less hits on
    Google than the much more well known "rcmds".

22 years agoDo not +1 with MAXPATHLEN.
David E. O'Brien [Tue, 23 Apr 2002 23:58:20 +0000 (23:58 +0000)]
Do not +1 with MAXPATHLEN.

Reviewed by: imp

22 years agoChange the name of the 'bin' distribution to 'base'.
David E. O'Brien [Tue, 23 Apr 2002 22:16:41 +0000 (22:16 +0000)]
Change the name of the 'bin' distribution to 'base'.
This is done since it contains much more than /bin, and also gets in the
way when making a combined install+fixit CD.

OK'ed by: jkh

22 years agoRestore some of the original variable names, but fix the warnings their
David E. O'Brien [Tue, 23 Apr 2002 20:30:30 +0000 (20:30 +0000)]
Restore some of the original variable names, but fix the warnings their
renaming addressed by removing the global variants instead.

22 years agoImplement the GEOMGETCONF ioctl which returns vital stats for the
Poul-Henning Kamp [Tue, 23 Apr 2002 19:54:02 +0000 (19:54 +0000)]
Implement the GEOMGETCONF ioctl which returns vital stats for the
current device in XML in an sbuf.

Sponsored by: DARPA & NAI Labs

22 years agoThe cold and panicstr variables do not need to be protected by sched_lock.
Jeffrey Hsu [Tue, 23 Apr 2002 19:50:22 +0000 (19:50 +0000)]
The cold and panicstr variables do not need to be protected by sched_lock.

Submitted by: Jennifer Yang (yangjihui@yahoo.com)
Reviewed by: jake & jhb in principle

22 years agoAll in a days work: make a function static.
Poul-Henning Kamp [Tue, 23 Apr 2002 19:03:03 +0000 (19:03 +0000)]
All in a days work:  make a function static.

22 years agoDon't free(9) a pointer which has been modified.
Poul-Henning Kamp [Tue, 23 Apr 2002 18:52:39 +0000 (18:52 +0000)]
Don't free(9) a pointer which has been modified.

Chapeau de pointe: mux

22 years agoAdd a basic sanity check on pointers passed to free(9).
Poul-Henning Kamp [Tue, 23 Apr 2002 18:50:25 +0000 (18:50 +0000)]
Add a basic sanity check on pointers passed to free(9).

Should be improved by: jeff

22 years agoUnbreak NFS mounts when mount(8) is invoked as : mount path@server.
Maxime Henrion [Tue, 23 Apr 2002 17:24:02 +0000 (17:24 +0000)]
Unbreak NFS mounts when mount(8) is invoked as : mount path@server.

Reviewed by: obrien

22 years agosys.mk no longer includes bsd.own.mk so I need to include it here for
Gregory Neil Shapiro [Tue, 23 Apr 2002 17:08:08 +0000 (17:08 +0000)]
sys.mk no longer includes bsd.own.mk so I need to include it here for
the definition of SHAREMODE.

Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>

22 years agoDon't call malloc(9) to allocate zero bytes softc data for devices.
Poul-Henning Kamp [Tue, 23 Apr 2002 15:48:23 +0000 (15:48 +0000)]
Don't call malloc(9) to allocate zero bytes softc data for devices.

22 years agoTrack nfs's getpages() changes:
Boris Popov [Tue, 23 Apr 2002 14:30:43 +0000 (14:30 +0000)]
Track nfs's getpages() changes:

    Properly count v_vnodepgsin.
    Do not reread page if is already valid.
    Properly handle partially filled pages.

22 years agoGet rid from extra #ifdefs.
Boris Popov [Tue, 23 Apr 2002 13:55:14 +0000 (13:55 +0000)]
Get rid from extra #ifdefs.

22 years agoInitialize thread select queue in the same way as rev 1.93 of sys_generic.c
Boris Popov [Tue, 23 Apr 2002 13:29:23 +0000 (13:29 +0000)]
Initialize thread select queue in the same way as rev 1.93 of sys_generic.c
does.

Missed and found by: alfred

22 years ago1) Proberly conditionalize PAM "last login" printout.
Andrey A. Chernov [Tue, 23 Apr 2002 12:36:11 +0000 (12:36 +0000)]
1) Proberly conditionalize PAM "last login" printout.
2) For "copyright" case #ifdef HAVE_LOGIN_CAP was placed on too big block,
narrow it down.
3) Don't check the same conditions twice (for "copyright" and "welcome"),
put them under single block.
4) Print \n between "copyright" and "welcome" as our login does.

Reviewed by: des (1)

22 years agoIntroduce some serious paranoia to try to catch a memory overwrite problem
Poul-Henning Kamp [Tue, 23 Apr 2002 11:48:45 +0000 (11:48 +0000)]
Introduce some serious paranoia to try to catch a memory overwrite problem
as early as possible.

Sponsored by: DARPA & NAI Labs

22 years agoThe library itself does not depend on Kerberos bits.
Ruslan Ermilov [Tue, 23 Apr 2002 11:33:29 +0000 (11:33 +0000)]
The library itself does not depend on Kerberos bits.
Otherwise, we would have broken krb4 and krb5 dists.

22 years agoOn slow machines interrupts could be lost, so check for pending
Gary Jennejohn [Tue, 23 Apr 2002 10:25:35 +0000 (10:25 +0000)]
On slow machines interrupts could be lost, so check for pending
interrupts in a loop.

Tested by: Andrew Gordon <arg-bsd@arg1.demon.co.uk>

22 years agoDo not spam initial ${CHROOTDIR} world with Texinfo and HTML docs.
Ruslan Ermilov [Tue, 23 Apr 2002 09:24:00 +0000 (09:24 +0000)]
Do not spam initial ${CHROOTDIR} world with Texinfo and HTML docs.

For rerelease, run "make -DNOCLEAN world" instead of simple and
insufficient in some cases "make all install".  This is especially
true for cross-arch "make release"s which we don't (yet) support.

22 years agoMerge bsd.obj.mk's version of the _SUBDIR target with bsd.subdir.mk.
Ruslan Ermilov [Tue, 23 Apr 2002 09:03:56 +0000 (09:03 +0000)]
Merge bsd.obj.mk's version of the _SUBDIR target with bsd.subdir.mk.

Ensure all standard targets honor SUBDIR.  Now `make obj' descends into
SUBDIRs even if NOOBJ is set (some descendants may still need an object
directory, but we do not have such precedents).  Now `make install' in
non-bsd.subdir.mk makefiles runs `afterinstall' target _after_ `install'
in SUBDIRs, like we do in bsd.subdir.mk.  Nothing depended on the wrong
order anyway.

Fixed `distribute' targets (except for the bsd.subdir.mk version) so that
they do not depend on _SUBDIR; `distribute' calls `install' which already
depends on _SUBDIR.

De-standardize `maninstall', otherwise manpages would be installed twice.
(To be revised later.)

22 years agoCorrect default value of drainwait: it should be 300 seconds, not forever.
Maxim Sobolev [Tue, 23 Apr 2002 08:26:50 +0000 (08:26 +0000)]
Correct default value of drainwait: it should be 300 seconds, not forever.

PR: 37370
Submitted by: Daniel O'Connor <doconnor@gsoft.com.au>
MFC after: 2 weeks

22 years agoAdd the -t option, which allows tab stop positions to be specified similarly
Tim J. Robbins [Tue, 23 Apr 2002 07:15:09 +0000 (07:15 +0000)]
Add the -t option, which allows tab stop positions to be specified similarly
to the way expand(1) allows. This brings unexpand(1) up to SUSv3 conformance,
and it now passes all relevant parts of the GNU textutils test suite.

PR: 35621
Reviewed by: mike

22 years agoProvide the real `distribute' target so that NLS catalogs are
Ruslan Ermilov [Tue, 23 Apr 2002 06:15:44 +0000 (06:15 +0000)]
Provide the real `distribute' target so that NLS catalogs are
installed with `make release'.

22 years agoRemove unused static variable quantum.
Marcel Moolenaar [Tue, 23 Apr 2002 06:14:10 +0000 (06:14 +0000)]
Remove unused static variable quantum.

22 years ago - printf shouldn't bail out if a conversion fails, it should just keep
Juli Mallett [Tue, 23 Apr 2002 02:56:16 +0000 (02:56 +0000)]
 - printf shouldn't bail out if a conversion fails, it should just keep
   processing them.
 - \c escape to immediately stop output (similar to echo's \c)
 - \0NNN should be allowed for octal character escapes (instead of just \NNN)
 - %b conversion, which is like %s but interprets \n \t etc. inside the
   string is missing.

And I may not be any poet, but in lieu of an in-tree regression test:
ref5% ./printf '%s%b%b%c%s%d\n' 'PR' '\0072' '\t' '3' '56' 0x10
PR:     35616

Submitted by: tjr
MFC after: 1 week

22 years agoImprove the error message the user sees if the startdaemon routine cannot
Garance A Drosehn [Tue, 23 Apr 2002 02:42:04 +0000 (02:42 +0000)]
Improve the error message the user sees if the startdaemon routine cannot
connect() to the socket for lpd.  Tell them this error probably means that
the master 'lpd' process is not running.

MFC after: 4 days

22 years agoSlightly restructure extattr_get_vp() so that there's only one entry point
Robert Watson [Tue, 23 Apr 2002 01:27:38 +0000 (01:27 +0000)]
Slightly restructure extattr_get_vp() so that there's only one entry point
to VOP_GETEXTATTR().  This simplifies code flow when inserting MAC hooks.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoNew release notes: SA-02:22, SA-02:23.
Bruce A. Mah [Tue, 23 Apr 2002 01:23:20 +0000 (01:23 +0000)]
New release notes:  SA-02:22, SA-02:23.

Updated release notes:  Device polling for rl(4), updated URL for
SA-02:18, smbfs userland 1.4.4.

22 years agoDon't use "GCCDIR" as the multiple inclusion protector. Subdir Makefiles
David E. O'Brien [Tue, 23 Apr 2002 00:10:18 +0000 (00:10 +0000)]
Don't use "GCCDIR" as the multiple inclusion protector.  Subdir Makefiles
may want to override GCCDIR and this gets in the way.

22 years agoImplement new printcap option of "rc" aka "remote.resend_copies".
Garance A Drosehn [Tue, 23 Apr 2002 00:06:10 +0000 (00:06 +0000)]
Implement new printcap option of "rc" aka "remote.resend_copies".
This is a boolean option, and if it is specified in a print queue
for a remote host, it causes lpd to resend the data file for each
copy the user requested on 'lpr -#n'.  This is useful for network
printers which accept lpd-style jobs, but which ignore the control
file (and thus they ignore any request for multiple copies).

PR: 25635
Reviewed by: short review on freebsd-audit
MFC after: 6 days

22 years agoDo not use 'ps -e' for entropy gathering. It uses /proc/*/mem to rummage
David E. O'Brien [Tue, 23 Apr 2002 00:05:48 +0000 (00:05 +0000)]
Do not use 'ps -e' for entropy gathering.  It uses /proc/*/mem to rummage
around *user* memory to extract the environment variable strings.  This
is problematic for us.

Submitted by: peter

22 years agoAdd 'const' to some casts to fix two warnings that are printed by the
Garance A Drosehn [Mon, 22 Apr 2002 23:28:42 +0000 (23:28 +0000)]
Add 'const' to some casts to fix two warnings that are printed by the
new gcc (on sparc64).

MFC after: 4 days

22 years agoAdd 'const' to some casts to fix two warnings that are printed by the
Garance A Drosehn [Mon, 22 Apr 2002 23:08:07 +0000 (23:08 +0000)]
Add 'const' to some casts to fix two warnings that are printed by the
new gcc (on sparc64).

MFC after: 4 days

22 years agoDo our best to determine if the user is attempting an NFS mount when
Maxime Henrion [Mon, 22 Apr 2002 23:03:03 +0000 (23:03 +0000)]
Do our best to determine if the user is attempting an NFS mount when
the filesystem type isn't given in the command line.  In the case of
an IPv6 address containing ':', one must use the '@' separator for it
to be properly parsed (mount_nfs(8) still needs fixing at the moment
though).

PR: bin/37230
Reviewed by: obrien
MFC after: 1 week

22 years agoUtilize dhcp information in the kernel environment if we don't have
David E. O'Brien [Mon, 22 Apr 2002 21:42:18 +0000 (21:42 +0000)]
Utilize dhcp information in the kernel environment if we don't have
hostname and DNS information already.

Submitted by: Danny Braniss <danny@cs.huji.ac.il>

22 years agoProvide an environment variabloe, EXPR_COMPAT, which disables option
Garrett Wollman [Mon, 22 Apr 2002 21:23:09 +0000 (21:23 +0000)]
Provide an environment variabloe, EXPR_COMPAT, which disables option
parsing for compatibility with old implementations.

22 years agoDon't FILEDESC_LOCK around calls to falloc().
Alfred Perlstein [Mon, 22 Apr 2002 20:09:11 +0000 (20:09 +0000)]
Don't FILEDESC_LOCK around calls to falloc().

22 years agoProtect against multitple #includes of this file.
Poul-Henning Kamp [Mon, 22 Apr 2002 19:54:17 +0000 (19:54 +0000)]
Protect against multitple #includes of this file.

22 years agoAdd myself
Eric Anholt [Mon, 22 Apr 2002 19:39:10 +0000 (19:39 +0000)]
Add myself

Approved by: des

22 years ago- Revert previous change of atm storage pools -> uma_zones until a solution
Andrew R. Reiter [Mon, 22 Apr 2002 18:26:05 +0000 (18:26 +0000)]
- Revert previous change of atm storage pools -> uma_zones until a solution
  to atm_free() is written.

22 years agoBring in changes from smbfs-1.4.4.
Sheldon Hearn [Mon, 22 Apr 2002 16:18:36 +0000 (16:18 +0000)]
Bring in changes from smbfs-1.4.4.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r95267,
Sheldon Hearn [Mon, 22 Apr 2002 16:15:20 +0000 (16:15 +0000)]
This commit was generated by cvs2svn to compensate for changes in r95267,
which included commits to RCS files with non-trunk default branches.

22 years agoImport smbfs-1.4.4.
Sheldon Hearn [Mon, 22 Apr 2002 16:15:20 +0000 (16:15 +0000)]
Import smbfs-1.4.4.

22 years agoAdd missing splx calls in bge_tick. These don't make any functional
John Polstra [Mon, 22 Apr 2002 16:15:16 +0000 (16:15 +0000)]
Add missing splx calls in bge_tick.  These don't make any functional
difference in -current, but they are important for -stable where
they are missing too.

MFC after: 1 day

22 years agoBack out remnants of revision 1.97: we don't need TARGET_ARCH here.
Ruslan Ermilov [Mon, 22 Apr 2002 15:53:04 +0000 (15:53 +0000)]
Back out remnants of revision 1.97: we don't need TARGET_ARCH here.

22 years agoUse standard bsd.init.mk prologue.
Ruslan Ermilov [Mon, 22 Apr 2002 15:47:11 +0000 (15:47 +0000)]
Use standard bsd.init.mk prologue.

22 years agoRemove my change to the synopsis field
Tom Rhodes [Mon, 22 Apr 2002 15:18:51 +0000 (15:18 +0000)]
Remove my change to the synopsis field

Requested by: bde
pointy hat to: myself ;)

22 years agoUsage style sweep: spell "usage" with a small 'u'.
Dag-Erling Smørgrav [Mon, 22 Apr 2002 13:44:47 +0000 (13:44 +0000)]
Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.

22 years agoDon't needlessly redefine the afterinstall target.
Ruslan Ermilov [Mon, 22 Apr 2002 10:46:12 +0000 (10:46 +0000)]
Don't needlessly redefine the afterinstall target.

22 years agoProhibit the direct inclusion of bsd.dep.mk.
Ruslan Ermilov [Mon, 22 Apr 2002 10:04:41 +0000 (10:04 +0000)]
Prohibit the direct inclusion of bsd.dep.mk.

22 years agoFixed _SUBDIR.
Ruslan Ermilov [Mon, 22 Apr 2002 09:12:18 +0000 (09:12 +0000)]
Fixed _SUBDIR.

Obtained from: bsd.subdir.mk

22 years agoAlign for one true tab size of 8 in revision 1.2.
Ruslan Ermilov [Mon, 22 Apr 2002 09:06:27 +0000 (09:06 +0000)]
Align for one true tab size of 8 in revision 1.2.

22 years agoMake .asm transformation rules synonyms to the .s rules.
Ruslan Ermilov [Mon, 22 Apr 2002 08:56:34 +0000 (08:56 +0000)]
Make .asm transformation rules synonyms to the .s rules.

22 years agoImplement shared secret mode for hostap mode.
Warner Losh [Mon, 22 Apr 2002 07:09:13 +0000 (07:09 +0000)]
Implement shared secret mode for hostap mode.

Submitted by: Thomas Skibo <skibo@pacbell.net>

22 years agoComment out Kirks io-request priority hack until we can do this in a
Poul-Henning Kamp [Mon, 22 Apr 2002 06:53:20 +0000 (06:53 +0000)]
Comment out Kirks io-request priority hack until we can do this in a
civilized way which doesn't cause grief.

The problem is that it is not generally safe to cast a "struct bio
*" to a "struct buf *".  Things like ccd, vinum, ata-raid and GEOM
constructs bio's which are not entrails of a struct buf.

Also, curthread may or may not have anything to do with the I/O request
at hand.

The correct solution can either be to tag struct bio's with a
priority derived from the requesting threads nice and have disksort
act on this field, this wouldn't address the "silly-seek syndrome"
where two equal processes bang the diskheads from one edge to the
other of the disk repeatedly.

Alternatively, and probably better: a sleep should be introduced
either at the time the I/O is requested or at the time it is completed
where we can be sure to sleep in the right thread.

The sleep also needs to be in constant timeunits, 1/hz can be practicaly
any sub-second size, at high HZ the current code practically doesn't
do anything.

22 years agoAdd ia64_sal_init_state(). This function will initialize the machine
Marcel Moolenaar [Mon, 22 Apr 2002 06:43:31 +0000 (06:43 +0000)]
Add ia64_sal_init_state(). This function will initialize the machine
check handling. In its current form, it only determines the largest
amount of state information it can get from SAL and allocates a region
7 memory block for it.

The next steps involve:
o  get and log any unconsumed (NVM stored) error records across
   reboots,
o  register an OS_MCA handler and enable machine checks.

22 years agoAdd state information types.
Marcel Moolenaar [Mon, 22 Apr 2002 06:35:40 +0000 (06:35 +0000)]
Add state information types.

22 years agoDon't use PAM_SILENT unless hushlogin is set (perforce change 10123)
Dag-Erling Smørgrav [Mon, 22 Apr 2002 06:27:16 +0000 (06:27 +0000)]
Don't use PAM_SILENT unless hushlogin is set (perforce change 10123)

Sponsored by: DARPA, NAI Labs

22 years agoDon't report last login time in PAM case. (perforce change 10057)
Dag-Erling Smørgrav [Mon, 22 Apr 2002 06:26:29 +0000 (06:26 +0000)]
Don't report last login time in PAM case. (perforce change 10057)

Sponsored by: DARPA, NAI Labs

22 years agoFix warnings + wait for child so it doesn't go zombie (perforce change 10122)
Dag-Erling Smørgrav [Mon, 22 Apr 2002 06:25:13 +0000 (06:25 +0000)]
Fix warnings + wait for child so it doesn't go zombie (perforce change 10122)

22 years ago- Change the atm_attributes_pool and atm_stackq_pool to be uma_zone's
Andrew R. Reiter [Mon, 22 Apr 2002 05:11:44 +0000 (05:11 +0000)]
- Change the atm_attributes_pool and atm_stackq_pool to be uma_zone's
  (with the appropriate set_max) rather than using the HARP storage pool
  code.

22 years agoAdd a Makefile for this.
Jake Burkholder [Mon, 22 Apr 2002 04:08:01 +0000 (04:08 +0000)]
Add a Makefile for this.

22 years agoUnderline the default value for rp=, the same way all the other string-type
Garance A Drosehn [Mon, 22 Apr 2002 01:09:24 +0000 (01:09 +0000)]
Underline the default value for rp=, the same way all the other string-type
default values are underlined (instead of using fake double-quotes).

MFC after: 4 days

22 years agoAdd description of `mc' (max copies), add short-form to long-form mapping
Garance A Drosehn [Mon, 22 Apr 2002 01:04:02 +0000 (01:04 +0000)]
Add description of `mc' (max copies), add short-form to long-form mapping
for `tf' (troff filter), and add a cross-reference to chkprintcap in some
lpr-related man pages.

Submitted by: dwmalone
MFC after: 4 days

22 years agoAvoid using pmap_kenter "early", since it may need to dink with vm_page
Jake Burkholder [Sun, 21 Apr 2002 22:57:42 +0000 (22:57 +0000)]
Avoid using pmap_kenter "early", since it may need to dink with vm_page
structures, which may not be setup yet.  Minor cleanups.

22 years agoFix WAW dependency violation on r17 (line 198) that only exists for
Marcel Moolenaar [Sun, 21 Apr 2002 22:43:50 +0000 (22:43 +0000)]
Fix WAW dependency violation on r17 (line 198) that only exists for
the SMP case. While on the subject, remove unnecessary stops. I don't
know if this resolves the memory corruption I'm seeing, but it does
have the potential. We'll see...

22 years agoImplement elf_reloc(). The RT specification says that we can expect
Marcel Moolenaar [Sun, 21 Apr 2002 21:27:57 +0000 (21:27 +0000)]
Implement elf_reloc(). The RT specification says that we can expect
both Elf_Rel and Elf_Rela types of relocation, so handle them both
even though we only have Rel_Rela ATM. We don't handle 32-bit and
big-endian variants yet. Support for that is not trivial enough to
implement it without any evidence that we ever need it in the near
future.

For the FPTR relocations, we currently use the fptr_storage used by
_reloc() is locore.s. This is in no way a real solution, but for now
provides the service we need to get the basics going.

A static recursive function lookup_fdesc() is used to find the address
of a function in a way that keeps track of the load module so that
we can get the correct GP value if we need to construct an OPD (ie
there's no OPD yet for the function.

For simplicity, we create an OPD for the IPLT relocations as well and
simply fill the user provided function descriptor from the OPD. Since
the the official descriptors are unique, this has no bad side effects.
Note that we ignore the addend for FPTR relocations, but use the
addend for IPLT relocations as an offset to the function address.

This commit allows us to load and relocate modules and modules appear
to work correctly, although we probably need to make sure that we set
GP correctly in all cases when we have inter-module calls. This
especially applies to assembly coded functions that have cross module
calls.

22 years agoAdd function link_elf_get_gp(), specific to ia64 for now, to get
Marcel Moolenaar [Sun, 21 Apr 2002 21:08:30 +0000 (21:08 +0000)]
Add function link_elf_get_gp(), specific to ia64 for now, to get
the DT_PLTGOT value. On ia64 this is the value of GP. We need this
to construct function descriptors, but the elf file structure is
not exported to MD code.

Note that the name of the function is based on the meaning that
DT_PLTGOT has on ia64. This may differ on other architectures. As
such, link_elf_get_gp() has a high level of MD to it. Renaming the
function to describe what DT_* value is returned makes it generic,
but also makes the MD code less clear and if we only need this on
ia64, then a general name for a specific function doesn't help.

In short: I don't know what is "right" at this time, so I'll go
with what I have.

22 years agoNon-sendmail users use the FreeBSD sendmail startup functionality to start
Gregory Neil Shapiro [Sun, 21 Apr 2002 20:32:28 +0000 (20:32 +0000)]
Non-sendmail users use the FreeBSD sendmail startup functionality to start
alternative MTAs.  Therefore, always install rc.sendmail, regardless of
NO_SENDMAIL make.conf setting.  Users can still set mta_start_script to a
different script.

This commit is after a repo-copy of src/etc/sendmail/rc.sendmail to
src/etc/rc.sendmail.

Noticed by: Calvin NG <calvinng@brel.com>
MFC after: 3 days

22 years agoUse fseeko and uintptr_t to make sure that we get a sensible offset
David Malone [Sun, 21 Apr 2002 19:04:26 +0000 (19:04 +0000)]
Use fseeko and uintptr_t to make sure that we get a sensible offset
when trying to read from the stack.

PR: 37104
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
MFC after: 3 weeks

22 years agoMFbed: translation updates
Udo Erdelhoff [Sun, 21 Apr 2002 18:45:07 +0000 (18:45 +0000)]
MFbed: translation updates

22 years agoTurn blank lines into .Pp . This does not significantly change the
Bill Fenner [Sun, 21 Apr 2002 18:41:29 +0000 (18:41 +0000)]
Turn blank lines into .Pp .  This does not significantly change the
rendering of the man pages (turns some sequences of two blank lines
into a single blank line), and eliminates 306 errors generated while
formatting named.conf.5 .

22 years agomdoc police: Use Em ("emphasis") to get italics/underlining, instead of
Bill Fenner [Sun, 21 Apr 2002 18:33:57 +0000 (18:33 +0000)]
mdoc police: Use Em ("emphasis") to get italics/underlining, instead of
 Sm Pa (a syntax error, and an assertion that the arguments are path
 names, which is a little far from true).

22 years agoMFen 1.318-1.327
Udo Erdelhoff [Sun, 21 Apr 2002 18:28:49 +0000 (18:28 +0000)]
MFen 1.318-1.327

22 years agoAdd mount_udf and mount_smbfs to crossrefs.
David Malone [Sun, 21 Apr 2002 18:23:58 +0000 (18:23 +0000)]
Add mount_udf and mount_smbfs to crossrefs.

PR: 37200
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>

22 years agoStyle. Fix long lines and a <tab> indent that should be 4 spaces.
Mark Murray [Sun, 21 Apr 2002 17:26:16 +0000 (17:26 +0000)]
Style. Fix long lines and a <tab> indent that should be 4 spaces.

22 years agoLimit to the maximum allowed reply size the amount of data that
Ian Dowse [Sun, 21 Apr 2002 16:14:54 +0000 (16:14 +0000)]
Limit to the maximum allowed reply size the amount of data that
nfsrv_readdir and nfsrv_readdirplus can return. A client request
containing an over-large `count' field could trigger the "Bad nfs
svc reply" panic in nfs_syscalls.c.

Spotted while trying to reproduce kern/37304, which turned out to
be fixed in FreeBSD a long time ago.

MFC after: 1 week