Commit Graph

12076 Commits

Author SHA1 Message Date
christos
babae7a2a2 PR/47155: Eitan Adler: add mktemp zero arguments extension 2012-11-03 13:34:08 +00:00
pgoyette
4d44b16846 Fix build break due to signed/unsigned comparison 2012-11-03 04:51:17 +00:00
sjg
484532a973 Allow cond_state[] to grow.
The need is rare, but real.

Reviewed by: christos
2012-11-03 02:25:13 +00:00
wiz
e516fe9873 Separate SEE ALSO entries with comma. 2012-11-03 00:50:04 +00:00
christos
2e03ba1139 - better usage messages
- verbose can be local
- add static
2012-11-02 17:03:16 +00:00
christos
efb508ca11 cross reference flock(1) 2012-11-02 16:47:42 +00:00
christos
4050c976c3 cross reference shlock(1) 2012-11-02 16:32:35 +00:00
christos
12019f2b8a we don't truncate seconds anymore. 2012-11-02 12:47:57 +00:00
christos
9abb2d20bd - use modern timer functions to handler fractional wait
- add a function to print the full command line
- use sigaction so signals interrupt us
2012-11-02 12:47:23 +00:00
wiz
e7aacc4093 Use longer -c description. 2012-11-02 02:07:19 +00:00
wiz
5f8f0b4dee Sort options and their descriptions. Sync usage with man page. 2012-11-02 02:03:18 +00:00
christos
ac881fe51e treat a command without -c like an argument vector
default to exclusive lock
2012-11-02 01:30:46 +00:00
christos
1e7f0e09f1 fix usage 2012-11-01 23:34:44 +00:00
christos
dcdc302c64 Add an flock program inspired by the linux one with the same name. 2012-11-01 23:30:19 +00:00
para
9334d2fb72 fix format string 2012-10-29 16:25:25 +00:00
para
9a22f48db4 get rid of not used uvm_map flag (UVM_MAP_KMAPENT) 2012-10-29 16:00:05 +00:00
isaki
97e2545aef Fix indent and style. no functional changes. 2012-10-28 02:01:15 +00:00
isaki
afae845d58 Avoid SEGV even if audio device has no mixer features.
Fix PR/47003
2012-10-28 01:51:20 +00:00
alnsn
4d1ae9a9af Report jit'ed bpf fildes in fstat. 2012-10-27 22:38:07 +00:00
pgoyette
93d803dab3 Note that -d, -r, and -t are mutually exclusive and only the last one
is used.

While here, alphabetize the other list of r/d/t flags.
2012-10-24 02:46:25 +00:00
wiz
ee9b5a26a5 Add --date and --reference to SYNOPSIS. 2012-10-23 20:44:22 +00:00
pgoyette
8955665a05 Note that -d flag also precludes historical usage. 2012-10-22 22:59:33 +00:00
christos
730c385f2b Recognize --date and --reference like gnu. 2012-10-22 21:51:58 +00:00
christos
de5e815cfc don't check for i and use j. 2012-10-21 22:18:16 +00:00
christos
1db8a1b54a PR/47098: Steffen "Daode" Nurpmeso: mail(1): SEGV with bad globbed file argument 2012-10-21 01:11:23 +00:00
christos
0575918243 consistently use warn 2012-10-21 01:10:22 +00:00
msaitoh
79efc68e80 Add -t flag. 2012-10-19 20:46:06 +00:00
msaitoh
c370a471ff Add note about -l option. Fixes PR#47085 reported by Julian Fagir. 2012-10-19 20:43:31 +00:00
msaitoh
fe467d4df9 Line up total numbers again (for -b case and -X case). 2012-10-19 19:50:19 +00:00
christos
0d87ef641d print major device numbers symbolically from kinfo_drivers 2012-10-19 02:49:52 +00:00
christos
902a40f133 more info for unix sockets. XXX: chroot handling 2012-10-19 02:11:25 +00:00
jnemeth
c8dac53719 note NetBSD 6.0 release 2012-10-17 18:30:33 +00:00
christos
83d4b28a8e PR/47068: unifdef(1) with cpp directive on last line without newline
Remove bogus test; if there is no newline, the state does not change.
2012-10-13 18:26:03 +00:00
njoly
bee4003ac7 Remove a few unneeded Pp macros. 2012-10-13 14:18:16 +00:00
christos
4f166942a1 It is Sprite, not Sprint; pointed out by Todd Miller. 2012-10-08 15:09:48 +00:00
sjg
0afab3de7c Treat empty commands same as jobs mode 2012-10-07 19:17:31 +00:00
dholland
1ebcbda526 Improve previous change with better wording. 2012-10-04 19:28:36 +00:00
wiz
fde0458761 - In the example for `-f', reference a directory that is actually
available in a default installation (/usr/src isn't);
- put together two lines which belong to the same sentence;
- remove a spurious space character;
- remove unneeded consecutive argument for `.Nm' macro.

From Bug Hunting.
2012-10-03 19:35:08 +00:00
abs
070a35df41 "i.e." -> "i.e.," - from Snader_LB on IRC 2012-10-02 14:15:04 +00:00
christos
8e13556964 fix non-numeric address and port printing. 2012-09-26 23:01:04 +00:00
joerg
4edfbdbb40 Simplify the BDZ compression function, making it smaller at the same
time. Fixes a bug where non-minimal hash functions could be created.
Add regression tests for BDZ, including the map output functionality.
2012-09-25 20:53:46 +00:00
pgoyette
000a3dc38f Sort -h option properly (not between -I and -i)
XXX Should the date be updated?
2012-09-25 14:16:27 +00:00
christos
6010f05a86 spelling 2012-09-17 02:10:46 +00:00
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
jnemeth
a8f4028e66 Update all variable days
- religious holidays taken from Wikipedia where available
- floating days (i.e. X day of Y month) taken from cal(1)
- NetBSD releases taken from http://www.netbsd.org/releases/formal.html#history
  - hopefully somebody will update this for the 6.0 release

Hopefully, these days will be correct for the first year of NetBSD 6.0.
2012-05-05 01:29:56 +00:00
christos
5942983d76 set close on exec for all opened files. 2012-04-29 23:50:22 +00:00
para
308636e770 remove malloc(9) output function from vmstat
it is not required and working any more
2012-04-29 16:23:56 +00:00
christos
6d6339ce42 document _machine 2012-04-29 03:46:43 +00:00
wiz
e8c42d35c6 Add some noreturn attributes for clang. 2012-04-29 01:26:56 +00:00
wiz
70c9435fd5 Sync usage with SYNOPSIS. 2012-04-27 06:30:48 +00:00
christos
ed9eb31642 support the LOG_CONS/LOG_NDELAY. 2012-04-26 21:11:24 +00:00
christos
3d8af4cc0a Fix wrong loop index leading to infinite loop
ifdef(`FOO',
# FOO
)
XXX: Pullup to 6.
2012-04-25 18:23:58 +00:00
sjg
f3251c8ae2 Fix handling of -dF+/tmp/file 2012-04-24 20:35:04 +00:00
sjg
26aa697a51 Var* are generally very liberal with memory, with the expectation
that none of it persists for long.
This isn't always true - for example a long running .for loop.

Buf_DestroyCompact() is used by Var_Subst(), rather than Buf_Destroy().
If it looks like we can save BUF_COMPACT_LIMIT (128) or more bytes,
call realloc.  This can reduce memory consumption by about 20%
Setting BUF_COMPACT_LIMIT to 0 dissables this.
2012-04-24 20:26:58 +00:00
sjg
845789be8d Restore previous behavior - supressing duplicate entries in
.MAKE.MAKEFILES - it is more efficient.
2012-04-24 20:12:16 +00:00
christos
0827265996 no more KRB5_DEPRECATED 2012-04-24 16:52:26 +00:00
christos
39d6d02b14 last commit before I nuke the old code. 2012-04-24 16:51:19 +00:00
christos
769f2e22f8 move more of the compat code in the compat block. 2012-04-24 16:12:44 +00:00
christos
d3fb120e97 don't abuse the instance variable 2012-04-23 21:09:27 +00:00
christos
08935f4cd9 make kerberos work again:
1. make notickets external
2. don't use the tty as part of the credential cache, since pts/1 will not work.
3. Attempt to use the newer functions, but punt for now since it does not work yet.
2012-04-23 20:57:04 +00:00
christos
0c647c7841 remove obsolete comment. 2012-04-23 20:54:40 +00:00
christos
925babedcc fix the USE_KERBEROS=no USE_PAM=no build. 2012-04-23 18:27:15 +00:00
christos
dbd9f683e7 centralize error function processing. 2012-04-23 15:07:02 +00:00
martin
6192dc18bf trimusername (which does not exist) probably was meant to be called
trimloginname (which does exist, at least)
2012-04-23 09:27:36 +00:00
christos
0dfe19f4d3 - fix non pam build
- merge duplicated error code
- fix opt struct leak
2012-04-22 23:43:51 +00:00
christos
e694c7c9d0 make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
2012-04-22 23:26:19 +00:00
wiz
6ffe8aa8a8 Remove duplicate Pp. Remove trailing whitespace. Sort sections. 2012-04-22 10:23:39 +00:00
wiz
cc7b4e18c8 Sort sections. Remove superfluous Ns macro. 2012-04-22 10:22:08 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
christos
e0f6e43eb5 add __PRETTY_FUNCTION__ 2012-04-20 18:35:28 +00:00
sjg
7a49f6a73f Fix some typos in/around ParseGmakeExport.
Remove the suppresssion of duplicate entries in .MAKE.MAKEFILES
2012-04-20 05:33:41 +00:00
christos
a675bef13d make this compile again. 2012-04-12 15:35:07 +00:00
wiz
1ac719d147 Remove unnecessary Bk/Ek pairs from SYNOPSIS.
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
christos
687e469719 Remove recheck hackery that caused extra stats, and explicitly ask for
recheck when needed. Before it used to be the case that we could only
use the cached entry once. Once the cached entry was used, we removed
it from the cache. Now it is kept forever.
2012-04-07 18:29:08 +00:00
wiz
9c98053fcd Sync usage with man page, from Bug Hunting. 2012-04-06 11:34:58 +00:00
matthias
3b1e581385 Stop playing games with stdin and stdout file descriptors.
calendar did not work with nss_ldap installed. Typical symptoms were
      cc1: error: stdout: Bad file descriptor
in daily.out.
2012-04-03 12:03:04 +00:00
christos
f8c8cd087a document gmake export command 2012-03-31 14:46:16 +00:00
christos
3ba1aa3bc8 Add a gmake inspired export command 2012-03-31 00:12:24 +00:00
wiz
18c15574cc Punctuation.
From patch by Bug Hunting.
2012-03-29 18:33:19 +00:00
macallan
1b769feadc XXX
Don't assume LP64 unless lint itself is built as LP64
On mips64 we default to n32 which produces errors when things like
TARG_LONG_MAX don't fit into a long
A proper fix would be to teach lint about different target ABIs so it can
pick the right parameters, this is just a bandaid to make it slightly less
wrong and allow a mips64 build to complete.
2012-03-29 08:52:31 +00:00
christos
52ec92ba25 more cross lint friendlyness
XXX: needs more constants converted double/float
2012-03-27 19:24:01 +00:00
dholland
75549012e9 fix non-PAM build 2012-03-25 05:55:07 +00:00
christos
0b08384416 byte swap the inet6 ports. 2012-03-24 21:51:23 +00:00
sjg
006e190034 Avoid the need to escape the # in :[#] when parsing conditionals. 2012-03-24 20:28:41 +00:00
drochner
364a06bb29 remove KAME IPSEC, replaced by FAST_IPSEC 2012-03-22 20:34:37 +00:00
wiz
3957bea1ef Fix whitespace nits. Suggested by Bug Hunting. 2012-03-22 07:58:16 +00:00
christos
ca07e01a36 -0 is not unary overflow. 2012-03-21 14:17:22 +00:00
matt
d8695ce615 Default to WARNS=5 2012-03-21 05:47:53 +00:00
matt
c57734f330 Use WARNS=4 2012-03-21 05:44:39 +00:00
matt
d34c2845b8 Use C89 function definitions 2012-03-20 20:34:57 +00:00
dholland
83889b37fd Avoid testing a possibly uninitialized errno value when using -exit.
Closes PR 44973 (change is a somewhat more principled equivalent of
the patch suggested there) although I cannot replicate the reported
behavior unless I explicitly prepare errno with a nonzero value before
the fts_read loop.
2012-03-18 17:09:46 +00:00
wiz
4a4f03fea7 Quote word that has the same letter as a macro.
Fixes PR 46215 by Nicolas Joly.
2012-03-17 22:10:51 +00:00
njoly
d0e00679ff Use Lk macro when dealing with URLs. While here update or remove some
dead URL links. Another part of PR/29238.
2012-03-15 22:35:02 +00:00
dholland
d4bd1c2d11 Tidy up: we no longer need FIRSTVALID for its original purpose, so change
the name of the symbol to something that applies to the remaining use.
2012-03-15 03:04:05 +00:00
dholland
6eb9e0a428 When the wtmp file is empty, for the "wtmp[x] begins..." output, use
the last mod time of the wtmp file (in practice, the time it was last
rotated, which is when it begins) instead of the current time, which
wasn't ever particularly useful. PR 39444.
2012-03-15 03:01:03 +00:00
dholland
ce683a0035 Keep track of the timestamp of the last (thus oldest) record seen and use
it to print "wtmp[x] begins" at the end, instead of knowing where to look
in the final utmp buffer to get a final timestamp out. This is both tidier
and fixes a problem with wtmpx files, which is that if the header record
is missing (which it seems to be on my machines) it would fetch the wrong
time out, and if you happened to have a one-record wtmp file it would use
the current time instead. This change restores the traditional behavior
of printing the time of the oldest record in the file, and if no records
are present to use the current time.

It might be a bug that wtmpx files don't seem to have the header
record they supposedly ought to.
2012-03-15 02:55:02 +00:00
joerg
66dd2755f5 Add __printflike attribution to use vprintf and friends with an argument
as format string.
2012-03-15 02:02:20 +00:00
dyoung
f0a4fe1c3c Use 'sort -n -k 3' instead of 'sort -n +2' since the former is more
portable.  The latter is not supported by Mac OS X Lion.
2012-03-12 22:02:07 +00:00
christos
daf2e27602 PR/41880: Ralph G. Previous fix for PR/5797 broke since space separator. 2012-03-12 18:06:24 +00:00
dholland
471d829aae Remove the NV_OBSOLETE flag, which is no longer needed. While here,
update an outdated comment about condition expressions.
2012-03-12 03:04:56 +00:00
dholland
cb79ede2d1 Give option definitions their own data structure instead of using nvlists.
(and using messy hacks to make up for nvlists not holding quite the right
things)
2012-03-12 02:58:55 +00:00
dholland
a883398ef5 Introduce type-safe wrappers around the hash tables. Use them for a
selected set of tables affected by the next nvlist cleanup in the
works.
2012-03-12 00:20:30 +00:00
dholland
f5d4142b2d Move locator lists to their own data structure. This can use more tidying;
it is not clear to me at the moment what the "string" and "num" values
pushed around in locator lists are supposed to actually mean.
2012-03-11 21:16:07 +00:00
dholland
25c56bd707 Add some organizational comments 2012-03-11 20:02:55 +00:00
dholland
237116305d More naming improvements. 2012-03-11 19:27:26 +00:00
shattered
575f4d696a PR/22405 -- extend du(1) to report inode usage. Patch provided by
Jonathan Perkin.

OK by wiz@
2012-03-11 11:23:20 +00:00
dholland
a551c5e8b7 Create a struct condexpr type to hold condition expressions, instead
of abusing struct nvlist to make trees.

(These are the a|b and a&b constructs.)
2012-03-11 08:21:53 +00:00
dholland
4fbb702df0 Rename a few more things; try to use the same terminology as config(5). 2012-03-11 07:46:47 +00:00
dholland
bbe96a5ad8 Create a new type struct attrlist to manage lists of attributes,
instead of using struct nvlist.

(struct nvlist holds lists (or trees!) of semi-arbitrary stuff with no
structure and almost no type safety; it should go away.)
2012-03-11 07:32:41 +00:00
dholland
720c7fbc2a Strengthen the logic that wraps allocations going on the parser stack.
(This allows cleaning up when a syntax error occurs, because yacc just
dumps the parser stack on the floor.)

The new logic can handle arbitrary data types instead of being limited
to struct nvlist.
2012-03-11 07:27:02 +00:00
dholland
285c15fc92 Remove cf_swap, which hasn't been used in a long time. 2012-03-11 05:31:37 +00:00
dholland
cfffb8a2c1 Write out the expression grammar for dependency constraints instead of
using precedence rules. Precedence rules (besides being a hack) often
lead to unexpected/unwanted behavior in corner cases.
2012-03-11 02:56:25 +00:00
dholland
6df4c5ae47 Sort productions in grammar. No functional change. 2012-03-11 02:43:33 +00:00
dholland
70f2148fe7 Simplify some things. Rename some productions for clarity. 2012-03-11 02:21:04 +00:00
dholland
60c605bb74 A bit more of previous. 2012-03-11 01:09:42 +00:00
dholland
540fdf9f5e Reformat according to (my) basic standards for yacc grammars.
No functional change.
2012-03-11 00:57:44 +00:00
dholland
f3063ae30c Comments. 2012-03-11 00:14:20 +00:00
dholland
671dbef5d6 Use __printflike. Build products unchanged. 2012-03-10 21:53:38 +00:00
ginsbach
4b1228ffbe Improve the handling of quoted messages.
- warn about messages with an unexpected quote character
- warn about extra characters after a quote character
- warn about an unterminated quoted message
2012-03-09 18:54:28 +00:00
mbalmer
5cd43bc624 Remove the advertising clause and appease the eye a bit (still not good, but
better).  Almost no functional change.
2012-03-06 16:55:18 +00:00
mbalmer
40c86e8b4e Remove the advertising clause with the explicit ok from Perry E. Metzger. 2012-03-06 16:26:01 +00:00
njoly
4d5ade5119 Remove dead xrefs to obsolete kvm_mkdb(8). 2012-03-05 10:57:18 +00:00
wiz
c368f5db0b New sentence, new line. Wording. 2012-03-04 11:54:06 +00:00
dholland
62244ded10 Note in comment that Str_Match() does not detect or report invalid
patterns. This is not critical, since for the moment both possible
cases (unclosed [], and \ at the end of the string) are handled more
or less sanely.
2012-03-03 23:16:47 +00:00
matt
edf7bb773c remove extra " 2012-03-02 18:57:27 +00:00
matt
aea125ab81 fix typos from previous commit. 2012-03-02 18:55:16 +00:00
christos
2b01a8ad07 PR/46111: Wolfgang Stukenbrock: Add yp_setbindtries(3) so that yp operations
don't hang forever if requested.
2012-03-02 17:27:48 +00:00
matt
83aeaf7ea6 Need to cast to intrptr_t before casting a register_t to void * (since
register_t might be wider than a void *).
2012-03-02 16:17:22 +00:00
wiz
d47aeb29ac Use mdoc macros only. 2012-03-02 14:36:04 +00:00
mbalmer
d13b2dd8ad Add msg_printf(fmt, ...), a function to display raw messages without
going through the message catalog.
2012-03-02 14:27:48 +00:00
mbalmer
a4373e9a91 Removing trailing whitespace. 2012-03-02 13:11:57 +00:00
joerg
560b3ec5de Don't use non-literal format strings. Split it up depending on the
number of arguments used.
2012-02-29 23:37:07 +00:00
joerg
05959bffa3 Cast register_t to void * when printing with %p. 2012-02-29 23:35:49 +00:00
joerg
eb085c765d Pointer differences are generally not integers, so use %td here. 2012-02-29 23:35:10 +00:00
wiz
8668cbeef5 Sync usage with man page. From Bug Hunting in PR 46102. 2012-02-29 08:55:25 +00:00
wiz
040902799c Remove trailing whitespace. From Bug Hunting in PR 46102. 2012-02-29 08:54:55 +00:00
joerg
cdaeb35ee5 Mark sasprintf as using a printf-like format. Fix format string to use
all arguments by telling the user what file would be overwritten.
2012-02-28 22:30:44 +00:00
wiz
6e31cc7bbd Sort options in man page. Add EXIT STATUS section. Bump date.
Sync usage with man page.

Mostly from Bug Hunting in PR 46102.
2012-02-26 21:04:10 +00:00
apb
daa17451fe subtracting two pointers yields ptrdiff_t, so cast it to int. 2012-02-24 19:53:31 +00:00
apb
bb16246581 When given an URL that contains "://" but is not recognised,
print an error message.  Now "ftp https://foo/bar" prints

    ftp: Unsupported URL scheme `https'

instead of

    ftp: Can't lookup `https:ftp': No address associated with hostname
    ftp: Can't connect or login to host `https:?'
2012-02-24 19:40:49 +00:00
joerg
7a5b80bed9 Add explicit continue to empty loop body. 2012-02-24 16:03:39 +00:00
joerg
a625573ba2 while (...);
;
is really pointless, so remove the first semicolon.
2012-02-23 23:39:19 +00:00
joerg
70dcb9704f Don't use while-loop with empty body. 2012-02-23 22:57:53 +00:00
njoly
ac6da2a96c Now that window(1) is gone, use tmux(1) for xref. 2012-02-21 15:01:51 +00:00
rmind
9c3c596716 G/C VM_MAP_INTRSAFE flag 2012-02-19 02:47:53 +00:00
christos
f25b5b6cd8 this has not been used for ages. 2012-02-18 16:05:21 +00:00
wiz
86986a6435 Fix typo. Bump date for previous. 2012-02-17 11:43:24 +00:00
apb
f9135d4e36 The "-N" command line option means "include the terminating NUL byte",
so rename the corresponding flag from F_NO_NUL to F_INCLUDE_NUL to match
the behaviour.

This is the second half of the fix for PR 46035.
2012-02-17 11:37:33 +00:00
apb
5efc9deabf db(1) "-N" flag means "Include the NUL byte at the end of the key
or value".  (Previously, the description was reversed.)  Also expand
the description.

This is the first half of a fix for PR 46035.
2012-02-17 11:18:55 +00:00
matt
3dcb0b124a Avoid signed/unsigned comparision. 2012-02-17 08:28:36 +00:00
matt
02a2e7c81a MIPS uses a variable page size now.
(pulled up from matt-nb5-mips64)
2012-02-17 08:13:18 +00:00