From 055dfbb7f71a67151898a8c4bf82ba930ba35a11 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 15:03:23 -0400 Subject: 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. --- src/internal/futex.h | 2 -- src/thread/__futex.c | 7 ------- 2 files changed, 9 deletions(-) delete mode 100644 src/thread/__futex.c diff --git a/src/internal/futex.h b/src/internal/futex.h index cf4c7951..dafbc24d 100644 --- a/src/internal/futex.h +++ b/src/internal/futex.h @@ -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 index 96307c08..00000000 --- a/src/thread/__futex.c +++ /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); -} -- cgit v1.2.3-70-g09d2