6/5/2023 0 Comments Utime linux![]() flags: int - A bit-field indicating whether the times are relative to the directory referred to by the file descriptor 'dirfd' (AT_SYMLINK_NOFOLLOW), or whether the operation should be applied to the symlink itself (AT_SYMLINK_NOFOLLOW). ![]() ![]() If 'times' is set to NULL, then the access and modification times of the 'pathname' are set to the current time. If either timestamp is set to the special value UTIME_OMIT, then that particular timestamp is not set. The values are measured as nanoseconds since the Epoch (Jan 1 1970). times: struct timespec* - A pointer to a two-element array specifying the access and modification times respectively.pathname: const char* - A pointer to a string containing the pathname of a file relative to the directory referred to by the file descriptor 'dirfd'.dirfd: int - A file descriptor referring to a directory, or the special value AT_FDCWD, which can be used to indicate the current working directory.The utimensat system call is similar to utime and utimes, but with more precise control over timestamp behavior. If times is a NULL pointer, the access and. The flags argument is a bitfield that is used to indicate whether the times are relative to the directory referenced by the file descriptor 'dirfd' (AT_SYMLINK_NOFOLLOW), or whether the operation should be applied to the symlink itself (AT_SYMLINK_NOFOLLOW). The utime() function sets the access and modification times of path to the values in the utimbuf structure. The 'times' argument is a pointer to a two-element array that specifies the access and modification times respectively. It provides nanosecond precision and some additional flags that the utime and utimes system calls do not provide. The utimensat system call creates, checks, and/or modifies the timestamps of a file relative to a directory file descriptor. (If the directory is writable, utime (2) is also allowed. 20 - If current process is in group of files group ID, you can change timestamp. Utimensat - Change file timestamps with nanosecond precision Description ΒΆ allowutime - This option controls the permission check of mtime/atime. Accessing Tracee Logs through Promtail and Loki
0 Comments
Leave a Reply. |