]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoTypo.
Mike Heffner [Sat, 13 Jul 2002 07:21:53 +0000 (07:21 +0000)]
Typo.

22 years agoLock accesses to the page queues.
Alan Cox [Sat, 13 Jul 2002 04:37:22 +0000 (04:37 +0000)]
Lock accesses to the page queues.

22 years agoAdd prototype for cred_free_thread() when DIAGNOSTIC is defined.
Jonathan Mini [Sat, 13 Jul 2002 04:37:10 +0000 (04:37 +0000)]
Add prototype for cred_free_thread() when DIAGNOSTIC is defined.

22 years agoAdd additional cred_free_thread() calls that I had missed the first time.
Jonathan Mini [Sat, 13 Jul 2002 04:36:50 +0000 (04:36 +0000)]
Add additional cred_free_thread() calls that I had missed the first time.

Pointed out by: jhb

22 years ago o Lock accesses to the page queues.
Alan Cox [Sat, 13 Jul 2002 04:09:45 +0000 (04:09 +0000)]
 o Lock accesses to the page queues.
 o Add a comment explaining why hoisting the page queue lock outside
   of a particular loop is not possible.

22 years ago- Change chroot_refuse_vdir_fds() to require that the passed in struct
John Baldwin [Sat, 13 Jul 2002 04:07:12 +0000 (04:07 +0000)]
- Change chroot_refuse_vdir_fds() to require that the passed in struct
  filedesc is already locked rather than having chroot() unlock the
  filedesc so chroot_refuse_vdir_fds() can immediately relock it.
- Reorder chroot() a bitso that we do the namei lookup before checking
  the process's struct filedesc.  This closes at least one potential race
  and allows us to only acquire the filedsec lock once in chroot().
- Push down Giant slightly into chroot().

22 years agoUse a fixed address for KERNBASE, so it doesn't change if the size of KVA
Jake Burkholder [Sat, 13 Jul 2002 03:29:10 +0000 (03:29 +0000)]
Use a fixed address for KERNBASE, so it doesn't change if the size of KVA
is increased.  Its confusing for all the kernel addresses to change, and
doesn't serve much purpose as far as conserving address space.

22 years agoIdentify UltraSPARC-III and UltraSPARC-III+ cpus.
Jake Burkholder [Sat, 13 Jul 2002 03:23:29 +0000 (03:23 +0000)]
Identify UltraSPARC-III and UltraSPARC-III+ cpus.

22 years agoWe don't need to clear oldcred here since newcred is not NULL yet.
John Baldwin [Sat, 13 Jul 2002 03:13:15 +0000 (03:13 +0000)]
We don't need to clear oldcred here since newcred is not NULL yet.

22 years agoLock accesses to the page queues by sendfile() and friends.
Alan Cox [Sat, 13 Jul 2002 03:10:55 +0000 (03:10 +0000)]
Lock accesses to the page queues by sendfile() and friends.

22 years ago o Assert GIANT_REQUIRED on system maps in _vm_map_lock(),
Alan Cox [Fri, 12 Jul 2002 23:20:06 +0000 (23:20 +0000)]
 o Assert GIANT_REQUIRED on system maps in _vm_map_lock(),
   _vm_map_lock_read(), and _vm_map_trylock().  Submitted by: tegge
 o Remove GIANT_REQUIRED from kmem_alloc_wait() and kmem_free_wakeup().
   (This clears the way for exec_map accesses to move outside of Giant.
   The exec_map is not a system map.)
 o Remove some premature MPSAFE comments.

Reviewed by: tegge

22 years agoAvoid dereferencing a null pointer in ro_rt.
Luigi Rizzo [Fri, 12 Jul 2002 22:08:47 +0000 (22:08 +0000)]
Avoid dereferencing a null pointer in ro_rt.

