/** * @defgroup utime Utime * @ingroup libc */ #ifndef _UTIME_H #define _UTIME_H #ifdef __cplusplus extern "C" { #endif #include #define __NEED_time_t #include struct utimbuf { time_t actime; time_t modtime; }; /** * @ingroup utime * * @par Description: * The utime() function shall set the modification times of the file named by the path argument. * If ptimes is a null pointer, the modification times of the file shall be set to the current time. * If ptimes is not a null pointer, times shall be interpreted as a pointer to a utimbuf structure and * modification times shall be set to the values contained in the designated structure. * * @attention * * * @retval #0 On success. * @retval #-1 On failure with errno set. * * @par Errors * * * @par Dependency: * * @see fstat * @since Huawei LiteOS V100R001C00 */ int utime (const char *, const struct utimbuf *); #if _REDIR_TIME64 __REDIR(utime, __utime64); #endif #ifdef __cplusplus } #endif #endif