Commit Graph

9503 Commits

Author SHA1 Message Date
cube 904262675b Add new syntaxic sugar to provide a value in lint (i.e., config -L)
configurations for defparams.  It will be used _only_ by config -L.

This will greatly help automating tests with lint configurations,
hopefully.
2007-01-09 13:03:47 +00:00
elad d2e4f7167b Remove advertising clause from all of my stuff. 2007-01-09 12:49:36 +00:00
wiz 81c929da0c Bump date for previous (year was wrong). 2007-01-09 06:58:46 +00:00
cube 6ebb2291dc Print pseudo-devices in their own section and print all of them (d'oh). 2007-01-08 18:08:24 +00:00
cube aa3d024933 One %s is enough to print one string. 2007-01-08 17:50:43 +00:00
christos e3717c1851 Introduce a TALKHOST environment variable to make talk work through NAT.
From Anon Ymous.
2007-01-08 17:10:59 +00:00
cube 59c945452a Introduce a new option to config(1): -L. What it does is takes a regular
configuration file (although it is meant to be used mostly with
std.${ARCH}), and prints out a configuration file that includes it and
select every single option and parameter, and define an instance for every
single possible attachment.  IOW, selects everything, into a would-be
"LINT" config.

The resulting config really isn't meant to be runnable, but should be
somewhat buildable on most archs.  It still needs adjustments because some
options are peculiar (e.g., ACPI_DSDT_FILE wants an existing file as its
value), so it's not yet possible to do "config -L; config; build" in an
automated way.
2007-01-08 16:08:08 +00:00
wiz 1e1b91be4d Remove dot and end of SEE ALSO. 2007-01-08 07:22:42 +00:00
wiz b8808a8b5c Improve formatting, fix typo, bump date for previous. 2007-01-08 07:18:25 +00:00
cube f55d783c32 - Document "source /path" and "build /path".
- Move documentation for "package", because as I learned tonight, it's not
  allowed before setmachine.  You get to discover scary new stuff about
  config(1) each time you look at it.
2007-01-07 23:22:04 +00:00
rillig cb42376f86 See also: ktrace(2). 2007-01-07 15:33:48 +00:00
isaki 21b8eaae35 Correct indent. It's important around many #ifdefs. 2007-01-07 10:36:56 +00:00
cube db31f3b5e0 Mention that newlines mid-statement are allowed, and clarify how
needs-count and needs-flag work, notably for simple attributes.
2007-01-06 21:58:54 +00:00
cube c93963e680 Make deffilesystem check all defined options, not just defopttab (which
ought to be empty nowadays).
2007-01-06 18:54:32 +00:00
cbiere 0086d50320 Respect the environment variable TMPDIR if set. 2007-01-06 14:29:44 +00:00
cbiere 4b96ead963 Pointing before a memory object is not proper C. Use an index instead of
pointer arithmetic.
2007-01-06 14:11:20 +00:00
cbiere a8d0a33445 - Applied patch by David Holland from PR bin/35354.
- Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
 - Additional check for regular file.
 - Use pread() instead of lseek() + read().
 - Check for partial read to prevent out-of-bounds memory access.
 - Added FIXME to onintr(): This is no proper signal handler albeit might
   not really matter here.
2007-01-06 14:00:36 +00:00
cbiere 2fe9526c5d - Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
- Reject unreasonable command-line arguments.
 - No need to cast sizeof() to u_int for malloc().
 - ttyconv: Simplified and replaced magic '5'.
2007-01-06 13:31:06 +00:00
ober a57d36e7f8 Update to include Zaurus Port. 2007-01-06 03:56:13 +00:00
christos 6acd8da97d Don't limit lines to 8K. 2007-01-06 02:18:24 +00:00
wiz 596987c9f5 Bump date for previous. 2007-01-06 01:15:43 +00:00
christos 1424501a85 Ansi, KNF, no functional change. 2007-01-05 23:17:32 +00:00
jschauma 68ea33e34d Note that uniq uses a max line length of 8192 bytes. 2007-01-05 18:28:13 +00:00
christos 8d9a441486 Appease wizd, from Anon Ymous. 2007-01-05 03:52:35 +00:00
christos d834d54792 From Anon Ymous:
1) Don't miss the pipe command when grabbing the command name.
2) Convert some key constants to defines.
2007-01-03 00:39:16 +00:00
christos 07a95a1d4c 1) Fix a really stupid table termination error in mime_decode.c.
2) When doing attachments set the "name=" parameter of the
Content-Type field, in addition to the (already) set "filename="
parameter of the Content-Disposition field.  Some utilities (e.g.,
metamail) use this parameter for the filename even though (I believe)
the "filename=" parameter of the Content-Disposition field is
preferred by the standard (I can't find this explicitly except for
"application/octet-stream" types - see RFC1521 sec 7.4.1 and RFC2046
sec 4.5.1).  My impression is that the "name=" parameter of the
Content-Types field is really intended for use when retrieving a file
not in the message, e.g., "message/external-body" Content-Types, and
not for the filename.
(Thanks to wiz@ for noticing this in his spam logs.)

3) Be more careful when determining the Content-Type of 1-byte
attachments.  libmagic(3) isn't helpful on such small files.
2007-01-03 00:24:36 +00:00
dsl 8a7693fba6 Don't delete whitespace before a "\\\n" sequence. Somewhere I'd misread
the required behaviour and replaced it with something more sensible - except
for makefiles that contain "\n\t\\\n shell command"...
2007-01-02 23:22:37 +00:00
christos 8d5de8f839 From Anon Ymous:
1) Remove a stray "SRCS+=" line from the Makefile.
2) Document the "nospec" option of "regex-search".
3) Fix some typos and formatting in the manpage.
2007-01-02 03:09:13 +00:00
dsl 8b25f96e43 Remove the (now redundant) MAKE_BSIZE, BUF_DEF_SIZE from buf.c is used instead. 2007-01-01 21:48:43 +00:00
dsl 4d3c468f96 Rework the code that separates the makefile into lines.
Instead of copying the file byte by byte into an expanding line buffer, just
scan the file buffer for (unescaped) newlines.
Escaped newlines (etc) are processed by modifying the file buffer later.
Speeds up 'nbmake obj' by a factor of 2.
I suspect it will do wonders for parts of pkgsrc as well, since it largely
eliminates cpu cycles from the false part of .ifs.
2007-01-01 21:47:32 +00:00
dsl d6cad2789c Request the 'verbose' node print when aborting and scheduling nodes. 2007-01-01 21:42:42 +00:00
dsl 75dd4686a9 Add the other half of the fix to stop stuff that depends on .WAIT nodes
being always rebuilt.
2007-01-01 21:39:58 +00:00
dsl 388fdf7f68 Don't force things that have dependencies against .WAIT nodes to be rebuilt.
This is what causes all of ksh to be built every time through.
2007-01-01 21:35:40 +00:00
dsl 3780cb6cd8 Remove 'else' after 'return', and similar whitspace changes.
Extra debug on where files are actually found.
2007-01-01 21:31:51 +00:00
dsl b7483eac69 Since the 'buf' code here is only used by make, we don't need two names
for the default buffer size of 256.
Also allow for the trailing 0 byte!
2007-01-01 21:29:01 +00:00
dogcow d7e50df65a more NQNFS removal fallout 2006-12-27 21:53:58 +00:00
dogcow 0dbd865aab arg might be improperly initialized; fix that.
(also, since we check arg == NULL, s/arg = 0/arg = NULL/.)
2006-12-27 18:47:20 +00:00
pooka a61b6925e7 support reading wtmp/wtmpx from stdin with -f -
from bin/35329 by David A. Holland
2006-12-27 18:03:26 +00:00
alc c6ea7a850f CID-4199: move the test (line != NULL) one line up to check the
return value of strdup()

