190075Sobrien/*
290075Sobrien * Copyright (c) 1999-2000 Proofpoint, Inc. and its suppliers.
390075Sobrien *	All rights reserved.
490075Sobrien *
590075Sobrien * By using this file, you agree to the terms and conditions set
690075Sobrien * forth in the LICENSE file which can be found at the top level of
790075Sobrien * the sendmail distribution.
890075Sobrien *
990075Sobrien *	$Id: statusd_shm.h,v 8.8 2013-11-22 20:51:57 ca Exp $
10169689Skan *
1190075Sobrien * Contributed by Exactis.com, Inc.
1290075Sobrien *
1390075Sobrien */
1490075Sobrien
1590075Sobrien/*
1690075Sobrien**  The shared memory part of statusd.
1790075Sobrien**
1890075Sobrien**  Attach to STATUSD_SHM_KEY and update the counter appropriate
1990075Sobrien**  for your type of service.
2090075Sobrien**
21169689Skan*/
22169689Skan
2390075Sobrien#define STATUSD_MAGIC	110946
2490075Sobrien#define STATUSD_SHM_KEY	(key_t)(13)
25169689Skan#define STATUSD_LONGS	(2)
2690075Sobrien
2790075Sobrientypedef struct
2890075Sobrien{
2990075Sobrien	unsigned long	magic;
3090075Sobrien	unsigned long	ul[STATUSD_LONGS];
3190075Sobrien} STATUSD_SHM;
3290075Sobrien
3390075Sobrien/*
3490075Sobrien**  Offsets into ul[]. The appropriate program
3590075Sobrien**  increments these as appropriate.
3690075Sobrien*/
3790075Sobrien
3890075Sobrien#define STATUSD_COOKIE		(0)	/* reregister cookie */
3990075Sobrien
4090075Sobrien/* sendmail */
4190075Sobrien#define STATUSD_SM_NSENDMAIL	(1)	/* how many running */
4290075Sobrien
4390075Sobrienextern void	shmtick __P((int, int));
4490075Sobrien
4590075Sobrien