From owner-freebsd-questions Fri Mar 7 23:45:31 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id XAA29475 for questions-outgoing; Fri, 7 Mar 1997 23:45:31 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA29470 for ; Fri, 7 Mar 1997 23:45:28 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.8.5/8.6.5) with SMTP id XAA09883; Fri, 7 Mar 1997 23:46:32 -0800 (PST) Message-Id: <199703080746.XAA09883@root.com> X-Authentication-Warning: implode.root.com: localhost [127.0.0.1] didn't use HELO protocol To: Andrew cc: freebsd-questions@freebsd.org Subject: Re: File access times and filetest -A In-reply-to: Your message of "Sat, 08 Mar 1997 17:57:03 +1100." From: David Greenman Reply-To: dg@root.com Date: Fri, 07 Mar 1997 23:46:32 -0800 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >This probably isnt very FreeBSD specific but: > >In tcsh I type: > >mopsy~>filetest -A fred >857803867 >mopsy~>more fred >sdsfss >mopsy~>filetest -A fred >857803867 > > >The access time hasn't gone up despite the fact that I mored the file. man >stat (I assume it is stat that is being used) says: > >st_atime Time when file data last accessed. Changed by the mknod(2), > utimes(2) and read(2) system calls. > >Does more not use read? Is this jsut a bug? The real reason I'm asking is more [less] probably uses mmap() to read the file. Mmap (actually page fault) doesn't update the access time on the file. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project