This was always broken in HEAD (the offending statement was introduced
in rev. 1.123 for HEAD, while RELENG_4 included this fix (in rev.
1.99.2.12 for RELENG_4) and I inadvertently deleted it in 1.99.2.30.

So I am also restoring these two lines in RELENG_4 now.
We might need another few things from 1.99.2.30.

22 years agoRe-enable the idle page-zeroing code. Remove all IPIs from the idle
Matthew Dillon [Fri, 12 Jul 2002 20:17:06 +0000 (20:17 +0000)]
Re-enable the idle page-zeroing code.  Remove all IPIs from the idle
page-zeroing code as well as from the general page-zeroing code and use a
lazy tlb page invalidation scheme based on a callback made at the end
of mi_switch.

A number of people came up with this idea at the same time so credit
belongs to Peter, John, and Jake as well.

Two-way SMP buildworld -j 5 tests (second run, after stabilization)
    2282.76 real  2515.17 user  704.22 sys before peter's IPI commit
    2266.69 real  2467.50 user  633.77 sys after peter's commit
    2232.80 real  2468.99 user  615.89 sys after this commit

Reviewed by: peter, jhb
Approved by: peter

22 years agoalso set the KSE state for the idle KSE/thread case.
Julian Elischer [Fri, 12 Jul 2002 20:16:46 +0000 (20:16 +0000)]
also set the KSE state for the idle KSE/thread case.

22 years agoFix a type: s/your are/you are/
Tom Rhodes [Fri, 12 Jul 2002 19:56:31 +0000 (19:56 +0000)]
Fix a type: s/your are/you are/

22 years agoSet the thread state of the newly chosen to run thread to TDS_RUNNING in
John Baldwin [Fri, 12 Jul 2002 18:34:22 +0000 (18:34 +0000)]
Set the thread state of the newly chosen to run thread to TDS_RUNNING in
choosethread() in MI C code instead of doing it in in assembly in all the
various cpu_switch() functions.  This fixes problems on ia64 and sparc64.

Reviewed by: julian, peter, benno
Tested on: i386, alpha, sparc64

22 years agoNew release notes: NEWCARD default, finger(1) -g (+ MFC), whereis(1)
Bruce A. Mah [Fri, 12 Jul 2002 18:10:40 +0000 (18:10 +0000)]
New release notes:  NEWCARD default, finger(1) -g (+ MFC), whereis(1)
update.

MFCs noted:  finger(1) .pubkey.

22 years agoFix C++ exception handling. GCC was using the older BSD DBX register numbers
David E. O'Brien [Fri, 12 Jul 2002 17:44:24 +0000 (17:44 +0000)]
Fix C++ exception handling.  GCC was using the older BSD DBX register numbers
rather than the ELF ABI/SVR4 ones in its DWARF unwinding.

Submitted by: Alexander Kabaev <ak03@gte.com>

22 years agoWhen I decided to use a stock dbxout.c rather than merge the rev 1.2 change
David E. O'Brien [Fri, 12 Jul 2002 17:35:35 +0000 (17:35 +0000)]
When I decided to use a stock dbxout.c rather than merge the rev 1.2 change
(put the function stabs in traditional order on a.out, or gdb doesn't see
function local variables), I failed to remove the related knobs here.

Effectively were overrode the ELF-wide definition in elfos.h w/o providing
new infrastructure.  This is what caused GDB to fail to debug applications
compiled and linked with -stabs.  This is because GCC was unconditionally
inserts .stabs instruction for functions after the function body.  GDB was
getting confused because what it thinks is function beginning address is
actually function ending address.

Submitted by: Alexander Kabaev <ak03@gte.com>

22 years agoLock accesses to the page queues.
Alan Cox [Fri, 12 Jul 2002 17:21:22 +0000 (17:21 +0000)]
Lock accesses to the page queues.

22 years agoFix ptrace(PT_READ_*, ...) for non-little-endian architectures where
Thomas Moestl [Fri, 12 Jul 2002 16:48:05 +0000 (16:48 +0000)]
Fix ptrace(PT_READ_*, ...) for non-little-endian architectures where
sizeof(register_t) != sizeof(int).

22 years agoWhen sending cache flushing IPIs, don't try to IPI the triggering CPU
Thomas Moestl [Fri, 12 Jul 2002 16:26:49 +0000 (16:26 +0000)]
When sending cache flushing IPIs, don't try to IPI the triggering CPU
itself; this causes undefined behaviour on UltraSPARCs. In particular,
the interrupt packet data words will not necessarily be delivered
correctly, which would result in a crash.
This bug also caused the cache-flushing work to be done twice on the
triggering CPU (when it did not cause crashes).

Reviewed by: jake

22 years agoUse fgetln(3) to read lines from configuration files (ftpusers, ftphosts.)
Yaroslav Tykhiy [Fri, 12 Jul 2002 15:51:15 +0000 (15:51 +0000)]
Use fgetln(3) to read lines from configuration files (ftpusers, ftphosts.)
Thus lines of any length can be handled, unlike before.

Don't assume that each line read from the files ends with a newline.

As a side effect in inithosts(), don't use automatic buffer at all,
utilize malloc(3) when getting local host name instead.

PR: misc/21494
Reviewed by: maxim, mikeh
MFC after: 1 month

22 years agoFix ${TMAKE} to use the correct .mk files.
Ruslan Ermilov [Fri, 12 Jul 2002 15:15:35 +0000 (15:15 +0000)]
Fix ${TMAKE} to use the correct .mk files.
Removed stray -DNO_WERROR's.

22 years agoMoved the `distribute' target from bsd.obj.mk to bsd.subdir.mk,
Ruslan Ermilov [Fri, 12 Jul 2002 15:09:35 +0000 (15:09 +0000)]
Moved the `distribute' target from bsd.obj.mk to bsd.subdir.mk,
to make it call `install' in the bsd.subdir.mk-driven makefiles
too.  (share/examples/Makefile,v 1.29 changed the bsd.prog.mk
to bsd.subdir.mk and many stuff was lost during "make release".
I then merged this change in rev. 1.28.2.2 to work around the
namespace pollution (FILES) in this makefile.)

There was an added complexity here.  Both the `distribute' and
`install' targets are recursive (they propagate to SUBDIRs).
So `distribute' first calls `install' in the ${.CURDIR}, then
calls `distribute' in each SUBDIR, etc.  The problem is that
`install' (being also recursive) causes the stuff from SUBDIR
to be installed twice, first time thru `install' in ${.CURDIR}
triggered by `distribute', second time by `distribute' run in
the SUBDIR.  This problem is not new, but it became apparent
only after I moved the `distribute' target from bsd.obj.mk to
bsd.subdir.mk.  My first attempt testing the fix failed due to
this, because the whole world was distributed twice, causing
all the imaginable mess (kerberos5 stuff was installed into both
"base" and "krb5" dists, there was /sbin/init.bak, etc.)
I say the problem is not new because bsd.prog.mk and bsd.lib.mk
makefiles with SUBDIR (even without this fix) had this problem
for years.  Try e.g. running ``make distribute DISTDIR=/foo''
from usr.bin/bzip2 or from lib/libcom_err (without the fix) and
watch the output.

So the solution was to make `install' behave non-recursive when
executed by `distribute'.  My first attempt in passing SUBDIR=
to the `install' in the `distribute' body failed because of the
way how src/Makefile and src/Makefile.inc1 communicate with each
other.  SUBDIR='s assignment precedence on the "make install
SUBDIR=" command line is lowered after src/Makefile wrapper calls
"make ... -f ${.CURDIR}/Makefile.inc1 install" because SUBDIR=
is moved into environment, and Makefile.inc1's assignments now
take higher precedence.  This may be fixed someday when we merge
Makefile with Makefile.inc1.  For now, this is implemented as a
NO_SUBDIR knob.

Spotted by: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
Prodded by: des
MFC after: 3 days

22 years agoMake dirty, rotten hack really work. As of rev. 1.16, ${BINDIR}
Ruslan Ermilov [Fri, 12 Jul 2002 14:49:25 +0000 (14:49 +0000)]
Make dirty, rotten hack really work.  As of rev. 1.16, ${BINDIR}
is only defined after <bsd.prog.mk> is included, and .if make(1)
conditionals are evaluted on the first pass.

Spotted by: Michael Bretterklieber <mbretter@jawa.at>

22 years agoConnect device.hints.5 to the build.
Ruslan Ermilov [Fri, 12 Jul 2002 14:16:46 +0000 (14:16 +0000)]
Connect device.hints.5 to the build.

22 years agoSort MAN.
Ruslan Ermilov [Fri, 12 Jul 2002 14:08:40 +0000 (14:08 +0000)]
Sort MAN.

22 years agoFixed path to /boot/device.hints.
Ruslan Ermilov [Fri, 12 Jul 2002 13:44:37 +0000 (13:44 +0000)]
Fixed path to /boot/device.hints.

22 years agoBack out the previous change, since it looks like locking udbinfo provides
Don Lewis [Fri, 12 Jul 2002 09:55:48 +0000 (09:55 +0000)]
Back out the previous change, since it looks like locking udbinfo provides
sufficient protection.

22 years agoBe specific about which reason caused vm86_addpages to panic
Peter Wemm [Fri, 12 Jul 2002 08:15:42 +0000 (08:15 +0000)]
Be specific about which reason caused vm86_addpages to panic

22 years agoLock inp while we're accessing it.
Don Lewis [Fri, 12 Jul 2002 08:05:22 +0000 (08:05 +0000)]
Lock inp while we're accessing it.

22 years agoRevive backed out pmap related changes from Feb 2002. The highlights are:
Peter Wemm [Fri, 12 Jul 2002 07:56:11 +0000 (07:56 +0000)]
Revive backed out pmap related changes from Feb 2002.  The highlights are:
- It actually works this time, honest!
- Fine grained TLB shootdowns for SMP on i386.  IPI's are very expensive,
  so try and optimize things where possible.
- Introduce ranged shootdowns that can be done as a single IPI.
- PG_G support for i386
- Specific-cpu targeted shootdowns.  For example, there is no sense in
  globally purging the TLB cache for where we are stealing a page from
  the local unshared process on the local cpu.  Use pm_active to track
  this.
- Add some instrumentation for the tlb shootdown code.
- Rip out SMP code from <machine/cpufunc.h>
- Try and fix some very bogus PG_G and PG_PS interactions that were bad
  enough to cause vm86 bios calls to break.  vm86 depended on our existing
  bugs and this was the cause of the VESA panics last time.
- Fix the silly one-line error that caused the 'panic: bad pte' last time.
- Fix a couple of other silly one-line errors that should have caused more
  pain than they did.

Some more work is needed:
- pmap_{zero,copy}_page[_idle].  These can be done without IPI's if we
  have a hook in cpu_switch.
- The IPI handlers need some cleanup.  I have a bogus %ds load that can
  be avoided.
- APTD handling is rather bogus and appears to be a large source of
  global TLB IPI shootdowns for no really good reason.

I see speedups of between 1.5% and ~4% on buildworlds in a while 1 loop.
I expect to see a bigger difference when there is significant pageout
activity or the system otherwise has memory shortages.

I have backed out a few optimizations that I had been using over the last
few days in order to be a little more conservative.  I'll revisit these
again over the next few days as the dust settles.

New option:  DISABLE_PG_G - In case I missed something.

22 years agoComplain if more than one file argument is given to unlink(1) like we did
Tim J. Robbins [Fri, 12 Jul 2002 07:20:20 +0000 (07:20 +0000)]
Complain if more than one file argument is given to unlink(1) like we did
before I made unlink use getopt().

22 years agoregen for freebsd4_sendfile(2) compat.
Alfred Perlstein [Fri, 12 Jul 2002 06:52:44 +0000 (06:52 +0000)]
regen for freebsd4_sendfile(2) compat.

22 years agoCreate a bug-for-bug FreeBSD4 compatible version of sendfile and move the
Alfred Perlstein [Fri, 12 Jul 2002 06:51:57 +0000 (06:51 +0000)]
Create a bug-for-bug FreeBSD4 compatible version of sendfile and move the
fixed sendfile over.  This is needed to preserve binary compatibility from
4.x to 5.x.

22 years agoIntroduce syscall.master option 'COMPAT4' which allows one to wrap
Alfred Perlstein [Fri, 12 Jul 2002 06:38:34 +0000 (06:38 +0000)]
Introduce syscall.master option 'COMPAT4' which allows one to wrap
syscalls for FreeBSD 4 compatibility.
Add kernel option COMPAT_FREEBSD4 to enable these syscalls.

22 years agoUnexpand a couple of 8-space indents that I added in rev 1.285.
Peter Wemm [Fri, 12 Jul 2002 04:58:51 +0000 (04:58 +0000)]
Unexpand a couple of 8-space indents that I added in rev 1.285.

22 years agoAvoid a vm_page_lookup() - that uses a spinlock protected hash. We can
Peter Wemm [Fri, 12 Jul 2002 04:38:51 +0000 (04:38 +0000)]
Avoid a vm_page_lookup() - that uses a spinlock protected hash.  We can
just use the object's memq for our nefarious purposes.

22 years ago o Lock some (unfortunately, not yet all) accesses to the page queues.
Alan Cox [Fri, 12 Jul 2002 03:17:22 +0000 (03:17 +0000)]
 o Lock some (unfortunately, not yet all) accesses to the page queues.

22 years ago o Lock accesses to the page queues.
Alan Cox [Fri, 12 Jul 2002 02:55:55 +0000 (02:55 +0000)]
 o Lock accesses to the page queues.

22 years agoFix compilation with ENABLE_VFS_IOOPT turned on and ZERO_COPY_SOCKETS
Kenneth D. Merry [Fri, 12 Jul 2002 02:23:55 +0000 (02:23 +0000)]
Fix compilation with ENABLE_VFS_IOOPT turned on and ZERO_COPY_SOCKETS
turned off.

Clean up #ifdefs, and remove a bunch of unnecessary includes.

Reviewed by: bde
Tested by: netchild

22 years agoDon't duplicate the description of the sticky bit that is already
Giorgos Keramidas [Fri, 12 Jul 2002 01:57:44 +0000 (01:57 +0000)]
Don't duplicate the description of the sticky bit that is already
part of chmod(2) and sticky(8), but refer to those manpages instead.

PR: docs/35605
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agoCall routine to free everything obtained when filling in 'struct printer'.
Garance A Drosehn [Fri, 12 Jul 2002 01:53:36 +0000 (01:53 +0000)]
Call routine to free everything obtained when filling in 'struct printer'.

MFC after: 3 days

22 years agoFix set_qstate() so it correctly checks for any error from chmod().
Garance A Drosehn [Fri, 12 Jul 2002 01:37:06 +0000 (01:37 +0000)]
Fix set_qstate() so it correctly checks for any error from chmod().
Note that set_qstate() is only called from several 'lpc' commands.

MFC after: 3 days

22 years agoAdd a SQS_QCHANGED option to set_qstate(). This will soon be used by 'lpc'.
Garance A Drosehn [Fri, 12 Jul 2002 01:31:46 +0000 (01:31 +0000)]
Add a SQS_QCHANGED option to set_qstate().  This will soon be used by 'lpc'.

Reviewed by: freebsd-print@bostonradio.org
MFC after: 3 days

22 years agoVarious typo fixes.
Giorgos Keramidas [Fri, 12 Jul 2002 01:30:18 +0000 (01:30 +0000)]
Various typo fixes.

PR: docs/39395
Submitted by: Rich Neswold <rneswold@ameritech.net>

22 years agoAdd two variables to struct jobqueue, and change the way that getq()
Garance A Drosehn [Fri, 12 Jul 2002 01:22:57 +0000 (01:22 +0000)]
Add two variables to struct jobqueue, and change the way that getq()
calculates how much space to get for that struct, so it will get the
right amount when new variables are added.

MFC after: 3 days

22 years agoYep, revision 1.3 was 1/2assed.
David E. O'Brien [Fri, 12 Jul 2002 00:49:52 +0000 (00:49 +0000)]
Yep, revision 1.3 was 1/2assed.
This time use the right attribute for null_format_ok.

Submitted by: bde

22 years agoMove prototypes for ctl_readcf and ctl_freeinf from ctlinfo.c to ctlinfo.h,
Garance A Drosehn [Fri, 12 Jul 2002 00:33:07 +0000 (00:33 +0000)]
Move prototypes for ctl_readcf and ctl_freeinf from ctlinfo.c to ctlinfo.h,
so the routines can be called by an upcoming change for 'lpc topq/bottomq'.

MFC after: 3 days

22 years agoDefer calling SYSCTL_OUT() until after the locks have been released.
Don Lewis [Thu, 11 Jul 2002 23:18:43 +0000 (23:18 +0000)]
Defer calling SYSCTL_OUT() until after the locks have been released.

22 years agoReduce the nesting level of a code block that doesn't need to be in
Don Lewis [Thu, 11 Jul 2002 23:13:31 +0000 (23:13 +0000)]
Reduce the nesting level of a code block that doesn't need to be in
an else clause.

22 years agoA simple implementation of statvfs(3) (one step above the trivial one).
Garrett Wollman [Thu, 11 Jul 2002 22:54:11 +0000 (22:54 +0000)]
A simple implementation of statvfs(3) (one step above the trivial one).
Not yet connected to the build (awaiting documentation).

22 years agoWARNS=2, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 22:50:36 +0000 (22:50 +0000)]
WARNS=2, de-__P()

