clock.h (98121) | clock.h (141858) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2001, 2004 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * | 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * |
12 * $Id: clock.h,v 1.11 2001/05/14 23:25:37 gshapiro Exp $ | 12 * $Id: clock.h,v 1.12 2004/08/03 19:57:21 ca Exp $ |
13 */ 14 15/* 16** CLOCK.H -- for co-ordinating timed events 17*/ 18 19#ifndef _SM_CLOCK_H 20# define _SM_CLOCK_H 1 --- 26 unchanged lines hidden (view full) --- 47 struct sm_event *ev_link; /* link to next item */ 48}; 49 50typedef struct sm_event SM_EVENT; 51 52/* functions */ 53extern void sm_clrevent __P((SM_EVENT *)); 54extern void sm_clear_events __P((void)); | 13 */ 14 15/* 16** CLOCK.H -- for co-ordinating timed events 17*/ 18 19#ifndef _SM_CLOCK_H 20# define _SM_CLOCK_H 1 --- 26 unchanged lines hidden (view full) --- 47 struct sm_event *ev_link; /* link to next item */ 48}; 49 50typedef struct sm_event SM_EVENT; 51 52/* functions */ 53extern void sm_clrevent __P((SM_EVENT *)); 54extern void sm_clear_events __P((void)); |
55extern SM_EVENT *sm_setevent __P((time_t, void(*)(), int)); 56extern SM_EVENT *sm_seteventm __P((int, void(*)(), int)); 57extern SM_EVENT *sm_sigsafe_seteventm __P((int, void(*)(), int)); | 55extern SM_EVENT *sm_seteventm __P((int, void(*)__P((int)), int)); 56extern SM_EVENT *sm_sigsafe_seteventm __P((int, void(*)__P((int)), int)); |
58extern SIGFUNC_DECL sm_tick __P((int)); 59 60/* 61** SM_SETEVENT -- set an event to happen at a specific time in seconds. 62** 63** Translates the seconds into millseconds and calls sm_seteventm() 64** to get a specific event to happen in the future at a specific time. 65** --- 16 unchanged lines hidden --- | 57extern SIGFUNC_DECL sm_tick __P((int)); 58 59/* 60** SM_SETEVENT -- set an event to happen at a specific time in seconds. 61** 62** Translates the seconds into millseconds and calls sm_seteventm() 63** to get a specific event to happen in the future at a specific time. 64** --- 16 unchanged lines hidden --- |