Commit Graph

6687 Commits

Author SHA1 Message Date
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
christos 28ce846dd4 - don't do write(2) hacks. use stdio and check for errors.
- send messages only from the child process to avoid races.
- ansify.
2003-04-02 19:43:02 +00:00
fvdl 42614ed3f3 Add support for UFS2. UFS2 is an enhanced FFS, adding support for
64 bit block pointers, extended attribute storage, and a few
other things.

This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.

Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
jrf 9350d70e69 Added MAKESYSPATH environment variable as per jmmv's suggestion in
PR 18030
2003-04-01 14:00:58 +00:00
perry 9f3d802514 audiofiles -> audio files 2003-03-31 02:40:25 +00:00
perry da63de702d refreshs->refreshes
reactived->reactivated
intransit->in-transit
from Igor Sobrado, PR misc/19700
2003-03-31 02:16:37 +00:00
perry 6c607318b5 depedencies->dependencies (Igor Sobrado, PR misc/19700) + recognised->recognized 2003-03-31 01:57:39 +00:00
perry fc1e655234 shellscripts -> shell scripts (from Igor Sobrado in PR misc/19700) 2003-03-31 01:55:23 +00:00
perry d60896ecaf users's -> user's (from Igor Sobrado in PR misc/19700) 2003-03-31 01:53:27 +00:00
perry 2bb5ccc638 progams->programs (Igor Sobrado, PR misc/19700) + homegrown->home-grown 2003-03-31 01:46:29 +00:00
wiz 39d7bf95fd PDP-11 instead of PDP 11. Igor Sobrado in PR 19678. 2003-03-30 20:50:22 +00:00
christos c1587f4d47 bring in fixes from OpenBSD:
- use varargs properly.
- pid_t
- better handling of error conditions on forked jobs.
2003-03-29 21:41:04 +00:00
perry 02b57cf8a2 Fix a bug introduced by Christos Zoulas in version 1.4.
He accidently moved the call to block the SIGCHLD to the wrong side of
the call to findchild().
Caused a coredump in one in every N thousand invocations of mail,
which I have been hunting for literally years.
Fixes PR 19696 from Mason Loring Bliss, too.

By the way, this is a prime example of why declarations of the form

struct foo *p = funcall();

are pure liquid evil.
2003-03-29 21:27:38 +00:00
perry a3acb5bc30 facilty->facility, from Igor Sobrado in PR 19670 2003-03-29 18:05:29 +00:00
he d614a5830d Introduce a "size_t" variable for use with sysctl(3).
Fixes compile problem observed on evbarm.
2003-03-29 18:01:21 +00:00
atatat 2242d20a09 Add the capability to dump the struct vm_amap and the am_anon,
am_bckptr, am_slots, and am_anon data, if the vm_map_entry has an
amap.  This adds three new debug "bits" to the -D argument, so the
namei cache dumping "bit" has been moved up.

Also, change the * that gets emitted with -vv to indicate the number
of pages skipped and the size of the area (in kilobytes).
2003-03-28 23:10:32 +00:00
msaitoh bc44d1eef4 catch SIGPIPE, too. 2003-03-28 07:38:15 +00:00
lukem aff92a7756 fix minor buglet in previous 2003-03-27 13:21:48 +00:00
lukem b6a63b16dd * Add support for "-g group", to send messages to users in this group.
This option may be specified multiple times, and any user in any of the
  specified groups will receive the message.
  (From OpenBSD, with tweaks from FreeBSD fed back into OpenBSD).

* Ensure that paths are MAXPATHLEN.  (From OpenBSD)

* Display timezone when printing time.  (From FreeBSD PR 17867 via wall.c 1.14)
2003-03-27 13:16:19 +00:00
pooka 82e0198241 use file from dist 2003-03-26 00:05:02 +00:00
sjg 62d1f2d214 Comment in ParseDoSrc was no longer accurate.
Explain the difference between handling of src node
in ParseDoSpecialSrc cf. ParseDoSrc.
2003-03-23 22:48:35 +00:00
sjg 50ca80687f We are supposed to pass the node for our expanded src to ParseAddDep
for each entry in allsrc.  Just like ParseDoSrc.  The only difference
in handling these special expanded srcs in in the call to ParseLinkSrc.
2003-03-23 05:11:22 +00:00
sjg 77076c2d51 ParseDoSpecialSrc: since we're already being called for each target
make it depend only on the expansion of src that matches.
Otherwise given:

a b c:  ${.TARGET}.x

a b and c will each depend on a.x, b.x and c.x

Further, we only _need_ to do ParseDoSpecialSrc if a .WAIT appears
in the source list - so establish that up front.
2003-03-22 23:41:02 +00:00
jdolecek 842b4adcdc it's not necessary to limit the service name artificially to 8 characters
in inet*print() - only first 'width' characters of the 'host.service'
string would be printed anyway, so allow full service name if string would fit
2003-03-22 15:18:36 +00:00