diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-05-14 14:11:02 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-05-14 14:11:02 +0000 |
commit | ffb7875d03e224584fd1e3dc8bb6e90c79ed606e (patch) | |
tree | 7735bbae8f840773afe241281ae1184cd956acc8 /sysdeps/unix/sysv/linux/ptsname.c | |
parent | 1bfb72913bf82781ae232d056991362b2b071800 (diff) | |
download | glibc-ffb7875d03e224584fd1e3dc8bb6e90c79ed606e.tar.gz |
Remove pre-2.2 Linux kernel support.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ptsname.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/ptsname.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c index fb097698fb..bf8ca864a2 100644 --- a/sysdeps/unix/sysv/linux/ptsname.c +++ b/sysdeps/unix/sysv/linux/ptsname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1998, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1998-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998. @@ -127,12 +127,6 @@ __ptsname_internal (int fd, char *buf, size_t buflen, struct stat64 *stp) } ptyno = minor (stp->st_rdev); -#if __LINUX_KERNEL_VERSION < 131443 - /* This is for the old BSD pseudo terminals. As of Linux - 2.1.115 these are no longer supported. */ - if (major (stp->st_rdev) == 4) - ptyno -= 128; -#endif if (ptyno / 16 >= strlen (__libc_ptyname1)) { |