summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/timer.h
Commit message (Collapse)AuthorAgeFilesLines
* Convert IIJ copyrights to BSD copyrights.brian2001-06-131-16/+24
| | | | Approved by: Toshiharu OHNO <tohno@sirius.ocn.ne.jp>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Rather than interrupting 10 times per second then checkingbrian1998-12-141-2/+2
| | | | | | | | | | | to see if there's anything to do, schedule the next alarm based on the next required timeout. This decreases the load when there are lots of relatively idle ppp processes. While I'm in there, handle the possibility that a timeout makes the timer element go out of scope by grabbing the enext pointer before executing the timer function.
* Re-initialise our timer service after fork()ingbrian1998-06-201-1/+2
| | | | | | to lose our terminal session. Is this a bug in setitimer() ? - it must be called again in the child !
* MFMP: Make ppp multilink capable.brian1998-05-211-11/+9
| | | | See the file README.changes, and re-read the man page.
* Remove unused #includes.brian1998-01-211-4/+1
| | | | | | Make various bits static. Remove unused variables. Submitted by: eivind
* Don't expect select() to adjust the passed time when it'sbrian1997-12-281-2/+2
| | | | | | | | | | | interrupted with a SIGALRM. In fact, select() sets the passed time to zero, making the previous implementation terminate always after 1/10th of a second ! Also, deal with someone changing the clock while we're sleeping (and restart the whole sleep). Dangers pointed out by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Fix prototypes.brian1997-11-221-2/+2
| | | | | | | | | | | | | | Remove extraneous decls. Add ``const'' to several places. Allow ``make NOALIAS=1'' to remove IP aliasing. Merge with OpenBSD - only the Makefiles vary. We can now survive a compile with -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wchar-subscripts (although the Makefile just contains -Wall).
* Cosmetic:brian1997-10-261-4/+6
| | | | Move prototypes into the correct headers.
* Cosmetic (no functional changes):brian1997-10-261-0/+49
o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
OpenPOWER on IntegriCloud