[PATCH v1] [GSoC Microproject] Implement -e trace=%id option

Daniel Lim Wee Soong weesoong.lim at gmail.com
Thu Mar 28 15:14:05 UTC 2019


Add a syscall class covering all dealing with uid/gid

Files in linux/*/syscallent*.h are updated by:
    sed -i -E -e '/uid|gid|sid|pgrp|groups/ s/0(,[[:space:]]*SEN)/TID\1/' \
        -e '/uid|gid|sid|pgrp|groups/ s/NF,/NF|TID,/' \
	-e 's/(PU\|NF\|TID,)[[:space:]]/\1/' linux/*/syscallent*.h
---
 basic_filters.c                |  1 +
 linux/32/syscallent.h          | 40 ++++++++--------
 linux/64/syscallent.h          | 40 ++++++++--------
 linux/aarch64/syscallent.h     |  2 +-
 linux/alpha/syscallent.h       | 44 ++++++++---------
 linux/arm/syscallent.h         | 74 ++++++++++++++--------------
 linux/avr32/syscallent.h       | 42 ++++++++--------
 linux/bfin/syscallent.h        | 74 ++++++++++++++--------------
 linux/hppa/syscallent.h        | 42 ++++++++--------
 linux/i386/syscallent.h        | 74 ++++++++++++++--------------
 linux/ia64/syscallent.h        | 40 ++++++++--------
 linux/m68k/syscallent.h        | 74 ++++++++++++++--------------
 linux/microblaze/syscallent.h  | 74 ++++++++++++++--------------
 linux/mips/syscallent-compat.h | 88 +++++++++++++++++-----------------
 linux/mips/syscallent-n32.h    | 42 ++++++++--------
 linux/mips/syscallent-n64.h    | 42 ++++++++--------
 linux/mips/syscallent-o32.h    | 42 ++++++++--------
 linux/powerpc/syscallent.h     | 42 ++++++++--------
 linux/powerpc64/syscallent.h   | 42 ++++++++--------
 linux/s390/syscallent.h        | 74 ++++++++++++++--------------
 linux/s390x/syscallent.h       | 42 ++++++++--------
 linux/sh/syscallent.h          | 74 ++++++++++++++--------------
 linux/sh64/syscallent.h        | 74 ++++++++++++++--------------
 linux/sparc/syscallent.h       | 66 ++++++++++++-------------
 linux/sparc64/syscallent.h     | 42 ++++++++--------
 linux/x32/syscallent.h         | 42 ++++++++--------
 linux/x86_64/syscallent.h      | 42 ++++++++--------
 linux/xtensa/syscallent.h      | 42 ++++++++--------
 strace.1.in                    | 13 +++++
 sysent.h                       |  1 +
 sysent_shorthand_defs.h        |  1 +
 sysent_shorthand_undefs.h      |  1 +
 32 files changed, 725 insertions(+), 708 deletions(-)

diff --git a/basic_filters.c b/basic_filters.c
index 5f691eae..978e8a2e 100644
--- a/basic_filters.c
+++ b/basic_filters.c
@@ -164,6 +164,7 @@ lookup_class(const char *s)
 		{ "%fstatfs",	TRACE_FSTATFS	},
 		{ "%%statfs",	TRACE_STATFS_LIKE	},
 		{ "%pure",	TRACE_PURE	},
+		{ "%id", TRACE_ID },
 		/* legacy class names */
 		{ "desc",	TRACE_DESC	},
 		{ "file",	TRACE_FILE	},
diff --git a/linux/32/syscallent.h b/linux/32/syscallent.h
index 8bebf68a..64603f5f 100644
--- a/linux/32/syscallent.h
+++ b/linux/32/syscallent.h
@@ -155,23 +155,23 @@
 [140] = { 3,	0,		SEN(setpriority),		"setpriority"		},
 [141] = { 2,	0,		SEN(getpriority),		"getpriority"		},
 [142] = { 4,	0,		SEN(reboot),			"reboot"		},
-[143] = { 2,	0,		SEN(setregid),			"setregid"		},
-[144] = { 1,	0,		SEN(setgid),			"setgid"		},
-[145] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[146] = { 1,	0,		SEN(setuid),			"setuid"		},
-[147] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[148] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[149] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[150] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[151] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[152] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[143] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[144] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[145] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[146] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[147] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[148] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[149] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[150] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[151] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[152] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [153] = { 1,	0,		SEN(times),			"times"			},
-[154] = { 2,	0,		SEN(setpgid),			"setpgid"		},
-[155] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[156] = { 1,	0,		SEN(getsid),			"getsid"		},
-[157] = { 0,	0,		SEN(setsid),			"setsid"		},
-[158] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[159] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[154] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
+[155] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[156] = { 1,	TID,		SEN(getsid),			"getsid"		},
+[157] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[158] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[159] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [160] = { 1,	0,		SEN(uname),			"uname"			},
 [161] = { 2,	0,		SEN(sethostname),		"sethostname"		},
 [162] = { 2,	0,		SEN(setdomainname),		"setdomainname"		},
@@ -186,10 +186,10 @@
 [171] = { 1,	0,		SEN(adjtimex),			"adjtimex"		},
 [172] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [173] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[174] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
-[175] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[176] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[177] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[174] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
+[175] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[176] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[177] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [178] = { 0,	PU|NF,		SEN(gettid),			"gettid"		},
 [179] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [180] = { 4,	TD,		SEN(mq_open),			"mq_open"		},
diff --git a/linux/64/syscallent.h b/linux/64/syscallent.h
index 6612c384..b473fafd 100644
--- a/linux/64/syscallent.h
+++ b/linux/64/syscallent.h
@@ -148,23 +148,23 @@
 [140] = { 3,	0,		SEN(setpriority),		"setpriority"		},
 [141] = { 2,	0,		SEN(getpriority),		"getpriority"		},
 [142] = { 4,	0,		SEN(reboot),			"reboot"		},
-[143] = { 2,	0,		SEN(setregid),			"setregid"		},
-[144] = { 1,	0,		SEN(setgid),			"setgid"		},
-[145] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[146] = { 1,	0,		SEN(setuid),			"setuid"		},
-[147] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[148] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[149] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[150] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[151] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[152] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[143] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[144] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[145] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[146] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[147] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[148] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[149] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[150] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[151] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[152] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [153] = { 1,	0,		SEN(times),			"times"			},
-[154] = { 2,	0,		SEN(setpgid),			"setpgid"		},
-[155] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[156] = { 1,	0,		SEN(getsid),			"getsid"		},
-[157] = { 0,	0,		SEN(setsid),			"setsid"		},
-[158] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[159] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[154] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
+[155] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[156] = { 1,	TID,		SEN(getsid),			"getsid"		},
+[157] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[158] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[159] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [160] = { 1,	0,		SEN(uname),			"uname"			},
 [161] = { 2,	0,		SEN(sethostname),		"sethostname"		},
 [162] = { 2,	0,		SEN(setdomainname),		"setdomainname"		},
@@ -179,10 +179,10 @@
 [171] = { 1,	0,		SEN(adjtimex),			"adjtimex"		},
 [172] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [173] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[174] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
-[175] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[176] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[177] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[174] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
+[175] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[176] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[177] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [178] = { 0,	PU|NF,		SEN(gettid),			"gettid"		},
 [179] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [180] = { 4,	TD,		SEN(mq_open),			"mq_open"		},
diff --git a/linux/aarch64/syscallent.h b/linux/aarch64/syscallent.h
index 6016a1d1..01a1482f 100644
--- a/linux/aarch64/syscallent.h
+++ b/linux/aarch64/syscallent.h
@@ -58,7 +58,7 @@
 [1057] = { 3,	TD,		SEN(lseek),		"lseek"		},
 [1058] = { 6,	TD|TM|SI,	SEN(mmap),		"mmap"		},
 [1059] = { 1,	0,		SEN(alarm),		"alarm"		},
-[1060] = { 0,	PU|NF,		SEN(getpgrp),		"getpgrp"	},
+[1060] = { 0,	PU|NF|TID,	SEN(getpgrp),		"getpgrp"	},
 [1061] = { 0,	TS,		SEN(pause),		"pause"		},
 [1062] = { 1,	0,		SEN(time),		"time"		},
 [1063] = { 2,	TF,		SEN(utime),		"utime"		},
diff --git a/linux/alpha/syscallent.h b/linux/alpha/syscallent.h
index 332c3baf..69e87451 100644
--- a/linux/alpha/syscallent.h
+++ b/linux/alpha/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getxpid),			"getxpid"		},
 [ 21] = { 4,	0,		SEN(printargs),			"osf_mount"		},
 [ 22] = { 2,	TF,		SEN(umount2),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getxuid),			"getxuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getxuid),			"getxuid"		},
 [ 25] = { 5,	0,		SEN(printargs),			"exec_with_loader"	}, /* not implemented */
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 5,	0,		SEN(printargs),			"osf_nrecvmsg"		}, /* not implemented */
@@ -46,7 +46,7 @@
 [ 36] = { 0,	0,		SEN(sync),			"sync"			},
 [ 37] = { 2,	TS,		SEN(kill),			"kill"			},
 [ 38] = { 5,	TF|TST|TSTA,	SEN(printargs),			"osf_old_stat"		}, /* not implemented */
-[ 39] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 39] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 40] = { 5,	TF|TLST|TSTA,	SEN(printargs),			"osf_old_lstat"		}, /* not implemented */
 [ 41] = { 1,	TD,		SEN(dup),			"dup"			},
 [ 42] = { 0,	TD,		SEN(pipe),			"pipe"			},
@@ -54,7 +54,7 @@
 [ 44] = { 5,	0,		SEN(printargs),			"osf_profil"		}, /* not implemented */
 [ 45] = { 3,	TD|TF,		SEN(open),			"open"			},
 [ 46] = { 5,	0,		SEN(printargs),			"osf_old_sigaction"	}, /* not implemented */
-[ 47] = { 0,	PU|NF,		SEN(getxgid),			"getxgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getxgid),			"getxgid"		},
 [ 48] = { 2,	TS,		SEN(osf_sigprocmask),		"osf_sigprocmask"	},
 [ 49] = { 5,	0,		SEN(printargs),			"osf_getlogin"		}, /* not implemented */
 [ 50] = { 5,	0,		SEN(printargs),			"osf_setlogin"		}, /* not implemented */
@@ -70,7 +70,7 @@
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
 [ 61] = { 1,	TF,		SEN(chroot),			"chroot"		},
 [ 62] = { 5,	TD|TFST|TSTA,	SEN(printargs),			"osf_old_fstat"		}, /* not implemented */
-[ 63] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
+[ 63] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
 [ 64] = { 0,	PU|NF,		SEN(getpagesize),		"getpagesize"		},
 [ 65] = { 5,	TM,		SEN(printargs),			"osf_mremap"		}, /* not implemented */
 [ 66] = { 0,	TP,		SEN(vfork),			"vfork"			},
@@ -86,10 +86,10 @@
 [ 76] = { 0,	0,		SEN(vhangup),			"vhangup"		},
 [ 77] = { 5,	0,		SEN(printargs),			"osf_kmodcall"		}, /* not implemented */
 [ 78] = { 5,	TM,		SEN(printargs),			"osf_mincore"		}, /* not implemented */
-[ 79] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 80] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[ 81] = { 5,	0,		SEN(printargs),			"osf_old_getpgrp"	}, /* not implemented */
-[ 82] = { 2,	0,		SEN(setpgrp),			"setpgrp"		},
+[ 79] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 80] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[ 81] = { 5,	TID,		SEN(printargs),			"osf_old_getpgrp"	}, /* not implemented */
+[ 82] = { 2,	TID,		SEN(setpgrp),			"setpgrp"		},
 [ 83] = { 3,	0,		SEN(osf_setitimer),		"osf_setitimer"		},
 [ 84] = { 5,	0,		SEN(printargs),			"osf_old_wait"		}, /* not implemented */
 [ 85] = { 5,	0,		SEN(printargs),			"osf_table"		}, /* not implemented */
@@ -133,13 +133,13 @@
 [123] = { 3,	TD,		SEN(fchown),			"fchown"		},
 [124] = { 2,	TD,		SEN(fchmod),			"fchmod"		},
 [125] = { 6,	TN,		SEN(recvfrom),			"recvfrom"		},
-[126] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[127] = { 2,	0,		SEN(setregid),			"setregid"		},
+[126] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[127] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [128] = { 2,	TF,		SEN(rename),			"rename"		},
 [129] = { 2,	TF,		SEN(truncate),			"truncate"		},
 [130] = { 2,	TD,		SEN(ftruncate),			"ftruncate"		},
 [131] = { 2,	TD,		SEN(flock),			"flock"			},
-[132] = { 1,	0,		SEN(setgid),			"setgid"		},
+[132] = { 1,	TID,		SEN(setgid),			"setgid"		},
 [133] = { 6,	TN,		SEN(sendto),			"sendto"		},
 [134] = { 2,	TN,		SEN(shutdown),			"shutdown"		},
 [135] = { 4,	TN,		SEN(socketpair),		"socketpair"		},
@@ -154,7 +154,7 @@
 [144] = { 2,	0,		SEN(getrlimit),			"getrlimit"		},
 [145] = { 2,	0,		SEN(setrlimit),			"setrlimit"		},
 [146] = { 5,	0,		SEN(printargs),			"osf_old_killpg"	}, /* not implemented */
-[147] = { 0,	0,		SEN(setsid),			"setsid"		},
+[147] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [148] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
 [149] = { 5,	0,		SEN(printargs),			"osf_oldquota"		}, /* not implemented */
 [150] = { 3,	TN,		SEN(getsockname),		"getsockname"		},
@@ -181,7 +181,7 @@
 [184] = { 5,	0,		SEN(printargs),			"osf_getmnt"		}, /* not implemented */
 [185 ... 186] = { },
 [187] = { 5,	0,		SEN(printargs),			"osf_alt_sigpending"	}, /* not implemented */
-[188] = { 5,	0,		SEN(printargs),			"osf_alt_setsid"	}, /* not implemented */
+[188] = { 5,	TID,		SEN(printargs),			"osf_alt_setsid"	}, /* not implemented */
 [189 ... 198] = { },
 [199] = { 4,	0,		SEN(printargs),			"osf_swapon"		},
 [200] = { 3,	TI,		SEN(msgctl),			"msgctl"		},
@@ -214,8 +214,8 @@
 [227] = { 3,	TF|TSF|TSFA,	SEN(osf_statfs),		"osf_statfs64"		},
 [228] = { 3,	TD|TFSF|TSFA,	SEN(osf_fstatfs),		"osf_fstatfs64"		},
 [229 ... 232] = { },
-[233] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[234] = { 1,	0,		SEN(getsid),			"getsid"		},
+[233] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[234] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [235] = { 2,	TS,		SEN(sigaltstack),		"sigaltstack"		},
 [236] = { 5,	0,		SEN(printargs),			"osf_waitid"		}, /* not implemented */
 [237] = { 5,	0,		SEN(printargs),			"osf_priocntlset"	}, /* not implemented */
@@ -269,8 +269,8 @@
 [322] = { 2,	TF,		SEN(swapon),			"swapon"		},
 [323] = { 1,	0,		SEN(times),			"times"			},
 [324] = { 1,	NF,		SEN(personality),		"personality"		},
-[325] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[326] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[325] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[326] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [327] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [328] = { 2,	TF|TSF|TSFA,	SEN(statfs),			"statfs"		},
 [329] = { 2,	TD|TFSF|TSFA,	SEN(fstatfs),			"fstatfs"		},
@@ -287,8 +287,8 @@
 [340] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [341] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
 [342] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		}, /* not implemented */
-[343] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[344] = { 3,	0,		SEN(getresuid),			"getresuid"		},
+[343] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[344] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
 [345] = { 5,	0,		SEN(printargs),			"pciconfig_read"	},
 [346] = { 5,	0,		SEN(printargs),			"pciconfig_write"	},
 [347] = { 5,	0,		SEN(query_module),		"query_module"		}, /* not implemented */
@@ -315,8 +315,8 @@
 [368] = { 2,	0,		SEN(capget),			"capget"		},
 [369] = { 2,	0,		SEN(capset),			"capset"		},
 [370] = { 4,	TD|TN,		SEN(sendfile),			"sendfile"		},
-[371] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[372] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[371] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[372] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [373] = { 4,	0,		SEN(printargs),			"dipc"			}, /* not implemented */
 [374] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [375] = { 3,	TM,		SEN(mincore),			"mincore"		},
diff --git a/linux/arm/syscallent.h b/linux/arm/syscallent.h
index dbb8ca06..9943cd35 100644
--- a/linux/arm/syscallent.h
+++ b/linux/arm/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 5,	0,		SEN(vm86),			"vm86"			},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -206,24 +206,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(geteuid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(geteuid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 3,	TD,		SEN(getdents64),		"getdents64"		},
 [218] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [219] = { 3,	TM,		SEN(mincore),			"mincore"		},
diff --git a/linux/avr32/syscallent.h b/linux/avr32/syscallent.h
index 521af9a9..319bf946 100644
--- a/linux/avr32/syscallent.h
+++ b/linux/avr32/syscallent.h
@@ -29,8 +29,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount2),			"umount2"		},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -52,27 +52,27 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 5,	TP,		SEN(clone),			"clone"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [ 48] = { 2,	TF,		SEN(getcwd),			"getcwd"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
-[ 52] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[ 53] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[ 52] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[ 53] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
-[ 56] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 56] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 57] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[ 58] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[ 59] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[ 60] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[ 61] = { 2,	0,		SEN(setregid),			"setregid"		},
+[ 58] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[ 59] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[ 60] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[ 61] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
 [ 68] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [ 69] = { 4,	TS,		SEN(rt_sigprocmask),		"rt_sigprocmask"	},
@@ -86,8 +86,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [ 82] = { 5,	TD,		SEN(select),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
@@ -124,7 +124,7 @@
 [115] = { 3,	0,		SEN(init_module),		"init_module"		},
 [116] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [117] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[118] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[118] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [119] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [120] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [121] = { 1,	NF,		SEN(personality),		"personality"		},
@@ -134,7 +134,7 @@
 [125] = { 3,	TM,		SEN(msync),			"msync"			},
 [126] = { 3,	TD,		SEN(readv),			"readv"			},
 [127] = { 3,	TD,		SEN(writev),			"writev"		},
-[128] = { 1,	0,		SEN(getsid),			"getsid"		},
+[128] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [129] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [130] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [131] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -152,8 +152,8 @@
 [143] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [144] = { 3,	TD,		SEN(poll),			"poll"			},
 [145] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[146] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[147] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[146] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[147] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [148] = { 5,	0,		SEN(prctl),			"prctl"			},
 [149] = { 3,	TN,		SEN(socket),			"socket"		},
 [150] = { 3,	TN,		SEN(bind),			"bind"			},
diff --git a/linux/bfin/syscallent.h b/linux/bfin/syscallent.h
index 9b5cae15..9b3aa710 100644
--- a/linux/bfin/syscallent.h
+++ b/linux/bfin/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 5,	0,		SEN(vm86),			"vm86"			},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -206,24 +206,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"chown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(geteuid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(geteuid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/hppa/syscallent.h b/linux/hppa/syscallent.h
index acf34830..527f4d62 100644
--- a/linux/hppa/syscallent.h
+++ b/linux/hppa/syscallent.h
@@ -26,8 +26,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 3,	TN,		SEN(bind),			"bind"			},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -49,18 +49,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 3,	TN,		SEN(getsockname),		"getsockname"		},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 3,	TN,		SEN(getpeername),		"getpeername"		},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 4,	TN,		SEN(socketpair),		"socketpair"		},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 4,	TN,		SEN(send),			"send"			},
 [ 59] = { 1,	0,		SEN(uname),			"uname"			},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -68,13 +68,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid),			"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [ 72] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -83,8 +83,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [ 82] = { 6,	TN,		SEN(sendto),			"sendto"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(lstat),			"lstat"			},
@@ -135,14 +135,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -150,7 +150,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -167,14 +167,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid),			"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
 [166] = { 2,	TS,		SEN(sigaltstack),		"sigaltstack"		},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
diff --git a/linux/i386/syscallent.h b/linux/i386/syscallent.h
index 7e21690e..054b97c9 100644
--- a/linux/i386/syscallent.h
+++ b/linux/i386/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 5,	0,		SEN(vm86),			"vm86"			},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -206,24 +206,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(getegid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/ia64/syscallent.h b/linux/ia64/syscallent.h
index b39f8cd4..8e8c01ee 100644
--- a/linux/ia64/syscallent.h
+++ b/linux/ia64/syscallent.h
@@ -28,9 +28,9 @@
 [1042] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
 [1043] = { 5,	TF,		SEN(mount),			"mount"			},
 [1044] = { 2,	TF,		SEN(umount2),			"umount"		},
-[1045] = { 1,	0,		SEN(setuid),			"setuid"		},
-[1046] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
-[1047] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
+[1045] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[1046] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
+[1047] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
 [1048] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [1049] = { 2,	TF,		SEN(access),			"access"		},
 [1050] = { 0,	0,		SEN(sync),			"sync"			},
@@ -44,9 +44,9 @@
 [1058] = { 0,	TD,		SEN(pipe),			"pipe"			},
 [1059] = { 1,	0,		SEN(times),			"times"			},
 [1060] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[1061] = { 1,	0,		SEN(setgid),			"setgid"		},
-[1062] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[1063] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[1061] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[1062] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[1063] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [1064] = { 1,	TF,		SEN(acct),			"acct"			},
 [1065] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [1066] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
@@ -54,18 +54,18 @@
 [1068] = { 1,	TF,		SEN(chroot),			"chroot"		},
 [1069] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [1070] = { 2,	TD,		SEN(dup2),			"dup2"			},
-[1071] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[1072] = { 2,	0,		SEN(setregid),			"setregid"		},
-[1073] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[1074] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[1075] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[1076] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[1077] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[1078] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[1079] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[1080] = { 2,	0,		SEN(setpgid),			"setpgid"		},
-[1081] = { 0,	0,		SEN(setsid),			"setsid"		},
-[1082] = { 1,	0,		SEN(getsid),			"getsid"		},
+[1071] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[1072] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[1073] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[1074] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[1075] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[1076] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[1077] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[1078] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[1079] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[1080] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
+[1081] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[1082] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [1083] = { 2,	0,		SEN(sethostname),		"sethostname"		},
 [1084] = { 2,	0,		SEN(setrlimit),			"setrlimit"		},
 [1085] = { 2,	0,		SEN(getrlimit),			"getrlimit"		},
@@ -125,8 +125,8 @@
 [1139] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [1140] = { 1,	NF,		SEN(personality),		"personality"		},
 [1141] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[1142] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[1143] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[1142] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[1143] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [1144] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [1145] = { 2,	TD,		SEN(flock),			"flock"			},
 [1146] = { 3,	TD,		SEN(readv),			"readv"			},
diff --git a/linux/m68k/syscallent.h b/linux/m68k/syscallent.h
index ec33145e..8ea58ac4 100644
--- a/linux/m68k/syscallent.h
+++ b/linux/m68k/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 0,	PU|NF,		SEN(getpagesize),		"getpagesize"		},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -206,24 +206,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"chown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(geteuid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(geteuid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218 ... 219] = { },
 [220] = { 3,	TD,		SEN(getdents64),		"getdents64"		},
diff --git a/linux/microblaze/syscallent.h b/linux/microblaze/syscallent.h
index b1eea3b4..9ae84632 100644
--- a/linux/microblaze/syscallent.h
+++ b/linux/microblaze/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 5,	0,		SEN(vm86),			"vm86"			},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -206,24 +206,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(geteuid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(geteuid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/mips/syscallent-compat.h b/linux/mips/syscallent-compat.h
index fce44a27..2e453aa2 100644
--- a/linux/mips/syscallent-compat.h
+++ b/linux/mips/syscallent-compat.h
@@ -28,8 +28,8 @@
 [  20] = { 0,	0,	SEN(printargs),		"svr4_getpid"	},
 [  21] = { 0,	0,	SEN(printargs),		"svr4_mount"	},
 [  22] = { 0,	0,	SEN(printargs),		"svr4_umount"	},
-[  23] = { 0,	0,	SEN(printargs),		"svr4_setuid"	},
-[  24] = { 0,	0,	SEN(printargs),		"svr4_getuid"	},
+[  23] = { 0,	TID,	SEN(printargs),		"svr4_setuid"	},
+[  24] = { 0,	TID,	SEN(printargs),		"svr4_getuid"	},
 [  25] = { 0,	0,	SEN(printargs),		"svr4_stime"	},
 [  26] = { 0,	0,	SEN(printargs),		"svr4_ptrace"	},
 [  27] = { 0,	0,	SEN(printargs),		"svr4_alarm"	},
@@ -44,15 +44,15 @@
 [  36] = { 0,	0,	SEN(printargs),		"svr4_sync"	},
 [  37] = { 0,	0,	SEN(printargs),		"svr4_kill"	},
 [  38] = { 0,	TD|TFSF|TSFA,SEN(printargs),		"svr4_fstatfs"	},
-[  39] = { 0,	0,	SEN(printargs),		"svr4_setpgrp"	},
+[  39] = { 0,	TID,	SEN(printargs),		"svr4_setpgrp"	},
 [  40] = { 0,	0,	SEN(printargs),		"svr4_cxenix"	},
 [  41] = { 0,	0,	SEN(printargs),		"svr4_dup"	},
 [  42] = { 0,	0,	SEN(printargs),		"svr4_pipe"	},
 [  43] = { 0,	0,	SEN(printargs),		"svr4_times"	},
 [  44] = { 0,	0,	SEN(printargs),		"svr4_profil"	},
 [  45] = { 0,	0,	SEN(printargs),		"svr4_plock"	},
-[  46] = { 0,	0,	SEN(printargs),		"svr4_setgid"	},
-[  47] = { 0,	0,	SEN(printargs),		"svr4_getgid"	},
+[  46] = { 0,	TID,	SEN(printargs),		"svr4_setgid"	},
+[  47] = { 0,	TID,	SEN(printargs),		"svr4_getgid"	},
 [  48] = { 0,	0,	SEN(printargs),		"svr4_sig"	},
 [  49] = { 0,	0,	SEN(printargs),		"svr4_msgsys"	},
 [  50] = { 0,	0,	SEN(printargs),		"svr4_sysmips"	},
@@ -91,8 +91,8 @@
 [  88] = { 0,	TF|TLST|TSTA,SEN(printargs),		"svr4_lstat"	},
 [  89] = { 0,	0,	SEN(printargs),		"svr4_symlink"	},
 [  90] = { 0,	0,	SEN(printargs),		"svr4_readlink"	},
-[  91] = { 0,	0,	SEN(printargs),		"svr4_setgroups"	},
-[  92] = { 0,	0,	SEN(printargs),		"svr4_getgroups"	},
+[  91] = { 0,	TID,	SEN(printargs),		"svr4_setgroups"	},
+[  92] = { 0,	TID,	SEN(printargs),		"svr4_getgroups"	},
 [  93] = { 0,	0,	SEN(printargs),		"svr4_fchmod"	},
 [  94] = { 0,	0,	SEN(printargs),		"svr4_fchown"	},
 [  95] = { 0,	0,	SEN(printargs),		"svr4_sigprocmask"	},
@@ -136,12 +136,12 @@
 [ 133] = { 0,	0,	SEN(printargs),		"svr4_putpmsg"	},
 [ 134] = { 0,	0,	SEN(printargs),		"svr4_rename"	},
 [ 135] = { 0,	0,	SEN(printargs),		"svr4_nuname"	},
-[ 136] = { 0,	0,	SEN(printargs),		"svr4_setegid"	},
+[ 136] = { 0,	TID,	SEN(printargs),		"svr4_setegid"	},
 [ 137] = { 0,	0,	SEN(printargs),		"svr4_sysconf"	},
 [ 138] = { 0,	0,	SEN(printargs),		"svr4_adjtime"	},
 [ 139] = { 0,	0,	SEN(printargs),		"svr4_sysinfo"	},
 [ 140] = { },
-[ 141] = { 0,	0,	SEN(printargs),		"svr4_seteuid"	},
+[ 141] = { 0,	TID,	SEN(printargs),		"svr4_seteuid"	},
 [ 142] = { 0,	0,	SEN(printargs),		"svr4_PYRAMID_statis"	},
 [ 143] = { 0,	0,	SEN(printargs),		"svr4_PYRAMID_tuning"	},
 [ 144] = { 0,	0,	SEN(printargs),		"svr4_PYRAMID_forcerr"	},
@@ -179,8 +179,8 @@
 [1020] = { 0,	0,	SEN(printargs),		"sysv_getpid"	},
 [1021] = { 0,	0,	SEN(printargs),		"sysv_mount"	},
 [1022] = { 0,	0,	SEN(printargs),		"sysv_umount"	},
-[1023] = { 0,	0,	SEN(printargs),		"sysv_setuid"	},
-[1024] = { 0,	0,	SEN(printargs),		"sysv_getuid"	},
+[1023] = { 0,	TID,	SEN(printargs),		"sysv_setuid"	},
+[1024] = { 0,	TID,	SEN(printargs),		"sysv_getuid"	},
 [1025] = { 0,	0,	SEN(printargs),		"sysv_stime"	},
 [1026] = { 0,	0,	SEN(printargs),		"sysv_ptrace"	},
 [1027] = { 0,	0,	SEN(printargs),		"sysv_alarm"	},
@@ -195,15 +195,15 @@
 [1036] = { 0,	0,	SEN(printargs),		"sysv_sync"	},
 [1037] = { 0,	0,	SEN(printargs),		"sysv_kill"	},
 [1038] = { 0,	TD|TFSF|TSFA,SEN(printargs),		"sysv_fstatfs"	},
-[1039] = { 0,	0,	SEN(printargs),		"sysv_setpgrp"	},
+[1039] = { 0,	TID,	SEN(printargs),		"sysv_setpgrp"	},
 [1040] = { 0,	0,	SEN(printargs),		"sysv_syssgi"	},
 [1041] = { 0,	0,	SEN(printargs),		"sysv_dup"	},
 [1042] = { 0,	0,	SEN(printargs),		"sysv_pipe"	},
 [1043] = { 0,	0,	SEN(printargs),		"sysv_times"	},
 [1044] = { 0,	0,	SEN(printargs),		"sysv_profil"	},
 [1045] = { 0,	0,	SEN(printargs),		"sysv_plock"	},
-[1046] = { 0,	0,	SEN(printargs),		"sysv_setgid"	},
-[1047] = { 0,	0,	SEN(printargs),		"sysv_getgid"	},
+[1046] = { 0,	TID,	SEN(printargs),		"sysv_setgid"	},
+[1047] = { 0,	TID,	SEN(printargs),		"sysv_getgid"	},
 [1048] = { 0,	0,	SEN(printargs),		"sysv_sig"	},
 [1049] = { 0,	0,	SEN(printargs),		"sysv_msgsys"	},
 [1050] = { 0,	0,	SEN(printargs),		"sysv_sysmips"	},
@@ -274,8 +274,8 @@
 [1120] = { 0,	0,	SEN(printargs),		"sysv_getfh"	},
 [1121] = { 0,	0,	SEN(printargs),		"sysv_async_daemon"	},
 [1122] = { 0,	0,	SEN(printargs),		"sysv_exportfs"	},
-[1123] = { 0,	0,	SEN(printargs),		"sysv_setregid"	},
-[1124] = { 0,	0,	SEN(printargs),		"sysv_setreuid"	},
+[1123] = { 0,	TID,	SEN(printargs),		"sysv_setregid"	},
+[1124] = { 0,	TID,	SEN(printargs),		"sysv_setreuid"	},
 [1125] = { 0,	0,	SEN(printargs),		"sysv_getitimer"	},
 [1126] = { 0,	0,	SEN(printargs),		"sysv_setitimer"	},
 [1127] = { 0,	0,	SEN(printargs),		"sysv_adjtime"	},
@@ -294,8 +294,8 @@
 [1140] = { 0,	0,	SEN(printargs),		"sysv_getpagesize"	},
 [1141] = { 0,	TF,	SEN(printargs),		"sysv_quotactl"	},
 [1142] = { 0,	0,	SEN(printargs),		"sysv_libdetach"	},
-[1143] = { 0,	0,	SEN(printargs),		"sysv_BSDgetpgrp"	},
-[1144] = { 0,	0,	SEN(printargs),		"sysv_BSDsetpgrp"	},
+[1143] = { 0,	TID,	SEN(printargs),		"sysv_BSDgetpgrp"	},
+[1144] = { 0,	TID,	SEN(printargs),		"sysv_BSDsetpgrp"	},
 [1145] = { 0,	0,	SEN(printargs),		"sysv_vhangup"	},
 [1146] = { 0,	0,	SEN(printargs),		"sysv_fsync"	},
 [1147] = { 0,	0,	SEN(printargs),		"sysv_fchdir"	},
@@ -364,8 +364,8 @@
 [2020] = { 0,	0,	SEN(printargs),		"bsd43_getpid"	},
 [2021] = { 0,	0,	SEN(printargs),		"bsd43_oldmount"	},
 [2022] = { 0,	0,	SEN(printargs),		"bsd43_umount"	},
-[2023] = { 0,	0,	SEN(printargs),		"bsd43_setuid"	},
-[2024] = { 0,	0,	SEN(printargs),		"bsd43_getuid"	},
+[2023] = { 0,	TID,	SEN(printargs),		"bsd43_setuid"	},
+[2024] = { 0,	TID,	SEN(printargs),		"bsd43_getuid"	},
 [2025] = { 0,	0,	SEN(printargs),		"bsd43_stime"	},
 [2026] = { 0,	0,	SEN(printargs),		"bsd43_ptrace"	},
 [2027] = { 0,	0,	SEN(printargs),		"bsd43_alarm"	},
@@ -380,15 +380,15 @@
 [2036] = { 0,	0,	SEN(printargs),		"bsd43_sync"	},
 [2037] = { 0,	0,	SEN(printargs),		"bsd43_kill"	},
 [2038] = { 0,	TF|TST|TSTA,SEN(printargs),		"bsd43_stat"	},
-[2039] = { 0,	0,	SEN(printargs),		"bsd43_oldsetpgrp"	},
+[2039] = { 0,	TID,	SEN(printargs),		"bsd43_oldsetpgrp"	},
 [2040] = { 0,	TF|TLST|TSTA,SEN(printargs),		"bsd43_lstat"	},
 [2041] = { 0,	0,	SEN(printargs),		"bsd43_dup"	},
 [2042] = { 0,	0,	SEN(printargs),		"bsd43_pipe"	},
 [2043] = { 0,	0,	SEN(printargs),		"bsd43_times"	},
 [2044] = { 0,	0,	SEN(printargs),		"bsd43_profil"	},
 [2045] = { 0,	0,	SEN(printargs),		"bsd43_msgsys"	},
-[2046] = { 0,	0,	SEN(printargs),		"bsd43_setgid"	},
-[2047] = { 0,	0,	SEN(printargs),		"bsd43_getgid"	},
+[2046] = { 0,	TID,	SEN(printargs),		"bsd43_setgid"	},
+[2047] = { 0,	TID,	SEN(printargs),		"bsd43_getgid"	},
 [2048] = { 0,	0,	SEN(printargs),		"bsd43_ssig"	},
 [2049] = { },
 [2050] = { },
@@ -420,10 +420,10 @@
 [2076] = { 0,	0,	SEN(printargs),		"bsd43_vhangup"	},
 [2077] = { 0,	0,	SEN(printargs),		"bsd43_vlimit"	},
 [2078] = { 0,	TM,	SEN(printargs),		"bsd43_mincore"	},
-[2079] = { 0,	0,	SEN(printargs),		"bsd43_getgroups"	},
-[2080] = { 0,	0,	SEN(printargs),		"bsd43_setgroups"	},
-[2081] = { 0,	0,	SEN(printargs),		"bsd43_getpgrp"	},
-[2082] = { 0,	0,	SEN(printargs),		"bsd43_setpgrp"	},
+[2079] = { 0,	TID,	SEN(printargs),		"bsd43_getgroups"	},
+[2080] = { 0,	TID,	SEN(printargs),		"bsd43_setgroups"	},
+[2081] = { 0,	TID,	SEN(printargs),		"bsd43_getpgrp"	},
+[2082] = { 0,	TID,	SEN(printargs),		"bsd43_setpgrp"	},
 [2083] = { 0,	0,	SEN(printargs),		"bsd43_setitimer"	},
 [2084] = { 0,	0,	SEN(printargs),		"bsd43_wait3"	},
 [2085] = { 0,	0,	SEN(printargs),		"bsd43_swapon"	},
@@ -467,8 +467,8 @@
 [2123] = { 0,	0,	SEN(printargs),		"bsd43_fchown"	},
 [2124] = { 0,	0,	SEN(printargs),		"bsd43_fchmod"	},
 [2125] = { 0,	0,	SEN(printargs),		"bsd43_oldrecvfrom"	},
-[2126] = { 0,	0,	SEN(printargs),		"bsd43_setreuid"	},
-[2127] = { 0,	0,	SEN(printargs),		"bsd43_setregid"	},
+[2126] = { 0,	TID,	SEN(printargs),		"bsd43_setreuid"	},
+[2127] = { 0,	TID,	SEN(printargs),		"bsd43_setregid"	},
 [2128] = { 0,	0,	SEN(printargs),		"bsd43_rename"	},
 [2129] = { 0,	0,	SEN(printargs),		"bsd43_truncate"	},
 [2130] = { 0,	0,	SEN(printargs),		"bsd43_ftruncate"	},
@@ -557,8 +557,8 @@
 [3020] = { 0,	0,	SEN(printargs),		"posix_getpid"	},
 [3021] = { 0,	0,	SEN(printargs),		"posix_mount"	},
 [3022] = { 0,	0,	SEN(printargs),		"posix_umount"	},
-[3023] = { 0,	0,	SEN(printargs),		"posix_setuid"	},
-[3024] = { 0,	0,	SEN(printargs),		"posix_getuid"	},
+[3023] = { 0,	TID,	SEN(printargs),		"posix_setuid"	},
+[3024] = { 0,	TID,	SEN(printargs),		"posix_getuid"	},
 [3025] = { 0,	0,	SEN(printargs),		"posix_stime"	},
 [3026] = { 0,	0,	SEN(printargs),		"posix_ptrace"	},
 [3027] = { 0,	0,	SEN(printargs),		"posix_alarm"	},
@@ -573,15 +573,15 @@
 [3036] = { 0,	0,	SEN(printargs),		"posix_sync"	},
 [3037] = { 0,	0,	SEN(printargs),		"posix_kill"	},
 [3038] = { 0,	TD|TFSF|TSFA,SEN(printargs),		"posix_fstatfs"	},
-[3039] = { 0,	0,	SEN(printargs),		"posix_getpgrp"	},
+[3039] = { 0,	TID,	SEN(printargs),		"posix_getpgrp"	},
 [3040] = { 0,	0,	SEN(printargs),		"posix_syssgi"	},
 [3041] = { 0,	0,	SEN(printargs),		"posix_dup"	},
 [3042] = { 0,	0,	SEN(printargs),		"posix_pipe"	},
 [3043] = { 0,	0,	SEN(printargs),		"posix_times"	},
 [3044] = { 0,	0,	SEN(printargs),		"posix_profil"	},
 [3045] = { 0,	0,	SEN(printargs),		"posix_lock"	},
-[3046] = { 0,	0,	SEN(printargs),		"posix_setgid"	},
-[3047] = { 0,	0,	SEN(printargs),		"posix_getgid"	},
+[3046] = { 0,	TID,	SEN(printargs),		"posix_setgid"	},
+[3047] = { 0,	TID,	SEN(printargs),		"posix_getgid"	},
 [3048] = { 0,	0,	SEN(printargs),		"posix_sig"	},
 [3049] = { 0,	0,	SEN(printargs),		"posix_msgsys"	},
 [3050] = { 0,	0,	SEN(printargs),		"posix_sysmips"	},
@@ -652,8 +652,8 @@
 [3120] = { 0,	0,	SEN(printargs),		"posix_nfs_getfh"	},
 [3121] = { 0,	0,	SEN(printargs),		"posix_async_daemon"	},
 [3122] = { 0,	0,	SEN(printargs),		"posix_exportfs"	},
-[3123] = { 0,	0,	SEN(printargs),		"posix_SGI_setregid"	},
-[3124] = { 0,	0,	SEN(printargs),		"posix_SGI_setreuid"	},
+[3123] = { 0,	TID,	SEN(printargs),		"posix_SGI_setregid"	},
+[3124] = { 0,	TID,	SEN(printargs),		"posix_SGI_setreuid"	},
 [3125] = { 0,	0,	SEN(printargs),		"posix_getitimer"	},
 [3126] = { 0,	0,	SEN(printargs),		"posix_setitimer"	},
 [3127] = { 0,	0,	SEN(printargs),		"posix_adjtime"	},
@@ -672,8 +672,8 @@
 [3140] = { 0,	0,	SEN(printargs),		"posix_SGI_getpagesize"	},
 [3141] = { 0,	0,	SEN(printargs),		"posix_SGI_libattach"	},
 [3142] = { 0,	0,	SEN(printargs),		"posix_SGI_libdetach"	},
-[3143] = { 0,	0,	SEN(printargs),		"posix_SGI_getpgrp"	},
-[3144] = { 0,	0,	SEN(printargs),		"posix_SGI_setpgrp"	},
+[3143] = { 0,	TID,	SEN(printargs),		"posix_SGI_getpgrp"	},
+[3144] = { 0,	TID,	SEN(printargs),		"posix_SGI_setpgrp"	},
 [3145 ... 3149] = { },
 [3150] = { 0,	0,	SEN(printargs),		"posix_cacheflush"	},
 [3151] = { 0,	0,	SEN(printargs),		"posix_cachectl"	},
@@ -684,11 +684,11 @@
 [3156] = { 0,	TM|SI,	SEN(printargs),		"posix_munmap"	},
 [3157] = { 0,	TM,	SEN(printargs),		"posix_madvise"	},
 [3158] = { 0,	0,	SEN(printargs),		"posix_BSD_getpagesize"	},
-[3159] = { 0,	0,	SEN(printargs),		"posix_setreuid"	},
-[3160] = { 0,	0,	SEN(printargs),		"posix_setregid"	},
-[3161] = { 0,	0,	SEN(printargs),		"posix_setpgid"	},
-[3162] = { 0,	0,	SEN(printargs),		"posix_getgroups"	},
-[3163] = { 0,	0,	SEN(printargs),		"posix_setgroups"	},
+[3159] = { 0,	TID,	SEN(printargs),		"posix_setreuid"	},
+[3160] = { 0,	TID,	SEN(printargs),		"posix_setregid"	},
+[3161] = { 0,	TID,	SEN(printargs),		"posix_setpgid"	},
+[3162] = { 0,	TID,	SEN(printargs),		"posix_getgroups"	},
+[3163] = { 0,	TID,	SEN(printargs),		"posix_setgroups"	},
 [3164] = { 0,	0,	SEN(printargs),		"posix_gettimeofday"	},
 [3165] = { 0,	0,	SEN(printargs),		"posix_getrusage"	},
 [3166] = { 0,	0,	SEN(printargs),		"posix_getrlimit"	},
@@ -699,7 +699,7 @@
 [3260] = { 0,	0,	SEN(printargs),		"posix_netboot"	},
 [3261] = { 0,	0,	SEN(printargs),		"posix_netunboot"	},
 [3262] = { 0,	0,	SEN(printargs),		"posix_rdump"	},
-[3263] = { 0,	0,	SEN(printargs),		"posix_setsid"	},
+[3263] = { 0,	TID,	SEN(printargs),		"posix_setsid"	},
 [3264] = { 0,	0,	SEN(printargs),		"posix_getmaxsig"	},
 [3265] = { 0,	0,	SEN(printargs),		"posix_sigpending"	},
 [3266] = { 0,	0,	SEN(printargs),		"posix_sigprocmask"	},
diff --git a/linux/mips/syscallent-n32.h b/linux/mips/syscallent-n32.h
index e30c99cf..92101aa2 100644
--- a/linux/mips/syscallent-n32.h
+++ b/linux/mips/syscallent-n32.h
@@ -107,29 +107,29 @@
 [6097] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [6098] = { 1,	0,		SEN(times),			"times"			},
 [6099] = { 4,	0,		SEN(ptrace),			"ptrace"		},
-[6100] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[6100] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [6101] = { 3,	0,		SEN(syslog),			"syslog"		},
-[6102] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[6103] = { 1,	0,		SEN(setuid),			"setuid"		},
-[6104] = { 1,	0,		SEN(setgid),			"setgid"		},
-[6105] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[6106] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[6107] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[6102] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[6103] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[6104] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[6105] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[6106] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[6107] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [6108] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[6109] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[6110] = { 0,	0,		SEN(setsid),			"setsid"		},
-[6111] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[6112] = { 2,	0,		SEN(setregid),			"setregid"		},
-[6113] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[6114] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[6115] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[6116] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[6117] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[6118] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[6119] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[6120] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[6121] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
-[6122] = { 1,	0,		SEN(getsid),			"getsid"		},
+[6109] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[6110] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[6111] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[6112] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[6113] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[6114] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[6115] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[6116] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[6117] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[6118] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[6119] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[6120] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[6121] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
+[6122] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [6123] = { 2,	0,		SEN(capget),			"capget"		},
 [6124] = { 2,	0,		SEN(capset),			"capset"		},
 [6125] = { 2,	TS,		SEN(rt_sigpending),		"rt_sigpending"		},
diff --git a/linux/mips/syscallent-n64.h b/linux/mips/syscallent-n64.h
index 5fca5a41..451382ab 100644
--- a/linux/mips/syscallent-n64.h
+++ b/linux/mips/syscallent-n64.h
@@ -107,29 +107,29 @@
 [5097] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [5098] = { 1,	0,		SEN(times),			"times"			},
 [5099] = { 4,	0,		SEN(ptrace),			"ptrace"		},
-[5100] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[5100] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [5101] = { 3,	0,		SEN(syslog),			"syslog"		},
-[5102] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[5103] = { 1,	0,		SEN(setuid),			"setuid"		},
-[5104] = { 1,	0,		SEN(setgid),			"setgid"		},
-[5105] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[5106] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[5107] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[5102] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[5103] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[5104] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[5105] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[5106] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[5107] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [5108] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[5109] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[5110] = { 0,	0,		SEN(setsid),			"setsid"		},
-[5111] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[5112] = { 2,	0,		SEN(setregid),			"setregid"		},
-[5113] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[5114] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[5115] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[5116] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[5117] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[5118] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[5119] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[5120] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[5121] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
-[5122] = { 1,	0,		SEN(getsid),			"getsid"		},
+[5109] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[5110] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[5111] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[5112] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[5113] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[5114] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[5115] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[5116] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[5117] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[5118] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[5119] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[5120] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[5121] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
+[5122] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [5123] = { 2,	0,		SEN(capget),			"capget"		},
 [5124] = { 2,	0,		SEN(capset),			"capset"		},
 [5125] = { 2,	TS,		SEN(rt_sigpending),		"rt_sigpending"		},
diff --git a/linux/mips/syscallent-o32.h b/linux/mips/syscallent-o32.h
index a7a5dd5f..cccd49a6 100644
--- a/linux/mips/syscallent-o32.h
+++ b/linux/mips/syscallent-o32.h
@@ -31,8 +31,8 @@
 [4020] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [4021] = { 5,	TF,		SEN(mount),			"mount"			},
 [4022] = { 1,	TF,		SEN(umount),			"umount"		},
-[4023] = { 1,	0,		SEN(setuid),			"setuid"		},
-[4024] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[4023] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[4024] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [4025] = { 1,	0,		SEN(stime),			"stime"			},
 [4026] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [4027] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -54,18 +54,18 @@
 [4043] = { 1,	0,		SEN(times),			"times"			},
 [4044] = { 0,	0,		SEN(prof),			"prof"			},
 [4045] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[4046] = { 1,	0,		SEN(setgid),			"setgid"		},
-[4047] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[4046] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[4047] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [4048] = { 2,	TS,		SEN(signal),			"signal"		},
-[4049] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[4050] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[4049] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[4050] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [4051] = { 1,	TF,		SEN(acct),			"acct"			},
 [4052] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [4053] = { 0,	0,		SEN(lock),			"lock"			},
 [4054] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [4055] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [4056] = { 0,	0,		SEN(mpx),			"mpx"			},
-[4057] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[4057] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [4058] = { 0,	0,		SEN(ulimit),			"ulimit"		},
 [4059] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [4060] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -73,13 +73,13 @@
 [4062] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [4063] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [4064] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[4065] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[4066] = { 0,	0,		SEN(setsid),			"setsid"		},
+[4065] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[4066] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [4067] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [4068] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [4069] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[4070] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[4071] = { 2,	0,		SEN(setregid),			"setregid"		},
+[4070] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[4071] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [4072] = { 1,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [4073] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [4074] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -88,8 +88,8 @@
 [4077] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [4078] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [4079] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[4080] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[4081] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[4080] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[4081] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [4082] = { 0,	0,		SEN(printargs),			"reserved82"		},
 [4083] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [4084] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -140,14 +140,14 @@
 [4129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [4130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [4131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[4132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[4132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [4133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [4134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [4135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [4136] = { 1,	NF,		SEN(personality),		"personality"		},
 [4137] = { 0,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[4138] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[4139] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[4138] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[4139] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [4140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [4141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [4142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -159,7 +159,7 @@
 [4148] = { 3,	0,		SEN(printargs),			"cachectl"		},
 [4149] = { 4,	0,		SEN(sysmips),			"sysmips"		},
 [4150] = { 0,	0,		SEN(setup),			"setup"			},
-[4151] = { 1,	0,		SEN(getsid),			"getsid"		},
+[4151] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [4152] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [4153] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [4154] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -193,13 +193,13 @@
 [4182] = { 2,	TN,		SEN(shutdown),			"shutdown"		},
 [4183] = { 3,	TN,		SEN(socket),			"socket"		},
 [4184] = { 4,	TN,		SEN(socketpair),		"socketpair"		},
-[4185] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[4186] = { 3,	0,		SEN(getresuid),			"getresuid"		},
+[4185] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[4186] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
 [4187] = { 5,	0,		SEN(query_module),		"query_module"		},
 [4188] = { 3,	TD,		SEN(poll),			"poll"			},
 [4189] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[4190] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[4191] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[4190] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[4191] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [4192] = { 5,	0,		SEN(prctl),			"prctl"			},
 [4193] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [4194] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
diff --git a/linux/powerpc/syscallent.h b/linux/powerpc/syscallent.h
index 071e4ba0..e4346b4f 100644
--- a/linux/powerpc/syscallent.h
+++ b/linux/powerpc/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid),			"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [ 72] = { 1,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,13 +171,13 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid),			"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
 [166] = { 5,	0,		SEN(query_module),		"query_module"		},
 [167] = { 3,	TD,		SEN(poll),			"poll"			},
 [168] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[169] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[170] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[169] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[170] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [171] = { 5,	0,		SEN(prctl),			"prctl"			},
 [172] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [173] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
diff --git a/linux/powerpc64/syscallent.h b/linux/powerpc64/syscallent.h
index b28dc3af..79e788c9 100644
--- a/linux/powerpc64/syscallent.h
+++ b/linux/powerpc64/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid),			"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [ 72] = { 1,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,13 +171,13 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid),			"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
 [166] = { 5,	0,		SEN(query_module),		"query_module"		},
 [167] = { 3,	TD,		SEN(poll),			"poll"			},
 [168] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[169] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[170] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[169] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[170] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [171] = { 5,	0,		SEN(prctl),			"prctl"			},
 [172] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [173] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
diff --git a/linux/s390/syscallent.h b/linux/s390/syscallent.h
index 5b019015..4b269ed1 100644
--- a/linux/s390/syscallent.h
+++ b/linux/s390/syscallent.h
@@ -32,8 +32,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -55,18 +55,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { },
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { },
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { },
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { },
 [ 59] = { },
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -74,13 +74,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { },
 [ 69] = { },
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -89,8 +89,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { },
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { },
@@ -141,14 +141,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -156,7 +156,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -173,14 +173,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { },
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -208,24 +208,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(getegid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/s390x/syscallent.h b/linux/s390x/syscallent.h
index 0a88e5d8..1e886713 100644
--- a/linux/s390x/syscallent.h
+++ b/linux/s390x/syscallent.h
@@ -65,7 +65,7 @@
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { },
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { },
 [ 59] = { },
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -73,8 +73,8 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68 ... 71] = { },
 [ 72] = { 3,	TS,		SEN(sigsuspend),		"sigsuspend"		},
@@ -135,7 +135,7 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
@@ -148,7 +148,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -192,24 +192,24 @@
 [191] = { 2,	0,		SEN(getrlimit),			"getrlimit"		},
 [196 ... 197] = { },
 [198] = { 3,	TF,		SEN(chown),			"lchown"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[202] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[202] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [212] = { 3,	TF,		SEN(chown),			"chown"			},
-[213] = { 1,	0,		SEN(setuid),			"setuid"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/sh/syscallent.h b/linux/sh/syscallent.h
index f65d2ff2..7fbc1808 100644
--- a/linux/sh/syscallent.h
+++ b/linux/sh/syscallent.h
@@ -32,8 +32,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -55,18 +55,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -74,13 +74,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 1,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -89,8 +89,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { 1,	TD,		SEN(oldselect),			"select"		},
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -141,14 +141,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -156,7 +156,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -173,14 +173,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { 5,	0,		SEN(vm86),			"vm86"			},
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -207,24 +207,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(getegid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/sh64/syscallent.h b/linux/sh64/syscallent.h
index 86ca4061..0e44c0c5 100644
--- a/linux/sh64/syscallent.h
+++ b/linux/sh64/syscallent.h
@@ -30,8 +30,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 5,	TF,		SEN(mount),			"mount"			},
 [ 22] = { 1,	TF,		SEN(umount),			"umount"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 1,	0,		SEN(stime),			"stime"			},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -53,18 +53,18 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { 0,	0,		SEN(prof),			"prof"			},
 [ 45] = { 1,	TM|SI,		SEN(brk),			"brk"			},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	TF,		SEN(umount2),			"umount2"		},
 [ 53] = { 0,	0,		SEN(lock),			"lock"			},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 56] = { 0,	0,		SEN(mpx),			"mpx"			},
-[ 57] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[ 57] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [ 58] = { 2,	0,		SEN(ulimit),			"ulimit"		},
 [ 59] = { 1,	0,		SEN(oldolduname),		"oldolduname"		},
 [ 60] = { 1,	NF,		SEN(umask),			"umask"			},
@@ -72,13 +72,13 @@
 [ 62] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [ 63] = { 2,	TD,		SEN(dup2),			"dup2"			},
 [ 64] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[ 65] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 66] = { 0,	0,		SEN(setsid),			"setsid"		},
+[ 65] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 66] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [ 67] = { 3,	TS,		SEN(sigaction),			"sigaction"		},
 [ 68] = { 0,	TS,		SEN(sgetmask),			"sgetmask"		},
 [ 69] = { 1,	TS,		SEN(ssetmask),			"ssetmask"		},
-[ 70] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[ 71] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[ 70] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[ 71] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [ 72] = { 1,	TS,		SEN(sigsuspend),		"sigsuspend"		},
 [ 73] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [ 74] = { 2,	0,		SEN(sethostname),		"sethostname"		},
@@ -87,8 +87,8 @@
 [ 77] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [ 78] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [ 79] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
-[ 80] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 81] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
+[ 80] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 81] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
 [ 82] = { },
 [ 83] = { 2,	TF,		SEN(symlink),			"symlink"		},
 [ 84] = { 2,	TF|TLST|TSTA,	SEN(oldlstat),			"oldlstat"		},
@@ -139,14 +139,14 @@
 [129] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [130] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
 [131] = { 4,	TF,		SEN(quotactl),			"quotactl"		},
-[132] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[132] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [133] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [134] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [135] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [136] = { 1,	NF,		SEN(personality),		"personality"		},
 [137] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[138] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[139] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[138] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[139] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [140] = { 5,	TD,		SEN(llseek),			"_llseek"		},
 [141] = { 3,	TD,		SEN(getdents),			"getdents"		},
 [142] = { 5,	TD,		SEN(select),			"_newselect"		},
@@ -154,7 +154,7 @@
 [144] = { 3,	TM,		SEN(msync),			"msync"			},
 [145] = { 3,	TD,		SEN(readv),			"readv"			},
 [146] = { 3,	TD,		SEN(writev),			"writev"		},
-[147] = { 1,	0,		SEN(getsid),			"getsid"		},
+[147] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [148] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [149] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
 [150] = { 2,	TM,		SEN(mlock),			"mlock"			},
@@ -171,14 +171,14 @@
 [161] = { 2,	0,		SEN(sched_rr_get_interval),	"sched_rr_get_interval"	},
 [162] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [163] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
-[164] = { 3,	0,		SEN(setresuid16),		"setresuid"		},
-[165] = { 3,	0,		SEN(getresuid16),		"getresuid"		},
+[164] = { 3,	TID,		SEN(setresuid16),		"setresuid"		},
+[165] = { 3,	TID,		SEN(getresuid16),		"getresuid"		},
 [166] = { },
 [167] = { 5,	0,		SEN(query_module),		"query_module"		},
 [168] = { 3,	TD,		SEN(poll),			"poll"			},
 [169] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
-[170] = { 3,	0,		SEN(setresgid16),		"setresgid"		},
-[171] = { 3,	0,		SEN(getresgid16),		"getresgid"		},
+[170] = { 3,	TID,		SEN(setresgid16),		"setresgid"		},
+[171] = { 3,	TID,		SEN(getresgid16),		"getresgid"		},
 [172] = { 5,	0,		SEN(prctl),			"prctl"			},
 [173] = { 0,	TS,		SEN(rt_sigreturn),		"rt_sigreturn"		},
 [174] = { 4,	TS,		SEN(rt_sigaction),		"rt_sigaction"		},
@@ -205,24 +205,24 @@
 [196] = { 2,	TF|TLST|TSTA,	SEN(lstat64),			"lstat64"		},
 [197] = { 2,	TD|TFST|TSTA,	SEN(fstat64),			"fstat64"		},
 [198] = { 3,	TF,		SEN(chown),			"lchown32"		},
-[199] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
-[200] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
-[201] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[202] = { 0,	PU|NF,		SEN(getegid),			"getegid32"		},
-[203] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
-[204] = { 2,	0,		SEN(setregid),			"setregid32"		},
-[205] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
-[206] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[199] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
+[200] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
+[201] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[202] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid32"		},
+[203] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
+[204] = { 2,	TID,		SEN(setregid),			"setregid32"		},
+[205] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
+[206] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [207] = { 3,	TD,		SEN(fchown),			"fchown32"		},
-[208] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[209] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[210] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[211] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
+[208] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[209] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[210] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[211] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
 [212] = { 3,	TF,		SEN(chown),			"chown32"		},
-[213] = { 1,	0,		SEN(setuid),			"setuid32"		},
-[214] = { 1,	0,		SEN(setgid),			"setgid32"		},
-[215] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
-[216] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[213] = { 1,	TID,		SEN(setuid),			"setuid32"		},
+[214] = { 1,	TID,		SEN(setgid),			"setgid32"		},
+[215] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
+[216] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [217] = { 2,	TF,		SEN(pivotroot),			"pivot_root"		},
 [218] = { 3,	TM,		SEN(mincore),			"mincore"		},
 [219] = { 3,	TM,		SEN(madvise),			"madvise"		},
diff --git a/linux/sparc/syscallent.h b/linux/sparc/syscallent.h
index d637c53e..3f342f9a 100644
--- a/linux/sparc/syscallent.h
+++ b/linux/sparc/syscallent.h
@@ -28,8 +28,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 2,	0,		SEN(capget),			"capget"		},
 [ 22] = { 2,	0,		SEN(capset),			"capset"		},
-[ 23] = { 1,	0,		SEN(setuid16),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid16),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid16),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid16),			"getuid"		},
 [ 25] = { 4,	TD,		SEN(vmsplice),			"vmsplice"		},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -49,16 +49,16 @@
 [ 41] = { 1,	TD,		SEN(dup),			"dup"			},
 [ 42] = { 0,	TD,		SEN(pipe),			"pipe"			},
 [ 43] = { 1,	0,		SEN(times),			"times"			},
-[ 44] = { 0,	PU|NF,		SEN(getuid),			"getuid32"		},
+[ 44] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid32"		},
 [ 45] = { 2,	TF,		SEN(umount2),			"umount2"		},
-[ 46] = { 1,	0,		SEN(setgid16),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid16),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid16),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid16),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid16),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid16),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid16),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid16),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { },
-[ 53] = { 0,	PU|NF,		SEN(getgid),			"getgid32"		},
+[ 53] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid32"		},
 [ 54] = { 3,	TD,		SEN(ioctl),			"ioctl"			},
 [ 55] = { 4,	0,		SEN(reboot),			"reboot"		},
 [ 56] = { 6,	TD|TM|SI,	SEN(mmap_4koff),		"mmap2"			},
@@ -74,32 +74,32 @@
 [ 66] = { 0,	TP,		SEN(vfork),			"vfork"			},
 [ 67] = { 5,	TD,		SEN(pread),			"pread64"		},
 [ 68] = { 5,	TD,		SEN(pwrite),			"pwrite64"		},
-[ 69] = { 0,	PU|NF,		SEN(geteuid),			"geteuid32"		},
-[ 70] = { 0,	PU|NF,		SEN(getegid),			"getegid32"		},
+[ 69] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid32"		},
+[ 70] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid32"		},
 [ 71] = { 6,	TD|TM|SI,	SEN(mmap),			"mmap"			},
-[ 72] = { 2,	0,		SEN(setreuid),			"setreuid32"		},
+[ 72] = { 2,	TID,		SEN(setreuid),			"setreuid32"		},
 [ 73] = { 2,	TM|SI,		SEN(munmap),			"munmap"		},
 [ 74] = { 3,	TM|SI,		SEN(mprotect),			"mprotect"		},
 [ 75] = { 3,	TM,		SEN(madvise),			"madvise"		},
 [ 76] = { 0,	0,		SEN(vhangup),			"vhangup"		},
 [ 77] = { 3,	TF,		SEN(truncate64),		"truncate64"		},
 [ 78] = { 3,	TM,		SEN(mincore),			"mincore"		},
