Commit Graph

77465 Commits

Author SHA1 Message Date
jhb
30b152864c thread_exit() requires PROC_LOCK to be held, so lock it. 2002-07-11 22:13:33 +00:00
alfred
088603aa7d WARNS=4, de-__P() 2002-07-11 22:11:20 +00:00
jhb
26953c640b Add a missing newline during panic printf's for SMP systems that don't
have APICS.  (Like all the !i386 archs).
2002-07-11 21:56:37 +00:00
jmallett
356638a289 Remove unused variables due to libufs(3) commit. Clean up extraneous use of
semicolon at closing paren of a function body.
2002-07-11 21:46:12 +00:00
jmallett
3f66160d6d Convert dumpfs(8) to libufs(3), rather than rolling local functions for a
number of things.
2002-07-11 21:44:03 +00:00
alfred
fc30cb8474 WARNS=4, de-__P() 2002-07-11 21:40:15 +00:00
alfred
ba97087db2 de-__P() 2002-07-11 21:28:16 +00:00
jmallett
9c7ad0f5fd Fill out (zero) and fill in (when doing getino()) the minimum and maximum
inodes in our inoblock (disk->d_ino{min,max}) appropriately.
2002-07-11 21:27:26 +00:00
alfred
b790e6b937 WARNS=4, de-__P() 2002-07-11 21:26:41 +00:00
joerg
1d2b625a3d 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
2002-07-11 21:20:54 +00:00
alfred
cef3a16df0 WARNS=4 2002-07-11 21:18:55 +00:00
alfred
9350b2dc7e WARNS=4 cleanup, de-__P() 2002-07-11 21:16:52 +00:00
alfred
a241579492 de-__P() 2002-07-11 21:13:37 +00:00
trhodes
15adc38d49 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
2002-07-11 21:12:45 +00:00
alfred
39c57be6b9 WARNS?=4 cleanup. 2002-07-11 21:12:18 +00:00
keramida
eea24f3d3e 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>
2002-07-11 21:11:26 +00:00
alfred
d9e0ad98f3 de-__P() 2002-07-11 20:53:56 +00:00
bde
7555ac60bc Fixed misspelling of "hint." as "hints." in rp's hints. 2002-07-11 20:47:56 +00:00
bde
3e0829ee08 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).
2002-07-11 20:43:37 +00:00
obrien
e6d1debf31 RELENG_4_6 PL 1 libc bits with non-vulnerable resolver.
Security Advisory:	FreeBSD-SA-02:28.resolv
2002-07-11 20:40:24 +00:00
bde
ec7ed82a0a 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
2002-07-11 20:24:58 +00:00
keramida
18c9f9fd09 Mention zegrep and zfgrep too,
and what their equivalent grep options are.

PR:		docs/35603
Submitted by:	"Gary W. Swearingen" <swear@blarg.net>
2002-07-11 20:12:15 +00:00
robert
b9f87c2ae0 Use the length modifier 'l' when supplying an argument of
type long to printf(3).
2002-07-11 20:10:07 +00:00
robert
c0716890f8 - Remove unnecessary inclusion of <utmp.h>.
- Cast a value to time_t before comparing it to another
   time_t to fix a warning.
2002-07-11 20:01:36 +00:00
alfred
db007fe41c de-__P() 2002-07-11 19:07:35 +00:00
alc
25fc8eccc6 o Lock accesses to the page queues. 2002-07-11 18:48:05 +00:00
alfred
d553d8cff7 mark unused variable. 2002-07-11 18:45:59 +00:00
alfred
0faf69ab9f conditionally set WARNS via ?=. 2002-07-11 18:45:14 +00:00
alfred
5071cb67d9 fixup for WARNS=4. 2002-07-11 18:42:53 +00:00
alfred
c40ae61c8c de-__P() 2002-07-11 18:31:16 +00:00
bde
26d377573f 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.
2002-07-11 18:06:09 +00:00
alfred
8a8f54cf28 make mostly WARNS=4 clean.
constify, mark unsued args, fixup prototypes.
2002-07-11 17:55:14 +00:00
dillon
0b74a2da00 Convert old style (type foo *)0 casts to NULLs
PR:		kern/40360
Requested by:	Hiten PAndya via direct email
2002-07-11 17:54:58 +00:00
bde
9180aabc4c 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.
2002-07-11 17:49:41 +00:00
alfred
8677b99410 Log the IP of the machine if an invalid host is passed over the wire.
PR: bin/29406
2002-07-11 17:44:59 +00:00
alfred
2346687c8a 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
2002-07-11 17:39:50 +00:00
alfred
8f999c3422 Fix syslog format errors introduced in 1.6. 2002-07-11 17:36:09 +00:00
alfred
39199c8724 add includes for inet_ntoa prototype. 2002-07-11 17:33:47 +00:00
bde
34bfc91385 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).
2002-07-11 17:33:37 +00:00
alfred
b611173b57 include string.h for strcmp(3) prototype. 2002-07-11 17:32:16 +00:00
alfred
a9f506168f include stdlib.h for exit(3) prototype. 2002-07-11 17:31:15 +00:00
bde
f340aa750e 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.
2002-07-11 17:28:29 +00:00
alfred
9bbf00859f 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
2002-07-11 17:11:42 +00:00
bmah
d860561907 em(4) update. 2002-07-11 17:08:07 +00:00
bmah
11a5c5864b 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.
2002-07-11 17:03:36 +00:00
ru
e2dbe09225 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
2002-07-11 16:43:59 +00:00
ru
c6cffca3bf 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.)
2002-07-11 16:27:04 +00:00
alfred
5b169b54b8 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
2002-07-11 16:23:04 +00:00
alfred
d96c3f211e Add -h option to rpcbind, used to specify what address to bind to for
UDP requests.

Submitted by: mbr
2002-07-11 16:19:43 +00:00
tmm
95a384b19a Add missing ret instruction to the ptrace() syscall wrapper. 2002-07-11 15:48:02 +00:00