106f25ae9SGregory Neil Shapiro /* 25dd76dd0SGregory Neil Shapiro * Copyright (c) 1999-2000 Proofpoint, Inc. and its suppliers. 306f25ae9SGregory Neil Shapiro * All rights reserved. 406f25ae9SGregory Neil Shapiro * 506f25ae9SGregory Neil Shapiro * By using this file, you agree to the terms and conditions set 606f25ae9SGregory Neil Shapiro * forth in the LICENSE file which can be found at the top level of 706f25ae9SGregory Neil Shapiro * the sendmail distribution. 806f25ae9SGregory Neil Shapiro * 9*4313cc83SGregory Neil Shapiro * $Id: statusd_shm.h,v 8.8 2013-11-22 20:51:57 ca Exp $ 1006f25ae9SGregory Neil Shapiro * 1106f25ae9SGregory Neil Shapiro * Contributed by Exactis.com, Inc. 1206f25ae9SGregory Neil Shapiro * 1306f25ae9SGregory Neil Shapiro */ 1406f25ae9SGregory Neil Shapiro 1506f25ae9SGregory Neil Shapiro /* 1606f25ae9SGregory Neil Shapiro ** The shared memory part of statusd. 1706f25ae9SGregory Neil Shapiro ** 1806f25ae9SGregory Neil Shapiro ** Attach to STATUSD_SHM_KEY and update the counter appropriate 1906f25ae9SGregory Neil Shapiro ** for your type of service. 2006f25ae9SGregory Neil Shapiro ** 2106f25ae9SGregory Neil Shapiro */ 2206f25ae9SGregory Neil Shapiro 2306f25ae9SGregory Neil Shapiro #define STATUSD_MAGIC 110946 2406f25ae9SGregory Neil Shapiro #define STATUSD_SHM_KEY (key_t)(13) 2506f25ae9SGregory Neil Shapiro #define STATUSD_LONGS (2) 2606f25ae9SGregory Neil Shapiro 2740266059SGregory Neil Shapiro typedef struct 2840266059SGregory Neil Shapiro { 2906f25ae9SGregory Neil Shapiro unsigned long magic; 3006f25ae9SGregory Neil Shapiro unsigned long ul[STATUSD_LONGS]; 3106f25ae9SGregory Neil Shapiro } STATUSD_SHM; 3206f25ae9SGregory Neil Shapiro 3306f25ae9SGregory Neil Shapiro /* 3406f25ae9SGregory Neil Shapiro ** Offsets into ul[]. The appropriate program 3506f25ae9SGregory Neil Shapiro ** increments these as appropriate. 3606f25ae9SGregory Neil Shapiro */ 3706f25ae9SGregory Neil Shapiro 3806f25ae9SGregory Neil Shapiro #define STATUSD_COOKIE (0) /* reregister cookie */ 3906f25ae9SGregory Neil Shapiro 4006f25ae9SGregory Neil Shapiro /* sendmail */ 4106f25ae9SGregory Neil Shapiro #define STATUSD_SM_NSENDMAIL (1) /* how many running */ 4206f25ae9SGregory Neil Shapiro 4306f25ae9SGregory Neil Shapiro extern void shmtick __P((int, int)); 4406f25ae9SGregory Neil Shapiro 45