Annotation of xinu/h/sem.h, revision 1.1

1.1     ! root        1: /* sem.h - isbadsem */
        !             2: 
        !             3: #ifndef        NSEM
        !             4: #define        NSEM            100     /* number of semaphores, if not defined */
        !             5: #endif
        !             6: 
        !             7: #define        SFREE   '\01'           /* this semaphore is free               */
        !             8: #define        SUSED   '\02'           /* this semaphore is used               */
        !             9: 
        !            10: struct sentry  {               /* semaphore table entry                */
        !            11:        char    sstate;         /* the state SFREE or SUSED             */
        !            12:        short   semcnt;         /* count for this semaphore             */
        !            13:        short   sqhead;         /* q index of head of list              */
        !            14:        short   sqtail;         /* q index of tail of list              */
        !            15: };
        !            16: extern struct  sentry  semaph[];
        !            17: extern int     nextsem;
        !            18: 
        !            19: #define        isbadsem(s)     (s<0 || s>=NSEM)

unix.superglobalmegacorp.com

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