Commit Graph

7072 Commits

Author SHA1 Message Date
dsl ee1a61d7eb No need for wrefresh() in msg_clear(), screen will be updated later.
Stops obvious redraw of header of some menus.
2003-07-28 09:55:24 +00:00
dsl 048dfb4fde More tweaks for sysinst.
Let 'display action' routine set menu->cursel (ie default menu item).
Remove 'opt' parameter I added to action routine (not that useful).
Make man page slightly closer to reality.
2003-07-27 07:21:57 +00:00
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
mrg 8c66a01dc4 build var.c with -Wno-cast-qual - gcc3.3 complains about VarWordCompare() 2003-07-26 16:04:29 +00:00
mrg a1c0290e03 reorder some structure definitions to appease gcc3.3 2003-07-26 16:02:25 +00:00
itojun 182a98314c support new algorithms 2003-07-25 10:06:09 +00:00
dsl 5cd6e49033 Change variable name to compiles with WARNS=3 2003-07-25 07:48:02 +00:00
dsl 2304abbd2b Spinkle some consts and remove/change parameter names so that sysinst
will compile with WARNS=3.
2003-07-25 07:22:05 +00:00
atatat d5fb781871 More properly host-tool-ify stat 2003-07-25 03:21:15 +00:00
wiz 52c00b06b5 Sort translation options list. 2003-07-24 18:21:31 +00:00
tron 86b35822ff Backout previous and revert su(1) to dynamic linking instead. 2003-07-24 16:18:21 +00:00
tron b2df6d93aa Link with "libdes" if Kerberos IV support is enabled. 2003-07-24 16:06:45 +00:00
itojun 88ec7d3792 bring back krb4 support, just to suppress unwanted noise from other developers.
note that official openssh distribution have already dropped kerberosIV support,
therefore maintenance cost needs to be paid by us.  and have no intent to help.
2003-07-24 15:31:52 +00:00
itojun 906834fadf sync w/ openssl 0.9.7b 2003-07-24 14:20:59 +00:00
itojun f4401cd869 upgrade openssl to 0.9.7b. (AES is now supported)
alter des.h to be friendly with openssl/des.h (you can include both in the
same file)
make libkrb to depend on libdes.  bump major.
massage various portioin of heimdal to be friendly with openssl 0.9.7b.
2003-07-24 14:16:30 +00:00
atatat cfda71101a Reform the Gregorian Reform. This means that the previously hard
coded meaning of 1752/09/03 is only a default, and that everything is
now calculated dynamically.

You can now use -R reform-spec to specify an alternate reform.  Read
the fine (new) man page for details on this.  There is also a new -r
option which will make cal print the month (or year, if -y is also
given) in which the Gregorian Reform started.  I say started only
because if you apply the reform at 9999/1/22, a chunk of January is
knocked out, February and March are missing entirely, and April starts
on the 5th.  The use of -r with -y does pretty much what you'd expect.

Also, implement -d day-of-week so that you can tell cal to start the
week on something other that a Sunday.  This addresses PR bin/8539 at
long last.
2003-07-24 01:19:45 +00:00
atatat c9c88988f6 Though I cannot reproduce the failure (which I suspect is rather
system dependent), the analysis provided in PR misc/22089 is correct.
Therefore, allocate one more slot and suck one more slot from the
kernel.
2003-07-24 00:43:50 +00:00
itojun adeab29eca include des.h, not kerberosIV/des.h 2003-07-23 20:31:18 +00:00
sjg 59b1f67a11 Fix merge problem with ts modifier and const correctness.
Need to pass nstr to VarModify.
2003-07-23 18:06:46 +00:00
wiz 7d42d8e76f Be more verbose in error message if iconv_open fails. 2003-07-23 13:18:59 +00:00
itojun e63468d8cc split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
2003-07-23 08:01:24 +00:00
itojun 0abe0bddb0 forgot to remove -lkafs. from rafal 2003-07-23 08:00:52 +00:00
lukem 49671e2e2b * don't compile in support for st_birth #ifdef HOSTPROG
* remove %B (birth) from default format strings, since %B isn't available
  #ifdef HOSTPROG, and it's not standard enough to be fussed about anyway
