From 1ba7a0dc809e810204d4a6e7e433650eaa752ce3 Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Tue, 3 May 2022 18:05:38 +0200 Subject: [PATCH] lib: posix/open: Support M2-Planet. * lib/posix/open.c (open)[__M2__]: New function. --- lib/posix/open.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/posix/open.c b/lib/posix/open.c index 490c3ec9..d99b91c6 100644 --- a/lib/posix/open.c +++ b/lib/posix/open.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen + * Copyright © 2016,2017,2018,2019,2022 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. * @@ -29,6 +29,13 @@ _open2 (char const *file_name, int flags) return _open3 (file_name, flags, mask); } +#if __M2__ +int +open (char const *file_name, int flags, int mask) +{ + return _open3 (file_name, flags, mask); +} +#else // !__M2__ int open (char const *file_name, int flags, ...) { @@ -44,3 +51,4 @@ open (char const *file_name, int flags, ...) else return _open2 (file_name, flags); } +#endif // !__M2__