Commit Graph

10384 Commits

Author SHA1 Message Date
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
joerg
614d810747 Remove physical markup. 2009-03-24 00:17:25 +00:00
joerg
833d1509e8 .sp -> .Pp 2009-03-24 00:14:01 +00:00
joerg
5d8c8ad0cf Fix quoting. 2009-03-23 17:02:06 +00:00
christos
1297dd791c turn on amd support for eject now that we have it. From Anon Ymous 2009-03-23 04:00:44 +00:00
perry
a24e0ba1bb The Makefile and main.c arranged to put "netbsd-${DATE}" into the
executable. Remove this so that different compiles can be binary
compared. rcsid's for all files are already embedded in the executable
so versions can be easily distinguished. (I didn't catch this on
previous passes because I did my builds on the same day.)

Note: there's a special rule for main.o in Makefile with a purpose I
can't actually discern -- I think it isn't needed, and I've flagged it
with a comment.
2009-03-20 20:48:00 +00:00
christos
0efea3414c use progname instead of getprogname() for portability. 2009-03-18 22:02:49 +00:00
joerg
cf421e9ff2 Fix and improve mark up. 2009-03-15 16:21:46 +00:00
joerg
ca46068b38 Fix number of columns. 2009-03-15 15:19:57 +00:00
joerg
832978fe6f Fix markup. 2009-03-15 15:18:04 +00:00
cube
1894a7d27b Now that condmkopttab isn't a hash table anymore, don't initialise it with
ht_new()...  So actually rename it to condmkoptions to avoid confusion.

Reported build failure on amd64 (strange that I wouldn't get it on i386) on
current-users by Kurt Schreiner.
2009-03-13 20:44:59 +00:00
cube
a16a636500 Actually allow a full expression for the condition for "makeoptions" in
files.*

Patch from Yorick Hardy.
2009-03-13 18:24:41 +00:00
joerg
35d9d36c82 Use .Tn for XMODEM. Use .Bl -column for physically marked up table. 2009-03-13 11:12:28 +00:00
joerg
7ffbcccbf3 Don't use macros for the synopsis. Improve markup to break argument
groups together by not splitting opening and closing macro over lines.
2009-03-13 10:51:56 +00:00
joerg
8deda0e429 Use paragraph breaks before notes, not just line breaks. 2009-03-12 12:36:48 +00:00
joerg
89fd8256a6 Don't workaround ancient macro argument limit with .Xo/.Xc. Don't use
.Sm off / .Sm on.
2009-03-12 12:35:51 +00:00
joerg
6cb9af04f6 Don't workaround ancient macro argument limit with .Xo/.Xc. Don't use
.Sm off/.Sm on.
2009-03-12 12:35:17 +00:00
joerg
f39d76e336 Fix markup 2009-03-11 13:59:00 +00:00
joerg
8929e0dce4 Don't workaround ancient macro argument limit with .Xo/.Xc. 2009-03-11 13:58:29 +00:00
joerg
9952d3ea53 Fix markup 2009-03-11 13:57:53 +00:00
joerg
31ea1ec643 Use semantic markup 2009-03-11 13:57:11 +00:00
joerg
c094012060 Fix markup 2009-03-11 13:54:05 +00:00
joerg
223f3c1eab Use semantic markup 2009-03-11 13:53:30 +00:00