2003-07-23 07:23:23 +00:00
itojun 425dfd313c style 2003-07-23 04:12:33 +00:00
itojun e97c220e91 use bounded string op 2003-07-23 04:11:12 +00:00
itojun 8556dff80c remove KRB4 and AFS support. sync w/ openssh main tree 2003-07-23 03:52:16 +00:00
yamt 808b43aeb1 fix garbages printed with -h option.
- always clear linebuffer.
- don't use an uninitialized variable.
2003-07-22 14:22:09 +00:00
lukem 4b391b57bf pass in -DHOSTPROG if a HOSTPROG 2003-07-22 13:58:49 +00:00
lukem 59efd8a9dd remove unnecessary rules 2003-07-22 12:34:40 +00:00
lukem 3839e0f0c0 use CPPFLAGS.getpwent.c=... to set file-specific cpp flags 2003-07-22 12:25:57 +00:00
itojun aa96314290 support hmac-sha2. 2003-07-22 03:41:28 +00:00
agc 8a3e64ceb9 Fix a tyop - we want the readlink binary and manual pages when HOSTPROG
is not defined.
2003-07-21 10:16:55 +00:00
itojun 25ad1ea430 UPPORT_UTMP{,X} outside of .if KERBEROS. PR 22202 2003-07-21 03:37:43 +00:00
mrg dd10ebe3f2 fix a now-wrong comment. 2003-07-21 00:55:59 +00:00
mrg e312c82e5f minor consistency nit 2003-07-21 00:55:40 +00:00
he 80ccb5520c As a temporary workaround, apply the fix from PR#20390, thereby
cooperating with the callout code in working around the race
condition caused by the TCP code's use of the callout facility.

Instead of unconditionally releasing memory in tcp_close() and
SYN_CACHE_PUT(), check whether any of the related callout handlers
are about to be invoked (but have not yet done callout_ack()), and
if so, just mark the associated data structure (tcpcb or syn cache
entry) as "dead", and test for this (and release storage) in the
callout handler functions.
2003-07-20 16:35:07 +00:00
jmmv 7efaf55594 Add the EXIT STATUS section header. 2003-07-20 14:20:34 +00:00
lukem 5885a35ae3 first attempt at making this a HOSTPROG 2003-07-20 14:12:13 +00:00
lukem 514fc67c71 protect __RCSID() as this is a host tool. noted in PR 22074 by Julian C. Dunn 2003-07-20 01:09:07 +00:00
lukem 9cfea6f679 tweak copyright; the stuff jason did in util.c wasn't migrated to this file. 2003-07-17 12:06:18 +00:00
dsl fde07830ad Grok KTR_EXEC_ENV and KTR_EXEC_ARG.
Make ktrace -c default to removing all trace points (not just the default ones).
Make kdump default to dumping everything in the trace file.
Add 'A' (all) and '-' (remove following) to valid -t arguments.
Dump data block of UNKNOWN trace points in hex + ascii.
Make first time output with -R 0 (instead of time since epoch).
Use svis() instead of vis() to get " escaped (as \") (needs fixed libc)
Correctly pass unsigned values to svis()
Update man pages.
2003-07-17 09:05:11 +00:00
lukem abcf838dab only use __RCSID() if it is #defined 2003-07-17 08:33:03 +00:00
itojun 87b3160e5b remove #ifdef sun 2003-07-16 15:14:19 +00:00
itojun a0cef40c27 need this line to remove doublequote 2003-07-16 14:57:29 +00:00
wiz aeb7902476 Bump date for tu addition; drop trailing space; sort a bit. 2003-07-16 11:34:16 +00:00
itojun a5450bcac9 backout. make(1) either uses strcpy() to malloc'ed region (enough size),
or function signature prohibits us from using strlcpy().
2003-07-16 07:16:24 +00:00
itojun 06ded73d5a we can't use snprintf here, as sizeof(pathname) is unknown 2003-07-16 07:11:29 +00:00
itojun e26b0e0cf5 stop installing install libtelnet. build under lib/libtelnet and reference
it from usr.bin/telnet and libexec/telnetd.
(reason for separate build: compiler flags)
2003-07-16 05:42:01 +00:00
itojun 8ac99d48f2 strlcat 2003-07-15 05:59:58 +00:00
itojun 3c95d355e5 use bounded string op 2003-07-15 05:56:55 +00:00
itojun 0cd65be2b9 snprintf 2003-07-15 05:52:48 +00:00
itojun bd8e1178ee strlcpy (fixed) 2003-07-15 05:39:28 +00:00
itojun 885eddc2ed strlcpy 2003-07-15 05:38:24 +00:00
sjg 8186ad8ad9 Fix a couple of missing UNCONST's that hit bmake. 2003-07-14 21:13:48 +00:00
christos ed5bfb0707 PR/21896: Jun-ichiro itojun Hagino: Fix botch with passing -1 as the stdin
for the editor instead of 0.
2003-07-14 20:49:14 +00:00
sjg f1cf540a8d Add a :ts[c] modifier to allow controlling the separator used between
words in a variable expansion.  If 'c' is omitted no separator is used.
2003-07-14 20:39:20 +00:00
christos 6a7d20bb25 Pass WARNS=3 2003-07-14 18:19:11 +00:00
itojun c9df1b829c the line is needed (to remove closing doublequote) 2003-07-14 18:11:06 +00:00
itojun 1f245ffbb2 more unifdef 2003-07-14 16:06:46 +00:00
itojun eb8120f761 more unifdef 2003-07-14 16:00:52 +00:00
itojun 21f5307c6f remove unneeded #ifdef. (confirmed that same *.o is generated) 2003-07-14 15:56:28 +00:00
itojun ab3a8ded53 use bounded string op/asprintf 2003-07-14 12:02:00 +00:00
itojun 6d415bc4b0 use bounded string op 2003-07-14 11:54:06 +00:00
itojun 347022e133 use bounded string op - some remains 2003-07-14 11:52:24 +00:00
itojun 01a5c755ee use bounded string op, simplify by asprintf/strdup 2003-07-14 11:45:18 +00:00
itojun 479f575456 use bounded string op 2003-07-14 11:36:48 +00:00
itojun 31d51579a3 get rid of strsave(), use strdup directly 2003-07-14 11:09:19 +00:00
itojun 3f02ac18b7 use bounded string op 2003-07-14 09:44:00 +00:00
itojun d91f80a702 the function is equivalent to strdup. 2003-07-14 09:41:27 +00:00
itojun fe182b3802 use bounded string op 2003-07-14 09:40:26 +00:00
itojun 5d7783072e asprintf is safer. add error trap for malloc failure 2003-07-14 09:38:14 +00:00
itojun 2fe0488981 use bounded string op 2003-07-14 09:33:08 +00:00
itojun 51a0035259 use bounded string op 2003-07-14 09:31:16 +00:00
itojun 6a949dc545 minor KNF 2003-07-14 09:30:52 +00:00
itojun eea9ee0720 asprintf is easier and safer 2003-07-14 09:29:21 +00:00
itojun 2777b2aa10 use bounded string op as much as possible 2003-07-14 09:25:37 +00:00
itojun 870f37306c use bounded string op 2003-07-14 09:24:00 +00:00
itojun a0e42b4568 strdup is easier 2003-07-14 09:22:17 +00:00
itojun 6086476ade use bounded string op 2003-07-14 09:21:03 +00:00
itojun 24c1ca6e35 use bounded string op as much as possible 2003-07-14 09:18:22 +00:00
wiz 95ad95491e Fix two minor whitespace problems. 2003-07-14 08:55:18 +00:00
dsl a99fe675ab Change back to print hex bytes. The 'word' print was completely broken
on little endian systems.  It is also much easier to read misaligned
words in a straight byte hexdump.
Cut offset to 3 hex digits so that it fixs in 80 columns and still
leaves a tab at the start of 'continuation' lines.
The ktrace buffer is limited to 4k, so 3 digits is ample.
2003-07-13 18:54:29 +00:00
he ac678f8de2 On some ports, pointer differences are not ints, so do a cast
before using such a result as a field width.
2003-07-13 15:19:39 +00:00
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
wiz 8da6fdd09d Restrict ".Sm off" to the parts where it is wanted. 2003-06-27 22:25:08 +00:00
dsl e2724ab4be Add support for reading messages from a text file - msg_file() and msg_string().
Use subwin() in msg_prompt_win() now libcurses is fixed.
Some KNF changes I seem to have forgotten to commit on their own :-(
2003-06-27 22:11:59 +00:00
dsl e28e42e092 Improve diagnostic message 2003-06-27 22:06:14 +00:00
wiz 4e996c3a33 End sentence with a dot. From jmc@openbsd. 2003-06-27 21:57:43 +00:00
bjh21 4f65cbad31 Cleanup:
Correct synopsis to show that -l and -b are mutually exclusive.
Put [k|m] in the right typefaces.
Use .Ql for 'k' and 'm' in text.
Refer to the option-argument of -l as <line_length> consistently.
2003-06-27 17:19:54 +00:00
tshiozak f0108a1301 correct how to show size_t. %d -> %lu and cast to unsigned long.
reported by Rob Quinn.
2003-06-27 15:42:12 +00:00
wiz d1084fd16c Quote question mark. 2003-06-27 09:42:24 +00:00
wiz 621498f8a8 Remove superfluous "". 2003-06-27 09:40:17 +00:00
wiz ba22178ad0 Quote question mark. Change width argument in a table to line up 2003-06-27 09:38:58 +00:00
wiz 9e48dea8c5 Pa Ar -> Ar. 2003-06-27 09:15:55 +00:00
wiz 2acfaaf7f5 Quote bang. 2003-06-27 09:06:23 +00:00
wiz 1316e82e58 Undo last two, I will handle this differently. 2003-06-27 08:50:50 +00:00
tshiozak ff5c3e6895 Citrus iconv support(4)
add iconv external I/F (iconv.h - iconv_open()/iconv()/iconv_close()) and
iconv(1) utility.
TODO:
  - bump libc minor.
  - add iconv data files.
  - create manpages: iconv_open(3)/iconv(3)/iconv_close(3)/iconv(1)/
    mkesdb(1)/mkcsmapper(1).
2003-06-27 05:21:49 +00:00
bjh21 4fca23a8b3 Simplify the handling of ifd by initialising it to the default
(STDIN_FILENO), and only overriding that if the user specifies a different
input file.
2003-06-26 23:19:15 +00:00
bjh21 946564c3f6 Remove support for treating "-" as an option rather than an operand. The
practical consequence of this is that "-" is treated the same as a file name,
and can't have options specified after it.  This is consistent with other
utilities and with POSIX.
2003-06-26 23:06:52 +00:00
bjh21 c3c8be9c37 WARNS=3 seems to work here, so use it. 2003-06-26 23:00:07 +00:00
bjh21 5b24c0821c Delint. This largely involves using size_t and off_t appropriately rather
that throwing around unsigned long long.  There are a few LINTED comments
where I'm sure overflow can never occur, and with these lint gives this
a clean bill of health.
2003-06-26 22:49:53 +00:00
wiz 664b3c96d5 Misc mdoc fixes (mostly quoting). 2003-06-26 18:21:45 +00:00
wiz aa313073c8 Add Ns where needed. 2003-06-26 18:14:41 +00:00
wiz 1a75c7b75b Replace Ql by Sq and Dq where appropriate. 2003-06-26 18:14:21 +00:00
wiz e1360c896f No mdoc macros in a man-type man page.
XXX: should be converted to mdoc.
2003-06-26 18:02:38 +00:00
wiz cf60347dc3 No mdoc macros in a man-type man page. 2003-06-26 17:58:50 +00:00
wiz 63a56a56a0 Switch two macros so that both work as intended. 2003-06-26 17:53:33 +00:00
wiz 80cc7b7a7b Quote punctuation so macro works on it (another one). 2003-06-26 17:48:37 +00:00
wiz e6ebf10cb2 Quote punctuation so macro works on it. 2003-06-26 17:47:59 +00:00
wiz fb538fbb96 Change macro usage so it works correctly with 1.19. 2003-06-26 17:46:36 +00:00
wiz 8ea3e956e8 Add another Ns to avoid a space. 2003-06-26 17:14:13 +00:00
wiz 8128a46b63 Add Ns to avoid a space. 2003-06-26 17:13:44 +00:00
wiz 7533801933 End sentence with a dot. 2003-06-26 17:00:55 +00:00
wiz 323aeda0d6 Fix quoting. 2003-06-26 16:48:20 +00:00
tshiozak e376aa8308 Citrus iconv support(3)
add host tools : mkcsmapper and mkesdb
  mkcsmapper - coded character set mapping table compiler
  mkesdb - encoding scheme database compiler
2003-06-26 06:30:07 +00:00
christos 88fd58993a In no-main mode [rpcgen -C -m], don't declare _rpcfoo variables static.
Let the main program declare them extern if it wants, otherwise we get
link failures for variables not defined.
2003-06-25 19:31:08 +00:00
dsl 630ca1a3e3 Revert previous. 'None' means that the "Utility Syntax Guidlines" apply. 2003-06-25 12:56:59 +00:00
dsl 0ac8c637fd Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conform
to the "Utility Syntax Guidlines".
Fixes PR 21970.
2003-06-25 09:54:15 +00:00
bjh21 0de24d10b1 Light KNF and comment tidying. 2003-06-24 18:45:08 +00:00
mjl 91085f010d Add sys/sockio.h to needed includes for SIOCGIFASYNCMAP. 2003-06-24 11:27:50 +00:00
bjh21 c8e096241e Use pathconf() to get the value of {NAME_MAX} for the current directory,
rather than relying on the #defined one (which is wrong on NetBSD).
Dynamically allocate the filename buffer to fit.
2003-06-24 00:09:26 +00:00
aymeric 9bdcb47acd add missing #ifdef __RCSID
(these files are compiled as host tools)
from Nicolas Ollinger, fixes PR#21892
2003-06-23 20:02:53 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
agc c0db2196e7 Add NetBSD RCS Ids. 2003-06-23 12:15:00 +00:00
christos fc24d74cc3 PR/21645: Mishka: Localized comments don't work with indent. 2003-06-19 15:45:22 +00:00
christos 1f975a33c3 fix fallout from previous ansification (thanks to Juergen Hannken-Illjes) 2003-06-19 11:16:13 +00:00
jrf 285b019fd8 This addresses PR21693. Under certain conditions, su -m will fail because
the pointer to /etc/shells is pointing to the second entry. This change
resets the pointer before looping through the file again. FreeBSD does
this as well. Commit approved by christos and thanks to Geoff Adams for
catching and reporting it.
2003-06-18 21:02:03 +00:00
christos 2658386875 Ansify. 2003-06-18 20:51:00 +00:00
dsl 18439070c7 Do not let the cursor sit on menu lines that do nothing.
(Maybe page up/down should behave similarly - but that one is harder)
2003-06-16 20:57:43 +00:00
lukem 9f376c42d4 Don't coredump when printing '%n' in the prompt if there's no username yet.
Fix from Maxim Konovalov <maxim at freebsd dot org>.
2003-06-15 13:49:46 +00:00
joff 2c4a7474a0 use TCP_NODELAY 2003-06-14 22:43:31 +00:00
drochner 96b62d8a69 no need to #include <sys/dkstat.h> 2003-06-11 17:26:31 +00:00
tron e290120150 Remove old, unused and unsafe shell scripts as suggested by Jeremy C. Reed
on "current-users".
2003-06-11 16:22:10 +00:00
briggs 4441128638 Support negotiation and use of TFTP Option Extension (rfc 2347) for the
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).

