Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!wuarchive!wugate!uunet!nuchat!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.bugs.4bsd Subject: Re: stealth technology for find(1) Message-ID: <5856@ficc.uu.net> Date: 23 Aug 89 19:25:20 GMT References: <3584@mentor.cc.purdue.edu> <250@paperboy.OSF.ORG> <5521@videovax.tv.Tek.com> Organization: Xenix Support, FICC Lines: 29 In article <5521@videovax.tv.Tek.com>, bart@videovax.tv.Tek.com (Bart Massey) writes: > st_atime Time when file data was last accessed. Changed > by the following system calls: mknod(2), > utimes(2), and read(2). For reasons of effi- > ciency, st_atime is not set when a directory is > searched, although this would be more logical. This means: % cat /usr/fred/project/wheaties/raisins ^^^^^^^-- This file is read. ^^^^^^^^^^^^^^^^^^^^^^^^^^-- These directories are *searched*. for reasons of efficiency, atime is not modified. % ls /usr/fred/project/wheaties ^^^^^^^^^^^^^^^^^------------ These directories are searched. ^^^^^^^^--- This directory is *read*. That is, it is opened and the read(2) sys call is performed (maybe multiple times). This is of course hidden in the directory access routines. A directory being searched has a specific meaning in UNIX: it's what namei does to resolve a path. Find actually opens and reads the directory. -- Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation. Biz: peter@ficc.uu.net, +1 713 274 5180. Fun: peter@sugar.hackercorp.com. `-_-' "export ENV='${Envfile[(_$-=1)+(_=0)-(_$-!=_${-%%*i*})]}'" -- Tom Neff 'U` "I didn't know that ksh had a built-in APL interpreter!" -- Steve J. Friedl