about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2014-02-05 10:10:34 -0500
committerCarlos O'Donell <carlos@redhat.com>2014-02-05 10:13:11 -0500
commitf877c4f2bf2ebc9ecd3e099e33fc4184f4fcac1a (patch)
treeeb68704bb5ec948aff734d878e74cfccd056562d /sysdeps/unix
parentcff469ca41181c67e805eaf7c0a1b518b60fbf10 (diff)
downloadglibc-f877c4f2bf2ebc9ecd3e099e33fc4184f4fcac1a.tar.gz
glibc-f877c4f2bf2ebc9ecd3e099e33fc4184f4fcac1a.tar.xz
glibc-f877c4f2bf2ebc9ecd3e099e33fc4184f4fcac1a.zip
Fix tst-setgetname for Linux kernels < 2.6.33.
Support for /proc/self/task/$tid/comm as added in Linux 2.6.33,
therefore since the test tst-setgetname relies on this functionality
to operate we must skip the test in kernels < 2.6.33. We wrap the
checks with __ASSUME_PROC_PID_TASK_COMM such that in the future when
we move arch_minimum_kernel to 2.6.33 we can remove this code.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 372353528e..aabf69d64c 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -202,6 +202,12 @@
 # define __ASSUME_RECVMMSG	1
 #endif
 
+/* Support for /proc/self/task/$tid/comm and /proc/$pid/task/$tid/comm were
+   added in 2.6.33.  */
+#if __LINUX_KERNEL_VERSION >= 0x020621
+# define __ASSUME_PROC_PID_TASK_COMM	1
+#endif
+
 /* statfs fills in f_flags since 2.6.36.  */
 #if __LINUX_KERNEL_VERSION >= 0x020624
 # define __ASSUME_STATFS_F_FLAGS	1