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

1.1       root        1: /* sem.h - isbadsem */
                      2: 
                      3: #ifndef        NSEM
1.1.1.2 ! root        4: #define        NSEM            45      /* number of semaphores, if not defined */
1.1       root        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             */
1.1.1.2 ! root       12:        int     semcnt;         /* count for this semaphore             */
        !            13:        int     sqhead;         /* q index of head of list              */
        !            14:        int     sqtail;         /* q index of tail of list              */
1.1       root       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.