]> granicus.if.org Git - musl/commitdiff
remove unused __futex function and source file
authorRich Felker <dalias@aerifal.cx>
Tue, 11 Sep 2018 19:03:23 +0000 (15:03 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:36 +0000 (14:34 -0400)
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.

src/internal/futex.h
src/thread/__futex.c [deleted file]

index cf4c79513e240777b2a2335e604e41814206db26..dafbc24dbdb9c80d82ce1c18604602835e43fab9 100644 (file)
@@ -16,6 +16,4 @@
 
 #define FUTEX_CLOCK_REALTIME 256
 
-int __futex(volatile int *, int, int, void *);
-
 #endif
diff --git a/src/thread/__futex.c b/src/thread/__futex.c
deleted file mode 100644 (file)
index 96307c0..0000000
+++ /dev/null
@@ -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);
-}