LibC: Implement dummy utime that just checks file existance

This commit is contained in:
Bananymous 2024-12-03 16:21:18 +02:00
parent 0a5aacfd87
commit 62bee04fc0
1 changed files with 7 additions and 4 deletions

View File

@ -1,8 +1,11 @@
#include <BAN/Assert.h>
#include <utime.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);
} }