Update libc implementation

This commit is contained in:
Alex
2023-04-23 21:38:36 +03:00
parent 6deb37fbfe
commit 43aad488a7
18 changed files with 478 additions and 33 deletions

View File

@ -1,4 +1,18 @@
#ifndef _SYS_STAT_H
#define _SYS_STAT_H
typedef unsigned int _dev_t;
typedef unsigned short _ino_t;
typedef unsigned short _mode_t;
typedef int _off_t;
#define dev_t _dev_t
#define ino_t _ino_t
#define mode_t _mode_t
#define off_t _off_t
int mkdir(const char *path, mode_t mode);
int remove(const char *pathname);
int rename(const char *oldpath, const char *newpath);
#endif

4
libc/include/sys/time.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef _SYS_TIME_H
#define _SYS_TIME_H
#endif