12/1/2023 0 Comments Utime function c![]() The following new requirements on POSIX implementations derive from alignment with the Single UNIX Specification: The Base Definitions volume of IEEE Std 1003.1-2001,, CHANGE HISTORYįirst released in Issue 1. St_mtime parameters, set actime and modtime in the buffer, and change one of them before making the If an application intends to leave one of the times of a file unchanged whileĬhanging the other, it should use stat() to retrieve the file's st_atime and It and not change the access time on the file. The actime structure member must be present so that an application may set it, even though an implementation may ignore Īs a result of encountering a symbolic link in resolution of the path argument, the length of the substituted pathname The length of the path argument exceeds symbolic links were encountered during resolution of the path argument. A loop exists in symbolic links encountered during resolution of the path argument. Process does not have appropriate privileges. User ID of the process does not match the owner of the file, the process does not have write permission for the file, and the The utime() function shall fail if: Search permission is denied by a component of the path prefix or the times argument is a null pointer and the effective Otherwise, -1 shall be returned and errno shall be set to indicate theĮrror, and the file times shall not be affected. Upon successful completion, 0 shall be returned. Upon successful completion, utime() shall mark the time of the last file status change, st_ctime, to be updated In the structure utimbuf are measured in seconds since the Epoch. ![]() The utimbuf structure is defined in the header. User ID equal to the user ID of the file or a process with appropriate privileges may use utime() this way. If times is not a null pointer, times shall be interpreted as a pointer to a utimbuf structure and theĪccess and modification times shall be set to the values contained in the designated structure. Privileges, to use utime() in this manner. User ID of the process shall match the owner of the file, or the process has write permission to the file or has appropriate If times is a null pointer, the access and modification times of the file shall be set to the current time. The utime() function shall set the access and modification times of the file named by the path argument. Int utime(const char * path, const struct utimbuf * times ) NAME utime - set file access and modification times SYNOPSIS A newer edition of this document exists here Utime The Open Group Base Specifications Issue 6Ĭopyright © 2001-2004 The IEEE and The Open Group, All Rights reserved.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |