![]() Is interpreted relative to the current workingįield is a bit mask that may be 0, or include the following constant, (rather than relative to the current working directory ofįor an explanation of why this can be useful. Is relative, then by default it is interpreted relative to theĭirectory referred to by the open file descriptor, Then no file ownership or permission checks are performed,Īnd the file timestamps are not modified,īut other error conditions may still be detected. To make any change other than setting both timestamps to theĮither condition 2 or 3 above must apply. the caller must have appropriate privileges. the caller's effective user ID must match the owner of the file or 3. the caller must have write access to the file 2. Permissions requirementsTo set both file timestamps to the current time (i.e.,Įither: 1. Is NULL, then both timestamps are set to the current time. In both of these cases, the value of the corresponding Then the corresponding file timestamp is left unchanged. Then the corresponding file timestamp is set to the current time. Supported by the filesystem that is not greater than the specified time. ![]() Updated file timestamps are set to the greatest value This information is conveyed in a structure of the following form: Specifies a time as the number of seconds and nanoseconds Specifies the new "last modification time" ( mtime). Specifies the new "last access time" ( atime) The file whose timestamps are to be updated is specified viaįor both calls, the new file timestamps are specified in the array The file is specified via the pathname given in Which permit only second and microsecond precision, respectively, Update the timestamps of a file with nanosecond precision. Utimensat(): Since glibc 2.10: _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _ATFILE_SOURCEįutimens(): Since glibc 2.10: _POSIX_C_SOURCE >= 200809L Before glibc 2.10: _GNU_SOURCE DESCRIPTION utimensat() Utimensat, futimens - change file timestamps with nanosecond precision SYNOPSIS #include /* Definition of AT_* constants */ #include int utimensat(int dirfd, const char * pathname, const struct timespec times, int flags ) int futimens(int fd, const struct timespec times ) įeature Test Macro Requirements for glibc (see Command to display utimensat manual in Linux: $ man 2 utimensat NAME
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |