kn
347b73737b
-o[arg] must not have spaces between option and argument; OK jmc
...
getopt(3) says so and, e.g. 'mrouted -d 1' must be 'mrouted -d1' to work.
dhcpd(8) and sed(1) got this right, our multicast programs did not.
2024-12-01 09:58:15 +00:00
jsg
ce7279d89b
remove prototypes with no matching function and externs with no var
...
partly checked by millert@
2024-05-21 05:00:47 +00:00
deraadt
df69c215c7
When system calls indicate an error they return -1, not some arbitrary
...
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
2019-06-28 13:32:41 +00:00
deraadt
323ce4b6a2
since stdlib.h is in scope, don't cast.... you know the drill.
...
no sneakiness detected by krw
2015-08-21 02:07:32 +00:00
deraadt
b9fc9a728f
Replace <sys/param.h> with <limits.h> and other less dirty headers where
...
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
2015-01-16 06:39:28 +00:00
millert
b9a887b60d
Prefer setvbuf() to setlinebuf() for portability; ok deraadt@
2014-11-26 18:34:51 +00:00
okan
6c2da34c70
use timerclear macro
...
ok miod@
2011-03-22 10:16:23 +00:00
deraadt
043fbe51c1
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
...
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms
2009-10-27 23:59:19 +00:00
deraadt
1ed98fdf61
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
2007-09-02 15:19:07 +00:00
jmc
9490d37cb6
convert to new .Dd format;
2007-05-31 19:19:00 +00:00
jmc
833f7d3d14
new sentence, new line...and generally just start new lines in sane places;
...
while here, a little macro cleanup.
2005-09-06 22:40:52 +00:00
jmc
ede8ba7d5b
some grammar fixes from simon morgan;
...
fixes pr #4491
2005-09-06 22:26:49 +00:00
robert
32d7ff0f9d
use getopt(3) for argument list parsing and remove the get_number()
...
function becasue we use strtonum(3) from now on.
ok otto@ millert@
2005-06-20 14:48:26 +00:00
djm
930f5d47b1
setresuid; ok deraadt@
2005-05-03 05:42:05 +00:00
tedu
9497624f1d
fix datalen, from Esben Norby. ok deraadt itojun
2004-02-26 20:48:29 +00:00
millert
40443a2f67
Replace log() with logit() since ISO C reserves log() for the math
...
library and gcc 3.x will complain. Replacement name taken from NetBSD.
espie@ OK.
2003-11-26 01:17:12 +00:00
deraadt
6791a8ace7
convert to poll; ok dhartmei
2003-08-19 19:08:01 +00:00
jmc
9d0b46bce1
- section reorder
...
- macro fixes
- kill whitespace at EOL
- new sentence, new line
2003-06-12 12:59:48 +00:00
deraadt
4b6e8b27fd
some ansification, some de-register
2003-06-11 23:33:24 +00:00
deraadt
8d7251a3ea
knf
2003-03-05 21:05:39 +00:00
deraadt
609472993d
skip this setuid stuff
2003-03-04 22:24:35 +00:00
jmc
116aad9342
copyrights added;
...
bootpef(8), pppd(8): Carnegie Mellon
map-mbone(8), mrinfo(8): Xerox
pdisk(8): Apple
awk(1): Lucent
sectok(3): University of Michigan
2003-02-18 07:51:08 +00:00
itojun
fbf49a8e39
don't use dynamically-generated printf format string. more picky
...
about gethostby* result. check fd_set overrun. from xs@kittenz.org
2002-08-08 00:28:09 +00:00
deraadt
0085026ed6
missing sockaddr inits; ok itojun
2002-06-02 19:06:39 +00:00
millert
e7beb4a7d5
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
2002-02-19 19:39:35 +00:00
millert
f3c3a9c6df
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
2002-02-17 19:42:18 +00:00
millert
c72b5b24e1
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-16 21:27:05 +00:00
deraadt
638fb4025b
follow post-2.1 ip_off & ip_len byte orders
2001-12-10 20:30:46 +00:00
deraadt
4dc1eef24e
this has been setuid for quite some time
2001-12-05 10:33:03 +00:00
deraadt
24766c5400
make sure that va_start() has matching va_end()
2001-09-05 22:32:27 +00:00
mpech
b566709843
o) .Sh AUTHOR -> .Sh AUTHORS;
...
o) .Sh EXAMPLE -> .Sh EXAMPLES;
o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION;
millert@ ok
2001-08-02 18:37:33 +00:00
deraadt
1d7a61de87
New license from Xerox! This code is now FREE! Took a while and a lot of
...
mails, but it is worth it.
2001-07-31 22:13:06 +00:00
mpech
24a3a9d1e5
we don't like:
...
o) .Pp before/after .Sh;
o) .Pp before/after .Sh;
o) .Nm without argument in SYNOPSIS;
2001-07-20 19:09:45 +00:00
ho
c60000da7f
Some fixes. From <mpech@prosoft.org.lv>
2001-05-22 15:18:18 +00:00
ho
c9d8081e40
mdoc-ify. Fix section headers. Some typos.
2001-05-22 11:14:07 +00:00
deraadt
43ae5fd5fd
exit(-#) is wrong
2001-03-09 03:19:51 +00:00
deraadt
6de4f16855
more careful euid killing
2000-12-21 00:33:37 +00:00
aaron
6931a8aa25
remove trailing whitespace, some Nm cleanup
1999-06-05 22:16:18 +00:00
deraadt
e189ddde44
$OpenBSD$
1997-09-21 11:34:32 +00:00
millert
ae735f1219
check malloc() ret val!
1996-10-16 06:23:33 +00:00
deraadt
f07d649783
revoke privs at start; tested by fenner@parc.xerox.com
1996-09-11 19:15:28 +00:00
deraadt
a17240f231
from netbsd; update to mrouted 3.8
1995-12-14 01:45:19 +00:00
deraadt
df930be708
initial import of NetBSD tree
1995-10-18 08:37:01 +00:00