Contributed by Wasabi Systems, Inc.
2003-06-11 01:43:52 +00:00
hubertf ccaf934316 Escape backslashes properly. Fixes PR 6679. 2003-06-10 21:27:16 +00:00
dsl 62a063f96b Change msg_window() to return old window (temp buffer size isn't too important)
Change msg_promt_win() to create the window.
Number MSG_xxx from 1 (because 0 is NULL)
2003-06-10 17:24:17 +00:00
dsl 19605a628c Add extra command 'allow dynamic messages' which will push all texts through
the msgc translation service.
Allow for texts being NULL as well as "", don't use strlen() to test for "".
2003-06-10 17:19:04 +00:00
bjh21 0b52d9cd7b From FreeBSD:
Allow "-" to be specified as an operand as well as an option.
SUSV3 requires something like "split -- -" to work. Document the "-" operand.
2003-06-10 16:57:05 +00:00
bjh21 2ef4680e17 Add support for the -a option, which should fix standards/11226.
Code from <hiramatu@boreas.dti.ne.jp>, with improvements from me.
Manual page updates from FreeBSD.
2003-06-10 16:32:54 +00:00
dsl 3c95a92e07 More changes to improve sysinst:
- pass 'menudesc' and 'arg' values to post_act() and exit_act()
- add set_menu_numopt() for variable length menus
- fix (badly broken) allocation/free of dynamic menus
- option to allow default selection to be the exit line
2003-06-09 18:48:40 +00:00
aymeric 36f363a1cc bump to nb9 after fixing PR#21797.
"flooding nvi['s insert mode] leads it to dump core"
2003-06-06 08:09:38 +00:00
aymeric baffc152bc When an error occurs in v_txt(), leave input mode too.
Otherwise, (among other things) db_get() thinks it can re-use the TEXT buffers
when it's not true, leading to a crash because that TEXT buffer will be
released just before it is actually used to create a new one.
This fixes PR#21797.
2003-06-06 08:06:47 +00:00
atatat 85cee2b43a Add -h to cal, which makes it highlight the current date, if it's
present in the displayed calender.  It uses libtermcap to discover the
proper sequences to turn on bold, or uses overstriking if output is
not to a terminal.  If you use two -h options with terminal output,
the date is presented in reverse video instead of bold.

Next we'll have to make the Gregorian gap vary with TZ settings, since
the current method (do it only for September 1752) is decidely
Anglo-centric.  ;-P
2003-06-05 00:21:20 +00:00
dsl 3f8c566477 Add 'exit' (for exit text) parameter to new_menu() for dynamic menus.
Correct calculation of menu height and whether scrolling needs (was wrong
if a height was specified that was smaller that the number of lines needed).
Move keypad(m->mw, TRUE) to stop core dump when newwin() fails.
Allow for calling code hacking m->h (to reduce number of lines displayed).
Add a MC_NOCLEAR option to leave menu text showing when doing action.
2003-06-04 19:07:39 +00:00
dsl 15cd94ddd8 Add msg_prompt_win() that will prompt in the specified window (instead of
the default one), and with a box around the window if >= 3 lines.
Stop the char delete from killingthe RHS of any box.
Make msg_string a noop for invalid strings (might be quoted text).
2003-06-04 19:00:26 +00:00
dsl 6af8425f81 Add a 'void *' argument to process_menu() so that some more global variables
can be killed.
2003-06-03 11:51:56 +00:00
dsl 76c4788c16 More trivial changes...
Exclude '<: page up, >: page down' line from m->h count to simplify code.
2003-06-03 08:49:53 +00:00
matt 78735dbbe5 For a library, only check in cmtime (children's modification) if there are
children.  This prevents spurious out-of-date failures when you have a
rules checking for a library's existance (and no children).
2003-06-02 21:49:00 +00:00
dsl 99778eca69 Whitespace and other layout stuff.
Change an elsif sequence to switch()
2003-06-02 21:19:35 +00:00
kristerw 158e4448b0 Shorten long lines.
Some whitespace changes to get closer to KNF.
2003-06-01 22:04:29 +00:00
thorpej d6c02b1523 "objcopy --redefine-syms-file" is now "objcopy --redefine-syms". 2003-06-01 02:03:22 +00:00