user3328377
user3328377

Reputation: 161

Difference between __NR_gettid and SYS_gettid

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

Answers (1)

Salgar
Salgar

Reputation: 7775

Nothing

in <bits/syscall.h> there is this:

#define SYS_gettid __NR_gettid

Upvotes: 19

Related Questions