22 years agoRemove debugging code that I originally only wanted to be there for a couple of days...
Julian Elischer [Thu, 11 Jul 2002 22:47:58 +0000 (22:47 +0000)]
Remove debugging code that I originally only wanted to be there for a couple of days after merge.

Reminded with pointy stick by: jhb

22 years agoWARNS=4, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 22:29:11 +0000 (22:29 +0000)]
WARNS=4, de-__P()

22 years agoUpdate manpages to reference 'timed' rpc functions
Alfred Perlstein [Thu, 11 Jul 2002 22:25:16 +0000 (22:25 +0000)]
Update manpages to reference 'timed' rpc functions

22 years agoFix indentation broken in previous __P removal.
Alfred Perlstein [Thu, 11 Jul 2002 22:18:26 +0000 (22:18 +0000)]
Fix indentation broken in previous __P removal.

Grumbled about by: bde

22 years agothread_exit() requires PROC_LOCK to be held, so lock it.
John Baldwin [Thu, 11 Jul 2002 22:13:33 +0000 (22:13 +0000)]
thread_exit() requires PROC_LOCK to be held, so lock it.

22 years agoWARNS=4, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 22:11:20 +0000 (22:11 +0000)]
WARNS=4, de-__P()

22 years agoAdd a missing newline during panic printf's for SMP systems that don't
John Baldwin [Thu, 11 Jul 2002 21:56:37 +0000 (21:56 +0000)]
Add a missing newline during panic printf's for SMP systems that don't
have APICS.  (Like all the !i386 archs).

