[5070] in Athena Bugs

home help back first fref pref prev next nref lref last post

either write() or stat.1

daemon@ATHENA.MIT.EDU (Joe Harrington)
Mon Jun 4 19:19:54 1990

Date: Mon, 4 Jun 90 19:19:07 -0400
From: Joe Harrington <jh@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: jh@ATHENA.MIT.EDU
Reply-To: jh@ATHENA.MIT.EDU

stat.2:
     st_atime    Time when file data was last read or modified.
                 Changed by the following system calls: mknod(2),
                 utimes(2), read(2), and write(2).  For reasons
                 of efficiency, st_atime is not set when a direc-
                 tory is searched, although this would be more
                 logical.

% touch foo
(wait...)
% cat >> foo
sdf
^D
% !s
stat foo
  File: "foo"
  Size: 11           Allocated Blocks: 2            Filetype: Regular File
  Mode: (0644/-rw-r--r--)         Uid: ( 4419/      jh)  Gid: (    0/   wheel)
Device: 19,6   Inode: 326       Links: 1
Access: Mon Jun  4 19:02:27 1990(00000.00:03:35)
Modify: Mon Jun  4 19:05:59 1990(00000.00:00:03)
Change: Mon Jun  4 19:05:59 1990(00000.00:00:03)
[m54-419-1:/tmp]<jh:ttyp1>
%

it seems that access time should have been updated by the call to
write() implicit in the >>.  the write(2) man page does not mention
what action it ought to take (which is a bug in itself...).

--jh--

home help back first fref pref prev next nref lref last post