itojun
434c034061
safer realloc, from openbsd
2003-11-07 04:44:57 +00:00
itojun
bad71a3818
prevent integer underflow. freebsd rev 1.32. via openbsd
2003-11-07 03:58:06 +00:00
lukem
a2f8083d5d
Add some subsections in the VARIABLE ASSIGNMENTS section.
...
In the "modifier description" list, show each modifier with the leading `:'.
Rationale: it's hard to search for modifiers without it, and we already do
the same thing in the -options and .makecommands lists. I now find it much
easier to find the description for a modifier in the man page.
2003-11-07 01:01:46 +00:00
itojun
9a941e2d01
handle KAME scopeid hack for multicast addr. Matthias Drochner
2003-11-06 06:11:48 +00:00
thorpej
3d11ccec8c
Clean up getopt() usage, removing unnecessary warnx()'s.
...
From Sergey Svishchev <svs at ropnet dot ru>.
2003-11-02 17:43:01 +00:00
thorpej
2dc0580879
Remove unnecessary warnx() in getopt default case.
...
From Sergey Svishchev <svs at ropnet dot ru>.
2003-11-02 17:40:41 +00:00
ross
405db788de
Defensively rewrite a string moving loop.
...
Constify.
Check for an allocation error.
2003-10-31 01:25:54 +00:00
ross
a1a806781b
Fix the broken "!" escape and "shell" (&-prompt) commands. These problems
...
were related to closed PR bin/21896, and to the 2003-3-29 code import.
2003-10-29 05:11:26 +00:00
atatat
f9130f0cc1
Take the time to set gottime so that you don't have to waste time
...
trying to figure out why the time isn't the time you expected all the
time.
2003-10-29 04:25:46 +00:00
christos
bfac827045
include <malloc.h> only if we don't have <stdlib.h>
2003-10-28 20:43:51 +00:00
jmc
782579c57a
SUSE3 says htonl and friends come in via arpa/inet.h. This will actually not
...
hurt on NetBSD and makes hosting on non-native for tools/ work correctly
2003-10-28 04:00:51 +00:00
wiz
a1a9c97ba0
Bump date for previous; fix a typo; use .Dq instead of \*( construct.
2003-10-28 00:28:56 +00:00
uwe
faa73a6d7e
In test_error() use <& to duplicate input descriptors,
...
correct the order of descriptors in redirection that saves stdin.
2003-10-27 20:09:49 +00:00
heas
642593b012
break the description of the "open" command into two paragraphs and improve
...
description of .telnetrc.
2003-10-27 19:46:14 +00:00
uwe
03e0a01658
Deoptimize (gcc-sh3-sed hack) only if ${HAVE_GCC3} != "yes".
2003-10-27 13:27:41 +00:00
lukem
6182ef67e2
be consistent using #if HAVE_STRUCT_STAT_ST_xxx (versus #ifdef)
2003-10-27 00:16:21 +00:00
lukem
397ba902d6
enable ident strings for sources pulled in from libc
2003-10-27 00:14:59 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
chs
8caf978ec2
fix for systems which don't have st_*timespec. PR 23214.
2003-10-26 20:43:13 +00:00
lukem
6c22027ca8
On MACHINE_ARCH==arm, compile newsyslog(8) with -fno-gcse-lm.
...
Fixes PRs [toolchain/22986] [toolchain/23002] [toolchain/23217]
2003-10-26 01:56:54 +00:00
cube
926567478a
Allow using '+=number' (resp. -=number) to produce the same effect as
...
several '++' (resp. '--'). Suggested by David Brownlee in tech-kern.
2003-10-23 22:17:58 +00:00
jmc
89996408fa
Fixes from PR#23210 to eliminate use of asprintf which makes cross building
...
on non-NetBSD hosts work again
2003-10-23 15:58:29 +00:00
christos
2a2701085e
- keep the fd to /dev/zero open
...
- take advantage of MAP_ANONYMOUS
2003-10-22 16:10:03 +00:00
dmcmahill
188fcee35a
add
...
#if HAVE_CONFIG_H
#include "config.h"
#endif
to get this to build under solaris-2.6/sparc with gcc-2.95.1 as part of
the NetBSD cross toolchain build. Fixes PR23211. Patch approved by
Alistair Crooks.
2003-10-22 12:30:39 +00:00
christos
58507d43c3
PR/23219: Dan McMahill: Make this compile on system that don't have MAP_ANON.
...
Centralize the mmap allocations in a new function, xmapalloc() that handles
this.
2003-10-21 23:58:53 +00:00
lukem
130ab7336b
Rework how MAKEVERBOSE operates:
...
* Don't bother prefixing commands with a line of ${_MKCMD}\
and instead rely upon "make -s". This is less intrusive on
all the Makefiles than the former. Idea from David Laight.
* Rename the variables use to print messages. The scheme now is:
_MKMSG_FOO Run _MKMSG 'foo'
_MKTARGET_FOO Run _MKMSG_FOO ${.TARGET}
From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
wiz
1dbb52e92c
Fix typos, from Jared Yanovich. Forwarded by jmc@openbsd.
2003-10-21 09:03:25 +00:00
fvdl
3ee8341b2f
Don't assign NULL to a char.
2003-10-21 02:24:59 +00:00
fvdl
0933c426af
Don't pass NULL as an integer argument.
2003-10-21 02:24:08 +00:00
fvdl
939c9d99f4
Don't compare a char to NULL.
2003-10-21 02:23:13 +00:00
fvdl
5d0f1dccca
Don't assign NULL to an integer.
2003-10-21 02:22:21 +00:00
fvdl
c82a2904cb
The last argument to sysctl() is a size_t, don't pass NULL in it.
2003-10-21 02:20:22 +00:00
fvdl
c4aacce6a3
Don't compare an integer to NULL.
2003-10-21 02:17:45 +00:00
fvdl
49ec36daa1
Don't compare integers and NULL.
2003-10-21 02:16:59 +00:00
fvdl
9651aa2f12
Don't set an int to NULL.
2003-10-21 02:15:00 +00:00
yamt
c046e5f6af
count number of invalid characters correctly.
...
ok'ed by tshiozak@.
2003-10-20 12:56:18 +00:00
christos
87b62b5af0
KNF:
...
- ansify
- no breaks after returns
- statics where needed
- no exit after errx
2003-10-19 07:34:38 +00:00
lukem
c545cc169d
support MAKEVERBOSE
2003-10-19 04:30:30 +00:00
lukem
a694177df5
support MAKEVERBOSE and use ${HOST_SH}
2003-10-19 04:25:00 +00:00
lukem
87755a0463
support MAKEVERBOSE and use ${HOST_SH}
2003-10-19 04:05:01 +00:00
dsl
51fe540362
Add an MC_ALWAYS_SCROLL to mean "always allow space for 'scrolltext'".
...
All scrolltext to be #defined so it can be translated.
2003-10-18 18:26:53 +00:00
enami
07bf4ffc50
mbstat.m_drain is still maintained. Don't skip it.
2003-10-18 12:26:26 +00:00
itojun
ba02466ff9
KNF (mostly whitespace)
2003-10-18 03:03:20 +00:00
enami
d182626b85
Test the value returned by realloc() rather than anything else.
2003-10-17 22:59:35 +00:00
enami
52b6a13784
Print ips_rcvmemdrop and ips_nogif.
2003-10-17 22:28:11 +00:00
grant
ba2a3df7f5
call setprogname(), replace a 'sed' with getprogname().
2003-10-16 12:11:12 +00:00
itojun
50847da5c5
safer use of realloc
2003-10-16 06:56:17 +00:00
itojun
4f228a52dc
safer use of realloc
2003-10-16 06:45:22 +00:00
itojun
d5250e4ec9
safer use of realloc
2003-10-16 06:34:19 +00:00
itojun
53284b73d0
snprintf() terminates string with \0, so there's no need for "sizeof(x)-1".
2003-10-16 05:31:47 +00:00