22 years agoRemove unused variables due to libufs(3) commit. Clean up extraneous use of
Juli Mallett [Thu, 11 Jul 2002 21:46:12 +0000 (21:46 +0000)]
Remove unused variables due to libufs(3) commit.  Clean up extraneous use of
semicolon at closing paren of a function body.

22 years agoConvert dumpfs(8) to libufs(3), rather than rolling local functions for a
Juli Mallett [Thu, 11 Jul 2002 21:44:03 +0000 (21:44 +0000)]
Convert dumpfs(8) to libufs(3), rather than rolling local functions for a
number of things.

22 years agoWARNS=4, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 21:40:15 +0000 (21:40 +0000)]
WARNS=4, de-__P()

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 21:28:16 +0000 (21:28 +0000)]
de-__P()

22 years agoFill out (zero) and fill in (when doing getino()) the minimum and maximum
Juli Mallett [Thu, 11 Jul 2002 21:27:26 +0000 (21:27 +0000)]
Fill out (zero) and fill in (when doing getino()) the minimum and maximum
inodes in our inoblock (disk->d_ino{min,max}) appropriately.

22 years agoWARNS=4, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 21:26:41 +0000 (21:26 +0000)]
WARNS=4, de-__P()

22 years agoComplete rewrite, once again.
Joerg Wunsch [Thu, 11 Jul 2002 21:20:54 +0000 (21:20 +0000)]
Complete rewrite, once again.

