xref: /freebsd/contrib/sendmail/src/statusd_shm.h (revision 5521ff5a4d1929056e7ffc982fac3341ca54df7c)
1 /*
2  * Copyright (c) 1999 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.4 1999/05/18 08:00:04 gshapiro Exp $
10  *
11  * Contributed by Exactis.com, Inc.
12  *
13  */
14 
15 /*
16 ** The shared memory part of statusd.
17 **
18 ** Attach to STATUSD_SHM_KEY and update the counter appropriate
19 ** for your type of service.
20 **
21 */
22 
23 #define STATUSD_MAGIC	110946
24 #define STATUSD_SHM_KEY	(key_t)(13)
25 #define STATUSD_LONGS	(2)
26 
27 typedef struct {
28 	unsigned long	magic;
29 	unsigned long	ul[STATUSD_LONGS];
30 } STATUSD_SHM;
31 
32 /*
33 **  Offsets into ul[]. The appropriate program
34 **  increments these as appropriate.
35 */
36 
37 #define STATUSD_COOKIE		(0)	/* reregister cookie */
38 
39 /* sendmail */
40 #define STATUSD_SM_NSENDMAIL	(1)	/* how many running */
41 
42 extern void	shmtick __P((int, int));
43 
44