Match the owner of the file, and the caller is not (Linux: does not have either the CAP_DAC_OVERRIDE or theĮPERM times is not NULL, the caller's effective UID does not Write access to the file, and the caller is not privileged Match the owner of the file, the caller does not have The path prefix of path (see also path_resolution(7)).ĮACCES times is NULL, the caller's effective user ID does not On error, -1 is returned, andĮRRORS top EACCES Search permission is denied for one of the directories in Utime(), the access and modification times of the file are set to Times specifies the new access time, and times specifies The elements of thisĪrray are timeval structures, which allow a precision of 1 Refers to an array rather than a structure. The utimes() system call is similar, but the times argument The utime() system call allows specification of timestamps with a ID of the file, or times is NULL and the process has write If times is NULL, then the access and modification times of theĬhanging timestamps is permitted when: either the process hasĪppropriate privileges, or the effective user ID equals the user Of the inode specified by filename to the actime and modtime The utime() system call changes the access and modification times SYNOPSIS top #include int utime(const char * filename, const struct utimbuf * times ) #include int utimes(const char * filename, const struct timeval times ) DESCRIPTION top Note: modern applications may prefer to use the interfaces Utime, utimes - change file last access and modification times UTIME(2) Linux Programmer's Manual UTIME(2) NAME top
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |