Commit Graph

6904 Commits

Author SHA1 Message Date
rwatson
ab62394934 When the 'f' flag is passed to ktrdump(1), use 40 characters for the
"file and line" field consistently; previously, a 32-character field
length was used for the table header, which resulted in the header
not lining up with the table.
2004-05-21 21:15:48 +00:00
kientzle
e39ef783c7 Add --dereference as a synonym for -H
Pointed out by: Kris Kennaway (unbreaks nspr port build)
2004-05-21 18:40:32 +00:00
hmp
bdee9d6359 Remove unneeded lseek(2) hack to position past the 2GB point,
use fseeko(3) instead.

This commit fixes breakage when `lastcomm matchstring` is run.

PR:          	bin/66765, bin/64568
Submitted by:	Dan Nelson <dnelson at allantgroup.com>
2004-05-20 19:25:27 +00:00
dwmalone
ab5cd8bce2 Fix a couple of warnings:
1) Missing include for declaration of time conversion functions.
2) Avoid a couple of alignment warnings on 64 bit arches by memcpying the
   things pointed to by caddrs into variables of the right type.

Bump WARNS to 6 while I'm here.
2004-05-19 21:34:52 +00:00
dwmalone
b382837fd2 Add missing %s so that all of the usage message gets printed.
Bump WARNS to 6 while I'm here.
2004-05-19 21:06:36 +00:00
le
0b15a74ef0 Fix integer overflow in the file size output when dealing with
large files (i.e. DVD images).

Reviewed by:  des@
2004-05-19 11:07:30 +00:00
ru
e73c4c3bea Added pgrep to the SYNOPSIS.
Fixed SYNOPSIS.
Fixed markup nits.
2004-05-19 10:46:56 +00:00
ru
82d418489c Clean up language and markup. 2004-05-19 10:45:40 +00:00
ru
07ff80c69a Language and markup polishing. 2004-05-19 10:44:24 +00:00
ru
0e057e6597 Bumped the document date. 2004-05-19 09:54:14 +00:00
ru
65c76152aa Bumped the document date.
Fixed the grammar nit.
2004-05-19 09:53:41 +00:00
ru
aab00ee050 Bumped document date.
Fixed markup nit.
2004-05-19 09:53:03 +00:00
ru
c4fc747f65 Bumped document date.
Fixed the grammar nit.
2004-05-19 09:52:40 +00:00
ru
b68ad6f481 Markup nits. 2004-05-19 09:51:58 +00:00
ru
d1287d03e3 Bumped document date.
Dealt with hard sentence breaks and whitespace at EOL.
2004-05-19 09:51:31 +00:00
ru
f9b9a53e09 Fixed document date. 2004-05-19 09:49:54 +00:00
ru
f02e04b032 Bumped document date.
Fixed a bunch of hyphen misspellings.
Fixed one warning.
2004-05-19 09:49:37 +00:00
ru
1b3a3e44fe Restore part of the word that got (accidentally) removed.
Removed whitespace at EOL.
2004-05-19 09:46:37 +00:00
ru
e7198567f6 Markup nits. 2004-05-19 09:45:46 +00:00
ru
58e043a734 Bumped document date.
Removed hard sentence break.
2004-05-19 09:44:31 +00:00
kientzle
bd948d43ca Default is to restore timestamps, even when operating as root. <sigh> 2004-05-19 01:21:11 +00:00
kientzle
6d58177232 Fix a segfault when looking up a non-existent group. 2004-05-18 23:40:25 +00:00
ru
9136857e87 Bump document date on behalf of the -e option.
Spell "ID" correctly.
2004-05-18 20:45:32 +00:00
ru
70aa45bb86 Bump document date on behalf of the -E option. 2004-05-18 20:42:36 +00:00
ru
2705ff6b8b Added -u to the SYNOPSIS. 2004-05-18 20:40:37 +00:00
ru
24669b06b5 Bump document date on behalf of the -u option. 2004-05-18 20:38:43 +00:00
ru
4634304983 Bump document date on behalf of the -M option. 2004-05-18 20:36:54 +00:00
peter
96caafefd2 Build/install gprof on amd64 as well, after repocopying the MD bits.
Not that it has anything to process yet, but that comes next.
2004-05-18 18:05:19 +00:00
kientzle
82ad771fc4 Accept (but ignore) GNU tar's -B option. bsdtar never
needs it, but it does no harm for people to specify it.
2004-05-18 17:16:55 +00:00
stefanf
d03b409831 Don't depend on NULL's expansion being a pointer, cast it before it is passed
to variadic functions.

