Import sendmail 8.13.7
[dragonfly.git] / contrib / sendmail-8.13.7 / sendmail / statusd_shm.h
blob7d889641f495344ebd6d8d8afbd7b495aeb75af8
1 /*
2 * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
3 * All rights reserved.
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.
9 * $Id: statusd_shm.h,v 8.7 2000/09/17 17:30:06 gshapiro Exp $
11 * Contributed by Exactis.com, Inc.
16 ** The shared memory part of statusd.
18 ** Attach to STATUSD_SHM_KEY and update the counter appropriate
19 ** for your type of service.
23 #define STATUSD_MAGIC 110946
24 #define STATUSD_SHM_KEY (key_t)(13)
25 #define STATUSD_LONGS (2)
27 typedef struct
29 unsigned long magic;
30 unsigned long ul[STATUSD_LONGS];
31 } STATUSD_SHM;
34 ** Offsets into ul[]. The appropriate program
35 ** increments these as appropriate.
38 #define STATUSD_COOKIE (0) /* reregister cookie */
40 /* sendmail */
41 #define STATUSD_SM_NSENDMAIL (1) /* how many running */
43 extern void shmtick __P((int, int));