mirror of
https://github.com/openharmony/third_party_rust_libc.git
synced 2026-07-20 16:11:35 -04:00
f026a6ed2b
adding KERNEL_VERSION macro for linux.
Supported API by libc
These files are read by build.rs and turned into tests to
ensure that APIs aren't removed between libc releases.
File order
Files are including in the following order:
- Family, e.g.
unix.txt. NOTE: Windows is skipped here and includes as OS name below. - Vendor, e.g.
apple.txt. This allows us to have a single file with system calls shared between multiple OSs, e.g.ios.txt,macos.txtshare the same kernel. - OS, e.g
linux.txt,macos.txt,windows.txt. - Architecture specific system calls, e.g.
linux-x86_64.txtorlinux-aarch64.txt. - Target environment, e.g.
windows-mscv.txtorwindows-gnu.txt.