diff options
author | Ryan S. Arnold <rsa@us.ibm.com> | 2010-04-03 19:20:29 -0700 |
---|---|---|
committer | Petr Baudis <pasky@ucw.cz> | 2010-05-10 21:37:36 +0200 |
commit | 71197fe61ff9e55e4cbfb50cce6a9026e15ddb23 (patch) | |
tree | 9fab2b8e7835e5f2d9b83d118c247eb45b4296d6 /sysdeps/unix | |
parent | 11c19d374bd4458039d5f8e7e1548d3349bfa3d7 (diff) | |
download | glibc-71197fe61ff9e55e4cbfb50cce6a9026e15ddb23.zip glibc-71197fe61ff9e55e4cbfb50cce6a9026e15ddb23.tar.gz glibc-71197fe61ff9e55e4cbfb50cce6a9026e15ddb23.tar.bz2 |
Remove incorrect paring of /proc/stat etc.
(cherry picked from commit 3ed8e241229e370cca96650ed727f09838c51d67)
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/getsysstats.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sysdeps/unix/sysv/linux/getsysstats.c b/sysdeps/unix/sysv/linux/getsysstats.c index 97e20d2..af454b6 100644 --- a/sysdeps/unix/sysv/linux/getsysstats.c +++ b/sysdeps/unix/sysv/linux/getsysstats.c @@ -1,5 +1,5 @@ /* Determine various system internal values, Linux version. - Copyright (C) 1996-2003, 2006, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 1996-2003,2006,2007,2009,2010 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. @@ -117,18 +117,6 @@ next_line (int fd, char *const buffer, char **cp, char **re, if (nl == NULL) nl = *re - 1; } - else if (nl + 5 >= *re) - { - memmove (buffer, nl, *re - nl); - *re = buffer + (*re - nl); - nl = *cp = buffer; - - ssize_t n = read_not_cancel (fd, *re, buffer_end - *re); - if (n < 0) - return NULL; - - *re += n; - } *cp = nl + 1; assert (*cp <= *re); |