plasma-umass / coz

Coz: Causal Profiling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove unused and non-portable rt_tgsigqueueinfo() from util.h?

petterreinholdtsen opened this issue · comments

Hi.

The code contain a non-portable and unused function in util.h. Perhaps it should be removed like this:

diff --git a/libcoz/util.h b/libcoz/util.h
index 887c3f5..b8f3d20 100644
--- a/libcoz/util.h
+++ b/libcoz/util.h
@@ -15,7 +15,6 @@
 #endif
 
 #include <signal.h>
-#include <sys/syscall.h>
 #include <unistd.h>
 
 #include <sstream>
@@ -69,8 +68,4 @@ static inline std::string getenv_safe(const char* var, const char* fallback = ""
   return std::string(value);
 }
 
-static inline int rt_tgsigqueueinfo(pid_t tgid, pid_t tid, int sig, siginfo_t *uinfo) {
-  return syscall(__NR_rt_tgsigqueueinfo, tgid, tid, sig, uinfo);
-}
-
 #endif