Annotation of os2sdk/demos/examples/vioreg/share.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * This is a common include file used by examples REGISTER, ACCESS, and
        !             3:  * REPLACE  (found in VIOSUB.C).
        !             4:  * It contains the declaration of the shared memory segment.
        !             5:  *
        !             6:  * Copyright (C) Microsoft Corp. 1988
        !             7:  */
        !             8: 
        !             9: /* size of shared memory segment */
        !            10: #define SHRSEGSIZE     sizeof(struct ShareRec)
        !            11: 
        !            12: #define SHRSEGNAME     "\\SHAREMEM\\SHARESEG.DAT"        /* shared seg name */
        !            13: #define WAITFOREVER    -1L             /* no timeout if semaphore is owned */
        !            14: 
        !            15: struct ShareRec {
        !            16:        unsigned long   updated;        /* buffer access semaphore */
        !            17:        unsigned long   mutexsem;       /* buffer access semaphore */
        !            18:        int             count;          /* buffer write pointer */
        !            19:        int             totalength;
        !            20: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.