Annotation of xinu/sys/scount.c, revision 1.1.1.1

1.1       root        1: /* scount.c - scount */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <sem.h>
                      6: 
                      7: /*------------------------------------------------------------------------
                      8:  *  scount  --  return a semaphore count
                      9:  *------------------------------------------------------------------------
                     10:  */
                     11: SYSCALL scount(sem)
                     12:        int     sem;
                     13: {
                     14:        if (isbadsem(sem) || semaph[sem].sstate==SFREE)
                     15:                return(SYSERR);
                     16:        return(semaph[sem].semcnt);
                     17: }

unix.superglobalmegacorp.com

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