"Fossies" - the Fresh Open Source Software Archive

Member "sendmail-8.15.2/sendmail/statusd_shm.h" (5 Mar 2014, 945 Bytes) of package /linux/misc/sendmail.8.15.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "statusd_shm.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 1999-2000 Proofpoint, Inc. and its suppliers.
    3  *  All rights reserved.
    4  *
    5  * By using this file, you agree to the terms and conditions set
    6  * forth in the LICENSE file which can be found at the top level of
    7  * the sendmail distribution.
    8  *
    9  *  $Id: statusd_shm.h,v 8.8 2013-11-22 20:51:57 ca Exp $
   10  *
   11  * Contributed by Exactis.com, Inc.
   12  *
   13  */
   14 
   15 /*
   16 **  The shared memory part of statusd.
   17 **
   18 **  Attach to STATUSD_SHM_KEY and update the counter appropriate
   19 **  for your type of service.
   20 **
   21 */
   22 
   23 #define STATUSD_MAGIC   110946
   24 #define STATUSD_SHM_KEY (key_t)(13)
   25 #define STATUSD_LONGS   (2)
   26 
   27 typedef struct
   28 {
   29     unsigned long   magic;
   30     unsigned long   ul[STATUSD_LONGS];
   31 } STATUSD_SHM;
   32 
   33 /*
   34 **  Offsets into ul[]. The appropriate program
   35 **  increments these as appropriate.
   36 */
   37 
   38 #define STATUSD_COOKIE      (0) /* reregister cookie */
   39 
   40 /* sendmail */
   41 #define STATUSD_SM_NSENDMAIL    (1) /* how many running */
   42 
   43 extern void shmtick __P((int, int));
   44