This is basically a ``C compilation'' of the former whereis.pl file,
employing the same algorithms, and aiming at being mostly
UI-compatible to the old (legally tainted) 4.3BSD whereis(1).  In
comparision, the 4.4BSD-Lite version is just another variant of
which(1) only, where in particular the option to search for source
directories is sorely missing.

While i was at it, i added two more options which i contemplated doing
long since.  -x will suppress the run of locate(1) to find sources
that could not be found otherwise, potentially saving a lot of time
(but obviously, risking to not find some sources that are well hidden
in the tree).  -q will omit the leading name of the query, so in
particular, you can now do something like:

cd `whereis -qs ls`

I'd explicitly like to thank johan for his review which was quite a
bit more than an average review, including sending me a lot of diffs.

Reviewed by: johan

22 years agoWARNS=4
Alfred Perlstein [Thu, 11 Jul 2002 21:18:55 +0000 (21:18 +0000)]
WARNS=4

22 years agoWARNS=4 cleanup, de-__P()
Alfred Perlstein [Thu, 11 Jul 2002 21:16:52 +0000 (21:16 +0000)]
WARNS=4 cleanup, de-__P()

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 21:13:37 +0000 (21:13 +0000)]
de-__P()

22 years agoAdd a bit of information on FFS snapshots to the mount(8) manual page.
Tom Rhodes [Thu, 11 Jul 2002 21:12:45 +0000 (21:12 +0000)]
Add a bit of information on FFS snapshots to the mount(8) manual page.

