Commit Graph

6710 Commits

Author SHA1 Message Date
wiz de2f2d8752 Only fclose file if it is open. From Tim Robbins (tjr@freebsd). 2003-05-09 08:44:57 +00:00
wiz 846b4ae5e2 Join some lines; mdoc improvements; use more macros. 2003-05-09 08:20:27 +00:00
dsl 7eb71f323d Update man page for recent changes, update code to match man page... 2003-05-09 07:30:50 +00:00
phil 706027816a Remove extra characters in example strings. 2003-05-09 05:28:30 +00:00
dsl b143b30e1c Accept variable names for menu titles and options to allow internationalisation.
Allow user code to define a hook to lookup message texts before any get used.
It is now possible to have a langauge independant menu file.
2003-05-08 16:20:56 +00:00
wiz 9029b1ef5d Bump date for last. 2003-05-08 13:07:10 +00:00
atatat ee00aa727c Add %B to print the st_birthtime of an inode (adjusting the "raw"
format and "shell" format appropriately), and rename the st_*timespec
fields in the shell-style output to be st_*time, since that's what
they really are.
2003-05-08 13:05:38 +00:00
dsl f579b0bca7 Let page up/down go to first/last menu item when it is already showing. 2003-05-07 16:54:39 +00:00
dsl 13bfd47102 Add left and right arrows to list of keys that page menes up/down.
Make 'page down' go to 'exit' extry on menu (not stop one short).
Make 'exitstring' imply 'exit'.
2003-05-07 16:39:45 +00:00
dsl 8e5fd09823 Actually update man page for change to not show unused pools. 2003-05-06 10:17:02 +00:00
dsl 615387287b Make vmstat -m skip memory pools that have never been used - unless -v given.
Update man page to match.
2003-05-06 10:10:11 +00:00
wiz 36e4d83a5e Grammar and mdoc fixes. Bump date for last two. 2003-05-06 08:22:08 +00:00
atatat 535d709586 Build main.c with LOCKDEBUG defined so that it gets the larger kbit
definition.  Since we're now passing it into pmap.c which is already
compiled that way, it would be nice if it was the right size.

Also, fix a memset bug that caused a segmentation fault when printing
the kernel's vm_map.
2003-05-04 15:09:45 +00:00
christos b0eade51fd improve error handling and knf. 2003-05-03 15:57:11 +00:00
gmcgarry 2b0514ca6b Xref nls(7). Addresses PR#14576. 2003-05-02 08:35:42 +00:00
gmcgarry e00d2f72dc Some more ktruss documentation from Christian Biere <christianbiere@gmx.de>
in PR#17111.
2003-05-02 07:52:23 +00:00
gmcgarry 9256662c6b Explain what ktruss does. Document -l, -R and -T options.
Addresses PR#10458.
2003-05-02 07:40:20 +00:00
wiz a63657f6f4 Comment out another euc(4) reference.
Prefer mdoc to man plain roff.
Use \*[Lt] and \*[Gt] instead of < and > for HTML output, but prefer
.Aq if possible.
"a, b, and c" instead of "a, b and c".
2003-05-01 09:45:03 +00:00
gmcgarry 57e1c07c62 Remove references to non-existent pages. Addresses PR#12544. 2003-05-01 08:09:57 +00:00
agc 44481e1ab2 Pull in <sys/param.h> explicitly. 2003-04-29 17:55:00 +00:00
wiz abe0b8ad64 Use .Aq instead of \*[Lt]...\*[Gt]; sort SEE ALSO; add some more commas;
new sentence, new line; fix some mdoc nits.
2003-04-28 09:38:19 +00:00
augustss 86be450da2 Add missing comma. 2003-04-28 09:26:34 +00:00
jdolecek f906986ad4 one <sys/cdefs.h> include is enough
fixes PR misc/21340 by Igor Sobrado
2003-04-27 11:09:57 +00:00
wiz aa64771356 Drop trailing space. 2003-04-27 11:09:29 +00:00
jdolecek e13853c3cc one <unistd.h> is enough
fixes PR misc/21339 by Igor Sobrado
2003-04-27 10:38:42 +00:00
jmmv ab753cc4ce Implement the `-d' option, which behaves as `-l' but does not change the
current directory.  Idea suggested by dsl@ in source-changes.
2003-04-27 08:46:25 +00:00
mycroft 3ba2d8197a Only unset ENV if -f was used, AS THE CHANGE WAS DOCUMENTED.
I'm not convinced this is a good idea at all, but at least this fixed my usage.
2003-04-25 08:04:14 +00:00
mjl f694ad9267 On second thought, move BSD to calendar.computer.
While there, spell Dijkstra correctly.
2003-04-24 13:36:19 +00:00
mjl 5082020546 Correct dates for Talbot and Zuse. Aristotle surely died only
once (though I have not been able to confirm the exact date).
Add NetBSD/FreeBSD birthday too for good measure.

Most of the changes from FreeBSD with corrections.
2003-04-24 13:29:23 +00:00
wiz 287057db85 Bump date for last. 2003-04-24 12:19:06 +00:00
wiz 70f9b8f89a Sort sections. 2003-04-24 12:11:17 +00:00
wiz 64ef7a20ff Sort sections, sort SEE ALSO, bump date for last. 2003-04-24 12:06:56 +00:00
wiz 4880d466e5 Remove duplicate unistd.h inclusion. Igor Sobrado, PR 21300. 2003-04-24 08:22:05 +00:00
mycroft e7a1f4e518 Catch up with ld.elf_so. 2003-04-23 21:39:08 +00:00
bjh21 76a26cefcd This is a host tool, so check if __RCSID is defined before using it. 2003-04-21 08:41:28 +00:00
christos 34ffdb33ed enable RCSID.. 2003-04-21 02:03:41 +00:00
christos 45aed1fbde PR/7713: David Holland: warn if we have mesg n. 2003-04-21 00:05:30 +00:00
christos 73b3e2ae58 separate the term check stuff. 2003-04-20 23:53:04 +00:00
christos c71d457343 PR/5803: Gregg A. Woods: su doesn't support it's "-f" option for sh and/or ksh
fixed by unsetenv("ENV") when -f is set and the shell is not csh.
2003-04-20 20:13:20 +00:00
christos 5ca06f36e7 PR/5123: Ignatios Souvatzis: make patch exit gracefully on malformed input. 2003-04-20 19:37:08 +00:00
christos c6f13c73f2 Mention that -t is harmful. 2003-04-20 03:55:38 +00:00
christos 3a1e3ae4c9 Add flags to look in Apparently-To: or Delivered-To: fields. Inspired by jhawk. 2003-04-20 03:32:50 +00:00
christos 3de451fe1e PR/5039: Greg A. Woods: vacation should look at Apparently-To: and
Delivered-To: headers.
2003-04-20 01:58:00 +00:00
christos ec5141c96b PR/3046: Chris G. Demetriou: ldd actually runs target programs.
This is the case only with a.out programs, and the manual page has been
changed to reflect that in the BUGS section. Since most our architectures
have been converted to elf, this is not an issue anymore.
2003-04-19 23:45:44 +00:00
christos b2ee3e403d improve on previous. only adjust the length when it exceed the string length. 2003-04-18 18:46:26 +00:00
christos c0b1f367f4 Recovery of vi files has been broken for a long while. This patch is a
stopgap measure to make vi recovery mostly functional on non-binary files.
The problem is that the db holding the recovery file can become corrupted,
in which case the data size of the line becomes huge. We use heuristics to
correct the size when we load a db in recovery mode. We could use a slightly
better heuristic (looking for ascii chars before correcting the length),
but it is not worth it. Another way would have been to trap the SEGV and
access data[len] and see if that worked, but that seemed exceedingly ugly.
2003-04-18 18:33:41 +00:00
christos b8dae40722 Don't invoke the grep for cleandir and obj targets. Suggested by
Juergen Hannken-Illjes
2003-04-18 14:43:49 +00:00
grant 7cc8271010 add -g for output in gigabytes. 2003-04-18 13:16:50 +00:00
grant 1c5efa0509 humanize_number() actually prints 'K' as the suffix for 1024 ('k' is
used for 1000).

minor whitespace fix.
2003-04-18 13:09:22 +00:00
lukem ef83aa34d9 clear errno before strto(u)l() if we're going to test it for ERANGE afterwards 2003-04-18 03:21:00 +00:00
sjg 414c86b6d1 math.h is not needed and including it introduces uncessary dependencies
on some systems.

PR: 21204
2003-04-17 15:57:52 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz 817f471b97 Sort options in usage. 2003-04-16 12:15:07 +00:00
wiz 64a9f92514 Sort options in SYNOPSIS, grammar fix. 2003-04-16 12:12:08 +00:00
salo fd97a8372a add pathchk(1) (hi jdolecek!) 2003-04-16 11:35:10 +00:00
wiz 7b31891279 Bump date for last. 2003-04-16 09:44:07 +00:00
wiz 571cc9f1c1 Dd month argument should not be abbreviated. 2003-04-15 20:40:28 +00:00
jdolecek 6080567943 bump date, and fix typo in macro name (.Nx, not .Nm) 2003-04-15 19:49:30 +00:00
jdolecek 938f344d52 add POSIX.2 patchchk(1) utility - check pathnames
from FreeBSD via Jonathan Perkin
fixes PR standards/11198 by Ben Harris
2003-04-15 19:46:38 +00:00
itojun 01757d86d6 make char array bigger where it seems too small and may overrun. 2003-04-15 08:07:10 +00:00
itojun faef962caf need 12 chars for %d; deraadt 2003-04-15 08:02:58 +00:00
mrg 0634cd7fff fix build errors 2003-04-14 03:02:28 +00:00
mrg 1492c6b657 merge less 381 2003-04-14 02:56:45 +00:00
mrg e0555382b4 import less 381. changes:
v375   4/7/02   Fix searching for SGR sequences; fix SECURE build;
                add SGR support to DJGPP version (thanks to Eli Zaretskii).
v376  6/10/02   Fix bug in overstriking mulitbyte UTF-8 characters
                (thanks to Jungshik Shin).
                Posted to Web page.
-----------------------------------------------------------------
v377  9/10/02   Fix bug in Windows version when file contains CR;
                fix bug in search highlights with -R;
                make initial buffer limit really be 64K not unlimited.
v378  9/30/02   Misc bug fixes and compiler warning cleanup.
                Posted to Web page.
-----------------------------------------------------------------
v379 11/23/02   Add -L option; fix bug with ctrl-K in lesskey files;
                improve UTF-8 overstriking and underscore overstriking;
                fix minor man page problems; change to autoconf 2.54.
