Reputation: 161
I was just looking at the way to get unique thread ID's in Linux. The way I found was to do as syscall with either of the two parameters as arguments: __NR_gettid
OR SYS_gettid
.
Can anybody explain how they both differ with respect to each other?
Upvotes: 15
Views: 10181
Reputation: 7775
Nothing
in <bits/syscall.h>
there is this:
#define SYS_gettid __NR_gettid
Upvotes: 19