ok christos@
2006-12-27 17:55:05 +00:00
alc 0c17aa264d Fix a typo in ht_free() which caused the last list of the hashtable to be ignored.
It caused config(1) to crash on the following assert() if the list was used.

This bug shows up after the recent change in files.c which fixed a memory leak.

pointed out by dogcow@
reviewed by cube@
2006-12-27 17:50:27 +00:00
alc 2f403ebe4f CID-4275: don't leak `fixdevmtab' 2006-12-26 00:07:18 +00:00
christos b01c8fbc21 From Anon Ymous
1) Add support for message selection based on the message body.  The
pattern matching is done on the MIME decoded body as would be seen by
the print command.

2) Don't hook editline when doing headers only: that mode is never
interactive and it messes up piping if output is redirected to a
command that expects tty input, such as 'more'.
2006-12-25 18:43:29 +00:00
wiz e76d290058 Fix example; from sat@freebsd via jmc@openbsd. 2006-12-24 10:07:18 +00:00
wiz 6e478b060b Mention that the argument file is not modified. From jmc@openbsd. 2006-12-24 08:35:21 +00:00
jdc 40b89794d7 Don't print "default" when the netmask is non-zero.
Also tested by mlelstv@.
2006-12-23 11:05:14 +00:00
wiz 201b173539 Consistently use Ev for PAGER. 2006-12-23 09:26:10 +00:00
wiz 6056ee8d62 Use Nm instead of Xr to ourselves. 2006-12-23 09:08:46 +00:00
wiz f7ccc579cc Punctuation nits. 2006-12-23 08:48:29 +00:00
wiz bf6c34fe61 Use Sx for section cross-references. 2006-12-23 08:42:59 +00:00
wiz a6ce50109e Remove trailing whitespace. 2006-12-23 08:40:11 +00:00
wiz 4cc41386ba Fix a typo. Use Nx. 2006-12-23 07:25:41 +00:00
erh d96de9f7f0 Correctly handle '\' at the end of a variable in the non-expanding case. 2006-12-22 20:28:31 +00:00
ad c7a999e12a Note that ACOMPAT and ASU are no longer recorded. 2006-12-22 08:00:20 +00:00
dsl d8f5679725 Fix breakage of previous commit. 2006-12-21 20:05:37 +00:00
dsl c26f3a4858 Fix detection and reporting of dependency loops in parallel makes.
make's unit_tests should now run again.
2006-12-20 20:46:35 +00:00
wiz 6c0754a434 Drop trailing whitespace. 2006-12-19 19:06:44 +00:00
christos 4ad17e5702 No need to leave a lot of space between the error number and the message. 2006-12-19 19:02:49 +00:00
christos c613b70040 Xr lint 7; noticed by Anon Ymous 2006-12-19 19:00:20 +00:00
christos 920d4bcbef from Anon Ymous:
Convert a "(void)&" construct to volatile.
Make two variables in wwiomux.c volatile that gcc -Wextra complained about.
Do proper initialization of lcmd_arg tables and flag some variables
__unused so this will compile with gcc -Wextra.
2006-12-18 20:04:55 +00:00
christos 471243e4da volatile fixes, from Anon Ymous 2006-12-18 15:17:38 +00:00
christos 7d2ef9d984 From Anon Ymous:
Convert "(void)&" constructs to "volatile".
Check gid against (gid_t)-1 rather than >= 0; gid_t is unsigned.
Flag some parameters __unused so this will compile with -Werror.
2006-12-18 15:14:42 +00:00
christos 83508cedc2 From Anon Ymous:
Removed two "(void)&" constructs as there is no setjmp() or vfork() insight.
Flagged a few parameters __unused so this will compile with -Wextra now.
2006-12-18 15:06:16 +00:00
christos 019209fdbc volatile fixes from Anon Ymous 2006-12-18 14:18:40 +00:00
jmmv c5e6a57d43 Add the list of differences between more and less provided by mrg@ in
PR bin/31415.
2006-12-17 16:16:53 +00:00
bouyer 3697550e70 Don't depend on lubutil if we're building host tools. Fix tools build on
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
dsl c822b38662 Use open/read/close instead of stdio for makefiles.
Commons up the code for reading files and buffers, and allows a further
change where we don't copy the data out of the buffer when generating 'lines.
This will speed up makefile parsing (esp .if clauses).
2006-12-16 08:59:29 +00:00
dsl edc84458bf Fix a comment that has been wrong since rev 1.1, minor layout fix. 2006-12-16 08:51:12 +00:00
christos 581e519fb5 From Anon Ymous:
1) When detaching, don't try to close things we shouldn't (after
   doing the header).  Specifically, mip->mi_head_end was not
   getting set correctly in mime_sendmessage().

2) Change paging to be closer to its old behavior: next, dt, and dp
   should only page if the crt variable is set; and don't automatically
   page most other commands - the user can always pipe them into more.
