feat(kernel/api): add fcntl.h

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
2025-03-21 01:12:08 +00:00
parent 67a3527e29
commit a43fac0c2d
6 changed files with 270 additions and 97 deletions

View File

@ -49,9 +49,14 @@ build_coreutils:
make -j$(shell nproc) && \
make install
define copy_generic_header
cp -f $(WORKSPACE_DIR)/../Kernel/include/interface/$(1) $(WORKSPACE_DIR)/libc/abis/fennix/generic/bits/$(1)
endef
build_libc:
cp -f $(WORKSPACE_DIR)/../Kernel/include/interface/errno.h $(WORKSPACE_DIR)/libc/abis/fennix/generic/bits/errno.h
cp -f $(WORKSPACE_DIR)/../Kernel/include/interface/syscalls.h $(WORKSPACE_DIR)/libc/abis/fennix/generic/bits/syscalls.h
$(call copy_generic_header,errno.h)
$(call copy_generic_header,syscalls.h)
$(call copy_generic_header,fcntl.h)
mkdir -p cache/libc
cd cache/libc && \
cmake $(WORKSPACE_DIR)/libc \