From bdb2e0ed50ad334bda67dc254ab978fe437af56b Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 26 Feb 2026 19:47:16 +0000 Subject: [PATCH] interface: add sample filesystem interface --- CMakeLists.txt | 1 + interface/CMakeLists.txt | 7 +++++++ interface/fs.if | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 interface/CMakeLists.txt create mode 100644 interface/fs.if diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f981aa..dd5a3f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,7 @@ sysroot_set_base( PATH ${CMAKE_SOURCE_DIR}/base) add_subdirectory(kernel) +add_subdirectory(interface) add_subdirectory(sys) add_subdirectory(lib) add_subdirectory(services) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt new file mode 100644 index 0000000..6aa9c45 --- /dev/null +++ b/interface/CMakeLists.txt @@ -0,0 +1,7 @@ +file(GLOB if_files *.if) + +foreach (file ${if_files}) + get_filename_component(name ${file} NAME_WLE) + add_interface(NAME ${name} PATH ${file} PARENT_DIR rosetta) + sysroot_add_interface(NAME ${name} DEST_DIR /usr/include) +endforeach (file) diff --git a/interface/fs.if b/interface/fs.if new file mode 100644 index 0000000..0d8e635 --- /dev/null +++ b/interface/fs.if @@ -0,0 +1,4 @@ +interface fs { + msg open(string path, int flags) -> (int err); + msg uppercase(string old) -> (string new); +}