Commit Graph

6667 Commits

Author SHA1 Message Date
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
christos
bef3a7f735 don't mess with suffix rules. 2003-03-21 19:14:53 +00:00
sjg
9db7e8cb6d Missed a s/tn->name/pref/ 2003-03-21 16:48:21 +00:00
sjg
0220f09cfc Add ParseDoSpecialSrc() to handle srcs that refer to ${.TARGET} etc.
These are expanded for each target (set in its own context) and
ParseDoSrc() is then called for the expanded src.

PR: 20828
Reviewed by: christos
2003-03-21 15:52:57 +00:00
jdolecek
8e730a41f8 this builds with WARNS=2 2003-03-20 16:15:28 +00:00
jdolecek
8cf8af1c13 get rid of one memmove() (not very significant)
remove ()'s from error messages
move some error checks immediatelly after appropriate realloc() calls
2003-03-20 16:13:03 +00:00
christos
2bdc2add9c PR/20818: Martin Husemann: Split does not handle >= 2G files. 2003-03-20 14:12:49 +00:00
dsl
9be8ac5294 Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.
2003-03-19 11:36:32 +00:00
fvdl
083af7aab4 Back out rev 1.43 for now, it seems to create some new problems (see
the sysinst Makefile).
2003-03-18 01:30:54 +00:00
jdolecek
9fe8da698b we really don't need to print random stack garbage on the end of dump 2003-03-16 09:59:09 +00:00
jdolecek
75f054650f constify ptrace_ops[] 2003-03-16 09:44:25 +00:00
wiz
5606e5cc70 Correct spelling of "specification". From PR 20717 by Igor Sobrado. 2003-03-15 19:18:41 +00:00
christos
be6d6ca02b PR/18984: John Heasley: telnet spins on dead tty 2003-03-15 04:48:22 +00:00
lukem
d8108972ba add dependency on sigdesc.h to commands.c 2003-03-14 22:56:14 +00:00
thorpej
c5007c219b Add a -X option, which prevents make(1) from putting variables
set on the command line into the environment individually.  This
can be useful on systems which have a tight limit on the size
of the argument space.
2003-03-14 05:19:43 +00:00
thorpej
deff8aa15f __APPLE__ has <stdint.h>, too. 2003-03-14 04:34:27 +00:00
he
275c432125 Make this compile again. Cast char variable to int before comparing
> 0x7f, so that this gives the same result for machines with signed
and unsigned char.
2003-03-13 20:49:11 +00:00
thorpej
213cc4baf9 Don't do the madvise(2) call if __APPLE__. Even though madvise(2)
exists on Mac OS X, and we pass valid arguments, the call always
results in EINVAL, and the warning annoys me.
2003-03-13 18:23:02 +00:00
mjl
79ea3ffca9 Fix handling of control and non-ascii charachters. Print a space
instead of what happens to be at that position (out of bounds)
in the char array. Prompted by OpenBSD PR/3147.
2003-03-13 12:13:43 +00:00
mjl
15e3b4e9bf Correct handling of empty arguments as reported in OpenBSD PR/3146.
While there use strlcpy instead of strncpy and STDOUT_FILENO instead of 1.
2003-03-13 11:57:23 +00:00
augustss
177beb544c Two more __RCSID checks that I missed. 2003-03-12 18:32:51 +00:00