sys_utimes  [fs/open.c]


Changes the access and modification times of a file.

The function sys_utimes allows specification of time stamps with a resolution of 1 microsecond.

Arguments

eax 271
ebx Pointer to a null-terminated string specifying the pathname of the file..
ecx Pointer to a timeval structure containing new access and modification times:
struc timeval
{
tv_sec  rd 1
tv_usec rd 1
}

Where tv_sec refers to access time and tv_usec refers to 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 ecxis 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