![]() Specifications IsEdition, Copyright (C) 2018 by the Institute ofĮlectrical and Electronics Engineers, Inc and The Open Group. Portable Operating System Interface (POSIX), The Open Group Base Portions of this text are reprinted and reproduced in electronicįorm from IEEE Std 1003.1-2017, Standard for Information Technology. The Base Definitions volume of POSIX.1‐2017, The utime() function may be removed in a future Modtime in the buffer, and change one of them before making the St_atim and st_mtim parameters, set actime and ![]() Should use stat() or fstat() to retrieve the file's To leave one of the times of a file unchanged while changing the other, it The actime structure member must be present so that anĪpplication may set it, even though an implementation may ignore it and notĬhange the last data access timestamp on the file. Use the utimensat() function instead of the obsolescent Variables and is not accurate to fractions of a second, applications should Since the utimbuf structure only contains time_t Symbolic link produced an intermediate result with a length that exceeds The length of a component of a pathname is longer than, or pathname resolution of a ELOOP A loop exists in symbolic links encountered during resolution of the Write permission for the file, and the process does not have appropriate Process does not match the owner of the file, the process does not have Times argument is a null pointer and the effective user ID of the The utime() function shall fail if: EACCES Search permission is denied by a component of the path prefix or the Shall be returned and errno shall be set to indicate the error, and Upon successful completion, 0 shall be returned. The last file status change timestamp for update see Upon successful completion, the utime() function shall mark The file or a process with appropriate privileges may use utime() Only a process with the effective user ID equal to the user ID of Modification times shall be set to the values contained in the designated Interpreted as a pointer to a utimbuf structure and the access and If times is not a null pointer, times shall be Permission to the file or has appropriate privileges, to use utime() The process shall match the owner of the file, or the process has write Times of the file shall be set to the current time. ![]() If times is a null pointer, the access and modification Times of the file named by the path argument. The utime() function shall set the access and modification Utime - set file access and modification times SYNOPSIS #include int utime(const char * path, const struct utimbuf * times) DESCRIPTION Linux manual page for details of Linux behavior), or the interface may not Linux implementation of this interface may differ (consult the corresponding This manual page is part of the POSIX Programmer's Manual. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |