From 643baf8dec925d95d944daeea7a395b505e716bf Mon Sep 17 00:00:00 2001 From: g1n Date: Sun, 24 Jul 2022 13:17:22 +0300 Subject: [PATCH] Add with open function --- src/fcntl.c | 6 ++++++ src/include/fcntl.h | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 src/fcntl.c create mode 100644 src/include/fcntl.h diff --git a/src/fcntl.c b/src/fcntl.c new file mode 100644 index 0000000..6804e92 --- /dev/null +++ b/src/fcntl.c @@ -0,0 +1,6 @@ +#include +#include + +int open(const char *path, int oflag, ...) { + return sys_open(path, oflag); // FIXME +} diff --git a/src/include/fcntl.h b/src/include/fcntl.h new file mode 100644 index 0000000..c569491 --- /dev/null +++ b/src/include/fcntl.h @@ -0,0 +1,6 @@ +#ifndef _FCNTL_H +#define _FCNTL_H + +int open(const char *path, int oflag, ...); + +#endif