Add <fcntl.h> with open function

This commit is contained in:
g1n 2022-07-24 13:17:22 +03:00
parent 453745f6dd
commit 643baf8dec
Signed by: g1n
GPG Key ID: 8D352193D65D4E2C
2 changed files with 12 additions and 0 deletions

6
src/fcntl.c Normal file
View File

@ -0,0 +1,6 @@
#include <fcntl.h>
#include <liblinux.h>
int open(const char *path, int oflag, ...) {
return sys_open(path, oflag); // FIXME
}

6
src/include/fcntl.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef _FCNTL_H
#define _FCNTL_H
int open(const char *path, int oflag, ...);
#endif