Back to index

glibc  2.9
Functions
sem_getvalue.c File Reference
#include <semaphore.h>
#include <shlib-compat.h>
#include "semaphoreP.h"

Go to the source code of this file.

Functions

int __new_sem_getvalue (sem_t *sem, int *sval)
 versioned_symbol (libpthread, __new_sem_getvalue, sem_getvalue, GLIBC_2_1)

Function Documentation

int __new_sem_getvalue ( sem_t sem,
int sval 
)

Definition at line 26 of file sem_getvalue.c.

{
  struct new_sem *isem = (struct new_sem *) sem;

  /* XXX Check for valid SEM parameter.  */

  *sval = isem->value;

  return 0;
}
versioned_symbol ( libpthread  ,
__new_sem_getvalue  ,
sem_getvalue  ,
GLIBC_2_1   
)