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 /* 16*7c478bd9Sstevel@tonic-gate ** The shared memory part of statusd. 17*7c478bd9Sstevel@tonic-gate ** 18*7c478bd9Sstevel@tonic-gate ** Attach to STATUSD_SHM_KEY and update the counter appropriate 19*7c478bd9Sstevel@tonic-gate ** for your type of service. 20*7c478bd9Sstevel@tonic-gate ** 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate 23*7c478bd9Sstevel@tonic-gate #define STATUSD_MAGIC 110946 24*7c478bd9Sstevel@tonic-gate #define STATUSD_SHM_KEY (key_t)(13) 25*7c478bd9Sstevel@tonic-gate #define STATUSD_LONGS (2) 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate typedef struct 28*7c478bd9Sstevel@tonic-gate { 29*7c478bd9Sstevel@tonic-gate unsigned long magic; 30*7c478bd9Sstevel@tonic-gate unsigned long ul[STATUSD_LONGS]; 31*7c478bd9Sstevel@tonic-gate } STATUSD_SHM; 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gate /* 34*7c478bd9Sstevel@tonic-gate ** Offsets into ul[]. The appropriate program 35*7c478bd9Sstevel@tonic-gate ** increments these as appropriate. 36*7c478bd9Sstevel@tonic-gate */ 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gate #define STATUSD_COOKIE (0) /* reregister cookie */ 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gate /* sendmail */ 41*7c478bd9Sstevel@tonic-gate #define STATUSD_SM_NSENDMAIL (1) /* how many running */ 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate extern void shmtick __P((int, int)); 44*7c478bd9Sstevel@tonic-gate 45