Commit Graph

10606 Commits

Author SHA1 Message Date
wiz
eff7f14d80 Sync usage with man page. 2009-06-21 15:04:56 +00:00
wiz
205b6ccb09 Fix error in previous. 2009-06-21 15:04:07 +00:00
wiz
bd7419a011 Sort options and option descriptions. Use EXIT STATUS header for exit status
description. Use Pa for paths.
2009-06-21 15:02:54 +00:00
wiz
37d95f331f Sync usage with man page. 2009-06-21 14:59:53 +00:00
wiz
65c247649d Use Pa for paths. 2009-06-21 14:58:58 +00:00
wiz
7bba45dc18 Sync usage with man page. 2009-06-21 14:58:16 +00:00
wiz
f29f41d64b Use Pa for paths. 2009-06-21 14:57:33 +00:00
wiz
43ec52d73e Fix Dd argument. New sentence, new line. Remove superfluous .Pp. 2009-06-21 14:56:49 +00:00
christos
75a86bdab6 PR/40274: Takahiro Kambe: "P" flag stops rotating files. 2009-06-20 19:34:19 +00:00
christos
e5962c583f PR/22627: Greywolf: Support for yp nicknames map. 2009-06-20 19:27:26 +00:00
mrg
95c070cab9 - add extended WAVE header support
- attempt to play a bunch more WAV files
2009-06-18 02:37:27 +00:00
sjg
39bb2e98a1 Child of vfork() must not alter the state of parent.
There is no need to touch the state of vars in child anyway.
Change 2nd arg to Var_Export1() to indicate if we are the parent or child,
and only set flags in the parent.
2009-06-16 05:44:06 +00:00
christos
d3f46c621c PR/41581: Der mouse: window SEGV with certain terminals. does strcmp first
and then checks for null pointer for underline and bold.
2009-06-12 15:19:52 +00:00
ginsbach
2248a77687 Add -o output option, which can be used to specify an output file. The
file can even be the same as the input file.  Idea from IRIX unifdef(1).
2009-06-11 03:16:34 +00:00
yamt
6539ec6cea tabify and wrap long lines. 2009-06-08 21:58:44 +00:00
gson
57a8678315 Fix race condition causing "install -d" to randomly fail when multiple
concurrent install processes try to create the same directory.
Modelled after the code handling the "mkdir -p" case in mkdir(1).
2009-06-08 14:22:01 +00:00
christos
e3dfcc9dfe remove file 2009-06-07 23:16:50 +00:00
christos
0587e0bf24 unhook ssh 2009-06-07 22:46:43 +00:00
tron
cef801c39d Chuck Berry was born in St. Louis, Missouri, and not in St. Jose,
California. Patch submitted by Marc Balmer in private e-mail.
2009-06-07 10:25:39 +00:00
joerg
57b5269dad Explicitly include fcntl.h for O_CREAT to not depend on namespace
pollution.
2009-06-05 19:55:43 +00:00
sjg
2428caab9f Missing ':' in .ORDER example 2009-06-01 23:28:39 +00:00
christos
3b9e5891ba fix typo (Silas Silva) 2009-05-28 14:57:42 +00:00
snj
a1602d4a22 Fix some longstanding typos and remove an entry that is both redundant
and wrong at the same time.
2009-05-27 17:17:03 +00:00
ad
d991fcb3b6 More changes to improve kern_descrip.c.
- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.
2009-05-24 21:41:25 +00:00
plunky
9b85369a0a use system provided MAX(a, b) macro instead of defining our own 2009-05-21 14:44:01 +00:00
christos
ebd7e1e10a catch up with rtld changes 2009-05-20 16:20:01 +00:00
wiz
8ab6f9e454 Sort options. Sort sections. Remove superfluous .Pp. 2009-05-18 12:03:06 +00:00
wiz
ea548d35a5 Sort options. 2009-05-18 09:37:44 +00:00
christos
434ce22684 fix dependencies. 2009-05-16 21:37:48 +00:00
plunky
bbb0e93abb add a -P flag to attempt immediate pairing 2009-05-16 07:18:42 +00:00
wiz
7560090357 Whitespace fix. 2009-05-13 22:56:42 +00:00
cube
d502f7a8c0 Dependency on config_time.src was removed today from Makefile.kern.inc, so
starting from that date it's not necessary to create it.  (Of course that
won't happen until config version is bumped for some other reason.)
2009-05-13 18:54:34 +00:00
wiz
b0f5ac9634 Add missing apostrophe. 2009-05-12 18:54:31 +00:00
plunky
a092292999 update rfcomm_sppd to use the new Service Discovery API 2009-05-12 18:43:35 +00:00
plunky
1b7404b7aa update to use the new service discovery API 2009-05-12 18:39:55 +00:00
plunky
384153c15a update sdpquery with a newer version that fetches the whole service
record and displays it in a human readable fashion.
2009-05-12 18:37:50 +00:00
plunky
b2f181453f this needs libsdp no more 2009-05-12 13:15:10 +00:00
plunky
8cea406d3c does no longer need libsdp 2009-05-12 13:13:34 +00:00
plunky
cf71b1e8c5 no longer needs libsdp 2009-05-12 13:11:18 +00:00
christos
108470e3b9 unhook file 2009-05-08 17:47:00 +00:00
wiz
0407c1b885 Add support for -S and -s option, which limit the results to a specific
architecture or section, respectively.
Based on a patch for OpenBSD from Ingo Schwarze, modified for NetBSD by me.