PR: 30139
Submitted by: Chris Knight <chris@aims.com.au?
MFC after: 3 days

22 years agoWARNS?=4 cleanup.
Alfred Perlstein [Thu, 11 Jul 2002 21:12:18 +0000 (21:12 +0000)]
WARNS?=4 cleanup.

22 years agoAdd note about the info documentation of diff(1).
Giorgos Keramidas [Thu, 11 Jul 2002 21:11:26 +0000 (21:11 +0000)]
Add note about the info documentation of diff(1).
It contains a detailed description of the =format option part.

PR: docs/36464
Submitted by: Gary W. Swearingen <swear@blarg.net>

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 20:53:56 +0000 (20:53 +0000)]
de-__P()

22 years agoFixed misspelling of "hint." as "hints." in rp's hints.
Bruce Evans [Thu, 11 Jul 2002 20:47:56 +0000 (20:47 +0000)]
Fixed misspelling of "hint." as "hints." in rp's hints.

22 years agoFixed misspelling of "hint." as "hints." in the description of the "hint."
Bruce Evans [Thu, 11 Jul 2002 20:43:37 +0000 (20:43 +0000)]
Fixed misspelling of "hint." as "hints." in the description of the "hint."
keyword and in the description of rp's hints.

Didn't fix rp's hints being mostly in comments so that they are harder to
use (they don't get linted either way because makeLINT.sh strips them and
there is no compile-time syntax checking of hints anyway).

