timer.h (b6217683dc0269a53b799399522dbdfb5a4919cc) timer.h (2764b86afdc99a30f4b1a4da2c04db8aa7aa785d)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $Id: timer.h,v 1.5.4.1 1998/04/03 19:21:54 brian Exp $
18 * $Id: timer.h,v 1.5.4.2 1998/04/03 19:26:01 brian Exp $
19 *
20 * TODO:
21 */
22
23#define TICKUNIT 100000 /* usec's per Unit */
24#define SECTICKS (1000000/TICKUNIT) /* Units per second */
25
26struct pppTimer {

--- 12 unchanged lines hidden (view full) ---

39#define TIMER_EXPIRED 2
40
41struct prompt;
42
43extern void StartTimer(struct pppTimer *);
44extern void StopTimer(struct pppTimer *);
45extern void TermTimerService(void);
46extern void ShowTimers(int LogLevel, struct prompt *);
19 *
20 * TODO:
21 */
22
23#define TICKUNIT 100000 /* usec's per Unit */
24#define SECTICKS (1000000/TICKUNIT) /* Units per second */
25
26struct pppTimer {

--- 12 unchanged lines hidden (view full) ---

39#define TIMER_EXPIRED 2
40
41struct prompt;
42
43extern void StartTimer(struct pppTimer *);
44extern void StopTimer(struct pppTimer *);
45extern void TermTimerService(void);
46extern void ShowTimers(int LogLevel, struct prompt *);
47
48#ifdef SIGALRM
49extern void nointr_sleep(u_int);
50extern void nointr_usleep(u_int);
47extern void nointr_sleep(u_int);
48extern void nointr_usleep(u_int);
51#endif