]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoChange the name of the 'bin' distribution to 'base'.
obrien [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
obrien [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
phk [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.
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.
phk [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.
phk [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).
phk [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.
mux [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
gshapiro [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.
phk [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:
bp [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.
bp [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
bp [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.
ache [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
phk [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.
ru [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
gj [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.
ru [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.
ru [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.
sobomax [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
tjr [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
ru [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 [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
jmallett [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
gad [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
rwatson [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.
bmah [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
obrien [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".
gad [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
obrien [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
gad [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
gad [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
mux [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
obrien [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
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 [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.
phk [Mon, 22 Apr 2002 19:54:17 +0000 (19:54 +0000)]
Protect against multitple #includes of this file.

22 years agoAdd myself
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
arr [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.
sheldonh [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,
sheldonh [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.
sheldonh [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
jdp [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.
ru [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.
ru [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
trhodes [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'.
des [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.
ru [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.
ru [Mon, 22 Apr 2002 10:04:41 +0000 (10:04 +0000)]
Prohibit the direct inclusion of bsd.dep.mk.

22 years agoFixed _SUBDIR.
ru [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.
ru [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.
ru [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.
imp [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
phk [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 [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 [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)
des [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)
des [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)
des [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
arr [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 [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
gad [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
gad [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 [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 [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 [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 [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
gshapiro [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
dwmalone [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
ue [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
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
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
ue [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.
dwmalone [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.
markm [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
iedowse [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

22 years agoAdd 'rl' to the list of supported drivers.
luigi [Sun, 21 Apr 2002 15:47:59 +0000 (15:47 +0000)]
Add 'rl' to the list of supported drivers.

22 years agoDon't attempt to decvlare M_DEVFS whern MALLOC_DECLARE is not defined.
bde [Sun, 21 Apr 2002 15:47:03 +0000 (15:47 +0000)]
Don't attempt to decvlare M_DEVFS whern MALLOC_DECLARE is not defined.
This fixes warnings that should be errors in fstat.

Reminded by: alpha tinderbox

Fixed some style bugs (ones near BOF and EOF; there are many more).

22 years agoInclude <sys/systm.h> for (at least) the definition of atomic functions
bde [Sun, 21 Apr 2002 15:35:54 +0000 (15:35 +0000)]
Include <sys/systm.h> for (at least) the definition of atomic functions
which are sometimes used by the macros in <sys/mutex.h>; don't depend
on not-quite-necessary namespace pollution in <sys/mutex.h>.

22 years agoUse newly-added USB manpage entity references where appropriate.
bmah [Sun, 21 Apr 2002 15:35:52 +0000 (15:35 +0000)]
Use newly-added USB manpage entity references where appropriate.

22 years agoRemove duplicated text.
keramida [Sun, 21 Apr 2002 14:48:47 +0000 (14:48 +0000)]
Remove duplicated text.

PR: docs/37287
Submitted by: Tony Finch <dot@dotat.at>
MFC after: 3 days

22 years agoMove LOGIN_CAP calls before all file descriptors are closed hard, since some
ache [Sun, 21 Apr 2002 13:31:56 +0000 (13:31 +0000)]
Move LOGIN_CAP calls before all file descriptors are closed hard, since some
descriptors may be used by LOGIN_CAP internally, add login_close().

Use "nocheckmail" LOGIN_CAP capability too like our login does.

22 years agoDot terminate a sentence. Rearrange to not use .Nm at the beginning
charnier [Sun, 21 Apr 2002 13:02:20 +0000 (13:02 +0000)]
Dot terminate a sentence. Rearrange to not use .Nm at the beginning
of a sentence.

22 years agoUse `The .Nm utility'
charnier [Sun, 21 Apr 2002 12:53:08 +0000 (12:53 +0000)]
Use `The .Nm utility'

22 years agoFixed some style bugs ("From:" in vendor id line, disordered MAN line, and
bde [Sun, 21 Apr 2002 12:43:14 +0000 (12:43 +0000)]
Fixed some style bugs ("From:" in vendor id line, disordered MAN line, and
blank lines).

Not unapproved of by: markm

22 years agoSetup the child's return values correctly when forking an IA-32 process.
dfr [Sun, 21 Apr 2002 12:34:58 +0000 (12:34 +0000)]
Setup the child's return values correctly when forking an IA-32 process.

22 years agoUse protected names (_foo) to cutdown on boatloads of lint warnings.
markm [Sun, 21 Apr 2002 11:16:10 +0000 (11:16 +0000)]
Use protected names (_foo) to cutdown on boatloads of lint warnings.

22 years agoWrap GCC-specific stuff and provide alternative for lint.
markm [Sun, 21 Apr 2002 11:11:02 +0000 (11:11 +0000)]
Wrap GCC-specific stuff and provide alternative for lint.

22 years agoParenthesise macro arguments to reduce lint warnings.
markm [Sun, 21 Apr 2002 11:08:52 +0000 (11:08 +0000)]
Parenthesise macro arguments to reduce lint warnings.

22 years agoFix really dumb braino of mine; cast a sizeof() to an int, which it is
markm [Sun, 21 Apr 2002 11:02:36 +0000 (11:02 +0000)]
Fix really dumb braino of mine; cast a sizeof() to an int, which it is
being compared to, not size_t, which it already is.

22 years agoUsed protected names (_foo) for parameter names. This helps clean up
markm [Sun, 21 Apr 2002 10:57:43 +0000 (10:57 +0000)]
Used protected names (_foo) for parameter names. This helps clean up
a boatload of lint warnings.

22 years agoStylify (mainly line up macro EOL-continuation \'s), and add a dummy
markm [Sun, 21 Apr 2002 10:49:00 +0000 (10:49 +0000)]
Stylify (mainly line up macro EOL-continuation \'s), and add a dummy
alternative for lint.

22 years agoParenthesise macro arguments to reduce lint warnings.
markm [Sun, 21 Apr 2002 10:43:24 +0000 (10:43 +0000)]
Parenthesise macro arguments to reduce lint warnings.

22 years agoStylify, fix tabs.
markm [Sun, 21 Apr 2002 10:38:35 +0000 (10:38 +0000)]
Stylify, fix tabs.

Liked by: bde (a couple of months back)

22 years agoRemove macros that are defined elsewhere.
markm [Sun, 21 Apr 2002 10:32:48 +0000 (10:32 +0000)]
Remove macros that are defined elsewhere.

22 years agoImprove self-relocation and fix ABI misinterpretation. The changes
marcel [Sun, 21 Apr 2002 08:56:17 +0000 (08:56 +0000)]
Improve self-relocation and fix ABI misinterpretation. The changes
here mostly mirror the changes made in
boot/efi/libefi/arch/ia64/start.S rev 1.5

Significant difference: We don't handle the IPLT relocation here.
For barebones KLD support, we make the fptr_storage global.

22 years agoImprove self-relocation:
marcel [Sun, 21 Apr 2002 08:49:47 +0000 (08:49 +0000)]
Improve self-relocation:
o  We don't expect the PLT relocations to follow the .rela section
   anymore. We still assume that PLT relocations are long formed,
o  Document register usage,
o  Improve ILP,
o  Fix the FPTR relocation by creating unique OPDs per function.
   Comparing functions is valid now,
o  The IPLT relocation naturally handles the addend. Deal with it.
   We ignore the addend for FPTR relocations for now. It's not at
   all clear what it means anyway.

Fix ABI misinterpretation:
o  For Elf_Rela relocations, the addend is explicit and should not
   be loaded from the memory address we're relocating. Only do that
   for Elf_Rel relocations (ie the short form).
o  DIR64LSB is not the same as REL64LSB. DIR64LSB applies to a
   symbol (S+A), whereas REL64LSB applies to the base address (BD+A),

22 years agoConsistently use full pathnames for files, especially executables.
cjc [Sun, 21 Apr 2002 08:32:35 +0000 (08:32 +0000)]
Consistently use full pathnames for files, especially executables.

PR: conf/37292
Submitted by: Helge Oldach <send-pr@oldach.net>
MFC after: 3 days

22 years agoRemove my MAINTAINER= from here, as it is in src/MAINTAINER
markm [Sun, 21 Apr 2002 08:03:25 +0000 (08:03 +0000)]
Remove my MAINTAINER= from here, as it is in src/MAINTAINER

22 years agoTidy up some of the configs; s/gcc/cc/ to make the choice of C compiler
markm [Sun, 21 Apr 2002 08:01:31 +0000 (08:01 +0000)]
Tidy up some of the configs; s/gcc/cc/ to make the choice of C compiler
more generic. Fix paths for things like scripts (fix perldoc). Tweak
externally passed macros.