summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/src/statusd_shm.h
blob: 7d889641f495344ebd6d8d8afbd7b495aeb75af8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
 *	All rights reserved.
 *
 * By using this file, you agree to the terms and conditions set
 * forth in the LICENSE file which can be found at the top level of
 * the sendmail distribution.
 *
 *	$Id: statusd_shm.h,v 8.7 2000/09/17 17:30:06 gshapiro Exp $
 *
 * Contributed by Exactis.com, Inc.
 *
 */

/*
**  The shared memory part of statusd.
**
**  Attach to STATUSD_SHM_KEY and update the counter appropriate
**  for your type of service.
**
*/

#define STATUSD_MAGIC	110946
#define STATUSD_SHM_KEY	(key_t)(13)
#define STATUSD_LONGS	(2)

typedef struct
{
	unsigned long	magic;
	unsigned long	ul[STATUSD_LONGS];
} STATUSD_SHM;

/*
**  Offsets into ul[]. The appropriate program
**  increments these as appropriate.
*/

#define STATUSD_COOKIE		(0)	/* reregister cookie */

/* sendmail */
#define STATUSD_SM_NSENDMAIL	(1)	/* how many running */

extern void	shmtick __P((int, int));

OpenPOWER on IntegriCloud