summaryrefslogtreecommitdiff
path: root/source/uapi/monitor_user.h
diff options
context:
space:
mode:
authorzy <[email protected]>2023-12-18 12:46:39 -0500
committerzy <[email protected]>2023-12-18 12:46:39 -0500
commit357df1be9c0c614fe8b2f0d288a500ed37d66916 (patch)
tree870465679543c42cb6879ee44d4b1174c3c80184 /source/uapi/monitor_user.h
parentfa0eb8b3e777560caf814980428125fb892d913e (diff)
monitor_user: tgid -> tid
Diffstat (limited to 'source/uapi/monitor_user.h')
-rw-r--r--source/uapi/monitor_user.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/uapi/monitor_user.h b/source/uapi/monitor_user.h
index be17819..afa4cc3 100644
--- a/source/uapi/monitor_user.h
+++ b/source/uapi/monitor_user.h
@@ -7,6 +7,7 @@
#include <unistd.h>
#define MAX_NAME_LEN (127) // max name length
+#define gettid() (unsigned long)syscall(SYS_gettid)
typedef struct {
pid_t task_id; // current process id