Add some constification.

Ok lukem@ (to the non-constified version of the patch).
2009-05-08 12:48:43 +00:00
plunky
8650959ae7 ensure that sdpquery continues to build while I am in progress of
updating Service Discovery Protocol API
2009-05-07 18:12:08 +00:00
plunky
539b5ab318 Ensure that these programs continue to build while I am in the
process of updating the Service Discovery Protocol API.
2009-05-07 18:08:55 +00:00
ginsbach
3cad8d1d2c Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide
and RFC-4506 for additional details.)  [From FreeBSD and OpenSolaris]
2009-05-06 14:30:51 +00:00
wiz
b6359ce897 Punctuation. 2009-05-04 21:13:58 +00:00
wiz
a44b9acd01 Use Sx. Remove superfluous .Pp. 2009-05-04 21:11:53 +00:00
wiz
d8c85176f3 New sentence, new line. 2009-05-04 19:45:51 +00:00
mlelstv
0a0ecc0e52 make flushpendq drop only entries for the current thread. 2009-05-02 21:01:01 +00:00
christos
24132af2b3 PR/41338: Michael van Elst: ktruss mixes filename arguments
Restore call to dumppendq.
2009-05-02 18:26:53 +00:00
christos
1a90c89fed Add __alignof__. 2009-05-02 16:10:49 +00:00
christos
6892362adf add variable declarations in for loops for c99 2009-05-01 22:03:36 +00:00
wiz
52d9a489d1 Bump date for previous. 2009-05-01 21:38:19 +00:00
apb
be7721cd8f Add support for writing sha256, sha384, and sha512 digests to
a metalog.  mtree(8) has supported these for a long time.
2009-05-01 20:16:23 +00:00
christos
ba99a2b3a4 PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks
there are no entries if only one of utmp/utmpx support is selected
mangled && -> ||
2009-05-01 14:26:10 +00:00
snj
eced0c510c Bah, fix typo in last: 2006, not 2005. 2009-04-30 16:23:58 +00:00
snj
78ee216a46 Add NetBSD 3.1. 2009-04-30 16:20:50 +00:00
wiz
749e1a3b98 void tabs, for consistency. 2009-04-29 22:34:31 +00:00
snj
215e6d35e2 NetBSD 5.0. 2009-04-29 22:25:03 +00:00
yamt
a26c5cc0c2 remove read-write code because it's dangerous.
there's no point to try this hard anyway.
2009-04-28 02:47:12 +00:00
ginsbach
5fabed93f9 Print left and right type and not left type twice. (Hi Christos!) 2009-04-27 15:08:10 +00:00
christos
c37383f14b fix broken overflow test. 2009-04-26 15:55:50 +00:00
lukem
a60f776aae Revert incorrect change made as part of the WARNS=4.
Fixes "ftp host [port]" on the CLI.
Noted by Geoff Wing.
2009-04-24 08:57:26 +00:00
tsutsui
c37f283f47 Fix -Wcast-qual and -Wsign-compare issues. 2009-04-23 14:49:32 +00:00
drochner
0fa7059102 define YY_NO_INPUT where appropriate, from Kurt J. Lidl per PR misc/41160 2009-04-20 16:05:29 +00:00
drochner
3f2cf355d3 if YY_NO_INPUT is defined, disable not only the declaration but also
the definition of yyinput(), avoids compiler warnings with newer gcc.
from Kurt J. Lidl per PR misc/41160, with a minor change to make it
generate paired #directives in the "-+", ie c++, case
2009-04-20 16:01:17 +00:00
tsutsui
e7f34be0d2 Fix another -Wsign-compare issue.
XXX: is it really worth to keep non native aout/coff/ecoff support here?
2009-04-18 11:30:30 +00:00
dogcow
7aaa51f5d6 Fix sign/unsigned and discards qualifiers. Based on patch by mlelstv. 2009-04-18 10:12:42 +00:00
mlelstv
333d9d13b5 avoid compiler warnings about shadowed declarations. 2009-04-18 09:04:34 +00:00
lukem
efa035ed26 Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
lukem
d96ab870e3 Attempt to fix previous to address a coredump. 2009-04-18 03:25:34 +00:00
dyoung
f853fb7538 Rename variables to fix GCC warnings: local variables optopt and optarg
shadow globals.
2009-04-17 20:25:08 +00:00
apb
7097476cb5 Re-calculate size and digestresult after stripping, to ensure that
correct values appear in the metalog.
2009-04-17 06:09:08 +00:00
tron
80ab5902d9 Fix build problem on big endian ports where ntohl() doesn't convert the
argument to "uint32_t" automatically.
2009-04-16 13:52:52 +00:00
jld
d61104a0f0 Another empty-body warning/error, another set of curly braces. This, and
the last one, appear to affect only the NO_DEBUG (e.g., SMALLPROG) build.
2009-04-15 04:19:39 +00:00
jld
882877eb33 Unbreak the build by adding curly braces to placate the empty-body warning. 2009-04-15 03:42:33 +00:00
dogcow
85e7c15ca3 more signed/unsigned comparison fixes 2009-04-15 02:07:20 +00:00
christos
7f812cd511 Lukemify (WARNS=4) 2009-04-15 01:20:57 +00:00
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
lukem
9a472d38d4 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 22:03:07 +00:00
lukem
238e973f29 Fix sign-compare issues 2009-04-14 10:11:28 +00:00
lukem
38a78fe6fc Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 09:55:07 +00:00
lukem
ee76095327 Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
lukem
3abdd2c250 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 09:41:30 +00:00
lukem
17d35bfb59 Fix WARNS=4 (-Wcast-qual).
Fix creation of tempfile
2009-04-14 09:18:41 +00:00
lukem
ae780f8105 Compile lint with WARNS=3.
Currently there are too many -Wsign-compare issues for WARNS=4.
2009-04-14 09:09:59 +00:00
lukem
e54a1dbe60 fix -Wcast-qual issues 2009-04-14 09:08:39 +00:00
lukem
4bfb0e2161 Fix -Wshadow and -Wcast-qual issues 2009-04-14 09:06:25 +00:00
lukem
4c61b31086 Fix -Wshadow issues 2009-04-14 09:03:45 +00:00
lukem
4c213f3e71 Fix -Wcast-qual issue 2009-04-14 08:59:45 +00:00
lukem
240747d69a Fix -Wshadow -Wcast-qual issues 2009-04-14 08:54:59 +00:00
lukem
91387bb4e5 Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare) 2009-04-14 08:50:06 +00:00
lukem
8c812af3cf fix -Wcast-qual issues 2009-04-14 08:00:48 +00:00
lukem
44f6d24c7f fix sign-compare issue 2009-04-14 07:59:17 +00:00
lukem
147c0c7b01 Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 07:58:38 +00:00
lukem
a4b11de136 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 07:54:51 +00:00
lukem
84a2852424 Fix -Wcast-qual issue 2009-04-14 07:41:36 +00:00
lukem
c53da74354 Fix WARNS=4 issues 2009-04-14 07:37:31 +00:00
lukem
19ffb16ab2 Fix another sign-compare issue 2009-04-14 07:36:16 +00:00
lukem
49d68c2eee fix sign-compare issues 2009-04-14 07:28:23 +00:00
lukem
14b71bc9c5 Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
lukem
23ed38873e fix sign-compare issues 2009-04-14 06:14:10 +00:00
lukem
95f5c18e58 Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
lukem
f76ec3edcf Fix -Wcast-qual issues 2009-04-14 05:46:25 +00:00
lukem
910d676151 Fix WARNS=4 issues (-Wcast-qual, -Wsign-compare) 2009-04-14 05:45:23 +00:00
lukem
7acf67f489 Fix WARNS=4 (-Wcast-qual -Wextra) 2009-04-13 23:50:49 +00:00
lukem
82983c1c4b Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
lukem
2b7977aec7 Fix -Wcast-qual issue 2009-04-13 23:44:49 +00:00
lukem
c2293a6fbf Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wextra) 2009-04-13 23:43:36 +00:00
lukem
0980aab530 Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare)
XXX: need a "cleaner" way to do the check in reverse.c, as a general rule
2009-04-13 23:33:25 +00:00
lukem
e7a39c4fb6 Fix -Wsign-compare issues 2009-04-13 23:20:27 +00:00
lukem
b33c816619 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 23:02:36 +00:00
christos
3f7bbc73e3 since we know the types, print what they are in error messages. 2009-04-13 21:17:37 +00:00
christos
1841106bd7 Allow kdump to be used as an ioctl decoder if invoked as ioctlname. 2009-04-13 14:39:23 +00:00
lukem
ec7aea6da3 Appease -Wsign-compare 2009-04-13 11:17:06 +00:00
lukem
64d3192b1d Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 11:07:59 +00:00
lukem
183f6d8af1 Fix WARNS=4 issues (-Wshadow -Wsign-compare) 2009-04-13 10:56:56 +00:00
he
ec30dc689c Do the -Wuninitialized workaround in a way which conforms to our
style guide, and remove a now unneeded LINTED comment.  From private
feedback.
2009-04-13 10:03:58 +00:00
lukem
932c7df00d fix sign-compare issue 2009-04-13 07:31:36 +00:00
lukem
a295808121 fix -Wcast-qual issue 2009-04-13 07:30:49 +00:00
lukem
d27a41bf3e Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:29:55 +00:00
lukem
9ad3f56728 Fix -Wsign-compare issues 2009-04-13 07:23:14 +00:00
lukem
859f324d7a Fix -Wshadow issues 2009-04-13 07:19:55 +00:00
lukem
62a63750ae fix -Wsign-compare issue 2009-04-13 07:18:38 +00:00
lukem
6c108bbd74 Fix WARNS=4 issues (-Wcast-qual -Wshadow) 2009-04-13 07:15:32 +00:00
lukem
37e1a87444 fix -Wsign-compare issue 2009-04-13 07:11:37 +00:00
lukem
2d873641b5 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:10:25 +00:00
lukem
fe3ad37a2e fix -Wcast-qual issues 2009-04-13 07:06:53 +00:00
lukem
354659f544 fix -Wshadow issues 2009-04-13 07:04:54 +00:00
lukem
f10a8652a4 fix -Wshadow issue 2009-04-13 06:42:25 +00:00
lukem
1fb398f92e Fix sign-compare issues 2009-04-13 04:37:53 +00:00
lukem
40df2046c0 Fix -Wcast-qual issue 2009-04-13 04:36:34 +00:00
lukem
4538623f7e Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-13 04:35:36 +00:00
lukem
f2495ea00a Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 04:24:29 +00:00
lukem
b9f234dd35 Fix -Wcast-qual and -Wshadow issues 2009-04-13 04:16:38 +00:00
lukem
ccc328a5e1 fix sign-compare issues 2009-04-13 00:41:28 +00:00
lukem
e1b4957e7f Fix -Wcast-qual issues 2009-04-13 00:37:05 +00:00
lukem
4d74937562 Fix WARNS=4 issues (-Wcast-qual -Wextra -Wsign-compare) 2009-04-13 00:27:38 +00:00
lukem
ba2ed01c76 Fix sign-compare issues 2009-04-13 00:12:16 +00:00
lukem
1e4c32c4f5 Fix sign-compare issue 2009-04-13 00:07:26 +00:00
lukem
b278226e33 Fix WARNS=4 issues 2009-04-12 23:59:37 +00:00
lukem
1f36782a81 Fix -Wcast-qual issue 2009-04-12 23:38:17 +00:00
lukem
fc99e5ea7c Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
he
a389f78e47 Work around a problem with gcc -Wuninitialized seen for our sh3 targets. 2009-04-12 22:47:39 +00:00
lukem
d5a0caad3b Fix many WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare).
Fix probable bug with numeric printing of anon ports when using sysctl.
2009-04-12 16:08:37 +00:00
lukem
2103c225d0 fix -Wcast-qual issues 2009-04-12 14:31:02 +00:00
lukem
a876f3904d fix -Wcast-qual issue 2009-04-12 14:28:30 +00:00
lukem
63c02b1078 fix -Wcast-qual & -Wsign-compare issues 2009-04-12 14:23:30 +00:00
lukem
15f4bd42af fix -Wcast-qual issues 2009-04-12 14:17:25 +00:00
lukem
9e3117efe1 fix sign-compare and cast-qual issues 2009-04-12 14:15:08 +00:00
lukem
004f13177b Fix WARNS=4 issues 2009-04-12 14:01:20 +00:00
lukem
743d88d8c2 fix sign-compare issue 2009-04-12 13:53:48 +00:00
lukem
6533b9aa4b Fix WARNS=4 issues 2009-04-12 13:53:02 +00:00
lukem
a4290d9694 fix sign-compare issue 2009-04-12 13:08:31 +00:00
lukem
fff2866fd3 Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 13:07:21 +00:00
lukem
4f6c9fecb1 fix -Wcast-qual issues 2009-04-12 13:01:55 +00:00
lukem
e72a1356ea fix sign-compare issues 2009-04-12 11:23:12 +00:00
lukem
39a84db38a fix sign-compare issue 2009-04-12 11:19:18 +00:00
lukem
1afaa212d9 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-12 11:18:21 +00:00
lukem
3a944ba17e Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 11:09:49 +00:00
lukem
10e84421a8 fix sign-compare issues 2009-04-12 10:51:38 +00:00
lukem
f143270c8d fix sign-compare issues 2009-04-12 10:31:14 +00:00
lukem
cbe072630f fix sign-compare issue 2009-04-12 10:27:08 +00:00
lukem
95ecf43b59 fix sign-compare issues 2009-04-12 10:25:35 +00:00
lukem
3d4efc3511 Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare). 2009-04-12 10:18:52 +00:00
lukem
d8b47884a2 fix -Wshadow issues 2009-04-12 07:07:41 +00:00
lukem
dadffc77c0 Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
lukem
f8d0e3558c Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare) 2009-04-12 06:18:54 +00:00
lukem
d5c1a211ce Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare, etc) 2009-04-12 03:35:43 +00:00
lukem
bc44ec3e93 add missing commas in initializer for .d and .h macros,
which appear to have broken the intended behavior of those.
2009-04-12 03:15:35 +00:00
lukem
77e8a794aa ANSI KNF 2009-04-12 03:13:09 +00:00
lukem
ed7ff06efe fix -Wsign-compare issues 2009-04-12 02:53:56 +00:00
lukem
bfbbea0b9b fix -Wsign-compare issue 2009-04-12 02:51:36 +00:00
snj
ab4a318284 Typo fix: many file -> many files. 2009-04-11 15:51:42 +00:00
christos
27b54bd918 - magic fix for short files
- knf
from Anon Ymous
2009-04-11 14:22:32 +00:00
lukem
35d7a878c6 fix -Wsign-compare issues 2009-04-11 13:01:27 +00:00
lukem
885bfa9fdf fix -Wsign-compare issue 2009-04-11 12:58:03 +00:00
lukem
5b2a99f633 fix -Wsign-compare issues 2009-04-11 12:53:52 +00:00
lukem
5cc303e13d Fix WARNS=4 issues (-Wcast-qual -Wsign-compare -Wshadow) 2009-04-11 12:41:10 +00:00
lukem
36869194a3 Fix -Wcast-qual and -Wsign-compare issues 2009-04-11 12:24:37 +00:00
lukem
35ccf17c8c fix -Wcast-qual issues for WARNS=4 2009-04-11 12:18:45 +00:00
lukem
dcbf1a1ff2 Fix WARNS=4 issues (many -Wcast-qual, one -Wsign-compare on amd64) 2009-04-11 12:16:12 +00:00
lukem
49f3b098c6 Fix WARNS=4 (-Wcast-qual -Wsign-compare -Wshadow) issues. 2009-04-11 12:10:02 +00:00
lukem
39a8950629 fix -W sign-compare issues. 2009-04-11 11:52:35 +00:00
lukem
53d5aab9a2 fix WARNS=4 issues 2009-04-11 11:26:34 +00:00
lukem
31582cc99b fix -Wsign-compare and other WARNS=4 issues 2009-04-11 10:43:09 +00:00
wiz
8216b2d443 Bump date for previous. 2009-04-11 09:44:22 +00:00
apb
af9429a671 Honour the TMPDIR environment variable instead of always using /tmp
as a place to store temporary files.
2009-04-11 09:41:18 +00:00
christos
ca13337dfe From Anon Ymous:
- Remove all longjmp(3) calls from signal handlers.  Instead, we post
to an internal signal queue and check that periodically.  All signal
related code is now in sig.c, except for the SIGCHLD handler which
remains in popen.c as it is intimately tied to routines there.

