Commit Graph

8168 Commits

Author SHA1 Message Date
christos
41d3ce981c Fix more lint problems. 2005-07-16 19:50:32 +00:00
christos
0aa8a97934 WARNS=3 and remove default values. 2005-07-16 16:21:05 +00:00
christos
140eaa6eeb - KNF
- better handling of errors and messages
- pass lint
2005-07-16 16:20:35 +00:00
christos
078c5c1a41 From David Sainty: If a process dissappears while we are signalling it, don't
count it as a match/error.
2005-07-16 15:53:56 +00:00
rpaulo
0024ded950 Remove the -L parameter from the first line of the SYNOPSIS
and bump the date.

ok Hubert Feyrer.
2005-07-16 12:35:59 +00:00
wiz
bbd944217e Add missing break. From YOMURA Masanori in PR 30751. 2005-07-15 09:45:04 +00:00
reed
9887c735e4 Add NetBSD 2.0.2 was released on April 12, 2005. 2005-07-15 03:17:46 +00:00
wiz
b6672bc279 Improve command description, from jmc, jaredy, and tom, all @openbsd. 2005-07-14 22:16:39 +00:00
mrg
a3d57ef1bd play.c: allow empty files to exit gracefully rather than with an error
of "header seems really large".  reported by wiz.

record.c: don't use total_size in the header if is -1 (it's initial value)
2005-07-13 10:57:11 +00:00
sjg
c3c1fc597e Expected results were not updated for comment testing. 2005-07-11 17:55:19 +00:00
wiz
fdf8185afa In macdef, point to $ command (from jmc@openbsd), and split paragraph (it was getting a bit big). 2005-07-06 11:21:26 +00:00
wiz
ee1fddfe1e Use more macros, and use them more consistently.
Fix a few typos.
2005-07-06 11:18:05 +00:00
wiz
d3a0b4c8cd Sync usage with man page (from jmc@openbsd). 2005-07-06 07:57:19 +00:00
mrg
8ce77e5534 move some more processing before opening the audio device. don't
default the encoding to ulaw; default it to what ever the device
has.  the latter fixes PR#30612.
2005-07-05 22:01:42 +00:00
mrg
906f130f1a check that an output file is given before doing any other work.
avoids touching the audio device and then printing an error.
2005-07-05 21:05:50 +00:00
kleink
99dffcffea Set LOGNAME in the new environment (in addition to USER);
fixes PR bin/30670 from Pavel Cahyna.
2005-07-05 20:15:13 +00:00
wiz
223c2f668b Grammar fix from jmc@openbsd. 2005-07-05 15:28:44 +00:00
wiz
b08598c658 Improve -ml description, wording from jmc@openbsd. 2005-07-05 15:28:16 +00:00
lukem
5f450b0c4b Improve the description of the macros.
Patch from David H. Gutteridge in PR 24296.
2005-07-05 09:29:54 +00:00
wiz
370088dd17 Sort options. Refer to deroff(1) for -m description.
pipe lines through fmt.
2005-07-02 10:39:13 +00:00
wiz
d54d971520 Use more macros. Sort -m arguments and fix their descriptions.
Break some lines to fit 80 characters per line.
2005-07-02 10:29:44 +00:00
dsainty
432d19fe4b By setting close-on-exec on the USB HID device descriptor, prevent passing an
extraneous descriptor to the command defined as the action to take on a
particular HID event.

This also avoids an unfortunate side-effect: killing and restarting
usbhidaction would sometimes fail because of a lingering open descriptor for
the same device on a process executed by the previous run of usbhidaction.

[OK'd by Lennart]
2005-07-02 04:05:09 +00:00
christos
3d520edd5e PR/29985: Roland Illig: make(1) interprets backslash wrongly in for
loop expansions, when the expanded variable ends in backslash and
the backslash is the last character on the line. While this fix is
ugly (detect the condition and append a space), it is the least
intrusive for now.
2005-07-01 16:45:38 +00:00
christos
97ccbe263d WARNS=3 2005-06-30 16:23:29 +00:00
perry
2ed22179cd UCB copyrights are supposed to be three clause these days 2005-06-30 02:36:35 +00:00
perry
8f8d9c94bf add deroff and spell 2005-06-29 21:20:15 +00:00
perry
fcc96823f6 spell(1), from OpenBSD.
This code came originally from v7/32v and thence from 4.4BSD. It was
freed by Caldera. Todd Miller cleaned up and ANSIfied the code, and
then changed it to use the mmap/binary search algorithm for looking up
words in the dictionary that look(1) uses, replacing the hash based
lookups which were faster but broken by the size of the current
dictionary.

I've done a teeny bit of additional cleanup and replaced Todd's ksh
spell(1) script with a /bin/sh script, and re-structured the code to
follow the bsd makefile way, with one executable per directory.

I also added a TODO list recommending a bunch of kinds of cleanup.

The code is, frankly, awful. It was fine in the 1970s, a time of much
more limited resources and tastes, but the world has moved on a bunch
since then. The reason for pulling this in at all is that it will make
it much easier to check in-tree documentation for spelling errors
automatically.
2005-06-29 21:06:12 +00:00
perry
cd4e76b8f7 deroff, from OpenBSD. Needed for spell(1) which I'll be pulling in shortly.
The code came from 32v and then 4.4BSD.  After the code was freed by
Caldera, it was cleaned up and ANSIfied by Todd Miller for OpenBSD.

I've added a TODO with several items on it, basically code cleanup and
adding support for mdoc. As it stands, this won't yet pass WARNS=1.
2005-06-29 20:58:50 +00:00
wiz
895a553b28 Add setprogname call. 2005-06-29 20:35:48 +00:00
wiz
05da4551bd de-__P(), ansify, use {g,s}etprogname. 2005-06-29 20:34:48 +00:00
christos
b775b6932a Don't apply .DEFAULT commands to special targets (.BEGIN, .END, .INTERRUPT). 2005-06-29 19:59:42 +00:00
christos
b771909d19 forgot to remove the file pointer from the macro. 2005-06-29 05:00:30 +00:00
christos
b232679f19 Add NO_USAGE and NO_DEBUG so that we can fit in the floppies again. 2005-06-29 02:31:19 +00:00
drochner
fd816c4745 don't put the xxxcf_locnames[] into the global namespace 2005-06-28 20:21:05 +00:00
wiz
74eb0f653a Fix typo in macro name, from Yomura Masanori in PR 30616. 2005-06-28 07:55:12 +00:00
wiz
3051d76108 Consistency. Use Pp instead of br. 2005-06-27 09:51:09 +00:00
fvdl
c14a80e11b Don't define the debug variable here; it is declared statically elsewhere. 2005-06-27 01:23:59 +00:00
lukem
2bf924f405 Restore the rework from rev 1.115 and expand the description of .OBJDIR
to document the behaviour that is currently in use (the "./obj" and
"/usr/obj/`pwd`" behaviour).
Hopefully the existing .OBJDIR behaviour is clearer now.
2005-06-27 00:17:08 +00:00
christos
b2d91da0d4 WARNS=3 2005-06-26 17:10:28 +00:00
wiz
7cb5118cfd Sort SEE ALSO. Drop trailing space. 2005-06-26 10:16:46 +00:00
wiz
47fb7786c1 Since the obj dir handling changes in the code have been
reverted, revert them in the man page too (i.e., revert v1.115).
2005-06-26 10:14:43 +00:00
lukem
50e70cd0ee revert previous for now 2005-06-24 04:33:25 +00:00
lukem
62955ed1ec Revert rev 1.110 and restore the previous "automagic objdir" support;
at least until we clean up the objdir semantics in <bsd.obj.mk> for
NetBSD builds.
2005-06-24 02:53:27 +00:00
atatat
277396bd87 Bend the 'L', 'M', and 'H' modifiers to work on the size, whereby it
is rounded to the nearest kilobyte, megabyte, or gigabyte.
Implemented at lukem's request since some things can't deal with
overly large numbers when files are really large.

Have to do something like humanize_number(3), but that interface isn't
really what I'm looking for.  I think.  More examination required.
2005-06-23 03:13:24 +00:00
lukem
a6a204d392 Deprecate support for automagically setting the .OBJDIR to
./obj.${MACHINE}
	./obj
	/usr/obj/${PWD}

The rules for the default .OBJDIR setting are now simplified to
(and documented as) trying the chdir to the following
(if the appropriate variable is defined):
	${MAKEOBJDIRPREFIX}${.CURDIR}
	${MAKEOBJDIR}
	${.CURDIR}

.OBJDIR can be overridden in the makefile.
<bsd.obj.mk> uses this to provide the "culled" .OBJDIR semantics
for NetBSD's /usr/src builds.

MAKEOBJDIRPREFIX & MAKEOBJDIR still can only be provided
in the environment or on make(1)'s command line.

Per discussion on tech-toolchain.
This should reduce a lot of lossage people have experienced over
the years with various .OBJDIR setups.
2005-06-23 02:31:31 +00:00
christos
8fa006901b Deal with nic.de stupidity. Idea from OpenBSD, but simplified. 2005-06-22 12:17:56 +00:00
lukem
50ec57658e Allow the input [file] field separator to be a string and not just a
single character.
Use argument-specific value names in the usage string & manual page
to simplify searching for the value's use.
2005-06-20 02:53:38 +00:00
wiz
76f0e20b24 Use groff macros instead of troff ones. 2005-06-19 17:34:03 +00:00
wiz
2e770dfdda Drop trailing whitespace. 2005-06-19 17:26:30 +00:00
wiz
19a870f516 Fix an article, and drop trailing whitespace. 2005-06-19 17:26:07 +00:00