2 #include <minix/callnr.h>
5 #include <minix/vfsif.h>
8 /*===========================================================================*
10 *===========================================================================*/
13 register struct inode
*rip
;
16 /* Temporarily open the file. */
17 if( (rip
= get_inode(fs_dev
, fs_m_in
.REQ_INODE_NR
)) == NIL_INODE
)
20 /* Only the owner of a file or the super_user can change its time. */
22 if(read_only(rip
) != OK
) r
= EROFS
; /* not even su can touch if R/O */
24 rip
->i_atime
= fs_m_in
.REQ_ACTIME
;
25 rip
->i_mtime
= fs_m_in
.REQ_MODTIME
;
26 rip
->i_update
= CTIME
; /* discard any stale ATIME and MTIME flags */