164562Sgshapiro/* 2261194Sgshapiro * Copyright (c) 1999-2000 Proofpoint, Inc. and its suppliers. 364562Sgshapiro * All rights reserved. 464562Sgshapiro * 564562Sgshapiro * By using this file, you agree to the terms and conditions set 664562Sgshapiro * forth in the LICENSE file which can be found at the top level of 764562Sgshapiro * the sendmail distribution. 864562Sgshapiro * 9266527Sgshapiro * $Id: statusd_shm.h,v 8.8 2013-11-22 20:51:57 ca Exp $ 1064562Sgshapiro * 1164562Sgshapiro * Contributed by Exactis.com, Inc. 1264562Sgshapiro * 1364562Sgshapiro */ 1464562Sgshapiro 1564562Sgshapiro/* 1690792Sgshapiro** The shared memory part of statusd. 1764562Sgshapiro** 1890792Sgshapiro** Attach to STATUSD_SHM_KEY and update the counter appropriate 1990792Sgshapiro** for your type of service. 2064562Sgshapiro** 2164562Sgshapiro*/ 2264562Sgshapiro 2364562Sgshapiro#define STATUSD_MAGIC 110946 2464562Sgshapiro#define STATUSD_SHM_KEY (key_t)(13) 2564562Sgshapiro#define STATUSD_LONGS (2) 2664562Sgshapiro 2790792Sgshapirotypedef struct 2890792Sgshapiro{ 2964562Sgshapiro unsigned long magic; 3064562Sgshapiro unsigned long ul[STATUSD_LONGS]; 3164562Sgshapiro} STATUSD_SHM; 3264562Sgshapiro 3364562Sgshapiro/* 3464562Sgshapiro** Offsets into ul[]. The appropriate program 3564562Sgshapiro** increments these as appropriate. 3664562Sgshapiro*/ 3764562Sgshapiro 3864562Sgshapiro#define STATUSD_COOKIE (0) /* reregister cookie */ 3964562Sgshapiro 4064562Sgshapiro/* sendmail */ 4164562Sgshapiro#define STATUSD_SM_NSENDMAIL (1) /* how many running */ 4264562Sgshapiro 4364562Sgshapiroextern void shmtick __P((int, int)); 4464562Sgshapiro 45