| Kernel v2.4.11 /kernel/timer.c |
|---|
 2.4.11
 kernel
 timer.c
diff -u --recursive --new-file v2.4.10/linux/kernel/timer.c linux/kernel/timer.c
--- v2.4.10/linux/kernel/timer.c Tue Jul 3 17:08:22 2001
+++ linux/kernel/timer.c Mon Oct 8 10:41:41 2001
@@ -794,6 +794,12 @@
#endif
+/* Thread ID - the internal kernel "pid" */
+asmlinkage long sys_gettid(void)
+{
+ return current->pid;
+}
+
asmlinkage long sys_nanosleep(struct timespec *rqtp, struct timespec *rmtp)
{
struct timespec t;
|