- Handle SIGPIPE in type1() regardless of mime support, or else the
handler in execute() will prevent our error code from being returned
resulting in 'sawcom' not being set on the first command as it should.
This only affected the initial behavior of the "next" command without
mime support.

- Add the 'T' flag to many commands in cmdtab.c that should not look
like the first command.  E.g., start mail on a mailbox with multiple
messages, run "set foo", then "next", and watch the second message get
displayed rather than the first as is the case without the first "set"
command.

- Add file descriptor and file handle leak detection.  Enabled by
DEBUG_FILE_LEAK.  This will likely disappear in the future.

- Fix a long standing (since import in 1993) longjmp() bug in
edstop(): the jmpbuf was invalid when quit() is called at the end of
main.

- Fix a long standing bug (since import in 1993) in snarf() where it
didn't strip whitespace correctly if the line consisted only of
whitespace.

- Lint cleanup.

- New Feature: "Header" command.  This allows miscellaneous header
fields to be added to the header, e.g., "X-Organization:" or
"Reply-To:" fields.

- New Feature: "page-also" variable.  This allows the specification of
additional commands to page.  It is more flexible than "crt".

- Document the "pager-off" variable: if set, it disables paging
entirely.
2009-04-10 13:08:24 +00:00
joerg
910b7ec5c5 Add missing .Os, improve column size. 2009-04-08 13:28:16 +00:00
joerg
94db796356 Fix markup. 2009-04-08 13:20:23 +00:00
apb
534e2679af Changes for installing with a metalog:
* When installing hard links and using a metalog, if -o, -g, -m, or -f
  args were explicitly specified on the command line, then believe them,
  but do not implicitly believe uname/gname/mode/flags from the file
  system.