2006-12-15 20:26:03 +00:00
he 494446754f Adapt chflags to the move of string_to_flags() and flags_to_string()
to libutil.
2006-12-14 20:57:00 +00:00
he cb49bdddc9 Adapt find to the move of string_to_flags() and flags_to_string() to
libutil.
2006-12-14 20:55:56 +00:00
he 0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
chuck 92a710ed6c take into account the 150 frame start offset time when computing the
duration of a track.  call lba2msf like this:
	lba2msf(len - 150, &m, &s, &f);
                    ^^^^^
from rev 1.41 of FreeBSD usr.sbin/cdcontrol/cdcontrol.c, Dmitry Afanasiev.

XXX: note that this is a mis-use of lba2msf() because 'len' is the length
     of the track in frames, not a logical block address (lba).
2006-12-14 18:15:16 +00:00
christos ffe3445041 pass lint; from Anon Ymous 2006-12-14 17:09:43 +00:00
christos 239d1ed129 kill the (void)&foo; from Anon Ymous 2006-12-14 14:18:03 +00:00
christos 748af04e26 gcc4 does not care about &foo; use volatile instead. From Anon Ymous 2006-12-13 18:04:08 +00:00
christos eea42e044a Fix timezone and date parsing. From Anon Ymous. 2006-12-10 06:06:47 +00:00
christos c83bfb9f05 - Change all emalloc to ecalloc, since the previous implementation of emalloc
zeroed out the buffers.
- Provide a macro for the tab rounding.
2006-12-09 21:42:40 +00:00
dsl 82e7102f1f Revert part of a recent commit.
ParseEOF() shouldn't close the original file.
2006-12-07 21:34:16 +00:00
dsl a294d83a63 Put the big block of code that was common to ParseDoInclude() and
ParseTraditionalInclude() into a separate routine.
Fix the 'use after free' and 'free on item not malloced' that got added
to ParseTraditionalInclude() in Feb 2006 (rev 1.111).
Kill the 'PTR' struct and put both its members into IFile.
Remove the parameter from ParseEOF(), 1 of the 3 calls passed the wrong value!
Fortunately another test stopped anything nasty happening, we'll use that
test instead.
2006-12-07 21:07:01 +00:00
dsl f01b961f16 Add anewline to the end of the error message output when the debug log
file cannot be opened.
2006-12-06 20:38:21 +00:00
christos 8d6767f0e6 When "autoprint" and "crt" were set, the pager was getting bypassed.
Thanks to Patrick Klos for reporting the problem. (from Anon Ymous)
2006-12-06 17:55:00 +00:00
christos 6e70cbd24e From Anon Ymous:
Partially restore the "crt" variable: if set, the [pP]rint and [tT]ype
commands invoke the PAGER making them identical to the [pP]age and
[mM]more commands.  Its value is now ignored.  If anyone really
objects, I will do my best to restore the old behavior, but it really
doesn't fit very well into the current paging architecture.
2006-12-06 16:26:24 +00:00
mjf 686f9932fe PR/35194: 0 is returned from confstr(3) in two cases:
- when an error occurred and errno is set appropriately
		- when the variable is undefined.

Thanks to Guy Harris for pointing this out.
2006-12-06 12:02:02 +00:00
mjf c74271d8ea PR/35194: confstr(3) returns 0 on failure, not -1. 2006-12-06 11:05:32 +00:00
christos 67e2fbb036 fix a core-dump and do some more error checking via asserts. From Anon Ymous 2006-12-05 03:47:41 +00:00
dsl 014cba747c There really is no point calling estrdup() to get a copy of the makefile name
into every 'gnode' (aka target), instead just copy a pointer to the string
and avoid freeing the original name when we close the file.
I can't imagine any makefile set where this gives a larger footprint!
2006-12-04 21:34:47 +00:00
dsl 8416a0f46b Unknot this code slightly by avoiding 'break/return; else' and by putting
the short parts of some conditionals first.
First step towards speeding up the parsing of makefiles (esp. the unwanted
parts of .if clauses).
There should be no changes to the logic.
2006-12-03 20:40:44 +00:00
dsl 8b27f0807d Some minor changes:
- Only test 'printVars' once.
  Has side effect of not trying to find the 'main' target for '-V varname'.
- Only reap the single child process in Cmd_Exec(),
  I think this is for 'xx != cmd' so probobably no other children should exist.
- Don't read and parse .depend if '-r' and '-V varname' are set.
  I suspect that .depend shouldn't affect the output of any -V command...
2006-12-03 20:37:39 +00:00
christos 1194ba0741 Document the new threading etc. features. From Anon Ymous. 2006-12-03 18:09:09 +00:00
christos 9f409e218e eliminate an alloca use. 2006-12-03 01:18:34 +00:00
dsl dc6b659187 Simplify the code that processes .if lines.
It doesn't need a two-dimensional array to remember the states of .if lines.
It would be even simpler if we didn't try to detect .else and .elif lines
that follow .else lines.
Unfortunately this isn't the code that is stupendously slow...
2006-12-02 15:50:45 +00:00
elad 4cfb3b3658 Conflict was resolved, so revert previous.
Okay dogcow@.
2006-11-30 01:59:45 +00:00
jdc a7a53c1fdb Use getopt() for arguments. Suggested by tls@. 2006-11-29 14:46:27 +00:00
jdc 69ea108b97 Add missing cu synopsis and options. 2006-11-29 14:45:39 +00:00
jdc 2ee4ce050d Add Taylor cu compatibility: -f and "dir" 2006-11-29 14:44:45 +00:00
dogcow 48de5cde28 deal with VERIEXEC_LOAD/SPKRTONE conflict 2006-11-29 03:48:57 +00:00
christos 75df0a7821 block a few more signals, from anon 2006-11-29 01:29:46 +00:00
christos c77cd73835 don't block sigterm otherwise a forked process that sends a sigterm to itself
never exits (gv), from anon
2006-11-29 01:25:28 +00:00
christos 3a9442af4c pointers should be either casted to intptr_t or even better not casted... 2006-11-28 20:29:25 +00:00
christos f20e38f662 pass lint. 2006-11-28 18:46:04 +00:00
christos f309875081 From Anon Ymous:
1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
   parts from messages.

3) Teach mail to output "In-Reply-To" and "References" header fields
   when replying so others can thread us.

4) Implement threading, sorting, and tagging, supported by the
   following commands: 'flatten', 'reverse', 'sort', 'thread',
   'unthread', 'down', 'tset', 'up', 'expose', 'hide', 'tag',
   'untag', 'invtags', 'tagbelow', 'hidetags', 'showtags'.
   See the manpage for details (when available - soon).

5) Implement a 'deldups' command to delete duplicate messages based on
   their "Message-Id" field, e.g., in replies to a mailing list that
   are also CCed to a subscriber.  (This can also be accomplished with
   the threading and tagging commands.)

6) Implement 'ifdef' and 'ifndef' commands, and make the conditionals
   nestable (i.e., implement a conditional stack).  The if/else/endif
   commands existed before, but they were primitive and undocumented.
   The 'if' command currently recognizes the "receiving", "sending",
   and "headersonly" mode keywords.

7) Teach the message selecting routine to understand regular
   expressions if "regex-search" is defined.  Otherwise only case
   insensitive substring matches are done (as in the past).

8) Teach the message selection routine to understand boolean
   expressions.  Improved "colon-modifier" support.  See the manpage
   for details (when available - soon).

9) Extend paging to all commands (where relevant).

10) Add shell like piping and redirection of (standard) output (if
   "enable-piping" is defined).  Extend completion to these contexts.

11) The manpage should follow soon!!!!
2006-11-28 18:45:32 +00:00
christos f56cde20e9 PR/35135: David A. Holland: timespec patches for utmpentry.c 2006-11-27 16:54:10 +00:00
christos df031f1edc PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
2006-11-25 21:40:04 +00:00
christos c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
wiz 09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
wiz 6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
christos 1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
christos 3d98aa3f4b fix spelling of accidentally; from Zapher 2006-11-24 19:37:02 +00:00
riz 2f0a27492f Make sys/exec_elf.h and machine/elf_machdep.h available to host
tools, and allow paxctl to use them when compiled as a host
tool.  This fixes the build on MacOS X (and perhaps other platforms)
2006-11-22 15:08:47 +00:00
lukem b5cee0bd31 Hindenburg exploded on May 6 not March 6 2006-11-22 04:54:46 +00:00
elad a84fee7faf Initial implementation of PaX Segvguard (this is still work-in-progress,
it's just to get it out of my local tree).
2006-11-22 02:02:51 +00:00
dsl efbf65678a Don't add all the help text when SMALLPROG is set. 2006-11-20 22:06:26 +00:00
jwise 8399bed491 Without commenting on what musicians do or do not belong in this file (the
current selection shows it's early eighties NoCal roots), if we're going to
include the births and deaths of other members of the Grateful Dead, we
should presumably include Jerry Garcia as well.

Make it so.
2006-11-20 17:27:56 +00:00
jwise 6fea1ccb2e Fix spelling of `Bangladesh' 2006-11-20 17:23:40 +00:00
jwise 0427d88cfc Eid-ul-Fitr is never in July, is celebrated in all Muslim lands (not just
Pakistan), and is a variable holiday.

Update to the date of its next occurrence (since calendar(1) does not
support the Muslim calendar), and fix its description accordingly.
2006-11-20 17:21:28 +00:00
jwise cb64006105 Update through a year from today. Barring support for the hebrew calendar
in calendar(1), this will have to do.  While there, tweak a few spellings,
and add a missing holiday.

Dates checked against http://www.hebcal.com/
2006-11-20 17:11:45 +00:00
jwise 500bebac90 It seems reasonable to include Christmas in calendar.christian. Per the
mishmash of anglican, catholic and other feast names included herein, use
both `Christmas' and `Feast of the Nativity' to denote this holiday.

This calendar could use serious updating, but it would be worth adding
better support for floating holidays first.
2006-11-20 16:58:55 +00:00
jwise d1096a69f3 Fix consistent misspelling of `Elassar', royal name of Aragorn/Strider. 2006-11-20 16:52:56 +00:00
elad 45c22579bb Properly handle 32/64bit headers; from christos@. 2006-11-20 16:51:44 +00:00
dsl b45e829a99 Update information on .ORDER and .WAIT.
Document the -d-flags and -dFfilename.%d options.
Mention MAKEFLAGS at the top, reword to make it clear that makefile and
Makefile are only used if no -f makefile is given.
2006-11-19 10:08:18 +00:00
dsl b5e3384b9c A rather large rototil in the way the parallel make code schedules jobs.
This gives a considerable speedup in the processing of .WAIT and .ORDER.
Both .WAIT and .ORDER stop both the commands of the node, and its dependant
nodes being built until the LH nodes are complete.
.WAIT only applies to the dependency line on which it appears, whereas
.ORDER applies globally between the two nodes.
In both cases dependant nodes can be built because other targets need them.
make now processes the target list left to right, scheduling child nodes
as they are needed to make other nodes (instead of attempting to generate
a bottom-up dependency graph at the start).  This means that 'make -j1'
will tend to build in the same order as a non-parallel make.
Note that:
    all: x y
    x: a .WAIT b
    y: b .WAIT a
does not generate a dependency loop.
But
    x: y
    .ORDER y x
does (unless something elswhere causes 'y' to be built).
2006-11-17 22:07:39 +00:00
elad 26e33be266 PR/35056: Keiichi Shima: netstat does not compile in crunched environment
Patch applied, thanks!
2006-11-15 11:55:00 +00:00
mrg bb915868b8 properly detect when the output fails (eg, full filesystem) and do not
delete the input file.  patch from PR#35048.
2006-11-13 21:57:59 +00:00
ad 119899c354 Remove authors section, and update history where appropriate. 2006-11-13 16:33:56 +00:00
dsl 29479294dd If the last 3 bytes of the debug filename supplied with -DFxxxx are .%d then
replace the %d with getpid().
Allows the trace files for different make process is a big recursive make
to be written to different files - and have a slight chance of being useful.
2006-11-11 22:07:37 +00:00
dsl d2c6b9d3fe Return the non-zero value that caused the Lst_ForEach[From] call to
terminate early to the caller.
2006-11-11 21:23:36 +00:00
dsl e2455acf6d Point a few diagnostic printfs (the ones that got away) to debug_file
instead of stdout.
2006-11-11 21:21:17 +00:00
christos f1ee5b182f fix flags assignment. 2006-11-10 21:39:57 +00:00
christos 9413d5ca54 more portability fixes. 2006-11-10 21:35:10 +00:00
christos 8d5697c533 don't include NetBSD specific files. 2006-11-10 20:55:37 +00:00
christos 4dec970d46 turn paxctl into a tool. pass lint. 2006-11-10 16:31:58 +00:00
christos 5a595b5295 PR/35027: Nicolas Joly: getconf argument parsing broken.
While there:
	- don't print numbern, print number\n
	- don't leak memory
	- consistently return EXIT_FAILURE
	- fix error checking
	- pass lint
2006-11-10 15:36:04 +00:00
christos fc3c3a7a5c include stdlib.h for exit. 2006-11-09 20:59:23 +00:00
christos 1dcd74fde3 eliminate alloca use. 2006-11-09 20:50:53 +00:00
christos bbfbbde1e9 eliminate the only alloca use and simplify the code. 2006-11-09 20:42:45 +00:00
christos f44d03be78 - add debugging to track nowarns
- make /*LINTED*/ take effect on unused functions
2006-11-08 18:31:15 +00:00
sjg e1e6c59ee6 Use of libutil to provide emalloc et al, should be predicated on
a native NetBSD build using TOOLDIR etc.
Otherwise use the local versions.

Reviewed by: christos
2006-11-01 23:48:20 +00:00
christos 3bf60b1367 From Anon Ymous:
The problem is that mime_decode_close() closes all files registered
after mip->mi_pipe_end and this is getting set in mime_sendmessage()
after a fflush().

When you print a large number of messages fflush() blocks and prevents
mip->mi_pipe_end from getting set before the SIGPIPE comes in and
jumps to the close block that calls mime_decode_close().  As a result,
mime_decode_close() was closing all the registered files including
obuf (mi_pipe_end was NULL).
2006-11-01 16:42:27 +00:00
christos eb238f14b4 new file from Anon Ymous 2006-10-31 22:37:19 +00:00
christos f1830357a3 new files from Anon Ymous. 2006-10-31 22:36:37 +00:00
wiz c00bfebf76 Various fixes. Bump date for previous. 2006-10-31 22:10:41 +00:00
christos 798fbc606d More fixes from Anon Ymous:
1) Removed the -B flag (it was stupid on my part) and added a short
   description indicating how to accomplish the same thing under the
   "Sending Mail" section of man mail(1).

2) Added a -H flag to dump the headers and exit.  It takes optional
   flags to restrict to old, new, read, unread, and deleted messages
   (the later being kind of useless - it shares code with something
   that already had it).

3) Restored the 'Save' command which somehow got mistakenly removed in
   the last commit and add documentation for it!  (My apologies to
   its author.)

4) Added a 'mkread' command to mark messages as read (the inverse of
   'unread').  Should we also have a 'mknew' command?

5) Added a 'smopts' command to keep a database of addresses and
   sendmail options to be used when sending messages to those
   addresses.  See man mail(1) for a fuller description.

6) Added 'indentpreamble' and 'indentpostscript' variables whose
   values are inserted before and after a quoted message (~m or ~M
   escapes).
=20
7) Added string formatting abilities for the 'prompt', 'insertpreamble',
   'insertpostscript', and header display strings.  These strings
   support all the strftime() format parameters as well as many more
   specific to mail (see man mail(1)).

8) Fix the -a flag so that it only takes a single filename, unless
   "mime-attach-list" is defined.  This is more conventional and avoids
   unexpected whitespace issues.
2006-10-31 20:07:32 +00:00
elad 9e399b549b Some mdoc fixes. 2006-10-31 01:27:53 +00:00
christos 11c53ad61c kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.
2006-10-30 20:22:53 +00:00
uwe 4e4935bba0 Include <sys/cdefs.h> and use __used on config[] instead of the ifdef dance.
Prevents gcc4 from g/c'ing embedded config from VAX kernels.
2006-10-29 23:00:44 +00:00
dsl 72c6703a09 Rename 'struct Lst' to 'struct List' and 'struct LstNode' to 'struct 'ListNode'
in lst.d remove a small barrowload of casts from the lst.lib bloatset.
2006-10-27 21:37:25 +00:00
dsl 16c8499ed2 Since 'ClientData' is 'void *', nuke almost all the (ClientData) casts. 2006-10-27 21:00:18 +00:00
lukem 5b87c223c9 Use "see" instead of "c.f.".
Per feedback from Valeriy E. Ushakov.
2006-10-27 01:29:17 +00:00
wiz 7b2e399484 Some cleanups from the person without a name. 2006-10-26 15:26:37 +00:00
wiz 09e63f3f79 Sync usage with manpage. 2006-10-26 11:12:41 +00:00
wiz 2a68b10b7d Bump date. 2006-10-26 11:12:13 +00:00
wiz 5d62300779 Pull single letter options together.
-r and -w need at least one argument, so document as such. Mark up GET_REPORT.
2006-10-26 11:12:00 +00:00
wiz 04f37109b9 New sentence, new line.
Use .Pp instead of .sp. Whitespace cleanup. Bump date for previous.
2006-10-26 11:05:29 +00:00
wiz a45316f7a5 Bump date for previous. 2006-10-26 10:49:35 +00:00
mrg 272d745880 #if 0 some unused variables. 2006-10-26 01:38:11 +00:00
mrg fd95deac95 merge less-394. 2006-10-26 01:33:08 +00:00
mrg cea4831cdf import less 394. this includes these changes:
* Add history file to save search and shell command history between
  invocations of less.

* Improve behavior of history list for search and shell commands.

* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.

* Improve handling of UTF-8 files and commands, including better
  line wrapping and handling double-width chars.

* Added LESSUTFBINFMT environment variable to control display of
  non-printable characters in a UTF-8 file.

* Add --with-secure option to configure, to make it easier to
  build a secure version of less.

* Show search matches in the status column even if search highlights
  are disabled via the -G option or the ESC-u command.

* Improve performance when the file contains very long lines.

* Add "windows" charset.

* Add man page for lessecho.

* Add support for erase2 character, treated same as erase.

* Use ASCII lowercase/uppercase logic when operating on the command line.

* Update makefile for Borland C++ 5.5.1.

* Fix bug in calculating number of pages for %D prompt.

* Fix bug in handling tag file error.

* Fix obscure bug if input file is deleted while viewing help.

* Fix bug handling filenames which include square brackets.

* Fix possible buffer overflow in "global" tag search.

* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.

* Fix buffer overflow in reverse search.

* Removed some old copyrighted code.
  This probably breaks OS/9 support.
2006-10-26 01:31:48 +00:00
mrg ad5d44bc09 also need charset.h now. 2006-10-26 01:30:33 +00:00
mrg 556af87115 import less 394. this includes these changes:
* Add history file to save search and shell command history between
  invocations of less.

* Improve behavior of history list for search and shell commands.

* Add -K (or --quit-on-intr) option to make less exit immediately on ctrl-C.

* Improve handling of UTF-8 files and commands, including better
  line wrapping and handling double-width chars.

* Added LESSUTFBINFMT environment variable to control display of
  non-printable characters in a UTF-8 file.

* Add --with-secure option to configure, to make it easier to
  build a secure version of less.

* Show search matches in the status column even if search highlights
  are disabled via the -G option or the ESC-u command.

* Improve performance when the file contains very long lines.

* Add "windows" charset.

* Add man page for lessecho.

* Add support for erase2 character, treated same as erase.

* Use ASCII lowercase/uppercase logic when operating on the command line.

* Update makefile for Borland C++ 5.5.1.

* Fix bug in calculating number of pages for %D prompt.

* Fix bug in handling tag file error.

* Fix obscure bug if input file is deleted while viewing help.

* Fix bug handling filenames which include square brackets.

* Fix possible buffer overflow in "global" tag search.

* Fix possible buffer overflow in usage of LESSOPEN and LESSCLOSE.

* Fix buffer overflow in reverse search.

* Removed some old copyrighted code.
  This probably breaks OS/9 support.
2006-10-26 01:05:30 +00:00
dsl adb344c8f2 Rename Lst_Append() to Lst_InsertAfter() and Lst_Insert() to Lst_InsertBefore()
to better explain their actions.
2006-10-25 20:17:40 +00:00
dsl 7ef877a8c0 Fix previous - need to add a lstPrev() 2006-10-25 20:05:59 +00:00
dsl 95938658de Replace 'a == b ? FALSE : TRUE' with 'a != b'
Add missing () in expansion.
2006-10-25 19:45:22 +00:00
dsl 0ce4eb1f8a Only do dynamic dependecy expansion once, and follow by a single filename
globbing.
The old behaviour was the perform variable expansion and globbing on the
output of both the variable expansion and globbing.  Which allows some very
strange behaviour if, for example, globbed filenames contain $ symbols.
Unconditionally add new nodes from these expansions even if the names are
already children.  The .WAIT code needs the order of children preserved.
2006-10-25 19:44:10 +00:00
mrg 712a3f3aae wrap a long line 2006-10-25 04:44:39 +00:00
christos 933195ac45 more meaningful variable name. 2006-10-24 19:57:05 +00:00
gson fb72156a3c Added volatile keyword to variable that might be clobbered by longjmp 2006-10-24 08:29:47 +00:00
jdolecek d1de60425b fix check for field order to allow .0 form in "-k 1.2,1.0"
fix provided in PR bin/25572 by Ross Patterson
2006-10-23 20:36:17 +00:00
jdolecek a2e8970e19 when using -o into file which already exists, copy the permissions
of the original file to the new (sorted) file

adresses PR bin/26860 by Michael van Elst
2006-10-23 19:53:25 +00:00
christos f2640eb139 simplify 421 printing code (jani at xeebioneurope dot de) 2006-10-23 19:53:24 +00:00
jdolecek bfa086e40a replace access(2) + /dev/ prefix check with lstat(2) and S_ISCHR()/S_ISBLK()
part of PR bin/26860 by Michael van Elst

while here, put output file fopen() inside the code block of the
only code path where it's actually needed, to make the logic more obvious;
and in the "stdout" case, initialize toutpath to empty string rather
then /dev/stdout, to make it clear /dev/stdout is not actually used
2006-10-23 19:39:54 +00:00
he d59cb8e7b8 Fully initialize the last element of menu_def[]. 2006-10-23 19:29:48 +00:00
jdolecek 165c6691e1 use F_OK instead of 0 for second parameter of access(2)
part of PR bin/26860 by Michael van Elst
2006-10-23 19:11:46 +00:00
christos f1aa39b33c deal with machines where char is unsigned and with chars > 127 2006-10-23 18:22:00 +00:00
mrg dbdbfa2c22 since register_t is sometimes unsigned, cast to (long) to check >= 0. 2006-10-23 04:13:51 +00:00
christos 39a6c2fdf2 allow 0 sized structs in c9x 2006-10-23 00:15:58 +00:00
christos 5ffa3fb1be add zero sized array handling. It is a little too chatty now. 2006-10-23 00:10:29 +00:00
pooka 9d92bd9b4c "teach" about VT_PUFFS 2006-10-22 22:56:26 +00:00
christos f0762ecc01 Include bsd.sys.mk so that HOST_SH is defined. (Hi apb) 2006-10-22 22:22:39 +00:00
christos 97e81e479c sprinkle volatile. 2006-10-22 16:48:34 +00:00
christos c3c65c3c0c use c99 initializer. 2006-10-22 16:47:50 +00:00
christos 528614c11b sprinkle volatile. 2006-10-22 16:45:35 +00:00
christos 88bb03c92e use c99 initializer. 2006-10-22 16:44:46 +00:00
christos 8a3920f2c8 use c99 initializers
consistently terminate nlist arrays with NULL not ""
2006-10-22 16:43:24 +00:00
christos 7284ae463f use c99 initializers. 2006-10-22 16:36:44 +00:00
christos b9cc3c0e19 - add volatile
- fix an missing initializer.
2006-10-22 16:25:19 +00:00
christos 088aec4701 sprinkle volatile. 2006-10-22 16:23:20 +00:00
christos e71453a117 don't check the wrong variable for being negative! 2006-10-22 16:20:39 +00:00
christos 92706ef61d make nlist struct static and use c99 initializers 2006-10-22 16:17:44 +00:00
christos 2541a5f2fe use c99 initializer. 2006-10-22 16:14:07 +00:00
christos ccf5505f5c remove bogus assertion. 2006-10-22 16:13:23 +00:00
christos afb23e8f50 use c99 initializer. 2006-10-22 16:12:20 +00:00
christos f3d3c4b618 missing initializers. 2006-10-22 16:11:34 +00:00
scw 321742a838 Stick with unsigned long for _BSD_SIZE_T_ regardless of LP64/ILP32. 2006-10-22 11:20:44 +00:00
mrg 478347642c avoid assigning a void * to an int just to see if it is non-zero or not.
use %zu to print a size_t.
2006-10-22 08:29:36 +00:00
mrg 1aa136c1a1 mail/head.c: make the previous delta only apply if FMT_PROG is not defined
fmt/Makefile: define FMT_PROG.
2006-10-22 08:22:34 +00:00
dsainty f903859f35 Implement an option to reset all values (rather than attempting to read
them) to allow setting item values on certain pesky devices that otherwise
error out on the GET_REPORT command.

Indicated via the new -z flag.
2006-10-22 06:16:37 +00:00
dsainty 3d56b3bab3 Add support for addressing multiple items with the same name (for buggy
devices).

The syntax and patch were discussed with Lennart about 1.5 years ago :)

Knock the BUG entry out of the man page.
2006-10-22 05:09:14 +00:00
christos 1df0b9ba30 add ~@ 2006-10-22 00:35:29 +00:00
christos 5221554c1a Fix yes/no handling. 2006-10-21 21:51:47 +00:00
christos 8207b28a5c From our anonymous user:
- mime and character set handling
- command line editor and completion
- many code improvements
2006-10-21 21:37:20 +00:00
itohy 3c46d522e6 Remove unneeded \ from awk script.
Fix PR port-sparc64/34863.

This also caused warning on old NetBSD environments (with GNU awk) like
awk: cmd. line:80: warning: escape sequence `\#' treated as plain `#'
2006-10-21 04:48:29 +00:00
he f0947b3081 The symbol to define to 1 if a pointer to an int fits in a long is
INTPTR_IS_LONG, not INTPTR_IS_ULONG -- the latter is unused in
other parts of lint's code.  This stops vax's lint from complaining
about conversion of integer constants to 'unsigned long' in function
argument lists, via a proper define of INT_RSIZE in common/inittyp.c.
sh3 defined this to 0, so was actually not affected, but better to
eradicate the typo there as well.
2006-10-20 12:51:12 +00:00
he e02c317333 Simplify the previous change. There's actually no need to treat constants
specially in ptconv(), the constants will be checked in convert() anyway.
2006-10-18 21:34:39 +00:00
freza 57dc9ea382 Treat multiple
SPECIAL prog {objs,objpaths,keepsymbols} itemX

lines (where "prog" is fixed) in crunchgen configuration the same as

  SPECIAL prog {objs,objpaths,keepsymbols} item1 ... itemN

OK by David Laight
2006-10-18 21:20:44 +00:00
he 4228dd3afb Partly redo when to emit warnings for argument type conversions.
Remove the apparently always true "styp(nt) != SHORT" part of the
innermost test.  Allow atomatic conversion of literals as long as
they fit into the target type.

This should fix some of the lint issues in proplib on some of our
platforms.

Approved by christos.
2006-10-18 00:01:19 +00:00
he 081971a032 Use __inline instead of inline, to allow linting of ourselves... 2006-10-17 23:53:30 +00:00
christos 3ceb6c1c20 warns=4, pass lint. 2006-10-17 15:13:08 +00:00
christos c384594e4f use howmany(), instead of open-coding the calculation. 2006-10-16 16:44:20 +00:00
he 62e8b0f3fa Make a minimal attempt at distinguishing between the hosts and the
targets integer data type value ranges.   For now we just use the
hosts uint64_t for parsing & storing integers constants, and test
against the targets limits and assign appropriately, instead of
sometimes (inappropriately) going via the hosts u_long type.  As
long as none of our architectures have target long or quad data
types strictly larger than 64 bits, we should be fine with this
fix.

Furthermore, as they stand at the moment, we can't use the current
TARG_INT_MAX and TARG_LONG_MAX constants in C preprocessor expressions,
so remove the conditional on them being equal.  Yes, this will
produce dead code for some targets.

This allows an ilp32 host to lint for an lp64 target which uses
e.g. the targets ULONG_MAX constant without triggering an "integer
constant out of range" warning.

OK'ed by christos.
2006-10-16 13:33:57 +00:00
dsl c183c301dc Add some more explanitory comments.
Rename 'allsrc' to 'curSrcs' so that the variable passed to ParseDoSrc (etc)
has the same name as the local in the calling routine, rather than a name
that seems to imply a more global and persistent list.
2006-10-15 21:17:27 +00:00
christos 6cbdf318bf - make a variable volatile, that gcc warns vfork will clobber.
- don't blindly walk before the beginning of the buffer because of a
  corrupt dependency file. In this case the first character of the
  dependency file was a :
2006-10-15 18:50:47 +00:00
christos 2bd08fcc54 in the same way that we need an extra level for arrays, do the same for struct. 2006-10-15 18:18:54 +00:00
dsl fb889ecbbd Change a 'while' loop to a 'for' loop so we can add 'free(line)' into the
loop continue part.  Remove the 'free(line)' from teh end of the loop body,
change the gotos into continues and collapse out some 'else if's.
All in the name of code transparency.  No functional changes.
2006-10-15 18:08:14 +00:00
christos 3e006796cf previous fix broke array initializers. 2006-10-15 15:08:20 +00:00
dsl 0195907f3d Output all debug trace output through 'debug_file' defaulting to 'stdout'.
(Almost all the debug output went there, but some went to stderr.)
Split the parsing of -d (debug flags) out into its own routine.
Allow the output filename to be changed by specifying -dF<file> to create
a log file, or -dF+<file> to append to it. <file> may be stdout or stderr.
Also change so that -d-<flags> acts on <flags> locally but doesn't copy
them to MAKEFLAGS so they aren't inherited by child makes.
I'm not 100% happy with the command line syntax for the above, so they are
currently undocumented.
2006-10-15 08:38:21 +00:00
dogcow 37bb4f935a do the #ifndef lint dance for __RCSID; also, include the appropriate
headers if cross-building the program in tools/.
2006-10-15 01:16:31 +00:00
christos e578e35910 Fix c99 initialization issues. Now the regression tests work. 2006-10-14 21:08:50 +00:00
wiz 994a49a16c Comma in enumeration. No dot at end of SEE ALSO. 2006-10-13 21:22:44 +00:00
wiz 4cfcd239a1 Various fixes. 2006-10-13 21:06:01 +00:00
wiz 66402a89e3 Macro improvements. 2006-10-13 20:33:31 +00:00
mlelstv 0ce7ae1e3c End a decompression when trailing garbage is found. It emits a warning
message and causes a non-zero exit status (similar to GNU gzip).
Fixes PR bin/33045.
2006-10-13 20:17:46 +00:00
mlelstv a3ee681f33 Abort decompression with an error when EOF is reached on input. The
test output will then be 'NOT OK'. Fixes PR bin/32933.
2006-10-13 20:16:32 +00:00
elad c136b6cd0d Refactor code a bit so we only use kmem when we really need it. 2006-10-13 16:33:57 +00:00
tacha 7a76839cea All members of PLAN should be initialized. 2006-10-12 08:46:18 +00:00
apb 2eed134b40 De-__P(), remove trailing spaces, sprinkle a few const, WARNS=4. 2006-10-11 19:51:10 +00:00
dsl 505a3bb2b7 There is no need to resize the pollfd array, it can only ever have 2+maxJobs
entries, so allocate at startup.
Use an 'int jobPipe[2]' within the job structure, and create pipes directly
into it.  Common up the code that creates all the pipes - making them all
non-block on the read side in the process.
Call Job_CatchChildren() directly from Job_CatchOutput() so that it only
gets called when a child actually exits.
NB: Something causes a 'pregnant pause' if (for example) you call 'nbmake obj'
in src/tools.  Introduced between netbsd 3 and 4.
2006-10-11 07:01:44 +00:00
reed f9a8db2401 Remove parenthesis from around a sentence.
Refer to vi manpage for option -r.

Mention rc.d start up script for this.

Add rc.conf to SEE ALSO.

Remove sentence about it originally done at boot time.

Fix date - it was added in 1996. And mention that the
script was renamed in 2001.
2006-10-10 03:30:42 +00:00
reed 0b966788bb Also point to new virecover manual page. 2006-10-10 03:27:05 +00:00
apb 4e86f6ddf0 In a non-native build, always use a shell to execute commands. This may
be necessary in a weird cross-build environment.  Previously, if the
command looked simple enough, we would try to exec it directly.

OK sjg, christos
2006-10-09 20:46:33 +00:00
apb cd195008c6 Allow make(1) to be built with something other than "sh" as the
shell.  To use this, build with -D_PATH_DEFSHELLDIR=\"/path/to/dir\"
-D_BASENAME_DEFSHELL=\"shell\".

* Change the order of entries in shells[].  Now DEFSHELL defaults to 0,
  and shells[0] describes the default shell.  This will be "sh" in the
  usual case.

* If _BASENAME_DEFSHELL is defined, insert an additional entry above
  "sh" in the shells[] array, making this new entry shells[0].  The
  new entry is assumed to refer to an sh-compatible shell with a
  non-standard name.  (Tested using _PATH_DEFSHELLDIR="/usr/pkg/bin" and
  _BASENAME_DEFSHELL="bash".)

* In the shells[] entry for "sh", test defined(MAKE_NATIVE) &&
  defined(__NetBSD__) to decide whether we can use the "q" flag.

OK sjg, christos
2006-10-09 20:44:35 +00:00
apb 5e0e754292 Change the order of several items to ensure that
top can work without a termcap "li" capability.
Fixes PR 34717 by der Mouse.
2006-10-09 19:49:51 +00:00
dsl 01a426f62c Rip out the code for the undocumented -P (don't use pipes for command
output) option.  I'm sure it is baggage from the past.
2006-10-09 14:36:41 +00:00
christos be4d21eeca use ecalloc in previous 2006-10-09 14:27:06 +00:00
dsl 4a7a153be0 Rip out the code for not 'USE_PGRP', I can't imagine it being useful!
My guess is that it is compat code for before the pgrp stuff was added.
2006-10-09 13:49:59 +00:00
dsl 9f624ea07b Instead of trying to report all the 'job suspended' and 'job resumed'
messages whan make itself is suspended (ie by ^Z) before make actually
suspends, supress the messages during this sequence.
This means we don't care that they would be output after the suspend
and we can stop attempting to reap child status from withing the signal
handler (which doesn't work for recursive parallel makes).
The code simplification means that we can remove much of the code that
blocked signals - since the signal handlers (expect that for ^C and friends)
now do almost no work.
2006-10-09 13:40:11 +00:00
dsl 861fc6431d Fix core dump caused by non-zerod memory.
From Auster in current_users.
2006-10-09 11:37:31 +00:00
dogcow f6a57672cd Build virecover.0 2006-10-08 21:47:21 +00:00
peter e263dfd62f WFORMAT is no more... 2006-10-08 17:52:28 +00:00
elad 805c3d6901 PR/22228: Jeremy C. Reed: a man page for virecover(8)
Man page added, thanks!
2006-10-08 14:19:17 +00:00
elad 854038392c PR/30819: Peter Postma: src/usr.bin/shlock has no license
Thanks to Matt Fleming for contacting Erik E. Fair and getting his
agreement to put a TNF license on this.
2006-10-07 21:13:00 +00:00
elad 925c6f17f2 PR/29722: Andreas Kling: chpass temporary files in /etc not always unlinked
We had a (long) discussion about this in #NetBSD-code and the consensus was
that /tmp should always be sticky (+t), and as such it is safe to create
the temporary files for chpass(1) in there. We added a check to guarantee
this (and bail out otherwise) and now temporary files are created in /tmp,
not filling up /etc.

Thanks to rivo nurges et al.
2006-10-07 20:09:09 +00:00
elad 1232ea27c4 PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
apb bfb3f336ef Document "find ... -exec ... {} +". Also make some other minor updates.
Changes initially supplied by John Hawkinson in PR 20470, but edited by me.

/msg wizd: search for ".sp"
2006-10-07 17:06:28 +00:00
apb b90dcb5d01 Add support for "find ... -exec ... {} +".
The code is from John Hawkinson in PR 20470.  I adapted it to current,
and made some KNF and comment changes.
2006-10-07 17:04:02 +00:00
apb dbe2acacef Add some missing entries in lists, and some serial commas.
Inspired by PR 20470 from John Hawkinson.
2006-10-07 16:34:06 +00:00
elad e3f885bca5 PR/31053: Roland Illig: Enhancement: getconf -a to list all applicable
variables

Thanks for the patch!
2006-10-07 15:20:44 +00:00
tron 1b5edf0b17 Fix broken line continuation, probably caused by editor word wrap. 2006-10-07 13:04:43 +00:00
elad 3bd9466e80 PR/32855: der Mouse: [dM] ftp -q is broken (or misdocumented)
Patch applied, thanks!
2006-10-07 10:49:14 +00:00
elad 2a7d09e7cd PR/34662: martijnb at atlas dot ipv6 dot stack dot nl: readlink doesn't
grok -f, and there's no alternative (+fix)

Patch applied with minor tweak (%y -> %R, as it was already taken) plus
some nits from myself. Thanks!
2006-10-07 10:41:50 +00:00
elad d730e7f066 Add standard TNF license, requested by cube@. 2006-10-07 09:40:03 +00:00