1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
3*7c478bd9Sstevel@tonic-gate  *	All rights reserved.
4*7c478bd9Sstevel@tonic-gate  *
5*7c478bd9Sstevel@tonic-gate  * By using this file, you agree to the terms and conditions set
6*7c478bd9Sstevel@tonic-gate  * forth in the LICENSE file which can be found at the top level of
7*7c478bd9Sstevel@tonic-gate  * the sendmail distribution.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  *	$Id: statusd_shm.h,v 8.7 2000/09/17 17:30:06 gshapiro Exp $
10*7c478bd9Sstevel@tonic-gate  *
11*7c478bd9Sstevel@tonic-gate  * Contributed by Exactis.com, Inc.
12*7c478bd9Sstevel@tonic-gate  *
13*7c478bd9Sstevel@tonic-gate  */
14*7c478bd9Sstevel@tonic-gate 
15*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
16*7c478bd9Sstevel@tonic-gate 
17*7c478bd9Sstevel@tonic-gate /*
18*7c478bd9Sstevel@tonic-gate **  The shared memory part of statusd.
19*7c478bd9Sstevel@tonic-gate **
20*7c478bd9Sstevel@tonic-gate **  Attach to STATUSD_SHM_KEY and update the counter appropriate
21*7c478bd9Sstevel@tonic-gate **  for your type of service.
22*7c478bd9Sstevel@tonic-gate **
23*7c478bd9Sstevel@tonic-gate */
24*7c478bd9Sstevel@tonic-gate 
25*7c478bd9Sstevel@tonic-gate #define STATUSD_MAGIC	110946
26*7c478bd9Sstevel@tonic-gate #define STATUSD_SHM_KEY	(key_t)(13)
27*7c478bd9Sstevel@tonic-gate #define STATUSD_LONGS	(2)
28*7c478bd9Sstevel@tonic-gate 
29*7c478bd9Sstevel@tonic-gate typedef struct
30*7c478bd9Sstevel@tonic-gate {
31*7c478bd9Sstevel@tonic-gate 	unsigned long	magic;
32*7c478bd9Sstevel@tonic-gate 	unsigned long	ul[STATUSD_LONGS];
33*7c478bd9Sstevel@tonic-gate } STATUSD_SHM;
34*7c478bd9Sstevel@tonic-gate 
35*7c478bd9Sstevel@tonic-gate /*
36*7c478bd9Sstevel@tonic-gate **  Offsets into ul[]. The appropriate program
37*7c478bd9Sstevel@tonic-gate **  increments these as appropriate.
38*7c478bd9Sstevel@tonic-gate */
39*7c478bd9Sstevel@tonic-gate 
40*7c478bd9Sstevel@tonic-gate #define STATUSD_COOKIE		(0)	/* reregister cookie */
41*7c478bd9Sstevel@tonic-gate 
42*7c478bd9Sstevel@tonic-gate /* sendmail */
43*7c478bd9Sstevel@tonic-gate #define STATUSD_SM_NSENDMAIL	(1)	/* how many running */
44*7c478bd9Sstevel@tonic-gate 
45*7c478bd9Sstevel@tonic-gate extern void	shmtick __P((int, int));
46*7c478bd9Sstevel@tonic-gate 
47