utime.h 442 B

123456789101112131415161718192021222324252627
  1. /*
  2. * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef _UTIME_H_
  7. #define _UTIME_H_
  8. #include <sys/time.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. struct utimbuf {
  13. time_t actime; // access time
  14. time_t modtime; // modification time
  15. };
  16. int utime(const char *path, const struct utimbuf *times);
  17. #ifdef __cplusplus
  18. };
  19. #endif
  20. #endif /* _UTIME_H_ */