-[ 79] = { 2,	0,		SEN(getgroups16),		"getgroups"		},
-[ 80] = { 2,	0,		SEN(setgroups16),		"setgroups"		},
-[ 81] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[ 82] = { 2,	0,		SEN(setgroups),			"setgroups32"		},
+[ 79] = { 2,	TID,		SEN(getgroups16),		"getgroups"		},
+[ 80] = { 2,	TID,		SEN(setgroups16),		"setgroups"		},
+[ 81] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[ 82] = { 2,	TID,		SEN(setgroups),			"setgroups32"		},
 [ 83] = { 3,	0,		SEN(setitimer),			"setitimer"		},
 [ 84] = { 3,	TD,		SEN(ftruncate64),		"ftruncate64"		},
 [ 85] = { 2,	TF,		SEN(swapon),			"swapon"		},
 [ 86] = { 2,	0,		SEN(getitimer),			"getitimer"		},
-[ 87] = { 1,	0,		SEN(setuid),			"setuid32"		},
+[ 87] = { 1,	TID,		SEN(setuid),			"setuid32"		},
 [ 88] = { 2,	0,		SEN(sethostname),		"sethostname"		},
-[ 89] = { 1,	0,		SEN(setgid),			"setgid32"		},
+[ 89] = { 1,	TID,		SEN(setgid),			"setgid32"		},
 [ 90] = { 2,	TD,		SEN(dup2),			"dup2"			},
