Commit Graph

10288 Commits

Author SHA1 Message Date
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