Commit Graph

6839 Commits

Author SHA1 Message Date
manu
cbfacd83b6 Make hexdump output fix in 80 char-wide terminal 2003-07-12 19:22:07 +00:00
tshiozak
c1e771ab90 separate "nonidentical conversion" and "ilseq" under csmapper.
"nonidentical" means "the input character index is valid, but not
corresponding to the output codeset."
"ilseq" means "the input character index is invalid for the input codeset."
2003-07-12 15:39:19 +00:00
itojun
ae4b4e6dbb strlcat 2003-07-12 14:30:53 +00:00
itojun
7173f16649 use bounded copy ops 2003-07-12 14:29:35 +00:00
itojun
5389fc55da bound string operations 2003-07-12 14:08:37 +00:00
itojun
28f506f3a2 strlcpy 2003-07-12 13:57:49 +00:00
itojun
c0970755a6 pedantic check around unsafe strncpy.
XXX this code needs a serious rewrite
2003-07-12 13:53:08 +00:00
itojun
ef4b3d620c copyright missing in files, copy them from README 2003-07-12 13:47:42 +00:00
itojun
417386ecc9 strlcpy 2003-07-12 13:38:10 +00:00
itojun
07b330cc97 strlcpy, some KNF 2003-07-12 13:37:15 +00:00
itojun
032ed69f9a strlcpy 2003-07-12 13:23:55 +00:00
manu
e9383d7e5d Use the same code to display hexdump of GIO and MMSG (Mach Messages).
While we are there, display offsets in the hexdump, it can be useful.
Remove size display in Mach Messages as user processes don't always
fill it correctly.
2003-07-12 10:07:08 +00:00
wiz
b712736290 Add -x to usage output. 2003-07-11 13:06:11 +00:00
wiz
79093334ef Bump date for -x addition. 2003-07-11 13:05:26 +00:00
dsl
6ea05bcbfe Add a '-x' option to display GIO data blocks in hex and ascii (instead of
vis(3) format).
Maybe there could be a heuristic to decide whether the data is printable...
2003-07-11 10:59:28 +00:00
bjh21
7971e90f7e Remove the NAME_MAX check. While well-intentioned (and required by POSIX),
the implementation was horribly broken when <name> contained slashes, and
a correct one will probably be quite different.
2003-07-10 21:30:16 +00:00
bjh21
b768f7ad6a Remove the hack that varied the first character of the output filename if
a base name wasn't specified.  It's not really necessary now that we've
got -a, it's ugly, and POSIX doesn't permit it.

Suggested on tech-userlevel a couple of weeks ago to a deafening silence.
2003-07-10 20:43:40 +00:00
lukem
29a6151db1 NOxxx= variables should appear first 2003-07-10 11:21:51 +00:00
lukem
42b4b5e4a4 <bsd.own.mk> needed before NETBSDSRCDIR is used 2003-07-10 11:21:03 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
dsl
9778762a60 Keep unstripped binary in $OBJ, use are timestamp instead of prog.stripped.
Patentially useful as a source of symbol information for debugging.
2003-07-09 19:51:07 +00:00
wiz
f61187c074 Remove superfluous ] in last. 2003-07-09 14:47:33 +00:00
lukem
7d830fa777 tweak previous; no need to have .Sm on and then just .Sm off 2003-07-09 08:09:04 +00:00
jschauma
dff18e6662 Add missing closing ']' for character class examples. 2003-07-08 22:15:04 +00:00
kristerw
3e51d2b759 Const poisoning. 2003-07-08 01:55:35 +00:00
dsl
f2c019d534 Change 'Magic number' of menu text files.
Correct calculation of window width in msg_prompt_win().
2003-07-07 12:22:35 +00:00
dsl
f19029a851 Add OPT_IGNORE flag which makes menu item inactive.
Add menu-dependant function to draw menu lines (when opt_name NULL).
2003-07-07 12:20:56 +00:00
jmmv
e4b15274f9 Add missing section header EXIT STATUS. 2003-07-07 12:20:04 +00:00
wiz
31b27aaae4 Fix typo in error message. 2003-07-07 11:42:13 +00:00
dsl
aaba6e7d29 No need to resizeterm() if size not changed.
On 'fg' just restore old screen contents.
2003-07-05 08:05:51 +00:00
dsl
5ae48961f9 Redraw addresses after screen refresh 2003-07-05 06:48:52 +00:00
agc
2698214c76 Use the proper type for the return value from getopt(3). Allows this
program to be compiled on machines with unsigned chars.
2003-07-04 12:33:08 +00:00
wiz
44b0609fe6 Bump date for last. 2003-07-04 12:13:29 +00:00
wiz
21a565e27c Remove trailing whitespace. 2003-07-04 08:15:00 +00:00
wiz
a681ded17a Use Aq or Ao/Ac instead of \*[Lt]/\*[Gt]. 2003-07-04 08:13:59 +00:00
wiz
ab7901a8b6 Grammar and mdoc improvements. Sort sections. Only mention iconv(3)
in SEE ALSO, since iconv_open(3) and iconv_close(3) are the same.
2003-07-04 07:58:10 +00:00
wiz
ee762782f9 Sort sections, fix typo, add some articles,
and lots of other cleanup.
2003-07-04 07:28:14 +00:00
tshiozak
6a491b80a2 add manpage for iconv(1). 2003-07-04 06:59:52 +00:00
tshiozak
fab9a2fdc1 add locale(1) utility.
Originally written by Alexey Zelkin <phantom@FreeBSD.org>.
So, obtained from FreeBSD with gratitude.  (suggested by wiz.)
2003-07-04 05:41:49 +00:00
itojun
076786421e another fix against unreadable indentation 2003-07-04 04:26:47 +00:00
itojun
2b3103a077 fix unreadable indentation 2003-07-04 04:20:05 +00:00
simonb
c595e9c78e No need to cast the third argument of ioctl() to "char *". 2003-07-02 12:47:00 +00:00
wiz
e07b8295fc Cm So . Sc -> Sq Cm \&. (and similar for :). 2003-07-01 10:26:27 +00:00
wiz
72c59e3ee3 Quote question mark, to get it marked up. Whitespace nit. 2003-06-30 19:17:01 +00:00
wiz
b93a29cdaa Fixes to make these man page look nice with groff-1.19. 2003-06-30 19:12:31 +00:00
wiz
5a9293abc1 Adapt to new naming conventions for tmac files. 2003-06-30 19:08:37 +00:00
bjh21
548e2c20bb Clean up the mechanism used for opening output files. Rather than freopening
stdout onto each file in turn, then writing through fileno(stdout), use
open() and close() like any sensible program.  This saves a lot of system
calls, removes a dependency on the particular behaviour of BSD freopen(),
and allows us to detect and report errors from close().
2003-06-29 22:57:23 +00:00
fvdl
4fdb86c883 Back out previous. 2003-06-29 22:35:35 +00:00
martin
40ee31ef5e Since a caddr_t is (mis-)used as the lwp-id, cast it to intptr_t and use
apropriate format string.
2003-06-29 18:05:06 +00:00
darrenr
d0ad455673 add appropriate hack to display ktr_buf as the lwpid if -L is supplied on
the command line.
2003-06-28 17:15:07 +00:00