Selaa lähdekoodia

remove unused __futex function and source file

the direct syscall or various thin and mostly-inline wrappers around
it are used instead internally. at some point a public futex function
should be added, but it's not yet clear what the signature should be,
and in the mean time this file is not useful.
Rich Felker 6 vuotta sitten
vanhempi
sitoutus
055dfbb7f7
2 muutettua tiedostoa jossa 0 lisäystä ja 9 poistoa
  1. 0 2
      src/internal/futex.h
  2. 0 7
      src/thread/__futex.c

+ 0 - 2
src/internal/futex.h

@@ -16,6 +16,4 @@
 
 #define FUTEX_CLOCK_REALTIME 256
 
-int __futex(volatile int *, int, int, void *);
-
 #endif

+ 0 - 7
src/thread/__futex.c

@@ -1,7 +0,0 @@
-#include "futex.h"
-#include "syscall.h"
-
-int __futex(volatile int *addr, int op, int val, void *ts)
-{
-	return syscall(SYS_futex, addr, op, val, ts);
-}