v380 11/24/02   Make LINENUM same as POSITION.
v381 11/28/02   Make -N use 7 columns for line number if possible.
2003-04-14 02:09:56 +00:00
christos aa5b09ddbf PR/21117: Robert Elz: Makefile-ioctl.c mishandles dependencies 2003-04-13 05:04:00 +00:00
christos efc2b2a122 PR/9513: Graywolf: ypmatch fails on mail.aliases, mail.byaddr from Solaris 2003-04-12 09:13:28 +00:00
tsutsui 04568b646b Link libz after libmagic otherwise it fails on NOPIC ports. 2003-04-12 02:15:22 +00:00
thorpej 744fb366d9 Update for cached physical addresses in the pool caches. 2003-04-09 19:02:29 +00:00
aymeric a069ac021f Fix a bug where window(1) would (appear to) miss a character when two
characters are typed fast one after the other (<10 ms).
The visual effect under vi(1) was even more impressive. ;-)
This bug was actually introduced inadvertantly in 1995 in rev 1.4.
2003-04-09 16:25:10 +00:00
jdolecek f0f862a9f6 rename local macro blancmange() to SKIP_BLANKS(), to clarify what
it does and to better signal it might modify it's arguments
fixes PR bin/20546 by Peter Seebach
2003-04-09 09:30:40 +00:00
wiz 0aa9f9348a Fix part of last. 2003-04-08 21:09:40 +00:00
christos 9d921a9a8d PR/1523: Chris Demetriou: don't count a library as built, if there is no way
to build it.
2003-04-08 17:46:59 +00:00
jmmv d20b88e377 Homogenize paragraphs to begin with capital letter. Fixes my own PR misc/18773. 2003-04-08 17:25:15 +00:00
wiz a659d8b26d Bump date for last. 2003-04-08 11:56:07 +00:00
dsl d20417ef01 Add -t tabstop to synopsis for unexpand 2003-04-08 10:50:30 +00:00
dsl f15823e97e Add -t tabsize to fix bin/21058 2003-04-08 10:47:03 +00:00
dsl 80989e12c8 KNF 2003-04-08 09:44:47 +00:00
wiz a405f5c87c Some mdoc fixes; drop some unnecessary whitespace. 2003-04-07 06:04:09 +00:00
wiz 7631a5ff4b Use more mdoc macros. Some mdoc fixes.
Remove the following sentence from the BUGS section:
rlogin will be replaced by telnet(1) in the near future.
2003-04-07 05:56:14 +00:00
christos dfeeeb0064 remove -g accidentally committed 2003-04-07 04:01:32 +00:00
christos 0a5854c253 - stricter bad file format checks
- KNF
- use LIST macros
2003-04-07 04:00:59 +00:00
hubertf fa337680d6 Add -p option to rsh and rlogin to allow specifying a non-standard port
number.
2003-04-07 01:46:41 +00:00
simonb 09b326de30 Make the ID field a little wider. 2003-04-07 01:42:37 +00:00
wiz 1afb9ef148 NFSNET. From Igor Sobrado in PR 19691. 2003-04-06 20:14:41 +00:00
wiz 1f2f4a71fc It is spelled ARPANET. Igor Sobrado, PR 19691. 2003-04-06 19:39:46 +00:00
tshiozak 6ca2252907 - support for the additional code area of zh_CN.GB18030 locale,
- make sure that __nbrune_t is unsigned 32bit clean and
- fix wrong copyright notice in the last commit.
this patch is contributed by Takehiko NOZAKI <sigsegv at s25 dot xrea dot com>.
2003-04-06 18:33:23 +00:00
wiz 68caa698b2 Respect the law: Use A-law and mu-law as spellings as far as easily possible.
Inspired by Igor Sobrado in PR 19680.
2003-04-06 18:20:07 +00:00
lha 508f668a25 Don't build a separate kpasswd program, passwd can handle Kerberos
password changing. Fixes last part of bin/14988.
2003-04-06 16:35:37 +00:00
bouyer 726dca87dc Build custom getpwent.o only if USE_YP==no. Otherwise, chpass will not
get the current passwd entry from NIS. Problem reported by Stephen M. Jone
on tech-net.
2003-04-05 20:32:26 +00:00
lha 919a5f7ede Document when Kerberos will be used.
fixes part of bin/14988
2003-04-05 18:06:52 +00:00
wiz 2572f504d7 Replace > by \*[Gt] for HTML output. 2003-04-05 17:57:47 +00:00
perry 87cbf08503 Move exit status information to EXIT STATUS section, and note that we
exit >0 if errors such as missing or corrupted database files are
encountered.
2003-04-05 16:46:00 +00:00
perry fa066122ba 1) print an error and exit if fed a directory as a database
Patch submitted by Soren Jacobsen in PR bin/21016, but
   heavily edited by me.
2) error and exit out if you can't open a database instead of just
   warning and going on.
2003-04-05 16:36:38 +00:00
pooka b70c4e8541 use ${CAT} instead of cat 2003-04-05 12:30:51 +00:00
pooka 92cfb1b295 When not using TOOLS, compile magic using the newly-built binary
as suggested by Ken Wellsch in bin/20996
2003-04-05 11:33:16 +00:00
wiz caa2d78a26 Add missing "to be". From Jim Bernard in PR 21008. 2003-04-04 19:21:21 +00:00
atatat a88940798c Add some more intricate groveler options:
-A address   Dumps the vm_amap structure found at address.

     -E address   Dumps the vm_map_entry structure found at address.

     -S address   Dumps the vmspace structure found at address.

     -V address   Dumps the vm_map structure found at address.

This required reorganizing the code a little, which led to some
cleanup (yay!).  These new methods are executed without any extra
privileges, so you need read access on /dev/mem or on the kernel core
into which you are digging.

This should be useful for, eg, examining amaps are corrupt when being
destroyed, which can cause a kernel panic (and, hence, are no longer
connected to a map entry, or the map entry is no longer connected to a
vm_map/vmspace).

The options in the man page have also been reorganized.
2003-04-04 03:49:20 +00:00
perry df28067f6e Return non-zero exit status if the listed programs aren't found.
Submitted by Gabriel Gonzalez in PR bin/20984
I deviated from the patch by returning 2 if only some programs were
located and 3 if none were. The submitted patch returned 1 and 2,
respectively, and 1 is already used for general error.
2003-04-03 18:16:45 +00:00
itojun e7e7c84a6a sync w/ 3.6.1 2003-04-03 06:21:31 +00:00
christos cf0848bff3 PR/13629: Rick Byers: Don't trust data from the database file. 2003-04-03 01:20:26 +00:00