include: add utime(2) stub and memory.h

This commit is contained in:
Mark 2020-08-24 11:34:50 +03:00
parent 9e8fad9d70
commit 30263c6932
3 changed files with 19 additions and 0 deletions

2
include/memory.h Normal file
View File

@ -0,0 +1,2 @@
#pragma once
#include <string.h>

10
include/utime.h Normal file
View File

@ -0,0 +1,10 @@
#pragma once
// TODO: #include <sys/types.h>!!!
#include <sys/time.h>
struct utimbuf {
time_t actime;
time_t modtime;
};
int utime(const char *filename, const struct utimbuf *times);

7
src/misc/utime.c Normal file
View File

@ -0,0 +1,7 @@
#include <utime.h>
int utime(const char *filename, const struct utimbuf *times) {
(void) filename;
(void) times;
return 0;
}