about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-19 07:27:58 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-19 07:27:58 +0000
commitf9d07577ce74d2f3da0e091940214ad16efbf3c0 (patch)
tree0c78aacfde5e00bb3ecdd04a8ee38ab3fad76f8d /sysdeps/unix/sysv/linux/kernel-features.h
parent786dcb6287b61bbd5ebb905cbc5b1496b927d7b8 (diff)
downloadglibc-f9d07577ce74d2f3da0e091940214ad16efbf3c0.tar.gz
glibc-f9d07577ce74d2f3da0e091940214ad16efbf3c0.tar.xz
glibc-f9d07577ce74d2f3da0e091940214ad16efbf3c0.zip
* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_PROC_SELF_FD_SYMLINK.
	* sysdeps/unix/sysv/linux/ttyname.c: Cleanups.  Avoid compatibility
	code is possible.  Move compatibility code in .text.compat section.
	* sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-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 37d25b1a5c..139e3d5a72 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -85,6 +85,12 @@
 # define __ASSUME_SENDFILE		1
 #endif
 
+/* Only very old kernels had no real symlinks for terminal descriptors
+   in /proc/self/fd.  */
+#if __LINUX_KERNEL_VERSION >= 131584
+# define __ASSUME_PROC_SELF_FD_SYMLINK	1
+#endif
+
 /* On x86 another `getrlimit' syscall was added in 2.3.25.  */
 #if __LINUX_KERNEL_VERSION >= 131865 && defined __i386__
 # define __ASSUME_NEW_GETRLIMIT_SYSCALL	1