-[ 91] = { 1,	NF,		SEN(setfsuid),			"setfsuid32"		},
+[ 91] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid32"		},
 [ 92] = { 3,	TD,		SEN(fcntl),			"fcntl"			},
 [ 93] = { 5,	TD,		SEN(select),			"select"		},
-[ 94] = { 1,	NF,		SEN(setfsgid),			"setfsgid32"		},
+[ 94] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid32"		},
 [ 95] = { 1,	TD,		SEN(fsync),			"fsync"			},
 [ 96] = { 3,	0,		SEN(setpriority),		"setpriority"		},
 [ 97] = { 3,	TN,		SEN(socket),			"socket"		},
@@ -113,14 +113,14 @@
 [105] = { 4,	TS,		SEN(rt_sigtimedwait),		"rt_sigtimedwait"	},
 [106] = { 3,	TS,		SEN(rt_sigqueueinfo),		"rt_sigqueueinfo"	},
 [107] = { 2,	TS,		SEN(rt_sigsuspend),		"rt_sigsuspend"		},
-[108] = { 3,	0,		SEN(setresuid),			"setresuid32"		},
-[109] = { 3,	0,		SEN(getresuid),			"getresuid32"		},
-[110] = { 3,	0,		SEN(setresgid),			"setresgid32"		},
-[111] = { 3,	0,		SEN(getresgid),			"getresgid32"		},
-[112] = { 2,	0,		SEN(setregid),			"setregid32"		},
+[108] = { 3,	TID,		SEN(setresuid),			"setresuid32"		},
+[109] = { 3,	TID,		SEN(getresuid),			"getresuid32"		},
+[110] = { 3,	TID,		SEN(setresgid),			"setresgid32"		},
+[111] = { 3,	TID,		SEN(getresgid),			"getresgid32"		},
+[112] = { 2,	TID,		SEN(setregid),			"setregid32"		},
 [113] = { 3,	TN,		SEN(recvmsg),			"recvmsg"		},
 [114] = { 3,	TN,		SEN(sendmsg),			"sendmsg"		},
