sys_utime  [fs/open.c]


Changes the access and modification times of a named file.

The function sys_utime allows specification of time stamps with a resolution of 1 second.

Arguments

eax 30
ebx Pointer to a null-terminated string specifying the pathname of the file.
ecx A pointer to a utimbuf structure containing new access and modification times:
struc utimbuf
{
.actime  rd 1 ; access time
.modtime rd 1 ; modification time
}

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EACCES Search permission is denied for one of the directories in the path prefix of pathname.
-or-
ecx is NULL and the process does not have permission to change the time stamps.
-ENOENT Pathanme pointed by ebx does not exist.
-EPERM ecx is not NULL and the process does not have permission to change the time stamps.
-EROFS Pathname pointed by ebx resides on a read-only file system.

Remarks

Linux does not allow changing the time stamps on an immutable file, or setting the time stamps to something other than the current time on an append-only file.

Compatibility

n/a