runtime/linux/autoconf-real-parent.c
raw| 1 | /* PR6732 - In RHEL5 and F[678] kernels, the utrace patch removed the |
| 2 | * ptrace-related parent field and renamed real_parent to parent. In |
| 3 | * future Fedora kernels, there may or may not be a ptrace-related |
| 4 | * parent field, but the real useful field will go back to being called |
| 5 | * real_parent. |
| 6 | */ |
| 7 | #include <linux/sched.h> |
| 8 | |
| 9 | struct task_struct t; |
| 10 | |
| 11 | void foo (void); |
| 12 | void foo (void) |
| 13 | { |
| 14 | struct task_struct *p; |
| 15 | p = t.real_parent; |
| 16 | (void) p; |
| 17 | } |