00001 00007 /* Embedded XINU, Copyright (C) 2007. All rights reserved. */ 00008 00009 #include <kernel.h> 00010 #include <semaphore.h> 00011 00017 syscall scount(semaphore sem) 00018 { 00019 if ( isbadsem(sem) ) 00020 { return SYSERR; } 00021 return (semtab[sem].count); 00022 }