Commit Graph

10717 Commits

Author SHA1 Message Date
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
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
joerg fc64dfd825 Fix markup 2009-03-11 13:53:09 +00:00
christos df68463076 fix warnings. 2009-03-11 01:10:05 +00:00
joerg 70588139b2 Explicitly escape : in .It. 2009-03-10 21:18:35 +00:00
joerg 1cc1109801 Specify width for tag list. 2009-03-10 20:23:47 +00:00
joerg aea22a43d4 Specify width for tag list. 2009-03-10 19:54:43 +00:00
joerg 4154d53ea2 Use item list instead of tag list 2009-03-10 19:36:33 +00:00
joerg 442e8df612 Use item list as no tag is present. Fix markup for item. 2009-03-10 19:34:18 +00:00
joerg 7e69823738 Don't workaround ancient macro argumentent limitation with .Xo/.Xc. 2009-03-10 13:57:08 +00:00
joerg cbebb4f578 Don't break scope for .Oo/.Oc to workaround ancient argument limit. 2009-03-10 13:46:43 +00:00
joerg fda71aab5e Remove use of .Xo/.Xc to workaround argument number limit. 2009-03-10 13:44:02 +00:00
joerg d23bde9aff Replace .br and .sp with .Pp for vertical spacing. 2009-03-10 01:53:30 +00:00
njoly 90a93774af In vmstat display, increase software interrupt count output from 5 to
6 columns.
2009-03-09 19:48:02 +00:00
joerg 997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
joerg f385dfc57f Don't escape %, but do escape DD and SS macros. OK wiz@ 2009-03-09 14:26:44 +00:00
joerg c2a53cec5c Fix markup (.I is an unknown macro in this context). 2009-03-09 14:10:12 +00:00
he 9bc0986f89 If this is built for arm, build it for armeb as well, so that
a build of evbarm-eb does not give set list errors.
2009-03-08 15:37:12 +00:00
joerg cc9b628146 Fix markup as hinted by mdoclint. OK wiz. 2009-03-05 14:00:53 +00:00
christos 7c8a9296cc Don't produce type mismatch warnings if one side of ?: is "[qual] void *"
and the other side is "[qual] pointer".
2009-03-02 20:53:10 +00:00
christos 20ad44cb97 use siginfo to report on the directory we are working on if available. 2009-03-01 01:49:17 +00:00
wiz 30ec97f151 Drop trailing whitespace. 2009-02-28 19:21:42 +00:00
christos b90f233b82 Handle ptyfs ptys. Should probably pull up to 5. 2009-02-28 18:16:10 +00:00
christos 90baf4f26f only print warnings if vflg. 2009-02-26 17:30:51 +00:00
sno 6adead3ca0 replace c++ style comment by a c-style one 2009-02-25 21:17:21 +00:00
yamt 9ab5d54483 princap -> printcap
(christos said it was just a typo.)

XXX do we want compat for scripts?
2009-02-24 06:10:52 +00:00
dholland 18eba7e824 fix a dud indent 2009-02-22 08:32:25 +00:00
dholland e203f53315 Make netstat handle -a properly; that is, don't show unconnected
listener sockets unless -a was given. (It was checking the local
address instead of the remote address for being INADDR_ANY or
equivalent.)

PR 38093 from Dieter Roelants; I adjusted the patch a little.

This needs pullups for both -4 and -5.
2009-02-22 07:43:01 +00:00
dholland 1fc98979b6 Use pid_t for the result of fork and wait. PR 38031 from Ryan Stutsman. 2009-02-22 07:33:00 +00:00
yamt 99b23c11d2 on errors, output whatever we have before bailing out. 2009-02-20 15:28:21 +00:00
yamt 7abbdb7a0c -1 -> (size_t)-1 for return values of iconv. 2009-02-20 15:27:08 +00:00
yamt 288c135080 u_int32_t -> uint32_t 2009-02-20 15:25:31 +00:00
cube 723938ea23 Bump date. 2009-02-20 05:26:51 +00:00
cube 083c47ad52 Remove mentions that a kernel configuration file must support at least one
file-system because it's no longer true.
2009-02-20 05:22:59 +00:00
cube 46251c8d6e Ignore line starting with # in Makefile.${arch}. It might be valid make(1)
syntax to have a line that starts with # that is not comment, but well,
let's just say it's not valid syntax for Makefile.${arch}.

Breakage on a couple archs reported by he@.
2009-02-20 05:20:25 +00:00
njoly 2cbc1f6d44 Do not overwrite COPTS, but append to it. 2009-02-19 10:33:03 +00:00
wiz 73ff6fdf20 Mark up author with An and Aq. 2009-02-19 10:08:15 +00:00
christos a5e73ebace adjust patch to current. 2009-02-18 21:06:47 +00:00
christos ca9294c412 CID 5044: Protect against NULL deref. 2009-02-18 20:08:32 +00:00
christos 032602ef32 - long -> size_t
- don't allocate memory before the negative check is done CID 4722
2009-02-18 20:04:43 +00:00
christos e60db6c82e coverity CID 515: Use assert. 2009-02-18 20:00:32 +00:00
yamt 314bfbb3be remove BUGS section. this has been changed to use arc4random while ago. 2009-02-18 13:42:06 +00:00
yamt a95bc3c403 fix "make cleandir" 2009-02-18 13:26:15 +00:00
mrg c68299d5ba link in fmt_scaled.c 2009-02-17 04:07:30 +00:00
mrg 4ee81f134c add mux.c to the link. 2009-02-17 04:03:18 +00:00
dogcow 06804711a0 Fix an embarrassing mistake regarding moving down log files. Reported by
(and fix included in) PR bin/40635 from Jukka Salmi.
2009-02-17 02:56:43 +00:00
wiz 4a8dbf1acb Add Xref to pmap(9), from Anon Ymous.
Prepare for HTML output.
2009-02-15 22:49:37 +00:00
dholland 606b73cdb5 Skip over the ":0" entries that gdm, kdm, and unpatched versions of xdm
(ours is patched to not do this) leave in utmp. PR 26168.

I'm doing this by testing for ^:[0-9] in the line field of utmp(x),
rather than by attempting to stat the device name corresponding to the
entry as in Martin's patch, because (1) no valid tty should ever have
a name beginning with a colon, and (2) this way we don't silently skip
over real ttys that should be there but for some reason have disappeared.

(I suppose this might conceivably fail to catch entries for displays
connected via XDCMP; however, ~nobody does that any more and XDCMP is
a security hole anyhow. If anyone's really concerned about this, let
me know.)

In the long run we should look into ways of getting "tty" messages to
users logged in with an X session and no terminal windows open, as
that's probably fairly common for the desktop.
2009-02-15 06:06:55 +00:00
enami 2c8977b0b4 Fix compiler warning. 2009-02-15 03:45:44 +00:00
cube 016c56ea2f - Allow substition of options values in the generated Makefile using the
syntax %OPTION%.
- Make it possible to specify a syntax version information in the Makefile.
- Bump version to 20090214.
2009-02-15 01:39:54 +00:00
abs 46ffce41c5 Build fdformat on a MACHINE_ARCH not MACHINE basis 2009-02-14 22:46:05 +00:00
cube 0367057be6 Error out if one f the mkxxx() prints an error. 2009-02-14 21:28:58 +00:00
uebayasi febab96b71 Comment out CFLAGS+=-g. 2009-02-14 14:05:58 +00:00
abs 515e52158b Convert more MACHINE tests to MACHINE_ARCH 2009-02-14 13:50:50 +00:00
wiz 3ca38c6b62 Sort option descriptions, and options in usage.
Covers PR 40627.
2009-02-14 11:08:17 +00:00
uebayasi a6533b8fed Comment out CFLAGS+=-g. 2009-02-13 16:02:05 +00:00
lukem 998789a8d9 this code isn't -Wsign-compare friendly -- drop the WARNS to 3. 2009-02-13 01:27:43 +00:00
christos 71735a83f7 add missing , 2009-02-11 19:22:22 +00:00
christos 26114345a6 don't print warnings about can't find termcap entry. 2009-02-11 19:10:08 +00:00
wiz b58ce07c49 Fix typo in usage. 2009-02-11 06:42:31 +00:00
christos cc146168bb forgot to commit this. 2009-02-11 03:04:52 +00:00
christos bb0dd61478 Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
plunky aead030e15 if HCI commands fail (CommandComplete status != 0) then indicate
ENODEV "Operation Not Supported by Device" rather than random errno.
2009-02-09 12:44:32 +00:00
sjg 55d9c66506 Update expected results to match recent changes! 2009-02-03 23:11:12 +00:00
mrg e53a76c628 rework the main loop and handlers:
- open() and close() the file in the main loop
- pass the fd down into the handlers
- use _rtld_error() in ELFNAME(ldd)

this fixes PR#40543 and also makes error messages look better.
2009-02-03 03:01:02 +00:00
dsl efe788379e Rename all the members of 'enum Token' to TOK_FOO.
Makes it rather more obvious wherethey belong - especially since
two of them were 'True' and 'False' (and not 1 and 0 either).
2009-01-30 23:07:17 +00:00
dsl 9c773fc1c6 Treat .ifdef ${foo} as .if defined(${foo}) not .if "${foo}" != "".
(and similarly for the other .ifxxx).
Do comparison against "" or 0 for .if "foo" and .if <numeric> directly
instead of faking up the operator string.
Rename error: to done: and use it for more exit paths.
Elucidate and correct some comments.

Fixes problems with makefiles that do:
.for var in var_1 var_2
.ifdef ${var}
...
which used to check whether var_1 was defined - because the .ifdef saw the
literal var_1, not a variable expansion due to the way .for loop variables
were substituted.
2009-01-30 22:35:10 +00:00
dholland 7f999162b5 Fix flagrantly wrong printf formats in compat strftime. 2009-01-29 09:03:04 +00:00
enami ca3f8e6df1 Avoid infinite loop. 2009-01-29 07:48:39 +00:00
dsl 530cac2556 Allow for () in the argument to .ifdef et al.
Save/restore current values of global data across expression evaluation
to give ${foo:? ...} a change of working inside another .if.
2009-01-28 21:38:12 +00:00
wiz c63e1c5ce5 Bump date for previous. 2009-01-28 09:11:16 +00:00
lukem afa4cb0e7f Rework how reading keys functions so that key lookups from hash databases
works again.  (I accidentally broke that in rev 1.15)
Fixes problem noted by Masao Uebayashi.
2009-01-28 05:48:49 +00:00
lukem 1a5f8e0d09 update documentation to reflect reality:
* read mode supports -D for btree
* all modes support -U
2009-01-28 05:31:18 +00:00
christos f6ce57fa5b fix typo. 2009-01-27 16:53:42 +00:00
christos 49d8963a92 we have memcpy and port.h needs it. 2009-01-27 16:22:58 +00:00
lukem 1742612d3c sign-compare fix for amd64 2009-01-25 14:07:18 +00:00
lukem d4bbf23d28 sign-compare fixes 2009-01-25 14:06:00 +00:00
dsl b294f6c2a3 Fix sense of MAKE_NATICE test. 2009-01-24 23:19:50 +00:00
dsl 4802ea584f Add #ifndef MAKE_NATIVE around __RCSID 2009-01-24 23:07:48 +00:00
skrll 51241d8bac Mention -c. Hi Matt. 2009-01-24 15:00:55 +00:00
dsl 97347d2cbb Fixes to includes of make_malloc.h to that it actually builds when
USE_EMALLOC is undefined.
Fixes earlier fixes :-)
2009-01-24 14:43:28 +00:00
cegger 9fde1a673e buildfixes for OSX:
- include <sys/types> for size_t
- progname is undeclared
- include <string.h> for string functions like strlen()
- include <errno.h> for errno
2009-01-24 13:06:16 +00:00
wiz 6942778bea Sort sections. Fix typo (last line). 2009-01-24 13:02:33 +00:00
cegger e6227c556c buildfix: remove RCSID. It conflicts with the definition in the .c files. 2009-01-24 12:59:51 +00:00
dsl 4fb693c12c Move the bmake_malloc() functions into their own .c and .h files.
Include instead of make.h in a few places.
2009-01-24 11:59:39 +00:00
dsl 5d04927c08 Correct the definition of the :? modifier - in particular the modifier
applies to the variable name, not its value!
Remove the set of examples that were recently added that failed to
explain why some worked and some didn't.
Add a not to the compatability section about the change in .for loop
substitution post 5.0.
Add a BUGS section.
XXX the BUGS section needs more entries :-)
2009-01-24 11:56:41 +00:00
dsl a1e84ff783 Don't cast 'time_t' to 'void *' and back it will lose precision. 2009-01-24 10:59:09 +00:00
dsl 86df0d691f Sprinkle some const.
In particular for Lst_Find() and Lst_FindFrom().
Remove some unneeded casts and some now-undeeded UNCONST().
2009-01-23 21:58:27 +00:00
dsl 0cbb4ab551 Change 'ClientData' to 'void *' so that relevant parameters can
be made 'const void *'.
2009-01-23 21:26:30 +00:00
dsl d6c81d7cf1 There is no point in saving the last character of a NUL-terminated
string in order to overwrite with a NUL, then restore the original value!
Remove and simplify the CondDoFoo() functions.
2009-01-23 20:22:50 +00:00
christos e350c8475d Don't hard-code AMD_SUPPORT. 2009-01-21 13:13:26 +00:00
tron 31faff7381 Include "bsd.own.mk" to get the definition of "NETBSDSRCDIR" via
"/etc/mk.conf". This fixes manual use of "make cleandir".
2009-01-20 22:49:29 +00:00
drochner d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
jmmv 0cdcf7cea6 Remove ATF 0.5 from dist/atf and all of the reachover Makefiles used to
build it.  0.6 is going to be imported in external/bsd/atf, with all the
necessary Makefiles in that same hierarchy.
2009-01-19 07:08:14 +00:00
apb 53ee7761e4 Integer values, no matter what their width, are cast to int64_t or
uint64_t for printing.  Because of this, parse.c:rewrite() should use
PRI[diouxX]64 as the printf format; the previous revision which used
"lld" and friends was a temporary measure.  We assume that PRId64 ends
with 'd', PRIx64 ends with 'x', etc.

In display.c:display(), change some u_intNN_t types to C99 standard
uintNN_t types, and consistently cast to [u]int64_t when printing
integer values (even in two cases where it's not really necessary but it
makes the code look more consistent).
2009-01-18 21:34:32 +00:00
dsl 60ec4ca26f Revert previous - cause grief with .ifdef (foo)
Instead return False for exists(), defined(), make() etc when the
argument has length zero.
2009-01-18 17:30:19 +00:00
dsl bae3fcc0c3 Only terminate a conditional function argument on ')' if we expect the
argument to be exclosed in (...).
'.if exists()' is parsed as '.ifdef exists()' and the ')' must not be
left over at the end.
I have no idea why any of my recent changes have affected this.
But pkgsrc/mk/compiler/gcc.mk (line 488) does .if exists(${FCPATH})
even though FCPATH is only set when the file exists.
2009-01-18 12:50:15 +00:00
lukem c493aef500 fix -Wsign-compare issues 2009-01-18 07:11:45 +00:00
lukem 7e973711c3 fix -Wsign-compare issues. minor knf 2009-01-18 07:08:30 +00:00
lukem af17a5d8f3 fix -Wsign-compare issues 2009-01-18 07:05:53 +00:00
lukem a09351730c fix -Wsign-compare issues 2009-01-18 01:34:30 +00:00
lukem ab93b4bc61 fix -Wsign-compare issues 2009-01-18 01:31:12 +00:00
lukem c172e3b989 fix -Wsign-compare issues 2009-01-18 01:29:57 +00:00
lukem 0449f26fed fix -Wsign-compare issues 2009-01-18 01:02:41 +00:00
lukem aadf5fe187 Fix -Wsign-compare issues:
* Provide our own TOKEOF enum, rather than using stdio's EOF (which is signed)
* Use tokid_t instead of int where appropriate
2009-01-18 01:02:31 +00:00
lukem fb103c5334 fix -Wsign-compare issues 2009-01-18 00:37:53 +00:00
hans ec644bbf21 Use ll instead of non-standard q as length modifier in format strings.
Makes this work on Solaris. OK by apb.
2009-01-17 23:24:30 +00:00
wiz 714b5c355f Improve description in NAME section:
"serial terminal emulator"

From nick@openbsd via jmc@openbsd.
2009-01-17 20:59:01 +00:00
dsl 18e81da746 __predict_false() isn't defined if we aren't netbsd, stub out. 2009-01-17 13:55:42 +00:00
dsl 462d090d0f Change 'Buffer' so that it is the actual struct, not a pointer to it.
Saves having to malloc/free a fixed size structure.
Buf_Init() now takes ptr to Buffer to initialiase.
Change Buf_Destroy() to return ptr to string when not freed.
Remove large number of casts to (Byte) and (Byte *) - 'Byte' is 'char' here.
Buf_AddByte[s] guarantees that the data is 0 termininated, so never add '\0'.
Keep 'count' not 'left' and 'inPtr', code is simplier with only one update.
Fix fallou, no functional change.
2009-01-17 13:29:37 +00:00
dsl d020c6ab24 Allocate string vector in chunks, instead of calling realloc()
every time something is added.
2009-01-16 21:15:34 +00:00
dsl 74a68f7259 Debug print improvements. 2009-01-16 21:14:30 +00:00
dsl cd6806d831 Send output of Error() to debug_file (unless stderr/stdout). 2009-01-16 21:13:13 +00:00
dsl e9eac4d91e Parse_Error() really doesn't need to cruft up a dummy structure for curFile.
It only needs the 'fname' and 'lineno' fields - so just use NULL/0 when
curFile is NULL.
2009-01-16 20:50:24 +00:00
christos 52f56a8c21 Support amd unmounts, from Anon-Ymous. Not turned on yet because we need
to patch amd for this to work.
2009-01-16 17:31:22 +00:00
hira 796ac4ad75 Fix off-by-one. 2009-01-16 13:30:07 +00:00
uebayasi 547b81ca4c Better whitespace in ioconf.c output. 2009-01-16 09:43:41 +00:00
lukem c402ba6fb6 appease -Wsign-compare 2009-01-15 03:18:30 +00:00
dsl ac3b504aef Contrary to my previous thoughts, .for loop variable values do contain
variable references - eg ${.TARGET} since that can't be expanded earlier.
Also the variable gets re-expanded before modifiers are applied.
All this means that we do need to let :U expand variables and must not
just escape $.
2009-01-14 22:54:10 +00:00
christos a127d189ed style fixes and pass WARNS=4 and lint from Anon Ymous 2009-01-14 15:47:23 +00:00
dsl be588a30bc When substituting .for control variables (as ${:U...}) escape '$' and '\'
as well as ':' and '}' or ')'.
The parameters have just been expanded (and will be expanded again) later
so don't need expanding as part of the :U process.
Seems to fix pkgsrc breakage at line 34 of bsd.pkginstall.mk doing:
.for i in ${PKG_USERS}
_PKG_VARS.pkginstall+=  PKG_UID.${u} PKG_GECOS.${u} PKG_HOME.${u} PKG_SHELL.${u}
.endfor
when PKG_USERS = ${AVAHI_USER}:${AVAHI_GROUP}::Avahi\ user:/nonexistent
(set at line 41 of the ahavi Makefile)
I really dont think the above has the desired effect!
2009-01-13 18:30:00 +00:00
dsl 54d6432069 Sprinkle a const. (arg of Main_ParseArgLine()) 2009-01-13 18:22:34 +00:00
dholland dbfa1570e7 Fix blatantly wrong exposition of .WAIT example.
PR bin/40372 from Gao Ya'nan.
2009-01-12 09:28:10 +00:00
dsl 40aa52653a Instead of stashing the body of every iteration of a .for loop, pass
Parse_SetInput() the name of a function to get the loop data blocks.
This should only be a change to the program logic.
2009-01-11 15:50:06 +00:00
christos 2567980901 another bsd.own.mk missing 2009-01-11 05:01:34 +00:00
christos da0b5ebdeb need bsd.own.mk for $NETBSDSRCDIR 2009-01-11 03:50:50 +00:00
christos 379d921ced resolve conflict. 2009-01-11 03:05:41 +00:00
christos 50728e7823 merge christos-time_t 2009-01-11 02:57:17 +00:00
mrg 0d6aaaf295 pull across the struct netbsd32_exec definition and use that in all
cases, since we never did 64 bit a.out.  now ldd on 32 bit a.out
at least tries to work, but fails (on sparc or sparc64, no idea yet
for x86) the same way that all dynamic a.out binaries fail.
2009-01-11 00:06:55 +00:00
dsl b19182e92b When substituting .for control variables any } or ) that matches the
${ or $( must be \ escaped.
Should fix some pkgsrc issues - eg 'clean' in print/gv.
2009-01-10 16:59:02 +00:00
dsl aba4927178 Allow the user to save an unsigned int (eg the length or flags) with
each string.
2009-01-10 16:55:39 +00:00
dsl a4f183d445 Fix PR bin/1443 properly!
Ignore '=' and ' ' inside {} and () when looking for an assignment operator.
Also require the operator be immediately after any whitespace.
XXX mismatched (){} in variable modifiers will not DTRT.
2009-01-08 21:12:09 +00:00
mrg 32ae7959e8 make sure we set LIBISPRIVATE.
fixes build issues reported by moof.
2009-01-07 07:52:28 +00:00
mrg 9b688fed42 - rework this a bunch to make it work inside /rescue/ldd.
- fix alpha build.
2009-01-07 00:39:23 +00:00
mrg 648c936726 - get rid of building an a.out-happy ldd (but keep supporting a.out
binaries for the ELF version.)

- convert a.out, elf32 and elf64 support into convience libraries and
  link them right ones in.  if elf_ldd() fails on 64 bit platforms,
  try elf32_ldd() before aout_ldd().


now ldd on 64 bit platforms works for 32 bit binaries, aka PR#40199,
and it seems that all the issues from README are gone too.
2009-01-06 03:59:56 +00:00
tnozaki 2af58f1cce 1. reworking PR lib/40317:
libnbcompat already contains empty fparseln.lo
so previous fix doesn't work correctly.
i've just added broken fparseln check to configure script.

2. reworking cross build breakage under FreeBSD/MacOS X.
FreeBSD/MacOS X still have public /usr/include/runetype.h
derived from 4.4BSD-Lite.  so i renamed out private header from
src/lib/libc/locale/runetype.h to src/lib/libc/locale/runetype_local.h
to solve this problems.

3. fix build breakage when CITRUS=no was set.
2009-01-05 06:11:43 +00:00
dogcow b5d75fbc4d move nbtool_config.h include to the top. 2009-01-05 02:55:34 +00:00
dsl 2aeb32481a Count () and {} when looking to the '=' that terminates the variable being
assigned to.
Should fix:  A.${B:S/=//} = c
2009-01-04 20:17:36 +00:00
wiz f2ba098cec Describe better what it does. Inspired by the confusion caused by
FreeBSD problem report 69861.

From jmc@openbsd.

Bump date.
2009-01-04 17:26:24 +00:00
wiz 0ca945fa16 Sockets: Do not mention printing flags, because they are not printed.
From Stephan A. Rickauer via jmc@openbsd.

Bump date.
2009-01-04 17:19:39 +00:00
wiz 1ee045f360 Fix first part of PR 38987 by Robert Elz:
.Dq needs punctuation quoted to mark it up.

I leave 2) and 3) of that PR open for someone else...
2009-01-04 12:13:56 +00:00
tnozaki b17a9cee2a add some *.c specific CPPFLAGS. 2009-01-02 22:16:14 +00:00
tnozaki f5fad0d005 1. fixes PR lib/40317, don't use libc's fparseln(3).
it is non-portable function, toolchain should link it yourself.

2. fixes crossbuild breakage reported by Chiristoph Egger on current-user,
FreeBSD and MacOS X still make Rune* as public API in their ctype.h.
so added namespace protection NB* by including src/lib/libc/locale/rune.h
instead of src/lib/libc/locale/runetype.h.
2009-01-02 22:08:19 +00:00
njoly dc163d1a0e Add minimal SI_LWP support. 2009-01-02 13:57:23 +00:00
lukem 0a0b8d1a16 Clean up the usage display to match reality.
Allow 'sum' to take '-a algorithm', so that its usage matches 'cksum'.
Per discussion with Igor Sobrado resulting from PR 39658.
2009-01-02 09:42:51 +00:00
wiz 82b050bfbe Document new -t flag, bump date. 2009-01-02 00:37:40 +00:00
tnozaki 52ed7b035f Fixes PR lib/39662, shortcomings in LC_{MONETARY,NUMERIC,TIME,MESSAGES} db format.
ok'ed by core and releng.
(thanks for agc@, snj@ and i'm sorry for long time patience).

[libc]
- localeio.[ch] and lc*.[ch] in src/lib/libc/locale was replaced by
  new locale-db implementation using citrus_db backend,
  see src/lib/libc/citrus/citrus_lc_*.[ch].
- add citrus_bcs_strtou?l.c. don't use strtou?l locale implementation
  internally, because they're locale-aware function.
- add some stubs for multi-locale issue, see {current,global}_locale.c.
- remove some obsolete file, setrunelocale.c, ___runetype_mb.c.
- remove __savectype() from ctypeio.[ch].

[tools]
- mklocale(1): add new option ``-t'' that generates new style
  LC_{MONETARY,NUMERIC,TIME,MESSAGES} locale-db format.
- chrtbl(1): added ctypeio.[ch] for __savectype().

[locale-db]
- added en_US.US-ASCII locale.
- removed some shareable locale definition file:
    en_US.US-ASCII -> en_US.ISO8859-1, en_US.UTF-8
    zh_CN.eucCN -> zh_CN.GB18030
    and more...see src/share/locale/*/Makefile.
- remove obsoleted locale sr_YU, added new locale sr_ME, sr_RS.
- change locale name ja_JP.ISO2022-JP* -> ja_JP.ISO-2022-JP*
  for X11's locale.alias file alignments.
- fix regression test, wrong wcs?width(3), NAN/INF usage.

i tested release-build following arch:
  i386, amd64, hpc{mips,arm,sh}, sparc64, vax.

citrus_lc_*.[ch] also can read old-plain-text style locale-db.
so that backward compatibility is keeped, but lc*.[ch] can't read
new citrus_db'ed locale-db and localeio.c never check sanity,
so forward compatibility is broken ;-<

old mklocale(1) doesn't know -t option, so you have to rebuild toolchain.
2009-01-02 00:20:18 +00:00
christos 6469dc948c revert previous. it was meant for the branch. 2008-12-29 21:30:51 +00:00
christos 4266eb20ef fixes for version 2. 2008-12-29 16:05:01 +00:00
dsl aee1343f51 In the :M code, 'pattern' is always malloced memory - so unconditionally
free.
2008-12-29 10:18:38 +00:00
dsl 1fc20cc6eb Count both () and {} when looking for the end of a :M pattern.
In particular inside .if empty(...) it was only counting ().
In reality this needs further changes.
This may well fix recent pkgsrc breakage.
2008-12-29 10:12:30 +00:00
christos c20a3600e6 64 bit time_t 2008-12-29 01:53:35 +00:00
christos e12ce13bc6 cast for tdev. 2008-12-29 01:48:19 +00:00
christos b0b728dd70 handle 64 bit time_t/dev_t 2008-12-29 01:40:59 +00:00
christos 0b379a7b85 64 bit time_t 2008-12-29 01:35:09 +00:00
christos 72b21d3647 fix for 64 bit time_t 2008-12-29 01:33:03 +00:00
christos 99db46311e fix time_t printf format. 2008-12-29 01:26:46 +00:00
christos 7d9f37ceba fix time format. 2008-12-29 01:25:04 +00:00
christos 4fe86cf5b0 64 bit dev_t 2008-12-29 00:59:08 +00:00
christos 8663e57614 fix dev_t format 2008-12-29 00:53:43 +00:00
christos 8225aca082 fix 64 bit time_t 2008-12-29 00:51:29 +00:00
christos e00e628d41 handle 64 bit time_t 2008-12-29 00:50:06 +00:00
christos 0e48247bcf back out previous, and do it the better way. 2008-12-28 18:38:27 +00:00
christos 3ff2f379f6 In the "tool" case, pretend we don't have futimes because there is no visible
prototype for futimes without _NETBSD_SOURCE being defined. When we will do
a __RENAME() in futimes this will not work. XXX: This is a hack, better ideas
welcome.
2008-12-28 18:34:58 +00:00
christos 644d31b987 if mtime == 0, make it 1 because the code expects 0 time to mean that the
file does not exist
2008-12-28 18:32:54 +00:00
christos 266b18d880 prepare for time_t 64 2008-12-28 18:31:51 +00:00
christos 0001b92828 rename nv_int -> nv_num and make it long long, so that dev_t will fit when
we change it.
2008-12-28 01:23:46 +00:00
dsl e4be9d4f2c Treat '\\' as a possible terminator for a loop control variable.
(Typically an escaped \: of a nested modifier.)
2008-12-23 21:56:38 +00:00
dsl 14bf83b326 Note that an unrecognised word in a .if is the same as in .ifdef and that
such a word has to be white-space separated.
From PR bin/30967 bin/37222 and maybe others!
2008-12-21 21:05:27 +00:00