summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrouted/main.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-5/+5
| | | | | | 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.
* delete #ifdef SYSV code, along with a beautiful #define bcopy memcpyderaadt2017-10-071-4/+0
|
* Nuke whitespace foolish enough to expose itself during the greatkrw2017-01-211-1/+1
| | | | "warning:" rectification.
* use symbolics for flags to openderaadt2015-11-121-1/+1
| | | | from Ricardo Mestre
* daemon() equivelant should open /dev/null; ok millertderaadt2015-11-121-1/+1
|
* remove util.h include and -lutil after pidfile removaljung2015-10-261-1/+0
| | | | ok deraadt
* stop using pidfile()deraadt2015-10-261-2/+0
| | | | ok benno jung jca
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-261-1/+1
|
* c99 no longer allows implicit ints. make the declaration explicit.daniel2014-08-271-1/+1
| | | | ok henning@
* use arc4random_uniform(); ok djmderaadt2013-04-211-6/+6
| | | | plus some other markings about signal races...
* deregister. no binary change.tedu2013-04-211-5/+5
|
* as in dvmrpd:deraadt2013-04-211-3/+3
| | | | | | the DVMRP protocol generation number can work beyond 2038 because it is unsigned. Cast it specifically, with a comment, to make this more clear.
* convert select to poll, since the select code had descriptor limitsderaadt2013-04-211-21/+15
| | | | ok tedu
* fix missing err.h includesjsg2011-09-211-0/+1
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+0
| | | | | | | 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
* tidy up synopsis and usage; from Igor Sobradojmc2007-02-181-2/+2
|
* use getopt() for argument list parsingrobert2005-06-161-22/+28
| | | | ok millert@ otto@
* remove SNMP code from mrouted(8) because it is broken and it isrobert2005-06-151-73/+2
| | | | | | higly unlike that anyone will use this. ok otto@ millert@ henning@
* Replace log() with logit() since ISO C reserves log() for the mathmillert2003-11-261-14/+14
| | | | | library and gcc 3.x will complain. Replacement name taken from NetBSD. espie@ OK.
* less sprintfderaadt2003-03-121-3/+3
|
* spacesderaadt2003-03-031-10/+10
|
* ansi, from cloderderaadt2003-03-031-29/+13
|
* die if fd_set overruns.itojun2002-08-091-1/+5
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-26/+1
|
* 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.millert2002-02-161-11/+11
|
* Use pidfile() instead of doing the equivalent thing by hand, and sometimesmiod2001-12-011-7/+3
| | | | | forgetting to unlink the pid file at exit. ok millert@ deraadt@
* Replace the deprecated BSD sigsetmask/sigblock/sigpause functions with their POSIX counterparts.millert2001-09-041-33/+11
|
* exit(-#) is wrongderaadt2001-03-091-2/+2
|
* revoke privs at start; tested by fenner@parc.xerox.comderaadt1996-09-111-3/+2
|
* from netbsd: tv_sec isn't a time_t, but a long. this causes some problems..deraadt1995-12-191-2/+5
|
* from netbsd; update to mrouted 3.8deraadt1995-12-141-88/+233
|
* initial import of NetBSD treederaadt1995-10-181-0/+611