]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoFix ptrace(PT_READ_*, ...) for non-little-endian architectures where
tmm [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
tmm [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.)
yar [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.
ru [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,
ru [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}
ru [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.
ru [Fri, 12 Jul 2002 14:16:46 +0000 (14:16 +0000)]
Connect device.hints.5 to the build.

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

22 years agoFixed path to /boot/device.hints.
ru [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
truckman [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 [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.
truckman [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 [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
tjr [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 [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 [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 [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 [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 [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.
alc [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.
alc [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
ken [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
keramida [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'.
gad [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().
gad [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'.
gad [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.
keramida [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()
gad [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.
obrien [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,
gad [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.
truckman [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
truckman [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).
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 [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 [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 [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 [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 [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.
jhb [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 [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
jhb [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
jmallett [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
jmallett [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 [Thu, 11 Jul 2002 21:40:15 +0000 (21:40 +0000)]
WARNS=4, de-__P()

22 years agode-__P()
alfred [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
jmallett [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 [Thu, 11 Jul 2002 21:26:41 +0000 (21:26 +0000)]
WARNS=4, de-__P()

22 years agoComplete rewrite, once again.
joerg [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 [Thu, 11 Jul 2002 21:18:55 +0000 (21:18 +0000)]
WARNS=4

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

22 years agode-__P()
alfred [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.
trhodes [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 [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).
keramida [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 [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.
bde [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."
bde [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.
obrien [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
bde [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,
keramida [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 [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 [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 [Thu, 11 Jul 2002 19:07:35 +0000 (19:07 +0000)]
de-__P()

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

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

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

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

22 years agode-__P()
alfred [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
bde [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 [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
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
bde [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 [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 [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 [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 [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
bde [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 [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 [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
bde [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.

22 years agoDo not allow unsafe characters in monitored hostnames.
alfred [Thu, 11 Jul 2002 17:11:42 +0000 (17:11 +0000)]
Do not allow unsafe characters in monitored hostnames.

This is modified version of the fix posted in the PR, I've taken Wollman's
advice and used strvis(3) to properly show invalid hostnames.

PR: bin/39815

22 years agoem(4) update.
bmah [Thu, 11 Jul 2002 17:08:07 +0000 (17:08 +0000)]
em(4) update.

22 years agoNew release notes: acct(2) appends to files, basename(1) -a/-s, GDB
bmah [Thu, 11 Jul 2002 17:03:36 +0000 (17:03 +0000)]
New release notes:  acct(2) appends to files, basename(1) -a/-s, GDB
5.2.

Updated release notes: em(4) update, ACPI CA 20020611,
mountd(8)/nfsd(8) moved to /usr/sbin, vidcontrol(1) -S.

MFCs noted:  dump(8) -S.

22 years agoPass -DBOOTSTRAPPING to the kernel's build tool (sys/dev/aic7xxx/aicasm).
ru [Thu, 11 Jul 2002 16:43:59 +0000 (16:43 +0000)]
Pass -DBOOTSTRAPPING to the kernel's build tool (sys/dev/aic7xxx/aicasm).
This way, it has a chance to be built with gcc 2.95.x (using the bandaid
in share/mk/bsd.cpu.mk,v 1.11).

Feedback timeout from: gordon

22 years agoDo not override the CFLAGS with its standard value. At some point,
ru [Thu, 11 Jul 2002 16:27:04 +0000 (16:27 +0000)]
Do not override the CFLAGS with its standard value.  At some point,
different architectures may choose to use different default values
for CFLAGS, for example.  (It was added in rev. 1.200 as a measure
to make boot images fit the floppies, and was never reverted.)

22 years agoAdd functions allowing for the user to specify a timeout for rpc functions.
alfred [Thu, 11 Jul 2002 16:23:04 +0000 (16:23 +0000)]
Add functions allowing for the user to specify a timeout for rpc functions.

Update copyrights to reflect where this code was lifted from. (tirpc '99)

Submitted by: mbr

22 years agoAdd -h option to rpcbind, used to specify what address to bind to for
alfred [Thu, 11 Jul 2002 16:19:43 +0000 (16:19 +0000)]
Add -h option to rpcbind, used to specify what address to bind to for
UDP requests.

Submitted by: mbr

22 years agoAdd missing ret instruction to the ptrace() syscall wrapper.
tmm [Thu, 11 Jul 2002 15:48:02 +0000 (15:48 +0000)]
Add missing ret instruction to the ptrace() syscall wrapper.

22 years agoDo not override the standard `distribute' target that is currently
ru [Thu, 11 Jul 2002 14:13:37 +0000 (14:13 +0000)]
Do not override the standard `distribute' target that is currently
available from bsd.obj.mk.

The native version was identical (and pretty much unused except in
the -DMODULES_WITH_WORLD case, which it is not for "make release")
except that the "bin" -> "base" change of the default DISTRIBUTION
name did not propagate here.

22 years agoUpdate the SUBDIR hacks to work with the current bsd.subdir.mk.
ru [Thu, 11 Jul 2002 13:38:05 +0000 (13:38 +0000)]
Update the SUBDIR hacks to work with the current bsd.subdir.mk.

22 years agoRemoved the (never used) help-distribute target from here.
ru [Thu, 11 Jul 2002 13:31:52 +0000 (13:31 +0000)]
Removed the (never used) help-distribute target from here.

(Similar targets were once used during the release building
process for kerberosIV and kerberos5.)

22 years agoUse realhostname_sa(3) so the IP address will be used instead of the
des [Thu, 11 Jul 2002 10:36:10 +0000 (10:36 +0000)]
Use realhostname_sa(3) so the IP address will be used instead of the
hostname if the latter is too long for utmp.

Submitted by: ru
MFC after: 3 days

22 years agoSet WFORMAT=0, because our compiler currently complains about NULL
sheldonh [Thu, 11 Jul 2002 08:45:38 +0000 (08:45 +0000)]
Set WFORMAT=0, because our compiler currently complains about NULL
arg 2 to err() and friends, and warnings are promoted to errors.

This allows the following revisions to be reverted:

rev 1.39 src/bin/cp/cp.c
rev 1.26 src/bin/chmod/chmod.c
rev 1.40 src/bin/rm/rm.c

The following revisions can already be reverted, because they were
already covered by WFORMAT=0:

rev 1.8 src/bin/ls/lomac.c
rev 1.63 src/bin/ls/ls.c
rev 1.8 src/bin/ps/lomac.c
rev 1.34 src/bin/rcp/rcp.c

22 years agoBah, move the invltlb counter to C code and hook a debug sysctl onto it.
peter [Thu, 11 Jul 2002 08:31:10 +0000 (08:31 +0000)]
Bah, move the invltlb counter to C code and hook a debug sysctl onto it.

22 years agos/NCPU/MAXCPU/ to try and get this to compile.
peter [Thu, 11 Jul 2002 08:24:33 +0000 (08:24 +0000)]
s/NCPU/MAXCPU/ to try and get this to compile.

22 years agoBring getconf back in from the cold.
peter [Thu, 11 Jul 2002 07:28:21 +0000 (07:28 +0000)]
Bring getconf back in from the cold.

22 years agoRemoved no longer used share/examples/diskless/* dirs (forgotten
ru [Thu, 11 Jul 2002 07:15:36 +0000 (07:15 +0000)]
Removed no longer used share/examples/diskless/* dirs (forgotten
by luigi@) and never used share/examples/kld/dyn_sysctl/module.

22 years agoDon't assume the shell's controlling terminal is attached to file descriptor
tjr [Thu, 11 Jul 2002 06:42:11 +0000 (06:42 +0000)]
Don't assume the shell's controlling terminal is attached to file descriptor
2. Instead, open /dev/tty. This problem stopped commands in subshells from
being executed correctly if standard error was redirected.

PR: 36671
Obtained from: NetBSD (but simplified)

22 years agoRemove support for the "old" tty driver by unifdef -UOLD_TTY_DRIVER;
tjr [Thu, 11 Jul 2002 06:26:48 +0000 (06:26 +0000)]
Remove support for the "old" tty driver by unifdef -UOLD_TTY_DRIVER;
many other parts of the shell are no longer compatible with this, and it
makes jobs.c quite cluttered with #ifdef's.

22 years agoWhen growing the job table, don't relocate the jobmru pointer if it's NULL.
tjr [Thu, 11 Jul 2002 04:22:41 +0000 (04:22 +0000)]
When growing the job table, don't relocate the jobmru pointer if it's NULL.