interface: add sample filesystem interface

This commit is contained in:
2026-02-26 19:47:16 +00:00
parent 01109948b2
commit bdb2e0ed50
3 changed files with 12 additions and 0 deletions
+1
View File
@@ -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)
+7
View File
@@ -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)
+4
View File
@@ -0,0 +1,4 @@
interface fs {
msg open(string path, int flags) -> (int err);
msg uppercase(string old) -> (string new);
}