Commit Graph

6883 Commits

Author SHA1 Message Date
itojun aa5672d8c5 sscanf overrun 2003-05-17 01:02:01 +00:00
dsl 826d79a6f7 Re-instate last change, the sysinst I've just commited doesn't stand
a chance unless those fields are const char *.
2003-05-16 19:57:22 +00:00
dsl cd7432d0cb Add an extra target to the xxx.mk file that is equivalent to 'all', but which
doesn't pick up baggage from bsd.own.mk and bsd.prog.mk.
This stops parallel makes exploding because they try to build ${PROG} to soon.
Fixes toolchain/21563 (with change to src/distrib/common/Makefile.crunch).
Upped version of crunchgen to 0.3
2003-05-15 17:49:46 +00:00
dsl d9380c052a Print rval[1] if non-zero and present in the trace entry.
To get both fd numbers for pipe().
2003-05-15 12:57:54 +00:00
itojun 5bce78caa7 use strlcpy 2003-05-15 01:00:07 +00:00
itojun 01b2c2d070 simplify by asprintf/strdup 2003-05-15 00:52:53 +00:00
itojun d83368eddb use strlcpy 2003-05-15 00:47:48 +00:00
itojun 47d22404d4 use proper #ifdef to determine behavior (__KAME__) 2003-05-14 23:36:32 +00:00
itojun 56d0ea03cf >implement kerberos over ssh2 ("kerberos-2@ssh.com"); tested with jakob@
>server interops with commercial client; ok jakob@ djm@

markus@openbsd
2003-05-14 18:22:07 +00:00
wiz d75f1336b3 Uppercase URL. 2003-05-14 14:30:59 +00:00
wiz de87ca793d constant usually has two n. 2003-05-14 12:45:06 +00:00
wiz ae83539ff6 setup -> set up. 2003-05-14 12:22:56 +00:00
dsl 606b795c6a Add a .WAIT to ensure that all the program objects are built before
trying to build the crunched binary.
Might fix toolchain/21563
2003-05-14 11:20:01 +00:00
dbj f1e0ecadf7 remove dependencies on ${LIBC} ${LIBM} and ${LIBTERMCAP} static libraries
from host tool targets.  Commits fix from PR toolchain/21495
2003-05-14 00:24:06 +00:00
christos 2d67d54fef PR/21568: Martin Husemann: Shutdown gets permission denied error from wall 2003-05-13 23:05:34 +00:00
tshiozak f664dc53f3 zero-clear the file structures, to fixate paddings.
this change solves the illness pointed out by Nino Dehne in tech-userlevel
list.
2003-05-12 06:05:52 +00:00
jmmv afa06162bc Remove extra space in usage message. 2003-05-10 19:21:40 +00:00
jmmv e4fa47aa78 Use `-ne' to compare numbers instead of `!=' in the example. 2003-05-10 17:02:04 +00:00
simonb 729eb06bdf If no files are specified on the command line, put { ".", NULL } in
it's own little array instead of writing over argv.  Fixes problems
where du shows up in ps as ". fts_open `%s'" (and shorter or longer
combinations of that depending in what argc was).
2003-05-10 02:09:39 +00:00
dsl 13d371ab4c Make the prog.mk makefile run make in each of the target directories and
then build the program itself.
This means that changes to any of the program source files cause the
crunched binary to be rebuilt.
Seems to work ok with the sysinst ramdisks.
2003-05-09 12:10:15 +00:00
lukem b86763939b Revert part of previous, and remove "const" from "char *opt_name" and
"char *title", since it causes compile problems for the only program
that uses menuc (sysinst).
2003-05-09 12:07:53 +00:00
dsl 66fb8e715d Need 'const' on local variable - since I added const to the structure field. 2003-05-09 10:24:50 +00:00
dsl 13d47d34ac Finger trouble in previous commit. 2003-05-09 10:21:43 +00:00
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
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
augustss c8e6437c5e More tests if __RCSID is defined. 2003-03-12 18:26:32 +00:00
augustss a24a8f129a Do the defined(__RCSID) song and dance to enable cross compilation. 2003-03-12 16:46:33 +00:00
tshiozak 5e62671b2f changes for cross build on FreeBSD box.
- rename some macros and types defined in runetype.h.
 - move declarations of some global symbols to rune.h from runetype.h.
 - make sure the target sources use rune.h and mklocale use runetype.h.
I tested them on FreeBSD-4.6.2 box (./build.sh -m i386 tools).
2003-03-11 17:23:07 +00:00
tshiozak 4f31053655 rename _CTYPE_x to _RUNETYPE_x for avoiding compile error on FreeBSD. 2003-03-10 21:18:50 +00:00
tshiozak 75e29ba505 some changes around mklocale:
- clean up cpp directives.
- stop including rune.h from mklocale.
- stop using _BSD_RUNE_T macro.  instead, use int32_t directly in runetype.h.
- move _DEFAULT_INVALID_RUNE to runetype.h.
These were for historical reason on porting rune from FreeBSD,
but it seems that these are no longer reasonable but troublesome
under the current NetBSD build system.
additionally:
- runetype.h -> locale/runetype.h in mklocale, because this might conflict
  to FreeBSD's one.
2003-03-10 20:41:29 +00:00
tshiozak 947243ba1e revoke using PRIu32 macro and add fallback for UINT32_C macro,
because these do not exist on rather older systems.
XXX: I wonder someone will add them to tools/compat.
2003-03-10 09:37:04 +00:00
lukem 8bfad4ad7a Use sleep(1) instead of usleep(1000000) to sleep for a second, since
usleep() doesn't support an argument >= 1000000.
Problem noted & fix provided in [bin/20644] from Dave Huang.
2003-03-10 08:04:15 +00:00
grant 7d55c4c504 fix a bogus error message when given a HTTP URL with a trailing
slash.
2003-03-07 08:13:48 +00:00
thorpej ae754e0c76 Make hexdump a host tool. 2003-03-07 01:14:30 +00:00
jrf c93c016461 Patch from PR 12304 submitted by Matthias Buelow mkb@moghedien.mayn.de.
Patch reviewed by Itojun itojun@netbsd.org.
2003-03-05 01:10:46 +00:00
tshiozak 498e0550aa use UINT32_C and PRIu32 macros instead of 0x...U and %u. 2003-03-03 08:49:15 +00:00
tshiozak 8bc967f427 sync with the last change of runetype.h; %ld -> %u. 2003-03-03 08:30:21 +00:00
wiz b96edb2bae Bump date for RMID support. New sentence, new line. 2003-03-03 07:22:58 +00:00
wiz 2bc4fd781d Sync usage with options; sort option string; handle N instead of
non-existing U option.
2003-03-03 07:18:37 +00:00
wiz 5f20c96d59 Bump date. Sort options, sort SEE ALSO. 2003-03-03 07:17:35 +00:00
itojun 424153ef69 TF_PROTO1/2 mixup. from itou makoto 2003-03-02 01:59:06 +00:00
enami 3d76616fbe No need to invoke the make command so many times. It can handle all
the target specified in command line.
2003-03-01 08:36:05 +00:00
thorpej 3640957b38 If the NetBSD version note looks reasonable, parse it and display the
info.
2003-02-28 18:24:58 +00:00
lukem c84f3c0dd2 crank dates 2003-02-28 09:54:51 +00:00
lukem e7d3948066 crank version 2003-02-28 09:54:20 +00:00
lukem a44810ddeb Crank dates on TNF copyright.
Remove UCB & WIDE copyrights; the progressbar functionality was
written entirely by me under the TNF copyright.
2003-02-28 09:53:49 +00:00
matt 1800f61318 #undef TYPE(a) is not legal. Change to #undef TYPE /*(a)*/ 2003-02-28 05:49:42 +00:00
matt 80623b55d4 Remove unused printf argument. 2003-02-28 05:48:58 +00:00
matt ef69aa80b5 Add missing include 2003-02-28 05:48:25 +00:00
lukem 7106b560a6 add a cast to appease SUNWspro cc. noted by grant@ 2003-02-28 04:06:55 +00:00
enami acf5c11cc1 Don't use uninitialized variable. 2003-02-27 08:07:14 +00:00
atatat 6d45c1cd99 Clean up code in places, add some more (possible) submap names, make
better use of the submap names when dumping the kernel map, clean up
the "interface" between the main and LOCKDEBUG dependent pmap modules,
and make the heap identification work better.
2003-02-27 04:10:36 +00:00
christos 0d2dc54013 keep track of the two proc entries significant to the utmp entry. The one
indicated by the pid in struct utmpx [or ftpd hack], and the one that is
associated with the controlling tty, is in the foreground process group,
and has most cpu. If the second one exists, use that one, else use the first
one.
2003-02-26 19:10:28 +00:00
fredb 1709947012 Print the command in parenthesis, if kvm_getargv2() returns no
arguments. This lets "xterm -e command" display as "(command)".
Reviewed by christos.
2003-02-26 19:01:54 +00:00
christos 3a6ece1341 don't trust sizes comming in from the elf file. 2003-02-26 18:36:24 +00:00
christos e8ec3465f7 make this compile 2003-02-26 18:35:42 +00:00
christos d85507235b fix a memory allocation issue. 2003-02-26 18:31:21 +00:00
christos 8399be1bba keep track which entries are utmp and which are utmpx, so we can print
them on the stale message.
2003-02-26 15:04:10 +00:00
christos c7d4de107a - Remove SUPPORT_FTPD_UTMP flag. Enable it only for utmp entries, utmpx does
not need it since it can get the pid from the utmpx structure.
- If the line is not found, and the pid is present (from utmpx) use that to
  determine the process information for that particular entry.
2003-02-26 15:01:09 +00:00
sjg cc9d340ac8 Add -B to MAKEFLAGS so that it propagates to sub-makes.
This allows one to use -j1 -B at some point in a tree to
overcome a -jN (which is the main reason one would use -B).
2003-02-26 08:59:12 +00:00
matt 65e5548a17 Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.
2003-02-26 06:31:08 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
dsl a5f7364038 Fix the output of NUL bytes within %b formats.
(Approved by Christos)
2003-02-24 14:42:27 +00:00
dsl 9f46bb077a Create subwins that end one line from the bottom of the screen even
after the window is resized.
2003-02-24 10:10:00 +00:00
jhawk c3ac22a6a8 markup: the ";" for -exec, -ok, and -execdir is a seperate word from
the last argument
2003-02-23 20:01:31 +00:00
jhawk 93fccbf4ba eleminate forward decl of 'struct stat' 2003-02-23 14:43:25 +00:00
jhawk d44b698645 delint: trailing commas in enum definitions are prohibitted
knf: instantiate macros with #define<TAB>, not <SPACE>, and also align.
2003-02-23 14:41:30 +00:00
atatat 87437f0b78 Oops. Missed some possible UVM_ET_IS*() macro uses. 2003-02-23 01:08:29 +00:00
atatat fb9b07a6a7 Properly print the VM_MAP_TOPDOWN flag if it is set, document the
VM_MAP_TOPDOWN flag (and the VM_MAP_DYING flag, since it never got
documented before), minor tweak to one of the examples, and use the
UVM_ET_IS*() macros instead of doing the same work manually.
2003-02-22 17:45:04 +00:00
atatat ebe81c7ec3 Fix the sample output in one of the examples 2003-02-21 18:50:10 +00:00
jmmv 7eda74b7a6 Add missing dot to the `-' option. Ok'ed by wiz. 2003-02-21 11:17:50 +00:00
simonb 81dc935e33 Show the last "track" as the start of the lead-out area instead of a
bogus track number.  Remove a magic number and (slightly) simplify the
TOC entry display function a little.
2003-02-19 12:55:58 +00:00
perry b88a15cf9c Add some missing voids. 2003-02-18 19:21:33 +00:00
msaitoh f81acfd9b4 The name of the working directory for each prog is converted by "s/-/_/".
The directory list to be removed (i.e. make clean) has to be set with
the converted name.
2003-02-18 18:12:07 +00:00
dsl 34e0475375 Pivot the disk stats into extra lines if they run out of columns
(approved by christos)
2003-02-18 14:55:05 +00:00
dsl c4ccc4eaf4 Fiddle with screen layout to generate room for longer labels on the
interrupt count fields.
(approved by christos)
2003-02-17 19:30:33 +00:00
augustss 34592076d4 Make it play RMID files as well. From bin/20388, Quentin Garnier. 2003-02-17 18:00:27 +00:00
christos 8475773db1 Add wtmpx support. 2003-02-17 15:08:57 +00:00
christos 46a5ddc0d3 fix static length variables. 2003-02-17 13:56:28 +00:00
wiz 8653efef97 Describe class field correctly. Addresses PR 20370 by Pavel Cahyna. 2003-02-16 16:18:23 +00:00
grant 2ceb845887 The correct capitalisation of 'NetBSD.org' is (you
guessed it) 'NetBSD.org'.

some mdoc fixes.
2003-02-14 15:59:16 +00:00
bouyer a39a98c45d Implement rquota RPC version 2, compatible with the linux implementation,
as proposed on tech-userlevel on Dec 06 2002. This allows to retrieve
group quota informations from NFS servers.
2003-02-14 14:55:58 +00:00
dsl c22a42ecd8 Avoid displaying "intr" for all interrupt counter titles
(approved by christos)
2003-02-13 08:09:33 +00:00
christos f611664450 PR/20317: Johnny Billquist: Clear timestamps upon freeing entries. 2003-02-12 17:39:36 +00:00
grant d36ebd361d change a couple #ifdef's so /usr/bin/progress doesn't stomp all over
the tty if it's not in the foreground.

ok'd by jhawk.
2003-02-12 15:18:28 +00:00
ross 0328c52302 Sigh, use an even more elaborate wait loop; it turns out we have a child
before we even start when run from sysinst. Thanks also Takao Shinohara.
2003-02-12 00:58:34 +00:00
drochner 2d794f4e34 fix typo in comment 2003-02-11 10:43:29 +00:00
yamt e913851a15 use Ar for option arguments. 2003-02-11 08:05:29 +00:00
dsl d616c663f8 Resize windows on SIGWINCH and restart from SIGTSTP
(approved by christos)
2003-02-10 23:59:48 +00:00
grant 4352e01ddb remove section name comments -- they're in the template. 2003-02-10 23:59:16 +00:00
ross 7784308321 replace linux examples with netbsd examples 2003-02-10 21:44:41 +00:00
ross 182f33ad44 Fix a race that can abort a sysinst run.
Closes bin/20275, thank you Takao Shinohara: good analysis.

This program appeared less than 3 weeks ago and it has already been
pulled up to 1.6.1?  At the last minute?  And with serious bugs?
ISTM that the release branch isn't supposed to work that way. It
isn't stable, it had 4 patches in 2 days, and has averaged a
patch every 4 days during its short lifetime.
2003-02-10 09:10:01 +00:00
fvdl 3e5d4ebe28 Get stat info and pass it to the object map function. 2003-02-06 12:40:21 +00:00
gmcgarry a28de83dfc Improve Xrefs. Give credit to the real author. 2003-02-05 05:10:58 +00:00
perry 1f4ad37fe3 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
perry 8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
thorpej 9abf2fa449 Update for callout changes, and show TCP timers in relative, rather
than absolute ticks.
2003-02-04 01:22:08 +00:00
thorpej 7d9af30957 Test CALLOUT_PENDING, not CALLOUT_ACTIVE. 2003-02-03 23:37:09 +00:00
christos 16c1b99bf8 Open the file with O_NOFOLLOW, and only use if it still has one link (from
OpenBSD)
2003-02-03 17:45:20 +00:00
jdolecek 023b82a806 add Columbia tragedy
submitted in PR bin/20163
2003-02-03 17:03:27 +00:00
kleink 71d7654509 Add sysconf(3) knobs for recent additions. 2003-02-02 20:33:05 +00:00
jdc 1b61e72004 Check for equivalance between "se" and "ue" when unsetting them.
Reset the other if unsetting this one also unset the other.
2003-02-02 17:43:16 +00:00
christos 0fcef5865c undo mallocvar.h changes! 2003-02-02 02:35:58 +00:00
matt 2954b3d5d7 The last NULL entry should not be printed on missing symbols. 2003-02-01 20:52:58 +00:00
dsl b3467bbf38 When disk activity exceeds 100kB/s divide length of bar by 10s and report
factor on RHS screen.
(approved by christos)
2003-02-01 19:12:30 +00:00
tron 1161776951 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 18:35:44 +00:00
tron 3f39a3d045 Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 18:31:09 +00:00
wiz 2f4d0544fa Fix sendto return value check (incomplete change in 1.14).
Noted by Brian Ginsbach in PR 19842.
2003-02-01 16:42:31 +00:00
thorpej c9b2749b7c Update for extensible malloc types. 2003-02-01 06:29:14 +00:00