Approved by:	das (mentor)
2004-05-18 15:53:58 +00:00
kientzle
a2d65f2ff8 Set errno to 0 before calling getpwuid/getgrgid, so that error
messages will be displayed only when there is, in fact, an error.
2004-05-17 18:29:12 +00:00
kientzle
f113d8daf6 Speed up safe_fprintf by copying to a temp buffer, then writing
blocks at a time, rather than using putc().
2004-05-17 07:35:52 +00:00
kientzle
d8d0d2b68a Propagate struct bsdtar down into a lot more places.
Move global progname variable into struct bsdtar.
2004-05-17 05:44:53 +00:00
kientzle
5cfb79a67b Refactor name caching to use a common piece of code for uname_cache and
gname_cache.  Cache negative lookups to dramatically improve performance
building archives containing nonexistent uid/gid.
2004-05-17 05:02:39 +00:00
kientzle
edb4c36c4e Make symlink protection a bit more useful:
* Remove terminal symlinks so they can be replaced.
  * If -U, remove intermediate symlinks as well
  * Otherwise, refuse the extraction
2004-05-17 03:33:06 +00:00
kientzle
5d71bf79b9 Update manpage to track new security features. 2004-05-17 03:19:31 +00:00
stefanf
0e7925249c Remove spurious semicolons. Outside of functions they are actually errors but
GCC doesn't warn about them without -pedantic.

Approved by:	das (mentor)
PR:		56649
Reviewed by:	md5
2004-05-16 22:08:17 +00:00
eik
ff1850a17c snafu, exchanged the descriptions of -maxdepth and -mindepth.
Noticed by:	ru
2004-05-16 10:35:14 +00:00
cognet
62ba1ba4d8 Insert "arm" between "amd64" and "powerpc"
Requested by:	bde
2004-05-14 23:08:52 +00:00
bde
d930a74912 Fixed total disorder of MD includes.
Disorder buffer overflowed by:	arm commit
2004-05-14 21:05:35 +00:00
joerg
8119cd93df Bump the .Dd value.
Update xrefs to more contemporary items.

Requested by:	ru, green
MFC after:	1 week
2004-05-14 19:29:39 +00:00
joerg
5f43e72c74 When I wrote this man page more than 5 years ago, I simply didn't
understand the true symmetric nature of Enigma, so my description of
``automatically detects that the input is encrypted'' was simply
wrong.  Replace that by a more accurate description of why feeding the
ciphertext again into the engine will decrypt it.

MFC after:	1 week
2004-05-14 18:46:16 +00:00
cognet
3c4b1ba998 Use four spaces instead of tab for second level indentation.
Requested by:	ru
2004-05-14 14:50:55 +00:00
cognet
f69cb3dc2a Define PTRDIFF_IS_LONG and SIZEOF_IS_ULONG for arm. 2004-05-14 13:44:36 +00:00
cognet
547301ca85 Some arm bits for gprof. 2004-05-14 13:44:04 +00:00
cognet
a917591336 Do not build truss on arm. 2004-05-14 13:43:18 +00:00
eik
7039419a1e -maxdepth and -mindepth are global variables
PR:		66613
Approved by:	ru
MFC after:	3 days
2004-05-14 12:58:13 +00:00
ru
867c2c2795 Output style nit. 2004-05-12 07:36:59 +00:00
cognet
41a507073d Do not attempt ro read more than sizeof(buf) from stdin. 2004-05-10 15:52:16 +00:00
cjc
c2ac2eed86 It was pointed out[0] that ctags(1) uses some potentially dangerous
system(3) calls where user-supplied data is used with no sanity
checking. Since ctags(1) is not setuid and is not likely to be used
in a privileged situation, this is not a big deal. However, the
fix is relatively easy and less ugly than the current code, let's be
safe. (I'm sure there are about 2^134 other system(3) calls like this
out there.)

