source: azure_iot_hub_mbedtls/trunk/musl-1.1.18/src/time/utime.c@ 398

Last change on this file since 398 was 398, checked in by coas-nagasima, 5 years ago

mbedTLS版Azure IoT Hub接続サンプルのソースコードを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 279 bytes
Line 
1#include <utime.h>
2#include <sys/stat.h>
3#include <time.h>
4#include <fcntl.h>
5
6int utime(const char *path, const struct utimbuf *times)
7{
8 return utimensat(AT_FDCWD, path, times ? ((struct timespec [2]){
9 { .tv_sec = times->actime }, { .tv_sec = times->modtime }})
10 : 0, 0);
11}
Note: See TracBrowser for help on using the repository browser.