22 years agoRELENG_4_6 PL 1 libc bits with non-vulnerable resolver.
David E. O'Brien [Thu, 11 Jul 2002 20:40:24 +0000 (20:40 +0000)]
RELENG_4_6 PL 1 libc bits with non-vulnerable resolver.

Security Advisory: FreeBSD-SA-02:28.resolv

22 years agoImproved wording in the descriptions of hints. In particular, don't start
Bruce Evans [Thu, 11 Jul 2002 20:24:58 +0000 (20:24 +0000)]
Improved wording in the descriptions of hints.  In particular, don't start
a new paragraph for describing the hints associated with each card type.

Reviewed by: ru

22 years agoMention zegrep and zfgrep too,
Giorgos Keramidas [Thu, 11 Jul 2002 20:12:15 +0000 (20:12 +0000)]
Mention zegrep and zfgrep too,
and what their equivalent grep options are.

PR: docs/35603
Submitted by: "Gary W. Swearingen" <swear@blarg.net>

22 years agoUse the length modifier 'l' when supplying an argument of
Robert Drehmel [Thu, 11 Jul 2002 20:10:07 +0000 (20:10 +0000)]
Use the length modifier 'l' when supplying an argument of
type long to printf(3).

22 years ago - Remove unnecessary inclusion of <utmp.h>.
Robert Drehmel [Thu, 11 Jul 2002 20:01:36 +0000 (20:01 +0000)]
 - Remove unnecessary inclusion of <utmp.h>.
 - Cast a value to time_t before comparing it to another
   time_t to fix a warning.

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 19:07:35 +0000 (19:07 +0000)]
de-__P()

22 years ago o Lock accesses to the page queues.
Alan Cox [Thu, 11 Jul 2002 18:48:05 +0000 (18:48 +0000)]
 o Lock accesses to the page queues.

22 years agomark unused variable.
Alfred Perlstein [Thu, 11 Jul 2002 18:45:59 +0000 (18:45 +0000)]
mark unused variable.

22 years agoconditionally set WARNS via ?=.
Alfred Perlstein [Thu, 11 Jul 2002 18:45:14 +0000 (18:45 +0000)]
conditionally set WARNS via ?=.

22 years agofixup for WARNS=4.
Alfred Perlstein [Thu, 11 Jul 2002 18:42:53 +0000 (18:42 +0000)]
fixup for WARNS=4.

22 years agode-__P()
Alfred Perlstein [Thu, 11 Jul 2002 18:31:16 +0000 (18:31 +0000)]
de-__P()

22 years agoSet NO_WERROR to ignore the following warning which is emitted on
Bruce Evans [Thu, 11 Jul 2002 18:06:09 +0000 (18:06 +0000)]
Set NO_WERROR to ignore the following warning which is emitted on
alphas:
    .../elf2aout.c:130: warning: cast increases required alignment of
    target type
The warning is about casting ((char *)e + phoff) to a struct pointer,
where e is aligned but phoff might be garbage, so I think the warning
should be emitted on most machines (even on i386's, alignment checking
might be on) and the correct fix would involve validation phoff before
using it.

22 years agomake mostly WARNS=4 clean.
Alfred Perlstein [Thu, 11 Jul 2002 17:55:14 +0000 (17:55 +0000)]
make mostly WARNS=4 clean.
constify, mark unsued args, fixup prototypes.

22 years agoConvert old style (type foo *)0 casts to NULLs
Matthew Dillon [Thu, 11 Jul 2002 17:54:58 +0000 (17:54 +0000)]
Convert old style (type foo *)0 casts to NULLs

PR: kern/40360
Requested by: Hiten PAndya via direct email

22 years agoFixed 4 printf format errors that were fatal on alphas. %qd is not even
Bruce Evans [Thu, 11 Jul 2002 17:49:41 +0000 (17:49 +0000)]
Fixed 4 printf format errors that were fatal on alphas.  %qd is not even
suitable for printing quad_t's since it is equivalent to %lld but quad_t
is unsigned long on alphas.  quad_t shouldn't be used anyway.

22 years agoLog the IP of the machine if an invalid host is passed over the wire.
Alfred Perlstein [Thu, 11 Jul 2002 17:44:59 +0000 (17:44 +0000)]
Log the IP of the machine if an invalid host is passed over the wire.

PR: bin/29406

22 years agoFix return values in the sm_notify_1 service routine to return an answer
Alfred Perlstein [Thu, 11 Jul 2002 17:39:50 +0000 (17:39 +0000)]
Fix return values in the sm_notify_1 service routine to return an answer
most of the time (unless fork fails).  This should fix the problem where
FreeBSD won't respond to a remote host and therefor the remote hosts
tries indefinitely to contact the FreeBSD hosts thereby irritating the
system administrator.

PR: misc/27810

22 years agoFix syslog format errors introduced in 1.6.
Alfred Perlstein [Thu, 11 Jul 2002 17:36:09 +0000 (17:36 +0000)]
Fix syslog format errors introduced in 1.6.

22 years agoadd includes for inet_ntoa prototype.
Alfred Perlstein [Thu, 11 Jul 2002 17:33:47 +0000 (17:33 +0000)]
add includes for inet_ntoa prototype.

22 years agoUncommented WARNS=0. ipfw2.c is full of printf format errors that are
Bruce Evans [Thu, 11 Jul 2002 17:33:37 +0000 (17:33 +0000)]
Uncommented WARNS=0.  ipfw2.c is full of printf format errors that are
fatal on alphas.

Fixed setting of WARNS.  WARNS should never be set unconditionally, since
this breaks testing of different WARNS values by setting it at a higher
level (e.g., on the command line).

22 years agoinclude string.h for strcmp(3) prototype.
Alfred Perlstein [Thu, 11 Jul 2002 17:32:16 +0000 (17:32 +0000)]
include string.h for strcmp(3) prototype.

22 years agoinclude stdlib.h for exit(3) prototype.
Alfred Perlstein [Thu, 11 Jul 2002 17:31:15 +0000 (17:31 +0000)]
include stdlib.h for exit(3) prototype.

22 years agoFixed a printf format error that was fatal on alphas. Adding WFORMAT=0
Bruce Evans [Thu, 11 Jul 2002 17:28:29 +0000 (17:28 +0000)]
Fixed a printf format error that was fatal on alphas.  Adding WFORMAT=0
to the Makefile didn't affect this bug because WFORMAT only controls
higher- level format checking (not the -Wformat that is implicit in
-Wall).

Fixed a nearby printf format error that was benign and 3 nearby style bugs.