[0] On freebsd-security by Roman Bogorodskiy <bogorodskiy@inbox.ru>
with subject "ctags(1) command execution vulnerability."

MFC after:	3 days
2004-05-07 19:44:40 +00:00
stefanf
84a3515be8 Use a proper protoype to declare interp() and move it to tip.h. Fix an
invocation with a wrong number of arguments.

Approved by:	das (mentor)
2004-05-06 13:25:09 +00:00
kientzle
e1906beac0 Add --unlink and --unlink-first synonyms for -U
Make indentation of tar_longopts array more consistent.
2004-05-05 21:06:37 +00:00
stefanf
89c23a330d Add my birthday.
Approved by:	das (mentor)
2004-05-05 13:11:33 +00:00
kientzle
5065cf7b7e Contrariwise, Linux sys/stat.h doesn't define mode_t and friends,
even though POSIX requires it.  <sigh>
2004-05-04 21:40:09 +00:00
kientzle
c8273e2bc6 Include local copies of fts.c and fts.h to be used ONLY on non-FreeBSD
systems.  The fts.h here is an exact copy of include/fts.h (except for
an initial explanatory comment and the revision tags, of course).  The
fts.c here is slightly modified from lib/libc/gen/fts.c so it can
compile correctly on non-FreeBSD systems.
2004-05-04 17:21:01 +00:00
rwatson
5cd253e8ab Add "-M" argument to id(1), which permits the id command to be used
to print the MAC label of the current process.  "-M" selected as that's
what is used in Trusted IRIX.

Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, McAfee Research
2004-05-03 22:50:23 +00:00
kientzle
84e96d489d For portability, don't rely on libc's strmode(3). <sigh> 2004-05-03 21:05:59 +00:00
kientzle
4b4a571a3e Correct copy/paste error in Linux nodump support.
Thanks to: Juergen Lock for his continuing patience
while I botch his patches.
2004-05-03 16:56:42 +00:00
kientzle
97877ff6da Style: Use single tab after #define 2004-05-02 22:58:18 +00:00
kientzle
beb914d299 More of Juergen Lock's patches for Linux.
(fflags support on Linux, nanosecond timestamp portability, enable
64-bit file offsets)
2004-05-02 18:10:35 +00:00
kientzle
bce9e1e3e0 More style fixes, per bde. 2004-05-02 17:54:57 +00:00
smkelly
1633825ef2 - style(9) improvements courtesy of bde.
- Revise the former commit to behave nicer on filenames containing
  multiple '.' characters.
- Prevent the generation of macros starting with "__".
2004-05-02 07:07:54 +00:00
smkelly
adc995a9c6 Teach rpcgen to generate .h files properly when the input filename contains
characters that can't be used in preprocessor macros.

PR:		bin/66156
Submitted by:	K S Braunsdorf <rpc@ksb.npcguild.org>
2004-05-02 01:55:23 +00:00
kientzle
69b5efd65f A security issue: An archive containing a symlink to another
directory, then a file with that symlink as a prefix can drop a file
outside of the current directory, which can be a security hole.

Plug this hole by refusing to extract files if a prefix of the
pathname is a symlink.  The -P option disables this check.
2004-05-02 00:43:02 +00:00
kientzle
2032f2c1be Style fixes, most suggested by bde. 2004-05-01 21:47:31 +00:00
smkelly
d030feb94f Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.

PR:		bin/60914
Reviewed by:	petef
Discussed with:	jeff, petef
2004-05-01 03:59:43 +00:00
smkelly
bbaadaa92c m4 script to test the functionality of math operators in eval().
Submitted by:	K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 03:27:05 +00:00
smkelly
4cfef6bc74 A new version that does exponents and lots of other neat things. Update
from the original author of math.sed.

Submitted by:	K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 02:15:58 +00:00
kientzle
e168a7227a Speed up hardlink detection by using a self-sizing hash
table rather than the old linear list search.

On my "hardlink detection torture test", this reduced
user time from 4700 seconds down to 4.2 seconds
and wallclock time from 1:24:48 down to 1:08.
(Yes, that's over one THOUSAND times reduction in user time. ;-)
In the worst case, the new code doubles peak memory usage,
though it could actually reduce memory usage in many cases.

MFC after: 1 week
PR: misc/42167, bin/51151
2004-04-30 18:17:51 +00:00
kientzle
d97881b04d -U is now implemented. (It's been recognized by bsdtar for a while;
now libarchive actually supports the underlying request.)
2004-04-29 05:22:13 +00:00
kientzle
ec3c314996 Refuse to extract entries with '..' in pathname.
Pointed out by: David Schultz
2004-04-28 18:53:07 +00:00
kientzle
97952ffda5 Remove information about specific formats; replace with a
reference to libarchive-formats(5).
2004-04-28 04:43:57 +00:00
kientzle
2b16eb2b37 Update write.c to follow recent API changes to libarchive.
Also, bump up the default copy buffer from 8k to 64k
to improve performance.
2004-04-26 23:39:17 +00:00
silby
a43a673cbd Add the bad reset statistic (corresponds to tcp_input.c rev 1.235) 2004-04-26 02:57:33 +00:00
kientzle
376ec8c9e0 Fix username/groupname cache so it returns a name that
was just looked up by get{pw,gr}id().  Otherwise, it
returns a NULL name unless it's already in the cache.

Credit to Juergen Lock.
2004-04-23 16:33:51 +00:00
tjr
43ace98af1 Print fork statistics with %u as they are unsigned quantities.
PR:		65889
Submitted by:	Ken Stailey
2004-04-23 13:10:29 +00:00
kientzle
3b74d9991f Eliminate a redundant call to archive_entry_set_pathname() 2004-04-21 05:16:28 +00:00
des
68a3dec01b Clarify and correct some compatibility notes.
PR:		65822
2004-04-21 00:42:55 +00:00
green
54f9656804 Treat kevent(2) returning an error EINTR as the non-error it is. 2004-04-20 22:04:12 +00:00
kientzle
b04bbaade3 Allow brave souls to install bsdtar as the
default "tar" command by defining WITH_BSDTAR.

Note: "gtar" and "bsdtar" commands both exist regardless.
2004-04-19 22:09:04 +00:00
cognet
21fc4d63ca Handle window resizing better.
Submitted by:	Cyril Nguyen Huu
Obtained from:	OpenBSD
2004-04-19 21:37:29 +00:00
marius
3d8b6c3fbb Add my birthday.
Approved by:	marcel (mentor)
2004-04-18 01:05:55 +00:00
tjr
934bcb867a Restore old value of LESSKEYFILE_SYS. 2004-04-17 07:48:21 +00:00
tjr
9af8e98943 Regenerate with less 381 configure script. 2004-04-17 07:46:08 +00:00
kientzle
2e82e5328b --help is only supported if you have getopt_long().
This allows bsdtar to compile on FreeBSD 4.x.
2004-04-16 03:50:04 +00:00
kientzle
6f03b58e36 As suggested by Julian Elischer, use a self-sizing hash
table for the hardlink cache.  This dramatically improves
performance when archiving millions of hardlinked files.

While I'm here, clean up some style bugs (per Bruce Evans)
and clarify some comments.
2004-04-15 22:37:54 +00:00
bde
6ef2ea39fa Include <sys/proc.h> instead of depending on namespace pollution in
<sys/user.h> for the definition of TDF_SINTR.  Fixed anachronous
spelling of TDF_SINTR in a comment

Demangled VCS ids.  There were 2 misplaced copies of $FreeBSD$ and of
the include before it.  The vendor id infrastructure was edited.

Fixed the only other remaining style bug since rev.1.1 (expansion of
struct member names made a line too long).
2004-04-14 09:34:17 +00:00
bde
03f55d4286 Include <sys/proc.h> for the definition of PS_INMEM instead of
depending on namespace pollution in <sys/user.h>.

Reduced nearby include messes.
2004-04-14 09:01:56 +00:00
kientzle
c57065d23f A simple cache of uid->uname lookups and gid->gname lookups eliminates
almost 1/2 of the CPU time required to create an uncompressed archive
and makes a noticable reduction in wallclock time.
2004-04-14 00:40:54 +00:00
kientzle
dce91c3e9f When all the links to a file have been dumped, don't forget
to free() the memory used to store the filename.
2004-04-13 23:50:48 +00:00
kientzle
078965198a Eliminate a lot of malloc/free calls by using
a stack-allocated buffer for safe_fprintf formatting.
Only if the result is too large do we resort to malloc.
2004-04-13 23:49:02 +00:00
kientzle
6b1b47eafd Manpage changes suggested by Irina Liakh.
Also, add -h as a synonym for -H, for Linux Standards Base compliance.
2004-04-13 19:45:55 +00:00
luigi
666306ed63 Replace ROUNDUP/ADVANCE with SA_SIZE 2004-04-13 11:24:43 +00:00
ru
b41e7e012d The .DEFAULT target with no commands caused a null pointer dereference.
PR:		bin/63405
Obtained from:	NetBSD
2004-04-12 20:05:11 +00:00
kientzle
bc70569650 Style fixes
Pointed out by: bde
2004-04-12 18:06:07 +00:00
ru
f1d6050269 Document the new .warning directive. 2004-04-12 18:00:54 +00:00
ru
ddf74cce7e Added the new .warning directive.
Submitted by:	Cyrille Lefevre
2004-04-12 17:57:51 +00:00
ru
facfbf9315 Show link-level multicast packet counters with the -a option. 2004-04-12 15:00:48 +00:00
ru
a6853a90ea Fixed alignment of multicast addresses when printing that got
broken in previous revision.
2004-04-12 09:44:42 +00:00
kientzle
ba578aff1a Add DPADD to Makefile (thanks to Andrey for pointing this out).
Generally clean up Makefile, remove dmalloc references from source
(there are better ways to do this than pollute the FreeBSD src tree).
2004-04-12 00:13:23 +00:00
emax
dc17aab72b Use uint instead of u_int 2004-04-09 23:26:16 +00:00
emax
6f0f3b3fa7 Make sure Bluetooth stuff can be compiled on amd64
Submitted by:	ps
2004-04-09 23:01:42 +00:00
mux
f3b6ba0c17 Backout previous commit. It seems this comment applied to something
else than I thought, and thus really needs to go away.

Noticed by:	ru
2004-04-09 17:30:26 +00:00
mux
16d440290c Reintroduce a comment that was wrongly removed in revision 1.34. 2004-04-09 14:19:12 +00:00
tjr
170ba9af2f Improve robustness of multibyte character handling (-m option), and
simplify the read buffering now that we can feed partial multibyte
characters to mbrtowc().
2004-04-09 11:17:29 +00:00
kientzle
4eb00e0ad8 Allow arguments to appear in any order.
While I'm here, add a couple of extra sanity-checks to
the argument parsing (reject -j -z, for instance) and
update the docs a bit.

Requested by: most everyone ;-)
2004-04-08 19:37:01 +00:00
kientzle
f6193fa569 Document the newly-implemented -T option. 2004-04-08 06:21:03 +00:00
kientzle
cc91920b92 Add support for -T option on create.
(Required by pkg_create.)
2004-04-08 06:12:01 +00:00
kientzle
b9401a4a25 Correct signature in alternative stub implementation of setup_acls() 2004-04-07 17:43:48 +00:00
trhodes
bd330b75b7 Add -acl and a small blurb about it to the options list.
Update date.
2004-04-07 14:48:30 +00:00
kientzle
af68728588 Archive both access and default ACLs. 2004-04-06 23:08:31 +00:00
kientzle
ee128149fb Connect bsdtar to the build. 2004-04-06 17:04:38 +00:00
des
c81abf3f2f Workaround for servers that ignore byte ranges when using chunked
encoding.

MFC after:	3 days
2004-04-06 12:24:26 +00:00
kientzle
9b7e6b0200 Initial commit for bsdtar. 2004-04-05 21:32:18 +00:00
ru
2d1b1f8a22 Unbreak compilation on RELENG_4.
Submitted by:	des
2004-04-05 17:02:08 +00:00
des
623bb2430d Sort #includes, remove <sys/types.h> (made redundant by <sys/param.h>),
add <signal.h> (needed for sigaction())

Noticed by:	Stefan Farfeleder <stefan@fafoe.narf.at>
2004-04-05 06:16:48 +00:00
charnier
9358c19c3e Be consistant while reporting error conditions. 2004-04-04 19:17:38 +00:00
charnier
51e94ed0e4 Add FBSDID. Use %ld to printf(3) a long (even if the number is small). 2004-04-04 19:11:01 +00:00
charnier
36fd7f6aca Add FBSDID. Do not dot terminate errx(3) string. 2004-04-04 18:56:53 +00:00
jmg
85522e6c04 I can't believe that we had the Queen's birthday but not the King's...
Since my wife is Thai, she knows the proper date.
2004-04-04 07:31:35 +00:00
bmilekic
5834820b50 Give find(1) the option -acl to locate files with extended
ACLs.  This is similar to what ls(1) can do.  It is handy to
have it so that it can be used in conjunction with
"-exec setfacl {} \;" (to find(1)), among others.

This is the submitter's patch, but slightly modified.

PR: bin/65016
Submitted by: Christian S.J. Peron <maneo@bsdpro.com>
2004-04-03 17:10:04 +00:00
cperciva
c763b0d11d From the list of calendars, remove some duplicate entries which were added
as a result of mis-sorting.

PR Submitter wanted to see a sorted list of non-national holidays followed
by a sorted list of national holidays; I'm not going to do this, because I
don't think we want to get into the "what is a nation?" debate.

PR:		docs/64848
Submitted by:	Ulrich Spoerlein <q@uni.de> (approximately)
MFC after:	3 days
2004-03-30 18:28:36 +00:00
gad
6f424d0b91 Use KERN_PROC_PROC instead of KERN_PROC_ALL on the call to kvm_getprocs(),
so we get one line per process instead of one for each kernel-thread.

Noticed by:	ache & tjr
2004-03-30 15:10:50 +00:00
gad
dcc1665a9b Add a cross-reference to pkill(1), now that pkill is hooked up to the build. 2004-03-27 23:45:33 +00:00
gad
5d19c3b180 bde also tells me that he is confident that P_SYSTEM will not work
any better on 4.x than it does on 5.2. If that's true then there
is no point to the __FreeBSD_version check that I had added.
2004-03-27 06:49:57 +00:00
gad
d0a5378611 Hook pkill' (and thus pgrep') to the standard buildworld.
Reviewed by:	freebsd-arch
2004-03-27 05:44:55 +00:00
gad
d564fe6346 Some style(9)-ish improvements, courtesy of bde.
Noticed by:	bde
2004-03-27 05:40:31 +00:00
gad
669dbf9ff9 Remove the _PATH_DEVNULL setting for "swapf". From the kvm_open(3)
man page:  The swapfile argument is currently unused.

Noticed by:	ru
2004-03-26 19:29:57 +00:00
gad
ac36bb2109 Remove the NEED_KMEM support meant for FreeBSD 3.x. This base-system
version isn't going to be committed to that branch...

Noticed by:	des
2004-03-26 18:02:40 +00:00
gad
afefc17e17 Switch to checking P_KTHREAD instead of P_SYSTEM when deciding what
"system processes" to always ignore.  Based on my testing with `-D',
I am pretty sure this is what we want for 5.x-current.  If my thinking
is wrong, this also makes it easier to switch to a different check.
2004-03-26 17:51:49 +00:00
ru
d697d2bc64 Properly document the -M and -N options. 2004-03-26 11:01:45 +00:00
ru
e693cf55e8 Correct the description of the -N option. 2004-03-26 10:48:35 +00:00
ru
eed1a51f0f Avoid the manpage layering violation and low-level implementation
details of libkvm, and just tell what the getbootfile(3) function
will return, by using the text from netstat(1) and dmesg(8).
2004-03-26 08:54:27 +00:00
ru
0b22130fe1 Correct the description of options -N and -M to match reality. 2004-03-26 08:47:01 +00:00
ru
05f4cbd954 Apply style.Makefile(5). 2004-03-26 07:44:49 +00:00
gad
3b7669980b Send those -Debug messages to stderr, not stdout... 2004-03-26 02:20:52 +00:00
gad
36252af08e Add a debugging option, as I don't understand something that I'm seeing.
(this is a probably temporary option, and is not to be documented)
2004-03-26 01:43:19 +00:00
gad
ce61c5fbbd Remove a redundant check against mypid (the check is done later, in
the "Take the appropriate action" section).

Obtained from:	the sysutils/pkill port
2004-03-26 01:30:15 +00:00
gad
b03d7b4c6e Add a cast to get this to compile with WARNS=5 on sparc64. This is
needed because off_t == __int64_t, while size_t == __uint64_t.  This
also compiles with WARNS=5 on amd64, but I haven't tested the other
platforms yet.
2004-03-26 00:36:27 +00:00
gad
87bd605be6 Fixes so this will compile with WARNS=5 on i386. 2004-03-26 00:15:20 +00:00
gad
49c444c5d0 Fix two cosmetic style(9) issues. 2004-03-25 23:35:14 +00:00
gad
85ae0c1dea Add a comment for when these utilities were added to FreeBSD, and add
a cross-reference to killall(1).
2004-03-25 23:32:12 +00:00
gad
5d91038246 Add -M' and -N' options to pkill' and pgrep', similar to
what are supported in `ps':

  -M  Extract values associated with the name list from the
      specified core instead of the default /dev/kmem.
  -N  Extract the name list from the specified system instead
      of the default /kernel.

Written by:	Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Obtained from:	the sysutils/pkill port
2004-03-25 23:19:16 +00:00
gad
be71d1971d Use the correct type for some casts, thus avoiding a few warning messages
when compiling with WARNS=3

Written by:	Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Obtained from:	the sysutils/pkill port
2004-03-25 22:08:52 +00:00
gad
ae7c37ac90 Change some routine and variable names to match the FreeBSD system.
Written by:	Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
Obtained from:	the sysutils/pkill port
2004-03-25 21:58:56 +00:00
gad
b9e6507b5b Add the pkill' and pgrep' commands from NetBSD. This is the source
straight from NetBSD (except to add the RCS-ID lines for FreeBSD).
These will probably require a few updates before they are added to
the FreeBSD buildworld.  I might MFC these to 4.x-stable after 4.10.

Discussed on:	freebsd-arch
Obtained from:	NetBSD (and OpenBSD also has these)
2004-03-25 19:08:48 +00:00
phk
4d840fd809 Respect decimal flag when dumping USER type records. 2004-03-25 12:33:55 +00:00
bms
fb51e70b4a Sort SRCS in Makefile and document -g option additions.
Nudged by:	ru
2004-03-25 09:07:26 +00:00
bms
e8274f1752 Output style: Get rid of an unnecessary newline. 2004-03-25 08:51:14 +00:00
bms
3e526f6c8a Teach netstat(1) how to print the multicast group memberships present
within the running system.

Sponsored by:	Ralf the Wonder Llama
2004-03-25 08:43:59 +00:00