Commit Graph

11883 Commits

Author SHA1 Message Date
sjg cf6e63e419 Document the fact that lack of shell meta chars in a command
results in direct exec in compat mode.
2012-09-17 01:23:45 +00:00
joerg ed602fb487 Don't use const foo const as type, one const is enough. 2012-09-13 21:44:49 +00:00
simonb 809c33aadd Use getc instead of fgetc.
This is approximately five times faster for "comm -23 a b" where a and b
are identical 100MB files.
2012-09-05 04:01:23 +00:00
sjg ea86d17992 Cast sizeof() to int, which is sufficent and consistent with other use
within make.
2012-08-31 07:00:36 +00:00
pgoyette 4e59942717 Cast sizeof() to (ssize_t) to avoid build errors. 2012-08-31 02:59:37 +00:00
christos fbb3db86f7 Don't support sysctl for the tools version of config. It is too complicated
to do so, and config -x is not used during the build.
2012-08-31 01:23:49 +00:00
wiz d5a95690ed Add an s. 2012-08-30 22:35:37 +00:00
sjg aede2a76f4 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 22:09:58 +00:00
sjg 170700dd50 Add a knob to control whether -V fully expands a plain variable by default.
The default retains the traditional NetBSD behavior, but the knob
can be set so that FreeBSD can retain their expected behavior.
This is a compromise to be sure.

Add a debug flag -dV to override the above, so that regardless of
the knob setting, the raw value of a variable can be easily seen.
2012-08-30 21:17:05 +00:00
wiz 686e48a4a3 Use more markup. Wording. 2012-08-30 12:42:41 +00:00
christos c9ffe47f54 bump date. 2012-08-30 12:32:07 +00:00
christos 8aaed51273 make config -x look at the booted kernel first. 2012-08-30 12:31:25 +00:00
jmmv cdcce7d462 Add a new "-P prefix" option to mkdep(1).
This option prepends the string given in prefix to every target
filename.  This is useful for programs that have source files in
multiple subdirectories and a single Makefile that references all of
them explicitly (without using the VPATH functionality because there
can be files with the same name in each subdirectory).
2012-08-26 22:37:19 +00:00
wiz 30cf30e561 Make order of words in comment consistent with that within other
comments (helps with search actions).

Patch from Bug Hunting.
2012-08-26 14:26:37 +00:00
wiz 87cd44cb03 - improve spelling;
- improve wording;
- complement list of primaries that prevent `-print' from being
  used implicitly;
- bump date.

Patch from Bug Hunting.
2012-08-26 14:26:07 +00:00
wiz 5559f4329b - synchronize `usage' message with man page.
Patch from Bug Hunting.
2012-08-26 14:14:16 +00:00
wiz c33cd716b3 - improve punctuation;
- improve wording (explicitly mention the name of the optional
  additional arguments within the text, using macros as well);
- create separate section, and use `.Ex' macro, for exit status
  information;
- bump date.

Patch from Bug Hunting.
2012-08-26 14:13:50 +00:00
wiz fcb39fb954 Various improvements:
- remove redundant mentioning of option names within their description;
- improve (and make consistent) punctuation;
- add missing empty line;
- remove superfluous white space;
- extend `-iname' primary description (copying text from `-name');
- general wording improvements;
- improve macro usage;
- remove double spaces from examples (it's readable well without);
- reference re_format(7) in `SEE ALSO' (as it's mentioned in the
  text several times);
- bump date.

From Bug Hunting.
2012-08-16 13:34:10 +00:00
joerg 9edf9a0457 Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
2012-08-10 12:10:27 +00:00
christos 2be2cb6bfb exclude programs for MKRUMP = no 2012-08-08 14:13:46 +00:00
christos 7dd78711cb fix bogus test. 2012-08-04 15:50:16 +00:00
ginsbach fc9b30fdd2 - Fix optional argument options (e, i, n, s) in SYNOPSIS and DESCRIPTION
+ First three take two optional arguments
  + All require no space between option and optional argument(s)
  + Make sure that -e and -i similarly describe optional [char] and [gap]
2012-08-01 02:36:17 +00:00
ginsbach 9b02928106 Minor tweaks to usage:
- Sort options to match pr(1) SYNOPSIS (suggested by wiz)
- Add missing -T timefmt option
2012-08-01 02:27:48 +00:00
wiz f5baaa3a80 Fix error in SYNOPSIS, sort. 2012-07-27 20:49:48 +00:00
wiz 8a3946005d Mention option arguments in DESCRIPTION. 2012-07-27 18:34:35 +00:00
wiz e9890e4637 New sentence, new line.
Use Aq or Ao/Ac instead of \*[Lt] \*[Gt].
Remove duplicate RCS Id.
2012-07-27 18:28:53 +00:00
christos 9c7d3306a7 add an option to parse human dates. 2012-07-25 01:23:46 +00:00
ginsbach aa013a1b5e - Fix PR 19468 by adding -f and -p options to pr(1).
Changes adapted from patch by Ryan Younce and FreeBSD.  The provided
  patch was not used directly as the changes didn't mimic the System V
  origins of these options.  System V pr(1) does not pause for empty files.
  These changes follow that precedent.

- Improve man page description of the -i option.
2012-07-24 02:13:04 +00:00
njoly d8b2422bad mremap(2) return an pointer just like mmap(2). 2012-07-17 14:39:08 +00:00
he a2cf252b51 Undo the non-sharing of the "toplevel" jmp_buf between main.c and tftp.c,
so that we don't get a core dump if a transfer time-out is experienced.
Also, get rid of an extranous newline printed in the case of time-out.
2012-07-16 09:20:26 +00:00
abs 2a4ad09fef racd *should* be ejectable. Kernel side to come 2012-07-14 20:41:27 +00:00
wiz b5d2b90f6c Improve wording, fix typo, bump date.
From Bug Hunting.
2012-07-08 22:48:32 +00:00
matt 9a1cb11528 Make sure stuff using Obj_Entry is compiled correctly for ELF32 or ELF64. 2012-07-08 00:53:44 +00:00
wiz 471b14b657 - Even if it may be obvious, actually explain what ``{}'' means
with ``-exec ... {} +'';
- make wording more consistent;
- bump date.

From Bug Hunting.
2012-07-07 20:45:09 +00:00
wiz 14716e14b6 Bug Hunting:
improve wording
2012-07-06 14:10:06 +00:00
wiz 4ac276bf48 From Bug Hunting:
- de-capitalize ``usage'' in `usage' message;
- synchronize `usage' message with man pages.
2012-07-06 09:06:43 +00:00
wiz 06bcaf248a From Bug Hunting:
- correct / improve macro usage;
- (re-)add an actual description in `DESCRIPTION' section;
- synchronize argument name to `-j' option;
- improve wording;
- bump date.
2012-07-06 09:05:26 +00:00
wiz f6de61aefa From Bug Hunting:
- sort options in `SYNOPSIS' and `DESCRIPTION' sections;
- correct / improve macro usage;
- synchronize argument name to `-s' option;
- improve punctuation / wording;
- augment `SEE ALSO' section;
- bump date.

While here:
Use Sq for single characters instead of Dq.
Use Aq instead of \*[Lt]...\*[Gt].
Mark up NULL with Dv.
2012-07-06 09:03:34 +00:00
is 706521afb9 As discussed on tech-net@: Don't display expected EHOSTUNREACH for all but
the last connect attempts in terse mode.
2012-07-04 06:09:37 +00:00
sjg 645c5e28e0 An X!= command, can cause Shell_Init() to be called before Job_ParseShell().
Job_ParseShell() should call Shell_Init() again if needed
to ensure shellPath is correct.
2012-07-03 21:03:40 +00:00
christos cc70084500 add -w as an alias to -m 2012-06-30 21:31:15 +00:00
jdf 6e4b17c46b Small fix: Changed 'Nm .' to 'Nm' (introduced by me before). 2012-06-27 22:57:27 +00:00
jdf ebac77ef57 Various formatting changes:
* Remove superfluous Pp macro (fixes mandoc(1) warning)
 * use Xr macro instead of Nm where appropriate
 * escape punctuation (so Ic actually 'sees' it) (fixed mandoc(1) warning)
 * remove redundant argument to successive Nm macros
 * remove double spaces

Patch supplied by Bug Hunting.
2012-06-27 22:31:26 +00:00
riastradh 9a313cc58d Clean up #includes in progress(1).
Sort them, omit needless ones, and add omitted needful ones.

Omissions revealed by pilfering the code and trying to build it on
Mac OS X.  We ought to have a better way to reveal these omissions...
2012-06-27 22:07:36 +00:00
sjg 7f9f018fd1 gcc 4.2 doesn't like externs inside functions 2012-06-27 17:22:58 +00:00
riastradh 360ba4cb54 Omit outdated cryptographic claims as noted in PR 44160.
Interested readers can follow the references or read Wikipedia; this
is the wrong place to explain cryptographic hash functions and give
security advice.
2012-06-25 02:32:12 +00:00
christos d28b45a4f8 better to print (null) than core-dump 2012-06-20 18:50:11 +00:00
wiz 28acebf1eb Improve wording and macro usage; bump date.
From Bug Hunting.
2012-06-20 17:55:06 +00:00
wiz 2414f9206a - remove trailing white space;
- synchronize argument name to `-d' in `usage' line with man page.

From Bug Hunting.
2012-06-20 17:53:39 +00:00
wiz 0f816dd2e2 cut.1:
- bump date;
- synchronize argument name to `-d' (prefer ``string'' above
  ``delim'' since it's not just a single character that can be
  given (even though only one, being the first one, is actually
  used));
- improve wording;
- use macro for `EXIT STATUS' section.

From Bug Hunting.
2012-06-20 17:53:19 +00:00
sjg e47157f5d2 Do not include make_malloc.h or declare progname,
both are already done in make.h
2012-06-20 17:46:28 +00:00
wiz f602473a1a - Use more consistent wording;
- create separate section, and use `.Ex' macro, for exit status
  information.

From patch by Bug Hunting.

Bump date.
2012-06-20 09:56:18 +00:00
sjg d912c0b39e Add unit-tests for .for 2012-06-19 23:25:53 +00:00
manu f8e3cc05a1 Fix off-by-one in hexdump display (getextattr -x), which displayed a
trailing garbage byte.
2012-06-17 08:09:29 +00:00
christos e11304f45e PR/46608: Jim Bernard: Add xz conversion "X" 2012-06-17 03:52:32 +00:00
joerg b1e1b1d4c2 Replace __dead, __unused and the various printf format attributes
with versions prefixed by MAKE_ATTR_* to avoid modifying the
implementation namespace. Make sure they are available in all places
using nonints.h to fix bootstrap on Linux.
2012-06-12 19:21:50 +00:00
christos a7879b44e9 make sure that signal handlers are always initialized. 2012-06-12 19:03:26 +00:00
wiz 8e7413b140 Declare enomem __dead for clang. 2012-06-10 21:44:12 +00:00
wiz 459b76f867 Remove a __dead for an undead function (clang errors out otherwise). 2012-06-10 21:44:01 +00:00
dholland 089467b866 Fix description of -o option. Noted by Snader_LB on freenode. 2012-06-10 17:45:59 +00:00
wiz 82200bc92c Consistenly mention columns and fields. From Bug Hunting in PR 44747. 2012-06-09 19:23:14 +00:00
wiz 59a4ab1af9 Add -b to short error messages. Fix typo. From Bug Hunting in PR 44747. 2012-06-09 19:22:47 +00:00
martin fcbf6c86a2 If we build several kernel (variants) within the same build directory, bad
things may happen in a parallel build - especially with rules like the
automatic size adjustment for SYMTAB_SPACE, see long standing failure of
evbarm on the build cluster.
Easy fix: .WAIT for each config to complete, before going on with the
next. Low impact, only minor loss of paralellism, and only in cases where
needed.
2012-06-08 08:56:45 +00:00
sjg d8f6b5d3a6 kill(2) is more appropriate and more portable than raise(3) 2012-06-05 17:31:04 +00:00
sjg b711398c86 Re-raising SIGINT etc, after running .INTERRUPT
provides much more reliable shutdown on some systems.
Based on CompatInterrupt in FreeBSD's make.
2012-06-05 06:11:51 +00:00
sjg 5408a8dad9 Fix findenv() to fully match name 2012-06-04 22:45:05 +00:00
sjg 8d38755103 Var_UnExport() and setenv() can both realloc environ.
Use a common variable (savedEnv) to track that to avoid wasting memory.
Also, if providing setenv and unsetenv, do getenv too to ensure a consistent
set.
2012-06-04 20:34:20 +00:00
joerg fc67b0cd11 Switch terminfo(3) to cdb(5). 2012-06-03 23:19:09 +00:00
sjg 81320ffe8e Handle "quoted strings" as items in a .for list 2012-06-03 04:29:40 +00:00
joerg 68a65e1a02 Fix a number of memory leaks. Keep final loop of the cleanup in tic(1)
under #ifdef __VALGRIND__ though.
2012-06-01 12:08:40 +00:00
joerg 84d44fb884 The output function is only order preserving for chm and chm3, so
correct that part of the documentation and also mention what the default
algorithm is.
2012-05-31 21:36:06 +00:00
joerg 7b1c18b0f7 Maintain nalias and nterm on the fly. 2012-05-31 21:01:06 +00:00
joerg 18604821d3 One more strdup -> estrdup. 2012-05-31 20:40:05 +00:00
joerg cff379a94b Use e* from util.h. 2012-05-31 20:38:19 +00:00
joerg 2b5ab40700 Replace linear lookup with hash table, reducing runtime by 60%. 2012-05-31 20:10:06 +00:00
joerg 974fdf3721 Use queue(3) 2012-05-31 19:56:32 +00:00
joerg 968a666e92 Prefer __printflike. 2012-05-31 19:00:41 +00:00
sjg 4c3de88126 Don't pass debug flags etc. to unit-tests 2012-05-30 21:54:23 +00:00
sjg b420f1eb56 An empty command is quietly ignored in jobs mode, but causes a failure
in compat mode.  Just skip it.
2012-05-30 21:42:04 +00:00
sjg 26b0dda80a In meta mode, level 0 can legitimately see > 64 nested .if's 2012-05-21 06:30:02 +00:00
christos ec88541aff - use __dead consistently.
- more clang build.
2012-05-19 00:02:44 +00:00
sjg 35fdcec3af Avoid nested extern declaration warnings 2012-05-18 02:28:16 +00:00
seanb 90cfd29599 - Use _exit() instead of exit() in signal handler since
the latter isn't signal safe.
2012-05-15 17:51:51 +00:00
wiz dc304d1ec0 Add EXIT STATUS section and bump date.
From Bug Hunting.
2012-05-14 21:14:14 +00:00
njoly 2178b4237c Small typo in macro. 2012-05-13 17:08:31 +00:00
wiz 309c96cfa6 Full list of changes:
- remove spurious white space;
- punctuation;
- new sentence, new line;
- decapitalization;
- for the non-superuser example command lines, use a consistent
  shell prompt character.

From Bug Hunting.
2012-05-13 15:50:41 +00:00
wiz 06b206851a Bump date for previous. 2012-05-12 21:42:38 +00:00
dholland 853ab96025 Remove traces of -D option, which no longer does anything. 2012-05-12 19:53:21 +00:00
wiz 67717ff652 Remove trailing whitespace. 2012-05-12 15:17:15 +00:00
reed 42346787b7 Change or add history. I checked the 1bsd archives and this first
appeared in 1BSD (before it was known as 1BSD). I looked at code and
later sccs history to confirm.  In the case of rewritten code, we are
not consistent in manpages indicating that history.
2012-05-12 14:52:57 +00:00
reed 420833fa21 Clarify description of -s switch. 2012-05-12 14:42:12 +00:00
christos 8a981eca3c Don't use the cache when building nodes that might have changed since the
last exec.
2012-05-10 19:53:26 +00:00
christos b3f77d243b dead for sigint 2012-05-10 01:25:24 +00:00
wiz 4739fc03e4 Adapt to repository move of dist from external/bsd/bzip2 to
external/bsd/bzip2/dist.
2012-05-07 08:51:47 +00:00
wiz 3815d29a7f Finish move of bzip2 from dist/bzip2 to external/bsd/bzip2. 2012-05-07 00:35:25 +00:00
joerg a9992047e4 Consistently short cut the pattern loop on mismatches.
Don't assign 1 conditionally, if unconditional works as well.
2012-05-06 22:32:05 +00:00
joerg 0fe4b4b06b Remove matchall handling for now, it doesn't work correctly and as such,
it is a premature optimisation.
2012-05-06 22:27:00 +00:00
joerg 40b375f194 Make the matchall case a full short cut. 2012-05-06 21:56:08 +00:00
dholland 1d1104dd8c rest of previous.
BQS: 1. dholland: 0.
2012-05-05 21:16:16 +00:00
dholland f88a50da82 typo in comment 2012-05-05 20:48:51 +00:00