LibC: Implement dummy utime that just checks file existance
This commit is contained in:
parent
0a5aacfd87
commit
62bee04fc0
|
@ -1,8 +1,11 @@
|
|||
#include <BAN/Assert.h>
|
||||
|
||||
#include <utime.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int utime(const char*, const struct utimbuf*)
|
||||
int utime(const char* filename, const struct utimbuf* times)
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
fprintf(stddbg, "TODO: utime(\"%s\", %p)\n", filename, times);
|
||||
|
||||
struct stat st;
|
||||
return stat(filename, &st);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue