xref: /titanic_41/usr/src/cmd/sendmail/src/statusd_shm.h (revision b509e89b2befbaa42939abad9da1d7f5a8c6aaae)
1 /*
2  * Copyright (c) 1999-2000 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  *	$Id: statusd_shm.h,v 8.7 2000/09/17 17:30:06 gshapiro Exp $
10  *
11  * Contributed by Exactis.com, Inc.
12  *
13  */
14 
15 #pragma ident	"%Z%%M%	%I%	%E% SMI"
16 
17 /*
18 **  The shared memory part of statusd.
19 **
20 **  Attach to STATUSD_SHM_KEY and update the counter appropriate
21 **  for your type of service.
22 **
23 */
24 
25 #define STATUSD_MAGIC	110946
26 #define STATUSD_SHM_KEY	(key_t)(13)
27 #define STATUSD_LONGS	(2)
28 
29 typedef struct
30 {
31 	unsigned long	magic;
32 	unsigned long	ul[STATUSD_LONGS];
33 } STATUSD_SHM;
34 
35 /*
36 **  Offsets into ul[]. The appropriate program
37 **  increments these as appropriate.
38 */
39 
40 #define STATUSD_COOKIE		(0)	/* reregister cookie */
41 
42 /* sendmail */
43 #define STATUSD_SM_NSENDMAIL	(1)	/* how many running */
44 
45 extern void	shmtick __P((int, int));
46 
47