From ffb7875d03e224584fd1e3dc8bb6e90c79ed606e Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 14 May 2012 14:11:02 +0000 Subject: Remove pre-2.2 Linux kernel support. --- sysdeps/unix/sysv/linux/ttyname.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sysdeps/unix/sysv/linux/ttyname.c') diff --git a/sysdeps/unix/sysv/linux/ttyname.c b/sysdeps/unix/sysv/linux/ttyname.c index 0cfb4740b8..3dacd40c23 100644 --- a/sysdeps/unix/sysv/linux/ttyname.c +++ b/sysdeps/unix/sysv/linux/ttyname.c @@ -1,5 +1,4 @@ -/* Copyright (C) 1991-1993,1996-2002,2006,2009,2010 - Free Software Foundation, Inc. +/* Copyright (C) 1991-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -155,12 +154,7 @@ ttyname (int fd) return NULL; } - if (__builtin_expect (len != -1 -#ifndef __ASSUME_PROC_SELF_FD_SYMLINK - /* This is for Linux 2.0. */ - && ttyname_buf[0] != '[' -#endif - , 1)) + if (__builtin_expect (len != -1, 1)) { if ((size_t) len >= buflen) return NULL; -- cgit v1.2.3