1/*
| 1/*
|
2 * Copyright (c) 2001-2002 Sendmail, Inc. and its suppliers.
| 2 * Copyright (c) 2001-2002, 2004 Sendmail, Inc. and its suppliers.
|
3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 */ 9 10#include <sm/gen.h>
| 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 */ 9 10#include <sm/gen.h>
|
11SM_RCSID("@(#)$Id: t-event.c,v 1.11 2002/04/25 01:50:25 ca Exp $")
| 11SM_RCSID("@(#)$Id: t-event.c,v 1.12 2004/08/03 20:50:32 ca Exp $")
|
12 13#include <stdio.h> 14 15#include <stdlib.h> 16#include <unistd.h> 17# include <sys/wait.h> 18#if SM_CONF_SETITIMER 19# include <sys/time.h> 20#endif /* SM_CONF_SETITIMER */ 21 22#include <sm/clock.h> 23#include <sm/test.h> 24
| 12 13#include <stdio.h> 14 15#include <stdlib.h> 16#include <unistd.h> 17# include <sys/wait.h> 18#if SM_CONF_SETITIMER 19# include <sys/time.h> 20#endif /* SM_CONF_SETITIMER */ 21 22#include <sm/clock.h> 23#include <sm/test.h> 24
|
25int check;
| 25static void evcheck __P((int)); 26static void ev1 __P((int));
|
26
| 27
|
27void
| 28static int check; 29 30static void
|
28evcheck(arg) 29 int arg; 30{ 31 SM_TEST(arg == 3); 32 SM_TEST(check == 0); 33 check++; 34} 35
| 31evcheck(arg) 32 int arg; 33{ 34 SM_TEST(arg == 3); 35 SM_TEST(check == 0); 36 check++; 37} 38
|
36void
| 39static void
|
37ev1(arg) 38 int arg; 39{ 40 SM_TEST(arg == 1); 41} 42 43/* define as x if you want debug output */ 44#define DBG_OUT(x)
--- 41 unchanged lines hidden --- | 40ev1(arg) 41 int arg; 42{ 43 SM_TEST(arg == 1); 44} 45 46/* define as x if you want debug output */ 47#define DBG_OUT(x)
--- 41 unchanged lines hidden --- |