-[115] = { 2,	0,		SEN(getgroups),			"getgroups32"		},
+[115] = { 2,	TID,		SEN(getgroups),			"getgroups32"		},
 [116] = { 2,	0,		SEN(gettimeofday),		"gettimeofday"		},
 [117] = { 2,	0,		SEN(getrusage),			"getrusage"		},
 [118] = { 5,	TN,		SEN(getsockopt),		"getsockopt"		},
@@ -131,8 +131,8 @@
 [123] = { 3,	TD,		SEN(fchown16),			"fchown"		},
 [124] = { 2,	TD,		SEN(fchmod),			"fchmod"		},
 [125] = { 6,	TN,		SEN(recvfrom),			"recvfrom"		},
-[126] = { 2,	0,		SEN(setreuid16),		"setreuid"		},
-[127] = { 2,	0,		SEN(setregid16),		"setregid"		},
+[126] = { 2,	TID,		SEN(setreuid16),		"setreuid"		},
+[127] = { 2,	TID,		SEN(setregid16),		"setregid"		},
 [128] = { 2,	TF,		SEN(rename),			"rename"		},
 [129] = { 2,	TF,		SEN(truncate),			"truncate"		},
 [130] = { 2,	TD,		SEN(ftruncate),			"ftruncate"		},
@@ -180,7 +180,7 @@
 [172] = { 4,	TF,		SEN(getxattr),			"getxattr"		},
 [173] = { 4,	TF,		SEN(getxattr),			"lgetxattr"		},
 [174] = { 3,	TD,		SEN(getdents),			"getdents"		},
-[175] = { 0,	0,		SEN(setsid),			"setsid"		},
+[175] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [176] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [177] = { 4,	TD,		SEN(fgetxattr),			"fgetxattr"		},
 [178] = { 3,	TF,		SEN(listxattr),			"listxattr"		},
@@ -190,7 +190,7 @@
 [182] = { 2,	TF,		SEN(removexattr),		"lremovexattr"		},
 [183] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [184] = { 5,	0,		SEN(query_module),		"query_module"		},
-[185] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[185] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [186] = { 2,	TD,		SEN(fremovexattr),		"fremovexattr"		},
 [187] = { 2,	TS,		SEN(kill),			"tkill"			},
 [188] = { 1,	TP|SE,		SEN(exit),			"exit_group"		},
@@ -229,12 +229,12 @@
 [221] = { 2,	0,		SEN(create_module),		"create_module"		},
 [222] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [223] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
-[224] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[224] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [225] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [226] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [227] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[228] = { 1,	NF,		SEN(setfsuid16),		"setfsuid"		},
-[229] = { 1,	NF,		SEN(setfsgid16),		"setfsgid"		},
+[228] = { 1,	NF|TID,		SEN(setfsuid16),		"setfsuid"		},
+[229] = { 1,	NF|TID,		SEN(setfsgid16),		"setfsgid"		},
 [230] = { 5,	TD,		SEN(select),			"_newselect"		},
 [231] = { 1,	0,		SEN(time),			"time"			},
 [232] = { 6,	TD,		SEN(splice),			"splice"		},
@@ -257,7 +257,7 @@
 [249] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [250] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
 [251] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
-[252] = { 1,	0,		SEN(getsid),			"getsid"		},
+[252] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [253] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [254] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
 [255] = { 6,	TD,		SEN(sync_file_range),		"sync_file_range"	},
diff --git a/linux/sparc64/syscallent.h b/linux/sparc64/syscallent.h
index 24de6794..9784e39c 100644
--- a/linux/sparc64/syscallent.h
+++ b/linux/sparc64/syscallent.h
@@ -28,8 +28,8 @@
 [ 20] = { 0,	PU|NF,		SEN(getpid),			"getpid"		},
 [ 21] = { 2,	0,		SEN(capget),			"capget"		},
 [ 22] = { 2,	0,		SEN(capset),			"capset"		},
-[ 23] = { 1,	0,		SEN(setuid),			"setuid"		},
-[ 24] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[ 23] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[ 24] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [ 25] = { 4,	TD,		SEN(vmsplice),			"vmsplice"		},
 [ 26] = { 4,	0,		SEN(ptrace),			"ptrace"		},
 [ 27] = { 1,	0,		SEN(alarm),			"alarm"			},
@@ -50,11 +50,11 @@
 [ 43] = { 1,	0,		SEN(times),			"times"			},
 [ 44] = { },
 [ 45] = { 2,	TF,		SEN(umount2),			"umount2"		},
-[ 46] = { 1,	0,		SEN(setgid),			"setgid"		},
-[ 47] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
+[ 46] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[ 47] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
 [ 48] = { 2,	TS,		SEN(signal),			"signal"		},
-[ 49] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[ 50] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
+[ 49] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[ 50] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
 [ 51] = { 1,	TF,		SEN(acct),			"acct"			},
 [ 52] = { 2,	0,		SEN(printargs),			"memory_ordering"	},
 [ 53] = { },
@@ -82,9 +82,9 @@
 [ 76] = { 0,	0,		SEN(vhangup),			"vhangup"		},
 [ 77] = { },
 [ 78] = { 3,	TM,		SEN(mincore),			"mincore"		},
-[ 79] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[ 80] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[ 81] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
+[ 79] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[ 80] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[ 81] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
 [ 82] = { },
 [ 83] = { 3,	0,		SEN(setitimer),			"setitimer"		},
 [ 84] = { },
@@ -111,10 +111,10 @@
 [105] = { 4,	TS,		SEN(rt_sigtimedwait),		"rt_sigtimedwait"	},
 [106] = { 3,	TS,		SEN(rt_sigqueueinfo),		"rt_sigqueueinfo"	},
 [107] = { 2,	TS,		SEN(rt_sigsuspend),		"rt_sigsuspend"		},
-[108] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[109] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[110] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[111] = { 3,	0,		SEN(getresgid),			"getresgid"		},
+[108] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[109] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[110] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[111] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
 [112] = { },
 [113] = { 3,	TN,		SEN(recvmsg),			"recvmsg"		},
 [114] = { 3,	TN,		SEN(sendmsg),			"sendmsg"		},
@@ -129,8 +129,8 @@
 [123] = { 3,	TD,		SEN(fchown),			"fchown"		},
 [124] = { 2,	TD,		SEN(fchmod),			"fchmod"		},
 [125] = { 6,	TN,		SEN(recvfrom),			"recvfrom"		},
-[126] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[127] = { 2,	0,		SEN(setregid),			"setregid"		},
+[126] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[127] = { 2,	TID,		SEN(setregid),			"setregid"		},
 [128] = { 2,	TF,		SEN(rename),			"rename"		},
 [129] = { 2,	TF,		SEN(truncate),			"truncate"		},
 [130] = { 2,	TD,		SEN(ftruncate),			"ftruncate"		},
@@ -178,7 +178,7 @@
 [172] = { 4,	TF,		SEN(getxattr),			"getxattr"		},
 [173] = { 4,	TF,		SEN(getxattr),			"lgetxattr"		},
 [174] = { 3,	TD,		SEN(getdents),			"getdents"		},
-[175] = { 0,	0,		SEN(setsid),			"setsid"		},
+[175] = { 0,	TID,		SEN(setsid),			"setsid"		},
 [176] = { 1,	TD,		SEN(fchdir),			"fchdir"		},
 [177] = { 4,	TD,		SEN(fgetxattr),			"fgetxattr"		},
 [178] = { 3,	TF,		SEN(listxattr),			"listxattr"		},
@@ -188,7 +188,7 @@
 [182] = { 2,	TF,		SEN(removexattr),		"lremovexattr"		},
 [183] = { 1,	TS,		SEN(sigpending),		"sigpending"		},
 [184] = { 5,	0,		SEN(query_module),		"query_module"		},
-[185] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[185] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [186] = { 2,	TD,		SEN(fremovexattr),		"fremovexattr"		},
 [187] = { 2,	TS,		SEN(kill),			"tkill"			},
 [188] = { 1,	TP|SE,		SEN(exit),			"exit_group"		},
@@ -227,12 +227,12 @@
 [221] = { 2,	0,		SEN(create_module),		"create_module"		},
 [222] = { 2,	0,		SEN(delete_module),		"delete_module"		},
 [223] = { 1,	0,		SEN(get_kernel_syms),		"get_kernel_syms"	},
-[224] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[224] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [225] = { 2,	0,		SEN(bdflush),			"bdflush"		},
 [226] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [227] = { 5,	0,		SEN(afs_syscall),		"afs_syscall"		},
-[228] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[229] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[228] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[229] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [230] = { 5,	TD,		SEN(select),			"_newselect"		},
 [231] = { },
 [232] = { 6,	TD,		SEN(splice),			"splice"		},
@@ -255,7 +255,7 @@
 [249] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
 [250] = { 5,	TM|SI,		SEN(mremap),			"mremap"		},
 [251] = { 1,	0,		SEN(sysctl),			"_sysctl"		},
-[252] = { 1,	0,		SEN(getsid),			"getsid"		},
+[252] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [253] = { 1,	TD,		SEN(fdatasync),			"fdatasync"		},
 [254] = { 3,	0,		SEN(nfsservctl),		"nfsservctl"		},
 [255] = { 4,	TD,		SEN(sync_file_range),		"sync_file_range"	},
diff --git a/linux/x32/syscallent.h b/linux/x32/syscallent.h
index 38287592..95a110df 100644
--- a/linux/x32/syscallent.h
+++ b/linux/x32/syscallent.h
@@ -107,29 +107,29 @@
 [ 99] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [100] = { 1,	0,		SEN(times),			"times"			},
 [101] = { 4,	0,		SEN(printargs),			"ptrace#64"		},
-[102] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[102] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [103] = { 3,	0,		SEN(syslog),			"syslog"		},
-[104] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[105] = { 1,	0,		SEN(setuid),			"setuid"		},
-[106] = { 1,	0,		SEN(setgid),			"setgid"		},
-[107] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[108] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[109] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[104] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[105] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[106] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[107] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[108] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[109] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [110] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[111] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[112] = { 0,	0,		SEN(setsid),			"setsid"		},
-[113] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[114] = { 2,	0,		SEN(setregid),			"setregid"		},
-[115] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[116] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[117] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[118] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[119] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[120] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[121] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[122] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[123] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
-[124] = { 1,	0,		SEN(getsid),			"getsid"		},
+[111] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[112] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[113] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[114] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[115] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[116] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[117] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[118] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[119] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[120] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[121] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[122] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[123] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
+[124] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [125] = { 2,	0,		SEN(capget),			"capget"		},
 [126] = { 2,	0,		SEN(capset),			"capset"		},
 [127] = { 2,	TS,		SEN(printargs),			"rt_sigpending#64"	},
diff --git a/linux/x86_64/syscallent.h b/linux/x86_64/syscallent.h
index b6bf049d..e3d0250a 100644
--- a/linux/x86_64/syscallent.h
+++ b/linux/x86_64/syscallent.h
@@ -107,29 +107,29 @@
 [ 99] = { 1,	0,		SEN(sysinfo),			"sysinfo"		},
 [100] = { 1,	0,		SEN(times),			"times"			},
 [101] = { 4,	0,		SEN(ptrace),			"ptrace"		},
-[102] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
+[102] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
 [103] = { 3,	0,		SEN(syslog),			"syslog"		},
-[104] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[105] = { 1,	0,		SEN(setuid),			"setuid"		},
-[106] = { 1,	0,		SEN(setgid),			"setgid"		},
-[107] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[108] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[109] = { 2,	0,		SEN(setpgid),			"setpgid"		},
+[104] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[105] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[106] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[107] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[108] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[109] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
 [110] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[111] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
-[112] = { 0,	0,		SEN(setsid),			"setsid"		},
-[113] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[114] = { 2,	0,		SEN(setregid),			"setregid"		},
-[115] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[116] = { 2,	0,		SEN(setgroups),			"setgroups"		},
-[117] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[118] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[119] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[120] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[121] = { 1,	0,		SEN(getpgid),			"getpgid"		},
-[122] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[123] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
-[124] = { 1,	0,		SEN(getsid),			"getsid"		},
+[111] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
+[112] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[113] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[114] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[115] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[116] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
+[117] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[118] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[119] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[120] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[121] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
+[122] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[123] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
+[124] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [125] = { 2,	0,		SEN(capget),			"capget"		},
 [126] = { 2,	0,		SEN(capset),			"capset"		},
 [127] = { 2,	TS,		SEN(rt_sigpending),		"rt_sigpending"		},
diff --git a/linux/xtensa/syscallent.h b/linux/xtensa/syscallent.h
index 190071e1..94c5a2ab 100644
--- a/linux/xtensa/syscallent.h
+++ b/linux/xtensa/syscallent.h
@@ -128,30 +128,30 @@
 [125] = { 3,	TS,		SEN(tgkill),			"tgkill"		},
 [126] = { 1,	0,		SEN(set_tid_address),		"set_tid_address"	},
 [127] = { 0,	PU|NF,		SEN(gettid),			"gettid"		},
-[128] = { 0,	0,		SEN(setsid),			"setsid"		},
-[129] = { 1,	0,		SEN(getsid),			"getsid"		},
+[128] = { 0,	TID,		SEN(setsid),			"setsid"		},
+[129] = { 1,	TID,		SEN(getsid),			"getsid"		},
 [130] = { 5,	0,		SEN(prctl),			"prctl"			},
 [131] = { 1,	NF,		SEN(personality),		"personality"		},
 [132] = { 2,	0,		SEN(getpriority),		"getpriority"		},
 [133] = { 3,	0,		SEN(setpriority),		"setpriority"		},
 [134] = { 3,	0,		SEN(setitimer),			"setitimer"		},
 [135] = { 2,	0,		SEN(getitimer),			"getitimer"		},
-[136] = { 1,	0,		SEN(setuid),			"setuid"		},
-[137] = { 0,	PU|NF,		SEN(getuid),			"getuid"		},
-[138] = { 1,	0,		SEN(setgid),			"setgid"		},
-[139] = { 0,	PU|NF,		SEN(getgid),			"getgid"		},
-[140] = { 0,	PU|NF,		SEN(geteuid),			"geteuid"		},
-[141] = { 0,	PU|NF,		SEN(getegid),			"getegid"		},
-[142] = { 2,	0,		SEN(setreuid),			"setreuid"		},
-[143] = { 2,	0,		SEN(setregid),			"setregid"		},
-[144] = { 3,	0,		SEN(setresuid),			"setresuid"		},
-[145] = { 3,	0,		SEN(getresuid),			"getresuid"		},
-[146] = { 3,	0,		SEN(setresgid),			"setresgid"		},
-[147] = { 3,	0,		SEN(getresgid),			"getresgid"		},
-[148] = { 2,	0,		SEN(setpgid),			"setpgid"		},
-[149] = { 1,	0,		SEN(getpgid),			"getpgid"		},
+[136] = { 1,	TID,		SEN(setuid),			"setuid"		},
+[137] = { 0,	PU|NF|TID,	SEN(getuid),			"getuid"		},
+[138] = { 1,	TID,		SEN(setgid),			"setgid"		},
+[139] = { 0,	PU|NF|TID,	SEN(getgid),			"getgid"		},
+[140] = { 0,	PU|NF|TID,	SEN(geteuid),			"geteuid"		},
+[141] = { 0,	PU|NF|TID,	SEN(getegid),			"getegid"		},
+[142] = { 2,	TID,		SEN(setreuid),			"setreuid"		},
+[143] = { 2,	TID,		SEN(setregid),			"setregid"		},
+[144] = { 3,	TID,		SEN(setresuid),			"setresuid"		},
+[145] = { 3,	TID,		SEN(getresuid),			"getresuid"		},
+[146] = { 3,	TID,		SEN(setresgid),			"setresgid"		},
+[147] = { 3,	TID,		SEN(getresgid),			"getresgid"		},
+[148] = { 2,	TID,		SEN(setpgid),			"setpgid"		},
+[149] = { 1,	TID,		SEN(getpgid),			"getpgid"		},
 [150] = { 0,	PU|NF,		SEN(getppid),			"getppid"		},
-[151] = { 0,	PU|NF,		SEN(getpgrp),			"getpgrp"		},
+[151] = { 0,	PU|NF|TID,	SEN(getpgrp),			"getpgrp"		},
 [152 ... 153] = { },
 [154] = { 1,	0,		SEN(times),			"times"			},
 [155] = { 1,	TF,		SEN(acct),			"acct"			},
@@ -179,8 +179,8 @@
 [177] = { 1,	TF,		SEN(swapoff),			"swapoff"		},
 [178] = { 0,	0,		SEN(sync),			"sync"			},
 [179] = { 1,	TD,		SEN(syncfs),			"syncfs"		},
-[180] = { 1,	NF,		SEN(setfsuid),			"setfsuid"		},
-[181] = { 1,	NF,		SEN(setfsgid),			"setfsgid"		},
+[180] = { 1,	NF|TID,		SEN(setfsuid),			"setfsuid"		},
+[181] = { 1,	NF|TID,		SEN(setfsgid),			"setfsgid"		},
 [182] = { 3,	0,		SEN(sysfs),			"sysfs"			},
 [183] = { 2,	TSFA,		SEN(ustat),			"ustat"			},
 [184] = { 2,	TF|TSF|TSFA,	SEN(statfs),			"statfs"		},
@@ -195,8 +195,8 @@
 [193] = { 2,	0,		SEN(settimeofday),		"settimeofday"		},
 [194] = { 1,	0,		SEN(adjtimex),			"adjtimex"		},
 [195] = { 2,	0,		SEN(nanosleep),			"nanosleep"		},
-[196] = { 2,	0,		SEN(getgroups),			"getgroups"		},
-[197] = { 2,	0,		SEN(setgroups),			"setgroups"		},
+[196] = { 2,	TID,		SEN(getgroups),			"getgroups"		},
+[197] = { 2,	TID,		SEN(setgroups),			"setgroups"		},
 [198] = { 2,	0,		SEN(sethostname),		"sethostname"		},
 [199] = { 2,	0,		SEN(setdomainname),		"setdomainname"		},
 [200] = { 3,	0,		SEN(syslog),			"syslog"		},
diff --git a/strace.1.in b/strace.1.in
index 76a74119..b77d7658 100644
--- a/strace.1.in
+++ b/strace.1.in
@@ -550,6 +550,19 @@ Currently, this list includes
 .BR metag_get_tls "(2)"
 syscalls.
 .TP
+.BR "\-e\ trace" = %id
+Trace syscalls dealing with uid/gid.
+Currently, this list includes
+.BR geteuid "(0), " getegid "(0)" getgid "(0), " getgroups "(2),"
+.BR getpgid "(1), " getresgid "(3), " getresuid "(3), " getsid "(1),"
+.BR getuid "(0), " setfsgid "(1), " setfsuid "(1), " setgid "(1),"
+.BR setgroups "(2), " setpgid "(2), " setregid "(2), " setresgid "(3),"
+.BR setresuid "(3), " setreuid "(2), setsid "(0), " " setuid "(1)"
+(on architectures other than x86),
+.BR getpgrp "(0), " getxgid "(0), " getxuid "(0)"
+syscalls,
+and variants of the above (e.g. setresuid32, osf_alt_setsid),
+.TP
 \fB\-e\ abbrev\fR=\,\fIset\fR
 Abbreviate the output from printing each member of large structures.
 The default is
diff --git a/sysent.h b/sysent.h
index 336a30bf..02cde49c 100644
--- a/sysent.h
+++ b/sysent.h
@@ -36,5 +36,6 @@ typedef struct sysent {
 # define TRACE_FSTAT			00400000	/* Trace *fstat{,at}{,64} syscalls. */
 # define TRACE_STAT_LIKE		01000000	/* Trace *{,l,f}stat{,x,at}{,64} syscalls. */
 # define TRACE_PURE			02000000	/* Trace getter syscalls with no arguments. */
+# define TRACE_ID			04000000	/* Trace syscalls that deal with uid/gid. */
 
 #endif /* !STRACE_SYSENT_H */
diff --git a/sysent_shorthand_defs.h b/sysent_shorthand_defs.h
index 009f9a4b..b8666d72 100644
--- a/sysent_shorthand_defs.h
+++ b/sysent_shorthand_defs.h
@@ -51,6 +51,7 @@
 # define SI	MEMORY_MAPPING_CHANGE
 # define SE	STACKTRACE_CAPTURE_ON_ENTER
 # define CST	COMPAT_SYSCALL_TYPES
+# define TID TRACE_ID
 /* SEN(a) is defined elsewhere */
 
 #endif
diff --git a/sysent_shorthand_undefs.h b/sysent_shorthand_undefs.h
index bc9ad131..35fa2f95 100644
--- a/sysent_shorthand_undefs.h
+++ b/sysent_shorthand_undefs.h
@@ -25,3 +25,4 @@
 #undef SE
 #undef CST
 #undef SEN
+#undef TID
-- 
2.17.2 (Apple Git-113)



More information about the Strace-devel mailing list