Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Feb 2005 14:01:07 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tail forward.c
Message-ID:  <200502041401.j14E17Qw033201@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
delphij     2005-02-04 14:01:07 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/tail         forward.c 
  Log:
  Save last displayed file by having the "last" pointer global and save it
  during we show the first file's tail.  Instead of:
  
          tarsier% tail -f 1 2
          ==> 1 <==
          foo
          bar
  
          ==> 2 <==
          bar
          foo
  
          ==> 2 <==
          bar2
          foo2
  
  Now with this change, we have:
  
          tarsier% tail -f 1 2
          ==> 1 <==
          foo
          bar
  
          ==> 2 <==
          bar
          foo
          bar2
          foo2
  
  While I'm there, move a comment to where it should belong to.  Also,
  const'ify the "last" static because we will never need to change the
  contents it points to.
  
  MFC After:      1 week
  
  Revision  Changes    Path
  1.38      +8 -6      src/usr.bin/tail/forward.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502041401.j14E17Qw033201>