diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2025-04-01 19:50:49 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 13:50:49 +0200 |
| commit | c2a77fca277a96a49e45788601a4afc9570b1eb2 (patch) | |
| tree | 7f2737d4882c03a401f86ba91a79e6b2633492dc /src/os | |
| parent | 670876112e3ab4a36205223a6f0c4290a527c4a9 (diff) | |
| download | box64-c2a77fca277a96a49e45788601a4afc9570b1eb2.tar.gz box64-c2a77fca277a96a49e45788601a4afc9570b1eb2.zip | |
Added os.h for future usage (#2488)
Diffstat (limited to 'src/os')
| -rw-r--r-- | src/os/os_linux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/os_linux.c b/src/os/os_linux.c new file mode 100644 index 00000000..bfa6d6c4 --- /dev/null +++ b/src/os/os_linux.c @@ -0,0 +1,7 @@ +#include <sys/syscall.h> +#include <unistd.h> + +int GetTID() +{ + return syscall(SYS_gettid); +} |