1N/A/*
1N/A * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers.
1N/A * All rights reserved.
1N/A *
1N/A * By using this file, you agree to the terms and conditions set
1N/A * forth in the LICENSE file which can be found at the top level of
1N/A * the sendmail distribution.
1N/A *
1N/A * $Id: statusd_shm.h,v 8.7 2000/09/17 17:30:06 gshapiro Exp $
1N/A *
1N/A * Contributed by Exactis.com, Inc.
1N/A *
1N/A */
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A/*
1N/A** The shared memory part of statusd.
1N/A**
1N/A** Attach to STATUSD_SHM_KEY and update the counter appropriate
1N/A** for your type of service.
1N/A**
1N/A*/
1N/A
1N/A#define STATUSD_MAGIC 110946
1N/A#define STATUSD_SHM_KEY (key_t)(13)
1N/A#define STATUSD_LONGS (2)
1N/A
1N/Atypedef struct
1N/A{
1N/A unsigned long magic;
1N/A unsigned long ul[STATUSD_LONGS];
1N/A} STATUSD_SHM;
1N/A
1N/A/*
1N/A** Offsets into ul[]. The appropriate program
1N/A** increments these as appropriate.
1N/A*/
1N/A
1N/A#define STATUSD_COOKIE (0) /* reregister cookie */
1N/A
1N/A/* sendmail */
1N/A#define STATUSD_SM_NSENDMAIL (1) /* how many running */
1N/A
1N/Aextern void shmtick __P((int, int));
1N/A