File:  [DVB] / dietlibc / libpthread / pthread_semaphore_misc.c
Revision 1.2: download - view: text, annotated - select for diffs
Fri Feb 21 10:03:29 2014 UTC (10 years, 3 months ago) by leitner
Branches: MAIN
CVS tags: HEAD
remove compiler warnings

#include <unistd.h>
#include <fcntl.h>
#include <errno.h>

#include <semaphore.h>
#include "thread_internal.h"

sem_t*sem_open(const char*name,int oflag,...) {
  (void)name; (void)oflag;
  _errno_=ENOSYS;
  return 0;
}
int sem_close(sem_t*sem) {
  (void)sem;
  _errno_=ENOSYS;
  return -1;
}
int sem_unlink(const char *name) __attribute__((alias("sem_close")));


LinuxTV legacy CVS <linuxtv.org/cvs>