* Add a size= field (only for plain files).
* Output fields in the same order used by mtree.
2009-04-07 22:07:54 +00:00
dholland
1a6bc86ad6 Null-terminate the delimiter list string after processing escapes
(which can shorten it) because the code that issues delimiters depends
on it being null-terminated. This caused e.g. paste -d '\0' a b to
print a '0' at the beginning of each line. Closes PR 41159.
2009-04-07 01:52:26 +00:00
mrg
a4a48f5384 note that -n also stops the timestamp from being output.
bump date.
2009-04-01 08:15:37 +00:00
dholland
d25b0fe6a8 A couple minor fixes, from Alan R. S. Bueno in PR 41046. 2009-03-29 05:58:41 +00:00
mrg
fcc023545e - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
2009-03-29 01:02:48 +00:00
he
cb69d4f55d Don't include the AMD stuff if SMALLPROG is defined.
Brings the size of the sparc INSTALL ramdisk image under control again.
2009-03-28 12:19:51 +00:00
christos
ae102ccd34 remove debugging code. 2009-03-27 21:48:26 +00:00
christos
419fb993b6 fix off-by-one bug that did not add a tag for "foo" in
"typedef struct foo { int x; } foo_t";
as intended.
2009-03-27 21:48:05 +00:00
perry
08429de660 remove unneeded special rule for main.o 2009-03-24 13:54:37 +00:00
perry
f113e91b18 per dholland, put back MAKE_VERSION for the benefit of third party users. 2009-03-24 13:53:21 +00:00