├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── c-cpp.yml ├── .gitignore ├── .vscode ├── c_cpp_properties.json ├── launch.json ├── settings.json └── tasks.json ├── bootstrap.yml ├── bootstrap ├── cross-file.ini ├── sys-apps.yml ├── sys-kernel.yml ├── sys-libs.yml ├── sys-modules.yml └── sys-tools.yml ├── license ├── makefile ├── meta ├── images │ └── laptop.png └── screenshots │ ├── 0.png │ ├── 1.png │ ├── 10.png │ ├── 2.png │ ├── 3.png │ ├── 4.png │ ├── 5.png │ ├── 6.png │ ├── 7.png │ ├── 8.png │ └── 9.png ├── patches ├── automake-v1.16 │ └── automake-v1.16.patch ├── bash │ └── bash.patch ├── binutils │ └── binutils.patch ├── coreutils │ └── coreutils.patch ├── curl │ └── curl.patch ├── gcc │ └── gcc.patch ├── libdrm │ └── libdrm.patch ├── libressl │ └── libressl.patch ├── ncurses │ └── ncurses.patch └── nyancat │ └── nyancat.patch ├── readme.md ├── sources ├── core │ ├── apps │ │ ├── datetime │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── desktop │ │ │ ├── icons │ │ │ │ ├── bash.tga │ │ │ │ ├── default.tga │ │ │ │ ├── doom.tga │ │ │ │ ├── explorer.tga │ │ │ │ ├── icons.json │ │ │ │ ├── lock.tga │ │ │ │ ├── lua.tga │ │ │ │ ├── nyancat.tga │ │ │ │ ├── reboot.tga │ │ │ │ ├── shutdown.tga │ │ │ │ ├── store-ui.tga │ │ │ │ ├── weather-ui.tga │ │ │ │ └── welcome.tga │ │ │ ├── res │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ └── desktop.json │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── explorer │ │ │ ├── res │ │ │ │ ├── default.tga │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ ├── directory.tga │ │ │ │ ├── explorer.json │ │ │ │ ├── file.tga │ │ │ │ ├── image.tga │ │ │ │ ├── json.tga │ │ │ │ ├── text.tga │ │ │ │ └── ttf.tga │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── image-reader │ │ │ ├── res │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ └── image-reader.json │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── init │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── ip │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── llm │ │ │ ├── docs │ │ │ │ └── jan.png │ │ │ ├── readme.md │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── lock │ │ │ ├── res │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ └── lock.json │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── lua │ │ │ ├── .gitignore │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── reboot │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── shutdown │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── store-ui │ │ │ ├── res │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ └── store-ui.json │ │ │ ├── source │ │ │ │ ├── apps │ │ │ │ │ ├── apps.c │ │ │ │ │ └── apps.h │ │ │ │ ├── core │ │ │ │ │ └── core.c │ │ │ │ ├── deps │ │ │ │ │ ├── deps.c │ │ │ │ │ └── deps.h │ │ │ │ ├── download │ │ │ │ │ ├── download.c │ │ │ │ │ └── download.h │ │ │ │ ├── icon │ │ │ │ │ ├── icon.c │ │ │ │ │ └── icon.h │ │ │ │ ├── install │ │ │ │ │ ├── install.c │ │ │ │ │ └── install.h │ │ │ │ ├── launch │ │ │ │ │ ├── launch.c │ │ │ │ │ └── launch.h │ │ │ │ ├── remove │ │ │ │ │ ├── remove.c │ │ │ │ │ └── remove.h │ │ │ │ ├── untar │ │ │ │ │ ├── untar.c │ │ │ │ │ └── untar.h │ │ │ │ └── update │ │ │ │ │ ├── update.c │ │ │ │ │ └── update.h │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── text-reader │ │ │ ├── res │ │ │ │ ├── default_bitmap_font.pcf │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ └── text-reader.json │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── weather-ui │ │ │ ├── res │ │ │ │ ├── clear.jpg │ │ │ │ ├── cloudy.jpg │ │ │ │ ├── default_font.ttf │ │ │ │ ├── default_wallpaper.jpg │ │ │ │ ├── mist.jpg │ │ │ │ ├── overcast.jpg │ │ │ │ ├── partly_cloudy.jpg │ │ │ │ ├── sunny.jpg │ │ │ │ └── weather-ui.json │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ ├── weather │ │ │ ├── source │ │ │ │ └── core │ │ │ │ │ └── core.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ └── welcome │ │ │ ├── res │ │ │ ├── welcome.ttf │ │ │ ├── welcome0.jpg │ │ │ ├── welcome1.jpg │ │ │ ├── welcome2.jpg │ │ │ └── welcome3.jpg │ │ │ ├── source │ │ │ └── core │ │ │ │ └── core.c │ │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ ├── kernel │ │ ├── source │ │ │ ├── arch │ │ │ │ ├── aarch64 │ │ │ │ │ ├── arch.c │ │ │ │ │ ├── impl │ │ │ │ │ │ └── pmm.h │ │ │ │ │ ├── panic.c │ │ │ │ │ ├── serial.c │ │ │ │ │ └── vmm.c │ │ │ │ ├── amd64 │ │ │ │ │ ├── acpi.c │ │ │ │ │ ├── acpi.h │ │ │ │ │ ├── apic.c │ │ │ │ │ ├── apic.h │ │ │ │ │ ├── arch.c │ │ │ │ │ ├── asm.h │ │ │ │ │ ├── boot.h │ │ │ │ │ ├── context.c │ │ │ │ │ ├── context.h │ │ │ │ │ ├── cpu.c │ │ │ │ │ ├── cpu.h │ │ │ │ │ ├── cpu.inc │ │ │ │ │ ├── cpu.s │ │ │ │ │ ├── gdt.c │ │ │ │ │ ├── gdt.h │ │ │ │ │ ├── gdt.s │ │ │ │ │ ├── hpet.c │ │ │ │ │ ├── hpet.h │ │ │ │ │ ├── idt.c │ │ │ │ │ ├── idt.h │ │ │ │ │ ├── idt.s │ │ │ │ │ ├── impl │ │ │ │ │ │ ├── arch.h │ │ │ │ │ │ ├── arguments.h │ │ │ │ │ │ ├── context.h │ │ │ │ │ │ ├── pmm.h │ │ │ │ │ │ ├── scheduler.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ └── vmm.h │ │ │ │ │ ├── interrupts.c │ │ │ │ │ ├── interrupts.h │ │ │ │ │ ├── interrupts.s │ │ │ │ │ ├── io.h │ │ │ │ │ ├── panic.c │ │ │ │ │ ├── scheduler.c │ │ │ │ │ ├── serial.c │ │ │ │ │ ├── simd.c │ │ │ │ │ ├── simd.h │ │ │ │ │ ├── smp.c │ │ │ │ │ ├── smp.h │ │ │ │ │ ├── smp.s │ │ │ │ │ ├── syscall.h │ │ │ │ │ ├── syscall.s │ │ │ │ │ ├── time.c │ │ │ │ │ ├── vmm.c │ │ │ │ │ └── vmm.h │ │ │ │ └── include.h │ │ │ ├── boot │ │ │ │ ├── limine.h │ │ │ │ └── limine │ │ │ │ │ ├── aarch64 │ │ │ │ │ └── vmm.c │ │ │ │ │ ├── amd64 │ │ │ │ │ ├── acpi.c │ │ │ │ │ └── vmm.c │ │ │ │ │ ├── graphics.c │ │ │ │ │ ├── initrd.c │ │ │ │ │ ├── memory.c │ │ │ │ │ └── pmm.c │ │ │ ├── global │ │ │ │ ├── apps.c │ │ │ │ ├── apps.h │ │ │ │ ├── console.h │ │ │ │ ├── console │ │ │ │ │ ├── ansi.c │ │ │ │ │ ├── ansi.h │ │ │ │ │ └── console.c │ │ │ │ ├── devfs.c │ │ │ │ ├── devfs.h │ │ │ │ ├── dir.c │ │ │ │ ├── dir.h │ │ │ │ ├── elf.h │ │ │ │ ├── elf_loader.c │ │ │ │ ├── elf_loader.h │ │ │ │ ├── exec.c │ │ │ │ ├── exec.h │ │ │ │ ├── file.c │ │ │ │ ├── file.h │ │ │ │ ├── heap.c │ │ │ │ ├── heap.h │ │ │ │ ├── hw_interrupt.c │ │ │ │ ├── hw_interrupt.h │ │ │ │ ├── ksym.c │ │ │ │ ├── ksym.h │ │ │ │ ├── mm.c │ │ │ │ ├── mm.h │ │ │ │ ├── modules.c │ │ │ │ ├── modules.h │ │ │ │ ├── pmm.c │ │ │ │ ├── pmm.h │ │ │ │ ├── resources.c │ │ │ │ ├── resources.h │ │ │ │ ├── scheduler.c │ │ │ │ ├── scheduler.h │ │ │ │ ├── socket.c │ │ │ │ ├── socket.h │ │ │ │ ├── syscall.c │ │ │ │ ├── syscall.h │ │ │ │ ├── time.c │ │ │ │ ├── time.h │ │ │ │ ├── vfs.c │ │ │ │ └── vfs.h │ │ │ ├── impl │ │ │ │ ├── arch.h │ │ │ │ ├── boot.h │ │ │ │ ├── context.h │ │ │ │ ├── graphics.h │ │ │ │ ├── hw_interrupt.h │ │ │ │ ├── initrd.h │ │ │ │ ├── memory.h │ │ │ │ ├── panic.h │ │ │ │ ├── serial.h │ │ │ │ ├── time.h │ │ │ │ └── vmm.h │ │ │ ├── kernel.c │ │ │ ├── kernel.h │ │ │ ├── lib │ │ │ │ ├── arguments.h │ │ │ │ ├── assert.c │ │ │ │ ├── assert.h │ │ │ │ ├── bitmap.c │ │ │ │ ├── bitmap.h │ │ │ │ ├── guid.h │ │ │ │ ├── hashmap.h │ │ │ │ ├── hashmap │ │ │ │ │ ├── hashmap.c │ │ │ │ │ └── khash.h │ │ │ │ ├── lock.c │ │ │ │ ├── lock.h │ │ │ │ ├── log.c │ │ │ │ ├── log.h │ │ │ │ ├── math.h │ │ │ │ ├── memory.c │ │ │ │ ├── memory.h │ │ │ │ ├── modules │ │ │ │ │ ├── devfs.h │ │ │ │ │ ├── dir.h │ │ │ │ │ ├── file.h │ │ │ │ │ ├── hid.h │ │ │ │ │ ├── net.h │ │ │ │ │ ├── pci.h │ │ │ │ │ ├── socket.h │ │ │ │ │ ├── storage.h │ │ │ │ │ ├── time.h │ │ │ │ │ └── vfs.h │ │ │ │ ├── net.h │ │ │ │ ├── printf.c │ │ │ │ ├── printf.h │ │ │ │ ├── string.h │ │ │ │ ├── time.c │ │ │ │ ├── time.h │ │ │ │ ├── vector.c │ │ │ │ └── vector.h │ │ │ └── parameters.h │ │ └── target │ │ │ ├── .gitignore │ │ │ ├── limine │ │ │ ├── aarch64 │ │ │ │ ├── kernel.ld │ │ │ │ └── makefile │ │ │ ├── amd64 │ │ │ │ ├── kernel.ld │ │ │ │ └── makefile │ │ │ └── makefile.cfg │ │ │ └── opensbi │ │ │ ├── makefile.cfg │ │ │ └── riscv64 │ │ │ ├── kernel.ld │ │ │ └── makefile │ ├── libs │ │ ├── kot-graphics │ │ │ ├── source │ │ │ │ ├── font.h │ │ │ │ ├── font │ │ │ │ │ └── font.c │ │ │ │ ├── image.h │ │ │ │ ├── image │ │ │ │ │ └── image.c │ │ │ │ ├── utils.h │ │ │ │ └── utils │ │ │ │ │ └── utils.c │ │ │ └── target │ │ │ │ └── amd64 │ │ │ │ ├── .gitignore │ │ │ │ └── makefile │ │ └── mlibc │ │ │ ├── .github │ │ │ └── workflows │ │ │ │ ├── abidiff.yml │ │ │ │ ├── ci.yml │ │ │ │ ├── detect-bad-ifs.yml │ │ │ │ └── fixups.yml │ │ │ ├── .gitignore │ │ │ ├── ABI_BREAKS.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── RELEASE_PROCEDURE.md │ │ │ ├── abis │ │ │ ├── aero │ │ │ │ └── auxv.h │ │ │ ├── dripos │ │ │ │ ├── auxv.h │ │ │ │ └── errno.h │ │ │ ├── ironclad │ │ │ │ ├── auxv.h │ │ │ │ ├── fcntl.h │ │ │ │ └── seek-whence.h │ │ │ ├── lemon │ │ │ │ └── auxv.h │ │ │ ├── linux │ │ │ │ ├── access.h │ │ │ │ ├── auxv.h │ │ │ │ ├── blkcnt_t.h │ │ │ │ ├── blksize_t.h │ │ │ │ ├── clockid_t.h │ │ │ │ ├── dev_t.h │ │ │ │ ├── epoll.h │ │ │ │ ├── errno.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ ├── gid_t.h │ │ │ │ ├── in.h │ │ │ │ ├── ino_t.h │ │ │ │ ├── inotify.h │ │ │ │ ├── ioctls.h │ │ │ │ ├── limits.h │ │ │ │ ├── mode_t.h │ │ │ │ ├── mqueue.h │ │ │ │ ├── nlink_t.h │ │ │ │ ├── packet.h │ │ │ │ ├── pid_t.h │ │ │ │ ├── poll.h │ │ │ │ ├── ptrace.h │ │ │ │ ├── reboot.h │ │ │ │ ├── resource.h │ │ │ │ ├── seek-whence.h │ │ │ │ ├── shm.h │ │ │ │ ├── signal.h │ │ │ │ ├── socket.h │ │ │ │ ├── socklen_t.h │ │ │ │ ├── stat.h │ │ │ │ ├── statfs.h │ │ │ │ ├── statvfs.h │ │ │ │ ├── suseconds_t.h │ │ │ │ ├── termios.h │ │ │ │ ├── time.h │ │ │ │ ├── uid_t.h │ │ │ │ ├── utsname.h │ │ │ │ ├── vm-flags.h │ │ │ │ ├── vt.h │ │ │ │ ├── wait.h │ │ │ │ └── xattr.h │ │ │ ├── managarm │ │ │ │ └── auxv.h │ │ │ └── mlibc │ │ │ │ ├── access.h │ │ │ │ ├── blkcnt_t.h │ │ │ │ ├── blksize_t.h │ │ │ │ ├── clockid_t.h │ │ │ │ ├── dev_t.h │ │ │ │ ├── epoll.h │ │ │ │ ├── errno.h │ │ │ │ ├── fcntl.h │ │ │ │ ├── gid_t.h │ │ │ │ ├── in.h │ │ │ │ ├── ino_t.h │ │ │ │ ├── inotify.h │ │ │ │ ├── limits.h │ │ │ │ ├── mode_t.h │ │ │ │ ├── nlink_t.h │ │ │ │ ├── packet.h │ │ │ │ ├── pid_t.h │ │ │ │ ├── poll.h │ │ │ │ ├── ptrace.h │ │ │ │ ├── resource.h │ │ │ │ ├── seek-whence.h │ │ │ │ ├── signal.h │ │ │ │ ├── socket.h │ │ │ │ ├── stat.h │ │ │ │ ├── termios.h │ │ │ │ ├── time.h │ │ │ │ ├── uid_t.h │ │ │ │ ├── utsname.h │ │ │ │ ├── vm-flags.h │ │ │ │ └── wait.h │ │ │ ├── ci │ │ │ ├── abidiff_suppress.ini │ │ │ ├── aero.cross-file │ │ │ ├── bootstrap.yml │ │ │ ├── dripos.cross-file │ │ │ ├── ironclad.cross-file │ │ │ ├── kot.cross-file │ │ │ ├── lemon.cross-file │ │ │ ├── linux-aarch64.cross-file │ │ │ ├── linux-riscv64.cross-file │ │ │ ├── linux-x86_64.cross-file │ │ │ └── lyre.cross-file │ │ │ ├── dummy-libs │ │ │ ├── libcrypt │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ ├── libdl │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ ├── libm │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ ├── libpthread │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ ├── libresolv │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ ├── librt │ │ │ │ └── src │ │ │ │ │ └── dummy.cpp │ │ │ └── libutil │ │ │ │ └── src │ │ │ │ └── dummy.cpp │ │ │ ├── internal-config.h.in │ │ │ ├── meson.build │ │ │ ├── meson_options.txt │ │ │ ├── mlibc-config.h.in │ │ │ ├── options │ │ │ ├── ansi │ │ │ │ ├── generic │ │ │ │ │ ├── assert-stubs.cpp │ │ │ │ │ ├── complex-stubs.cpp │ │ │ │ │ ├── complex │ │ │ │ │ │ ├── cabs.c │ │ │ │ │ │ ├── cabsf.c │ │ │ │ │ │ ├── cacos.c │ │ │ │ │ │ ├── cacosf.c │ │ │ │ │ │ ├── cacosh.c │ │ │ │ │ │ ├── cacoshf.c │ │ │ │ │ │ ├── carg.c │ │ │ │ │ │ ├── cargf.c │ │ │ │ │ │ ├── casin.c │ │ │ │ │ │ ├── casinf.c │ │ │ │ │ │ ├── casinh.c │ │ │ │ │ │ ├── casinhf.c │ │ │ │ │ │ ├── catan.c │ │ │ │ │ │ ├── catanf.c │ │ │ │ │ │ ├── catanh.c │ │ │ │ │ │ ├── catanhf.c │ │ │ │ │ │ ├── ccos.c │ │ │ │ │ │ ├── ccosf.c │ │ │ │ │ │ ├── ccosh.c │ │ │ │ │ │ ├── ccoshf.c │ │ │ │ │ │ ├── cephes_subr.c │ │ │ │ │ │ ├── cephes_subr.h │ │ │ │ │ │ ├── cephes_subrf.c │ │ │ │ │ │ ├── cephes_subrf.h │ │ │ │ │ │ ├── cexp.c │ │ │ │ │ │ ├── cexpf.c │ │ │ │ │ │ ├── cimag.c │ │ │ │ │ │ ├── cimagf.c │ │ │ │ │ │ ├── clog.c │ │ │ │ │ │ ├── clogf.c │ │ │ │ │ │ ├── conj.c │ │ │ │ │ │ ├── conjf.c │ │ │ │ │ │ ├── cpow.c │ │ │ │ │ │ ├── cpowf.c │ │ │ │ │ │ ├── cproj.c │ │ │ │ │ │ ├── cprojf.c │ │ │ │ │ │ ├── creal.c │ │ │ │ │ │ ├── crealf.c │ │ │ │ │ │ ├── csin.c │ │ │ │ │ │ ├── csinf.c │ │ │ │ │ │ ├── csinh.c │ │ │ │ │ │ ├── csinhf.c │ │ │ │ │ │ ├── csqrt.c │ │ │ │ │ │ ├── csqrtf.c │ │ │ │ │ │ ├── ctan.c │ │ │ │ │ │ ├── ctanf.c │ │ │ │ │ │ ├── ctanh.c │ │ │ │ │ │ ├── ctanhf.c │ │ │ │ │ │ └── fdlibm.h │ │ │ │ │ ├── ctype-stubs.cpp │ │ │ │ │ ├── environment.cpp │ │ │ │ │ ├── errno-stubs.cpp │ │ │ │ │ ├── fenv-stubs.cpp │ │ │ │ │ ├── file-io.cpp │ │ │ │ │ ├── inttypes-stubs.cpp │ │ │ │ │ ├── locale-stubs.cpp │ │ │ │ │ ├── math-stubs.ignored-cpp │ │ │ │ │ ├── signal-stubs.cpp │ │ │ │ │ ├── stdio-stubs.cpp │ │ │ │ │ ├── stdlib-stubs.cpp │ │ │ │ │ ├── string-stubs.cpp │ │ │ │ │ ├── time-stubs.cpp │ │ │ │ │ ├── wchar-stubs.cpp │ │ │ │ │ └── wctype.cpp │ │ │ │ ├── include │ │ │ │ │ ├── alloca.h │ │ │ │ │ ├── assert.h │ │ │ │ │ ├── bits │ │ │ │ │ │ └── ansi │ │ │ │ │ │ │ ├── fenv.h │ │ │ │ │ │ │ ├── time_t.h │ │ │ │ │ │ │ └── timespec.h │ │ │ │ │ ├── complex.h │ │ │ │ │ ├── ctype.h │ │ │ │ │ ├── errno.h │ │ │ │ │ ├── fenv.h │ │ │ │ │ ├── inttypes.h │ │ │ │ │ ├── limits.h │ │ │ │ │ ├── locale.h │ │ │ │ │ ├── math.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ ├── ansi-sysdeps.hpp │ │ │ │ │ │ ├── environment.hpp │ │ │ │ │ │ └── file-io.hpp │ │ │ │ │ ├── setjmp.h │ │ │ │ │ ├── signal.h │ │ │ │ │ ├── stdio.h │ │ │ │ │ ├── stdlib.h │ │ │ │ │ ├── string.h │ │ │ │ │ ├── time.h │ │ │ │ │ ├── wchar.h │ │ │ │ │ └── wctype.h │ │ │ │ ├── meson.build │ │ │ │ └── musl-generic-math │ │ │ │ │ ├── __cos.c │ │ │ │ │ ├── __cosdf.c │ │ │ │ │ ├── __cosl.c │ │ │ │ │ ├── __expo2.c │ │ │ │ │ ├── __expo2f.c │ │ │ │ │ ├── __fpclassify.c │ │ │ │ │ ├── __fpclassifyf.c │ │ │ │ │ ├── __fpclassifyl.c │ │ │ │ │ ├── __invtrigl.c │ │ │ │ │ ├── __invtrigl.h │ │ │ │ │ ├── __polevll.c │ │ │ │ │ ├── __rem_pio2.c │ │ │ │ │ ├── __rem_pio2_large.c │ │ │ │ │ ├── __rem_pio2f.c │ │ │ │ │ ├── __rem_pio2l.c │ │ │ │ │ ├── __signbit.c │ │ │ │ │ ├── __signbitf.c │ │ │ │ │ ├── __signbitl.c │ │ │ │ │ ├── __sin.c │ │ │ │ │ ├── __sindf.c │ │ │ │ │ ├── __sinl.c │ │ │ │ │ ├── __tan.c │ │ │ │ │ ├── __tandf.c │ │ │ │ │ ├── __tanl.c │ │ │ │ │ ├── acos.c │ │ │ │ │ ├── acosf.c │ │ │ │ │ ├── acosh.c │ │ │ │ │ ├── acoshf.c │ │ │ │ │ ├── acoshl.c │ │ │ │ │ ├── acosl.c │ │ │ │ │ ├── asin.c │ │ │ │ │ ├── asinf.c │ │ │ │ │ ├── asinh.c │ │ │ │ │ ├── asinhf.c │ │ │ │ │ ├── asinhl.c │ │ │ │ │ ├── asinl.c │ │ │ │ │ ├── atan.c │ │ │ │ │ ├── atan2.c │ │ │ │ │ ├── atan2f.c │ │ │ │ │ ├── atan2l.c │ │ │ │ │ ├── atanf.c │ │ │ │ │ ├── atanh.c │ │ │ │ │ ├── atanhf.c │ │ │ │ │ ├── atanhl.c │ │ │ │ │ ├── atanl.c │ │ │ │ │ ├── cbrt.c │ │ │ │ │ ├── cbrtf.c │ │ │ │ │ ├── cbrtl.c │ │ │ │ │ ├── ceil.c │ │ │ │ │ ├── ceilf.c │ │ │ │ │ ├── ceill.c │ │ │ │ │ ├── copysign.c │ │ │ │ │ ├── copysignf.c │ │ │ │ │ ├── copysignl.c │ │ │ │ │ ├── cos.c │ │ │ │ │ ├── cosf.c │ │ │ │ │ ├── cosh.c │ │ │ │ │ ├── coshf.c │ │ │ │ │ ├── coshl.c │ │ │ │ │ ├── cosl.c │ │ │ │ │ ├── erf.c │ │ │ │ │ ├── erff.c │ │ │ │ │ ├── erfl.c │ │ │ │ │ ├── exp.c │ │ │ │ │ ├── exp10.c │ │ │ │ │ ├── exp10f.c │ │ │ │ │ ├── exp10l.c │ │ │ │ │ ├── exp2.c │ │ │ │ │ ├── exp2f.c │ │ │ │ │ ├── exp2l.c │ │ │ │ │ ├── expf.c │ │ │ │ │ ├── expl.c │ │ │ │ │ ├── expm1.c │ │ │ │ │ ├── expm1f.c │ │ │ │ │ ├── expm1l.c │ │ │ │ │ ├── fabs.c │ │ │ │ │ ├── fabsf.c │ │ │ │ │ ├── fabsl.c │ │ │ │ │ ├── fdim.c │ │ │ │ │ ├── fdimf.c │ │ │ │ │ ├── fdiml.c │ │ │ │ │ ├── finite.c │ │ │ │ │ ├── finitef.c │ │ │ │ │ ├── floor.c │ │ │ │ │ ├── floorf.c │ │ │ │ │ ├── floorl.c │ │ │ │ │ ├── fma.c │ │ │ │ │ ├── fmaf.c │ │ │ │ │ ├── fmal.c │ │ │ │ │ ├── fmax.c │ │ │ │ │ ├── fmaxf.c │ │ │ │ │ ├── fmaxl.c │ │ │ │ │ ├── fmin.c │ │ │ │ │ ├── fminf.c │ │ │ │ │ ├── fminl.c │ │ │ │ │ ├── fmod.c │ │ │ │ │ ├── fmodf.c │ │ │ │ │ ├── fmodl.c │ │ │ │ │ ├── frexp.c │ │ │ │ │ ├── frexpf.c │ │ │ │ │ ├── frexpl.c │ │ │ │ │ ├── hypot.c │ │ │ │ │ ├── hypotf.c │ │ │ │ │ ├── hypotl.c │ │ │ │ │ ├── ilogb.c │ │ │ │ │ ├── ilogbf.c │ │ │ │ │ ├── ilogbl.c │ │ │ │ │ ├── j0.c │ │ │ │ │ ├── j0f.c │ │ │ │ │ ├── j1.c │ │ │ │ │ ├── j1f.c │ │ │ │ │ ├── jn.c │ │ │ │ │ ├── jnf.c │ │ │ │ │ ├── ldexp.c │ │ │ │ │ ├── ldexpf.c │ │ │ │ │ ├── ldexpl.c │ │ │ │ │ ├── lgamma.c │ │ │ │ │ ├── lgamma_r.c │ │ │ │ │ ├── lgammaf.c │ │ │ │ │ ├── lgammaf_r.c │ │ │ │ │ ├── lgammal.c │ │ │ │ │ ├── libm.h │ │ │ │ │ ├── llrint.c │ │ │ │ │ ├── llrintf.c │ │ │ │ │ ├── llrintl.c │ │ │ │ │ ├── llround.c │ │ │ │ │ ├── llroundf.c │ │ │ │ │ ├── llroundl.c │ │ │ │ │ ├── log.c │ │ │ │ │ ├── log10.c │ │ │ │ │ ├── log10f.c │ │ │ │ │ ├── log10l.c │ │ │ │ │ ├── log1p.c │ │ │ │ │ ├── log1pf.c │ │ │ │ │ ├── log1pl.c │ │ │ │ │ ├── log2.c │ │ │ │ │ ├── log2f.c │ │ │ │ │ ├── log2l.c │ │ │ │ │ ├── logb.c │ │ │ │ │ ├── logbf.c │ │ │ │ │ ├── logbl.c │ │ │ │ │ ├── logf.c │ │ │ │ │ ├── logl.c │ │ │ │ │ ├── lrint.c │ │ │ │ │ ├── lrintf.c │ │ │ │ │ ├── lrintl.c │ │ │ │ │ ├── lround.c │ │ │ │ │ ├── lroundf.c │ │ │ │ │ ├── lroundl.c │ │ │ │ │ ├── modf.c │ │ │ │ │ ├── modff.c │ │ │ │ │ ├── modfl.c │ │ │ │ │ ├── nan.c │ │ │ │ │ ├── nanf.c │ │ │ │ │ ├── nanl.c │ │ │ │ │ ├── nearbyint.c │ │ │ │ │ ├── nearbyintf.c │ │ │ │ │ ├── nearbyintl.c │ │ │ │ │ ├── nextafter.c │ │ │ │ │ ├── nextafterf.c │ │ │ │ │ ├── nextafterl.c │ │ │ │ │ ├── nexttoward.c │ │ │ │ │ ├── nexttowardf.c │ │ │ │ │ ├── nexttowardl.c │ │ │ │ │ ├── pow.c │ │ │ │ │ ├── powf.c │ │ │ │ │ ├── powl.c │ │ │ │ │ ├── remainder.c │ │ │ │ │ ├── remainderf.c │ │ │ │ │ ├── remainderl.c │ │ │ │ │ ├── remquo.c │ │ │ │ │ ├── remquof.c │ │ │ │ │ ├── remquol.c │ │ │ │ │ ├── rint.c │ │ │ │ │ ├── rintf.c │ │ │ │ │ ├── rintl.c │ │ │ │ │ ├── round.c │ │ │ │ │ ├── roundf.c │ │ │ │ │ ├── roundl.c │ │ │ │ │ ├── scalb.c │ │ │ │ │ ├── scalbf.c │ │ │ │ │ ├── scalbln.c │ │ │ │ │ ├── scalblnf.c │ │ │ │ │ ├── scalblnl.c │ │ │ │ │ ├── scalbn.c │ │ │ │ │ ├── scalbnf.c │ │ │ │ │ ├── scalbnl.c │ │ │ │ │ ├── signgam.c │ │ │ │ │ ├── significand.c │ │ │ │ │ ├── significandf.c │ │ │ │ │ ├── sin.c │ │ │ │ │ ├── sincos.c │ │ │ │ │ ├── sincosf.c │ │ │ │ │ ├── sincosl.c │ │ │ │ │ ├── sinf.c │ │ │ │ │ ├── sinh.c │ │ │ │ │ ├── sinhf.c │ │ │ │ │ ├── sinhl.c │ │ │ │ │ ├── sinl.c │ │ │ │ │ ├── sqrt.c │ │ │ │ │ ├── sqrtf.c │ │ │ │ │ ├── sqrtl.c │ │ │ │ │ ├── tan.c │ │ │ │ │ ├── tanf.c │ │ │ │ │ ├── tanh.c │ │ │ │ │ ├── tanhf.c │ │ │ │ │ ├── tanhl.c │ │ │ │ │ ├── tanl.c │ │ │ │ │ ├── tgamma.c │ │ │ │ │ ├── tgammaf.c │ │ │ │ │ ├── tgammal.c │ │ │ │ │ ├── trunc.c │ │ │ │ │ ├── truncf.c │ │ │ │ │ ├── truncl.c │ │ │ │ │ └── weak_alias.h │ │ │ ├── bsd │ │ │ │ ├── generic │ │ │ │ │ ├── arpa-nameser-stubs.cpp │ │ │ │ │ ├── ether.cpp │ │ │ │ │ └── getopt.cpp │ │ │ │ ├── include │ │ │ │ │ ├── arpa │ │ │ │ │ │ ├── nameser.h │ │ │ │ │ │ ├── nameser_compat.h │ │ │ │ │ │ └── telnet.h │ │ │ │ │ ├── bits │ │ │ │ │ │ └── bsd │ │ │ │ │ │ │ └── bsd_unistd.h │ │ │ │ │ ├── fstab.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ └── bsd-sysdeps.hpp │ │ │ │ │ ├── netinet │ │ │ │ │ │ └── ether.h │ │ │ │ │ └── sys │ │ │ │ │ │ └── queue.h │ │ │ │ └── meson.build │ │ │ ├── crypt │ │ │ │ ├── generic │ │ │ │ │ └── crypt-stubs.cpp │ │ │ │ ├── include │ │ │ │ │ └── crypt.h │ │ │ │ └── meson.build │ │ │ ├── elf │ │ │ │ ├── generic │ │ │ │ │ ├── phdr.cpp │ │ │ │ │ └── startup.cpp │ │ │ │ ├── include │ │ │ │ │ ├── elf.h │ │ │ │ │ ├── link.h │ │ │ │ │ └── mlibc │ │ │ │ │ │ └── elf │ │ │ │ │ │ └── startup.h │ │ │ │ └── meson.build │ │ │ ├── glibc │ │ │ │ ├── generic │ │ │ │ │ ├── err.cpp │ │ │ │ │ ├── error.cpp │ │ │ │ │ ├── execinfo.cpp │ │ │ │ │ ├── getopt-stubs.cpp │ │ │ │ │ ├── glibc-assert.cpp │ │ │ │ │ ├── glibc-signal.cpp │ │ │ │ │ ├── gshadow.cpp │ │ │ │ │ ├── personality.cpp │ │ │ │ │ ├── printf.cpp │ │ │ │ │ ├── resolv-stubs.cpp │ │ │ │ │ ├── shadow-stubs.cpp │ │ │ │ │ ├── stdio_ext-stubs.cpp │ │ │ │ │ ├── string.cpp │ │ │ │ │ ├── sys-ioctl.cpp │ │ │ │ │ └── sys-timex.cpp │ │ │ │ ├── include │ │ │ │ │ ├── ar.h │ │ │ │ │ ├── bits │ │ │ │ │ │ └── glibc │ │ │ │ │ │ │ ├── glibc_assert.h │ │ │ │ │ │ │ └── glibc_signal.h │ │ │ │ │ ├── endian.h │ │ │ │ │ ├── err.h │ │ │ │ │ ├── error.h │ │ │ │ │ ├── execinfo.h │ │ │ │ │ ├── features.h │ │ │ │ │ ├── getopt.h │ │ │ │ │ ├── gshadow.h │ │ │ │ │ ├── memory.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ └── glibc-sysdeps.hpp │ │ │ │ │ ├── net │ │ │ │ │ │ ├── ethernet.h │ │ │ │ │ │ ├── if_ppp.h │ │ │ │ │ │ ├── if_types.h │ │ │ │ │ │ └── route.h │ │ │ │ │ ├── netax25 │ │ │ │ │ │ └── ax25.h │ │ │ │ │ ├── netinet │ │ │ │ │ │ ├── icmp6.h │ │ │ │ │ │ └── in_systm.h │ │ │ │ │ ├── netipx │ │ │ │ │ │ └── ipx.h │ │ │ │ │ ├── netrom │ │ │ │ │ │ └── netrom.h │ │ │ │ │ ├── paths.h │ │ │ │ │ ├── printf.h │ │ │ │ │ ├── resolv.h │ │ │ │ │ ├── shadow.h │ │ │ │ │ ├── stdio_ext.h │ │ │ │ │ ├── sys │ │ │ │ │ │ ├── dir.h │ │ │ │ │ │ ├── endian.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── ioctl.h │ │ │ │ │ │ ├── kd.h │ │ │ │ │ │ ├── mtio.h │ │ │ │ │ │ ├── personality.h │ │ │ │ │ │ ├── procfs.h │ │ │ │ │ │ ├── reg.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── timeb.h │ │ │ │ │ │ ├── timex.h │ │ │ │ │ │ ├── ucontext.h │ │ │ │ │ │ └── user.h │ │ │ │ │ └── sysexits.h │ │ │ │ └── meson.build │ │ │ ├── iconv │ │ │ │ ├── generic │ │ │ │ │ └── iconv-stubs.cpp │ │ │ │ ├── include │ │ │ │ │ └── iconv.h │ │ │ │ └── meson.build │ │ │ ├── internal │ │ │ │ ├── aarch64-include │ │ │ │ │ └── mlibc │ │ │ │ │ │ ├── arch-defs.hpp │ │ │ │ │ │ └── thread.hpp │ │ │ │ ├── aarch64 │ │ │ │ │ ├── fenv.S │ │ │ │ │ ├── mlibc_crtend.S │ │ │ │ │ └── setjmp.S │ │ │ │ ├── gcc-extra │ │ │ │ │ ├── cxxabi.cpp │ │ │ │ │ └── mlibc_crtbegin.S │ │ │ │ ├── gcc │ │ │ │ │ ├── guard-abi.cpp │ │ │ │ │ ├── initfini.cpp │ │ │ │ │ └── stack_protector.cpp │ │ │ │ ├── generic │ │ │ │ │ ├── allocator.cpp │ │ │ │ │ ├── charcode.cpp │ │ │ │ │ ├── charset.cpp │ │ │ │ │ ├── debug.cpp │ │ │ │ │ ├── ensure.cpp │ │ │ │ │ ├── essential.cpp │ │ │ │ │ ├── frigg.cpp │ │ │ │ │ ├── global-config.cpp │ │ │ │ │ ├── inline-emitter.cpp │ │ │ │ │ ├── locale.cpp │ │ │ │ │ ├── sigset.cpp │ │ │ │ │ ├── strings.cpp │ │ │ │ │ └── ubsan.cpp │ │ │ │ ├── include │ │ │ │ │ ├── bits │ │ │ │ │ │ ├── cpu_set.h │ │ │ │ │ │ ├── ensure.h │ │ │ │ │ │ ├── ether_addr.h │ │ │ │ │ │ ├── inline-definition.h │ │ │ │ │ │ ├── machine.h │ │ │ │ │ │ ├── mbstate.h │ │ │ │ │ │ ├── nl_item.h │ │ │ │ │ │ ├── null.h │ │ │ │ │ │ ├── off_t.h │ │ │ │ │ │ ├── sigset_t.h │ │ │ │ │ │ ├── size_t.h │ │ │ │ │ │ ├── ssize_t.h │ │ │ │ │ │ ├── types.h │ │ │ │ │ │ ├── wchar.h │ │ │ │ │ │ ├── wchar_t.h │ │ │ │ │ │ └── wint_t.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ ├── all-sysdeps.hpp │ │ │ │ │ │ ├── allocator.hpp │ │ │ │ │ │ ├── bitutil.hpp │ │ │ │ │ │ ├── charcode.hpp │ │ │ │ │ │ ├── charset.hpp │ │ │ │ │ │ ├── debug.hpp │ │ │ │ │ │ ├── file-window.hpp │ │ │ │ │ │ ├── fsfd_target.hpp │ │ │ │ │ │ ├── global-config.hpp │ │ │ │ │ │ ├── internal-sysdeps.hpp │ │ │ │ │ │ ├── locale.hpp │ │ │ │ │ │ ├── lock.hpp │ │ │ │ │ │ ├── stack_protector.hpp │ │ │ │ │ │ ├── strings.hpp │ │ │ │ │ │ ├── strtofp.hpp │ │ │ │ │ │ ├── strtol.hpp │ │ │ │ │ │ ├── tcb.hpp │ │ │ │ │ │ └── tid.hpp │ │ │ │ │ └── stdint.h │ │ │ │ ├── riscv64-include │ │ │ │ │ └── mlibc │ │ │ │ │ │ ├── arch-defs.hpp │ │ │ │ │ │ └── thread.hpp │ │ │ │ ├── riscv64 │ │ │ │ │ ├── fenv.S │ │ │ │ │ ├── mlibc_crtend.S │ │ │ │ │ └── setjmp.S │ │ │ │ ├── x86 │ │ │ │ │ ├── mlibc_crtend.S │ │ │ │ │ └── setjmp.S │ │ │ │ ├── x86_64-include │ │ │ │ │ └── mlibc │ │ │ │ │ │ ├── arch-defs.hpp │ │ │ │ │ │ └── thread.hpp │ │ │ │ └── x86_64 │ │ │ │ │ ├── fenv.S │ │ │ │ │ ├── mlibc_crtend.S │ │ │ │ │ └── setjmp.S │ │ │ ├── intl │ │ │ │ ├── generic │ │ │ │ │ └── libintl-stubs.cpp │ │ │ │ ├── include │ │ │ │ │ └── libintl.h │ │ │ │ └── meson.build │ │ │ ├── linux │ │ │ │ ├── generic │ │ │ │ │ ├── capabilities.cpp │ │ │ │ │ ├── cpuset.cpp │ │ │ │ │ ├── ifaddrs.cpp │ │ │ │ │ ├── linux-unistd.cpp │ │ │ │ │ ├── malloc.cpp │ │ │ │ │ ├── mntent-stubs.cpp │ │ │ │ │ ├── module.cpp │ │ │ │ │ ├── pty-stubs.cpp │ │ │ │ │ ├── sched.cpp │ │ │ │ │ ├── sys-epoll.cpp │ │ │ │ │ ├── sys-eventfd.cpp │ │ │ │ │ ├── sys-fsuid.cpp │ │ │ │ │ ├── sys-inotify-stubs.cpp │ │ │ │ │ ├── sys-klog.cpp │ │ │ │ │ ├── sys-mount.cpp │ │ │ │ │ ├── sys-prctl-stubs.cpp │ │ │ │ │ ├── sys-ptrace-stubs.cpp │ │ │ │ │ ├── sys-quota.cpp │ │ │ │ │ ├── sys-random-stubs.cpp │ │ │ │ │ ├── sys-reboot.cpp │ │ │ │ │ ├── sys-sendfile-stubs.cpp │ │ │ │ │ ├── sys-signalfd.cpp │ │ │ │ │ ├── sys-swap.cpp │ │ │ │ │ ├── sys-sysinfo.cpp │ │ │ │ │ ├── sys-timerfd.cpp │ │ │ │ │ ├── sys-xattr.cpp │ │ │ │ │ ├── utmp-stubs.cpp │ │ │ │ │ └── utmpx.cpp │ │ │ │ ├── include │ │ │ │ │ ├── bits │ │ │ │ │ │ └── linux │ │ │ │ │ │ │ ├── cpu_set.h │ │ │ │ │ │ │ ├── linux_sched.h │ │ │ │ │ │ │ └── linux_unistd.h │ │ │ │ │ ├── ifaddrs.h │ │ │ │ │ ├── lastlog.h │ │ │ │ │ ├── linux │ │ │ │ │ │ └── libc-compat.h │ │ │ │ │ ├── malloc.h │ │ │ │ │ ├── memory.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ └── linux-sysdeps.hpp │ │ │ │ │ ├── mntent.h │ │ │ │ │ ├── module.h │ │ │ │ │ ├── netpacket │ │ │ │ │ │ └── packet.h │ │ │ │ │ ├── pty.h │ │ │ │ │ ├── scsi │ │ │ │ │ │ ├── scsi.h │ │ │ │ │ │ ├── scsi_ioctl.h │ │ │ │ │ │ └── sg.h │ │ │ │ │ ├── sys │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── eventfd.h │ │ │ │ │ │ ├── fsuid.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── klog.h │ │ │ │ │ │ ├── mount.h │ │ │ │ │ │ ├── prctl.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── quota.h │ │ │ │ │ │ ├── random.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── sendfile.h │ │ │ │ │ │ ├── signalfd.h │ │ │ │ │ │ ├── swap.h │ │ │ │ │ │ ├── sysinfo.h │ │ │ │ │ │ ├── sysmacros.h │ │ │ │ │ │ ├── timerfd.h │ │ │ │ │ │ ├── vt.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ ├── utmp.h │ │ │ │ │ ├── utmpx.h │ │ │ │ │ └── values.h │ │ │ │ └── meson.build │ │ │ ├── lsb │ │ │ │ ├── generic │ │ │ │ │ ├── auxv.cpp │ │ │ │ │ ├── dso_exit.cpp │ │ │ │ │ └── tls.cpp │ │ │ │ ├── include │ │ │ │ │ └── sys │ │ │ │ │ │ └── auxv.h │ │ │ │ └── meson.build │ │ │ ├── posix │ │ │ │ ├── generic │ │ │ │ │ ├── arpa-inet-stubs.cpp │ │ │ │ │ ├── dirent-stubs.cpp │ │ │ │ │ ├── dlfcn-stubs.cpp │ │ │ │ │ ├── fcntl-stubs.cpp │ │ │ │ │ ├── ftw-stubs.cpp │ │ │ │ │ ├── grp-stubs.cpp │ │ │ │ │ ├── langinfo-stubs.cpp │ │ │ │ │ ├── libgen-stubs.cpp │ │ │ │ │ ├── lookup.cpp │ │ │ │ │ ├── mqueue.cpp │ │ │ │ │ ├── net-if-stubs.cpp │ │ │ │ │ ├── netdb-stubs.cpp │ │ │ │ │ ├── poll.cpp │ │ │ │ │ ├── posix-file-io.cpp │ │ │ │ │ ├── posix_ctype.cpp │ │ │ │ │ ├── posix_locale.cpp │ │ │ │ │ ├── posix_signal.cpp │ │ │ │ │ ├── posix_stdio.cpp │ │ │ │ │ ├── posix_stdlib.cpp │ │ │ │ │ ├── posix_string.cpp │ │ │ │ │ ├── posix_time.cpp │ │ │ │ │ ├── pthread-stubs.cpp │ │ │ │ │ ├── pwd-stubs.cpp │ │ │ │ │ ├── resolv_conf.cpp │ │ │ │ │ ├── sched-stubs.cpp │ │ │ │ │ ├── search.cpp │ │ │ │ │ ├── semaphore-stubs.cpp │ │ │ │ │ ├── services.cpp │ │ │ │ │ ├── spawn-stubs.cpp │ │ │ │ │ ├── strings-stubs.cpp │ │ │ │ │ ├── sys-file-stubs.cpp │ │ │ │ │ ├── sys-ipc.cpp │ │ │ │ │ ├── sys-mman-stubs.cpp │ │ │ │ │ ├── sys-msg.cpp │ │ │ │ │ ├── sys-resource-stubs.cpp │ │ │ │ │ ├── sys-select-stubs.cpp │ │ │ │ │ ├── sys-sem.cpp │ │ │ │ │ ├── sys-shm.cpp │ │ │ │ │ ├── sys-socket-stubs.cpp │ │ │ │ │ ├── sys-stat-stubs.cpp │ │ │ │ │ ├── sys-statfs-stubs.cpp │ │ │ │ │ ├── sys-statvfs-stubs.cpp │ │ │ │ │ ├── sys-time-stubs.cpp │ │ │ │ │ ├── sys-times.cpp │ │ │ │ │ ├── sys-uio.cpp │ │ │ │ │ ├── sys-utsname.cpp │ │ │ │ │ ├── sys-wait-stubs.cpp │ │ │ │ │ ├── syslog-stubs.cpp │ │ │ │ │ ├── termios-stubs.cpp │ │ │ │ │ ├── time.cpp │ │ │ │ │ ├── ucontext-stubs.cpp │ │ │ │ │ ├── unistd-stubs.cpp │ │ │ │ │ ├── utime-stubs.cpp │ │ │ │ │ └── wordexp-stubs.cpp │ │ │ │ ├── include │ │ │ │ │ ├── arpa │ │ │ │ │ │ └── inet.h │ │ │ │ │ ├── bits │ │ │ │ │ │ └── posix │ │ │ │ │ │ │ ├── fd_set.h │ │ │ │ │ │ │ ├── id_t.h │ │ │ │ │ │ │ ├── in_addr_t.h │ │ │ │ │ │ │ ├── in_port_t.h │ │ │ │ │ │ │ ├── iovec.h │ │ │ │ │ │ │ ├── locale_t.h │ │ │ │ │ │ │ ├── posix_ctype.h │ │ │ │ │ │ │ ├── posix_locale.h │ │ │ │ │ │ │ ├── posix_signal.h │ │ │ │ │ │ │ ├── posix_stdio.h │ │ │ │ │ │ │ ├── posix_stdlib.h │ │ │ │ │ │ │ ├── posix_string.h │ │ │ │ │ │ │ ├── posix_time.h │ │ │ │ │ │ │ ├── posix_wctype.h │ │ │ │ │ │ │ ├── pthread_t.h │ │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ │ ├── timer_t.h │ │ │ │ │ │ │ └── timeval.h │ │ │ │ │ ├── byteswap.h │ │ │ │ │ ├── dirent.h │ │ │ │ │ ├── dlfcn.h │ │ │ │ │ ├── fcntl.h │ │ │ │ │ ├── fnmatch.h │ │ │ │ │ ├── ftw.h │ │ │ │ │ ├── glob.h │ │ │ │ │ ├── grp.h │ │ │ │ │ ├── langinfo.h │ │ │ │ │ ├── libgen.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ ├── lookup.hpp │ │ │ │ │ │ ├── posix-file-io.hpp │ │ │ │ │ │ ├── posix-sysdeps.hpp │ │ │ │ │ │ ├── resolv_conf.hpp │ │ │ │ │ │ └── services.hpp │ │ │ │ │ ├── mqueue.h │ │ │ │ │ ├── net │ │ │ │ │ │ ├── if.h │ │ │ │ │ │ └── if_arp.h │ │ │ │ │ ├── netdb.h │ │ │ │ │ ├── netinet │ │ │ │ │ │ ├── icmp6.h │ │ │ │ │ │ ├── if_ether.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ip.h │ │ │ │ │ │ ├── ip6.h │ │ │ │ │ │ ├── tcp.h │ │ │ │ │ │ └── udp.h │ │ │ │ │ ├── nl_types.h │ │ │ │ │ ├── poll.h │ │ │ │ │ ├── pthread.h │ │ │ │ │ ├── pwd.h │ │ │ │ │ ├── regex.h │ │ │ │ │ ├── sched.h │ │ │ │ │ ├── search.h │ │ │ │ │ ├── semaphore.h │ │ │ │ │ ├── spawn.h │ │ │ │ │ ├── strings.h │ │ │ │ │ ├── sys │ │ │ │ │ │ ├── file.h │ │ │ │ │ │ ├── ipc.h │ │ │ │ │ │ ├── mman.h │ │ │ │ │ │ ├── msg.h │ │ │ │ │ │ ├── param.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── select.h │ │ │ │ │ │ ├── sem.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── syslog.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── times.h │ │ │ │ │ │ ├── ttydefaults.h │ │ │ │ │ │ ├── types.h │ │ │ │ │ │ ├── uio.h │ │ │ │ │ │ ├── un.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vfs.h │ │ │ │ │ │ └── wait.h │ │ │ │ │ ├── syslog.h │ │ │ │ │ ├── termios.h │ │ │ │ │ ├── ucontext.h │ │ │ │ │ ├── unistd.h │ │ │ │ │ ├── utime.h │ │ │ │ │ └── wordexp.h │ │ │ │ ├── meson.build │ │ │ │ └── musl-generic-regex │ │ │ │ │ ├── fnmatch.c │ │ │ │ │ ├── glob.c │ │ │ │ │ ├── regcomp.c │ │ │ │ │ ├── regerror.c │ │ │ │ │ ├── regexec.c │ │ │ │ │ ├── tre-mem.c │ │ │ │ │ └── tre.h │ │ │ └── rtdl │ │ │ │ ├── aarch64 │ │ │ │ ├── entry.S │ │ │ │ └── runtime.S │ │ │ │ ├── generic │ │ │ │ ├── linker.cpp │ │ │ │ ├── linker.hpp │ │ │ │ └── main.cpp │ │ │ │ ├── include │ │ │ │ └── mlibc │ │ │ │ │ ├── rtdl-abi.hpp │ │ │ │ │ ├── rtdl-config.hpp │ │ │ │ │ └── rtdl-sysdeps.hpp │ │ │ │ ├── riscv64 │ │ │ │ ├── entry.S │ │ │ │ └── runtime.S │ │ │ │ └── x86_64 │ │ │ │ ├── entry.S │ │ │ │ └── runtime.S │ │ │ ├── scripts │ │ │ └── abi-link.sh │ │ │ ├── subprojects │ │ │ ├── cxxshim.wrap │ │ │ └── frigg.wrap │ │ │ ├── sysdeps │ │ │ ├── aero │ │ │ │ ├── crt-x86_64 │ │ │ │ │ └── crt0.S │ │ │ │ ├── generic │ │ │ │ │ ├── aero.cpp │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── filesystem.cpp │ │ │ │ │ ├── signals.S │ │ │ │ │ ├── signals.cpp │ │ │ │ │ ├── sockets.cpp │ │ │ │ │ ├── thread.cpp │ │ │ │ │ ├── thread_entry.S │ │ │ │ │ └── time.cpp │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ ├── aero │ │ │ │ │ │ └── syscall.h │ │ │ │ │ └── mlibc │ │ │ │ │ │ └── thread-entry.hpp │ │ │ │ └── meson.build │ │ │ ├── dripos │ │ │ │ ├── crt-x86_64 │ │ │ │ │ └── crt1.S │ │ │ │ ├── generic │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── generic.cpp │ │ │ │ │ ├── thread.cpp │ │ │ │ │ └── thread_entry.S │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ └── mlibc │ │ │ │ │ │ └── thread-entry.hpp │ │ │ │ └── meson.build │ │ │ ├── ironclad │ │ │ │ ├── crt-x86_64 │ │ │ │ │ └── crt0.S │ │ │ │ ├── generic │ │ │ │ │ ├── entry.cpp │ │ │ │ │ └── generic.cpp │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ └── sys │ │ │ │ │ │ ├── ironclad.h │ │ │ │ │ │ └── syscall.h │ │ │ │ └── meson.build │ │ │ ├── kot │ │ │ │ ├── generic │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── filesystem.cpp │ │ │ │ │ ├── generic.cpp │ │ │ │ │ ├── signal.cpp │ │ │ │ │ └── signal.s │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── vt.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ └── kot │ │ │ │ │ │ └── syscall.h │ │ │ │ ├── meson.build │ │ │ │ └── x86_64 │ │ │ │ │ ├── arch-syscall.cpp │ │ │ │ │ └── crt-src │ │ │ │ │ └── crt0.S │ │ │ ├── lemon │ │ │ │ ├── crt-x86_64 │ │ │ │ │ └── crt0.S │ │ │ │ ├── generic │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── filesystem.cpp │ │ │ │ │ ├── lemon.cpp │ │ │ │ │ ├── signals.cpp │ │ │ │ │ ├── sockets.cpp │ │ │ │ │ ├── thread.cpp │ │ │ │ │ └── thread_entry.S │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ ├── lemon │ │ │ │ │ │ └── syscall.h │ │ │ │ │ └── mlibc │ │ │ │ │ │ └── thread-entry.hpp │ │ │ │ └── meson.build │ │ │ ├── linux │ │ │ │ ├── aarch64 │ │ │ │ │ ├── arch-syscall.cpp │ │ │ │ │ ├── cp_syscall.S │ │ │ │ │ ├── crt-src │ │ │ │ │ │ ├── Scrt1.S │ │ │ │ │ │ ├── crt1.S │ │ │ │ │ │ ├── crti.S │ │ │ │ │ │ └── crtn.S │ │ │ │ │ ├── signals.S │ │ │ │ │ ├── syscallnos.h │ │ │ │ │ └── thread_entry.S │ │ │ │ ├── generic │ │ │ │ │ ├── cxx-syscall.hpp │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── sysdeps.cpp │ │ │ │ │ └── thread.cpp │ │ │ │ ├── include-internal │ │ │ │ │ └── linux │ │ │ │ │ │ └── unistd.h │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── vt.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ ├── bits │ │ │ │ │ │ ├── syscall.h │ │ │ │ │ │ └── syscall_aliases.h │ │ │ │ │ ├── mlibc │ │ │ │ │ │ └── thread-entry.hpp │ │ │ │ │ ├── sys │ │ │ │ │ │ └── syscall.h │ │ │ │ │ └── syscall.h │ │ │ │ ├── meson.build │ │ │ │ ├── mlibc-gcc.in │ │ │ │ ├── mlibc-gcc.specs.in │ │ │ │ ├── riscv64 │ │ │ │ │ ├── arch-syscall.cpp │ │ │ │ │ ├── cp_syscall.S │ │ │ │ │ ├── crt-src │ │ │ │ │ │ ├── Scrt1.S │ │ │ │ │ │ ├── crt1.S │ │ │ │ │ │ ├── crti.S │ │ │ │ │ │ └── crtn.S │ │ │ │ │ ├── signals.S │ │ │ │ │ ├── syscallnos.h │ │ │ │ │ └── thread_entry.S │ │ │ │ ├── update-syscall-list.py │ │ │ │ └── x86_64 │ │ │ │ │ ├── arch-syscall.cpp │ │ │ │ │ ├── cp_syscall.S │ │ │ │ │ ├── crt-src │ │ │ │ │ ├── Scrt1.S │ │ │ │ │ ├── crt1.S │ │ │ │ │ ├── crti.S │ │ │ │ │ └── crtn.S │ │ │ │ │ ├── signals.S │ │ │ │ │ ├── syscallnos.h │ │ │ │ │ └── thread_entry.S │ │ │ ├── lyre │ │ │ │ ├── generic │ │ │ │ │ ├── entry.cpp │ │ │ │ │ ├── generic.cpp │ │ │ │ │ ├── thread.S │ │ │ │ │ └── thread.cpp │ │ │ │ ├── include │ │ │ │ │ ├── abi-bits │ │ │ │ │ │ ├── access.h │ │ │ │ │ │ ├── auxv.h │ │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ │ ├── dev_t.h │ │ │ │ │ │ ├── epoll.h │ │ │ │ │ │ ├── errno.h │ │ │ │ │ │ ├── fcntl.h │ │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ │ ├── gid_t.h │ │ │ │ │ │ ├── in.h │ │ │ │ │ │ ├── ino_t.h │ │ │ │ │ │ ├── inotify.h │ │ │ │ │ │ ├── ioctls.h │ │ │ │ │ │ ├── limits.h │ │ │ │ │ │ ├── mode_t.h │ │ │ │ │ │ ├── mqueue.h │ │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ │ ├── packet.h │ │ │ │ │ │ ├── pid_t.h │ │ │ │ │ │ ├── poll.h │ │ │ │ │ │ ├── ptrace.h │ │ │ │ │ │ ├── reboot.h │ │ │ │ │ │ ├── resource.h │ │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ │ ├── shm.h │ │ │ │ │ │ ├── signal.h │ │ │ │ │ │ ├── socket.h │ │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ │ ├── stat.h │ │ │ │ │ │ ├── statfs.h │ │ │ │ │ │ ├── statvfs.h │ │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ │ ├── termios.h │ │ │ │ │ │ ├── time.h │ │ │ │ │ │ ├── uid_t.h │ │ │ │ │ │ ├── utsname.h │ │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ │ ├── wait.h │ │ │ │ │ │ └── xattr.h │ │ │ │ │ └── lyre │ │ │ │ │ │ └── syscall.h │ │ │ │ ├── meson.build │ │ │ │ └── x86_64 │ │ │ │ │ └── crt-src │ │ │ │ │ ├── crt0.S │ │ │ │ │ ├── crti.S │ │ │ │ │ └── crtn.S │ │ │ └── managarm │ │ │ │ ├── aarch64 │ │ │ │ ├── crt-src │ │ │ │ │ └── crt0.S │ │ │ │ ├── signals.S │ │ │ │ ├── thread.cpp │ │ │ │ └── thread_entry.S │ │ │ │ ├── generic │ │ │ │ ├── drm.cpp │ │ │ │ ├── ensure.cpp │ │ │ │ ├── entry.cpp │ │ │ │ ├── file.cpp │ │ │ │ ├── fork-exec.cpp │ │ │ │ ├── ioctl.cpp │ │ │ │ ├── memory.cpp │ │ │ │ ├── mount.cpp │ │ │ │ ├── net.cpp │ │ │ │ ├── signals.cpp │ │ │ │ ├── socket.cpp │ │ │ │ └── time.cpp │ │ │ │ ├── include │ │ │ │ ├── abi-bits │ │ │ │ │ ├── access.h │ │ │ │ │ ├── auxv.h │ │ │ │ │ ├── blkcnt_t.h │ │ │ │ │ ├── blksize_t.h │ │ │ │ │ ├── clockid_t.h │ │ │ │ │ ├── dev_t.h │ │ │ │ │ ├── epoll.h │ │ │ │ │ ├── errno.h │ │ │ │ │ ├── fcntl.h │ │ │ │ │ ├── fsblkcnt_t.h │ │ │ │ │ ├── fsfilcnt_t.h │ │ │ │ │ ├── gid_t.h │ │ │ │ │ ├── in.h │ │ │ │ │ ├── ino_t.h │ │ │ │ │ ├── inotify.h │ │ │ │ │ ├── ioctls.h │ │ │ │ │ ├── limits.h │ │ │ │ │ ├── mode_t.h │ │ │ │ │ ├── mqueue.h │ │ │ │ │ ├── nlink_t.h │ │ │ │ │ ├── packet.h │ │ │ │ │ ├── pid_t.h │ │ │ │ │ ├── poll.h │ │ │ │ │ ├── ptrace.h │ │ │ │ │ ├── reboot.h │ │ │ │ │ ├── resource.h │ │ │ │ │ ├── seek-whence.h │ │ │ │ │ ├── shm.h │ │ │ │ │ ├── signal.h │ │ │ │ │ ├── socket.h │ │ │ │ │ ├── socklen_t.h │ │ │ │ │ ├── stat.h │ │ │ │ │ ├── statfs.h │ │ │ │ │ ├── statvfs.h │ │ │ │ │ ├── suseconds_t.h │ │ │ │ │ ├── termios.h │ │ │ │ │ ├── time.h │ │ │ │ │ ├── uid_t.h │ │ │ │ │ ├── utsname.h │ │ │ │ │ ├── vm-flags.h │ │ │ │ │ ├── wait.h │ │ │ │ │ └── xattr.h │ │ │ │ └── mlibc │ │ │ │ │ ├── posix-pipe.hpp │ │ │ │ │ └── thread-entry.hpp │ │ │ │ ├── meson.build │ │ │ │ ├── rtdl-generic │ │ │ │ └── support.cpp │ │ │ │ └── x86_64 │ │ │ │ ├── crt-src │ │ │ │ ├── Scrt1.S │ │ │ │ └── crt0.S │ │ │ │ ├── signals.S │ │ │ │ ├── thread.cpp │ │ │ │ └── thread_entry.S │ │ │ └── tests │ │ │ ├── ansi │ │ │ ├── abs.c │ │ │ ├── alloc.c │ │ │ ├── creal-cimag.c │ │ │ ├── fenv.c │ │ │ ├── fopen.c │ │ │ ├── locale.c │ │ │ ├── longjmp.c │ │ │ ├── memmem.c │ │ │ ├── qsort.c │ │ │ ├── snprintf.c │ │ │ ├── sprintf.c │ │ │ ├── sscanf.c │ │ │ ├── strchr.c │ │ │ ├── strftime.c │ │ │ ├── strrchr.c │ │ │ ├── strtol.c │ │ │ ├── strverscmp.c │ │ │ ├── timegm.c │ │ │ ├── ungetc.c │ │ │ ├── utf8.c │ │ │ ├── wcsdup.c │ │ │ ├── wcsncasecmp.c │ │ │ ├── wcsrtombs.c │ │ │ └── wmemcmp.c │ │ │ ├── bsd │ │ │ ├── ns_get_put.c │ │ │ ├── reallocarray.c │ │ │ ├── sbrk.c │ │ │ └── strl.c │ │ │ ├── glibc │ │ │ ├── error.c │ │ │ ├── error.py │ │ │ ├── error_at_line.c │ │ │ ├── error_at_line.py │ │ │ ├── error_expect_fail.c │ │ │ ├── error_message_count.c │ │ │ ├── error_one_per_line.c │ │ │ ├── error_print_progname.c │ │ │ ├── ffsl-ffsll.c │ │ │ ├── getopt.c │ │ │ ├── gnu-basename.c │ │ │ └── linux-syscall.c │ │ │ ├── linux │ │ │ ├── cpuset.c │ │ │ ├── pthread_attr.c │ │ │ ├── pthread_setname_np.c │ │ │ └── xattr.c │ │ │ ├── meson.build │ │ │ ├── posix │ │ │ ├── abort.c │ │ │ ├── accept4.c │ │ │ ├── access.c │ │ │ ├── alarm.c │ │ │ ├── basename.c │ │ │ ├── dprintf.c │ │ │ ├── fdopen.c │ │ │ ├── ffs.c │ │ │ ├── flockfile.c │ │ │ ├── getaddrinfo.c │ │ │ ├── getcwd.c │ │ │ ├── getdelim.c │ │ │ ├── getnameinfo.c │ │ │ ├── getservbyname.c │ │ │ ├── getservbyport.c │ │ │ ├── grp.c │ │ │ ├── if_indextoname.c │ │ │ ├── index.c │ │ │ ├── inet_ntop.c │ │ │ ├── inet_pton.c │ │ │ ├── memrchr.c │ │ │ ├── open_memstream.c │ │ │ ├── pause.c │ │ │ ├── popen.c │ │ │ ├── posix-timer.c │ │ │ ├── posix_memalign.c │ │ │ ├── posix_spawn.c │ │ │ ├── pthread_atfork.c │ │ │ ├── pthread_attr.c │ │ │ ├── pthread_barrier.c │ │ │ ├── pthread_cancel.c │ │ │ ├── pthread_cleanup.c │ │ │ ├── pthread_cond.c │ │ │ ├── pthread_create.c │ │ │ ├── pthread_key.c │ │ │ ├── pthread_kill.c │ │ │ ├── pthread_mutex.c │ │ │ ├── pthread_rwlock.c │ │ │ ├── pthread_schedparam.c │ │ │ ├── pthread_thread_local.c │ │ │ ├── pwd.c │ │ │ ├── readv-writev.c │ │ │ ├── realpath.c │ │ │ ├── regex.c │ │ │ ├── rindex.c │ │ │ ├── rlimits.c │ │ │ ├── search.c │ │ │ ├── setpriority.c │ │ │ ├── sigaltstack.c │ │ │ ├── sigsuspend.c │ │ │ ├── sigtimedwait.c │ │ │ ├── strdupa.c │ │ │ ├── string.c │ │ │ ├── system.c │ │ │ ├── time.c │ │ │ ├── timer.c │ │ │ ├── vfork.c │ │ │ ├── wcwidth.c │ │ │ └── wordexp.c │ │ │ └── rtdl │ │ │ ├── dl_iterate_phdr │ │ │ ├── libbar.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── meson.build │ │ │ ├── noload-promote │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── preinit │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── rtld_next │ │ │ ├── libbar.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── scope1 │ │ │ ├── libbar.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── scope2 │ │ │ ├── libbar.c │ │ │ ├── libbaz.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── scope3 │ │ │ ├── libbar.c │ │ │ ├── libbaz.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── scope4 │ │ │ ├── libbar.c │ │ │ ├── libbaz.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ ├── scope5 │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ │ │ └── soname │ │ │ ├── libbar.c │ │ │ ├── libfoo.c │ │ │ ├── meson.build │ │ │ └── test.c │ └── modules │ │ ├── ahci │ │ ├── source │ │ │ ├── controller.c │ │ │ ├── controller.h │ │ │ ├── device.c │ │ │ ├── device.h │ │ │ ├── main.c │ │ │ ├── main.h │ │ │ ├── port.c │ │ │ └── port.h │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── boot │ │ ├── source │ │ │ ├── main.c │ │ │ └── tga │ │ │ │ ├── tga.c │ │ │ │ └── tga.h │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── devconsole │ │ ├── source │ │ │ ├── console │ │ │ │ ├── ansi.h │ │ │ │ ├── console.c │ │ │ │ └── console.h │ │ │ ├── interface.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── devfb │ │ ├── source │ │ │ ├── interface.c │ │ │ ├── key.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── devfs │ │ ├── source │ │ │ ├── core.c │ │ │ ├── core.h │ │ │ ├── interface.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── devpower │ │ ├── source │ │ │ ├── interface.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── e1000 │ │ ├── source │ │ │ ├── controller.c │ │ │ ├── controller.h │ │ │ ├── e1000_regs.h │ │ │ ├── e1000x_regs.h │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── fat32 │ │ ├── source │ │ │ ├── core.c │ │ │ ├── core.h │ │ │ ├── interface.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── hid │ │ ├── source │ │ │ ├── interface.c │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── net │ │ ├── source │ │ │ ├── arp.c │ │ │ ├── arp.h │ │ │ ├── dhcp.c │ │ │ ├── dhcp.h │ │ │ ├── dhcp_header.h │ │ │ ├── ethernet.c │ │ │ ├── ethernet.h │ │ │ ├── interface.c │ │ │ ├── interface.h │ │ │ ├── ip.c │ │ │ ├── ip.h │ │ │ ├── main.c │ │ │ ├── main.h │ │ │ ├── protocols.h │ │ │ ├── socket.c │ │ │ ├── socket.h │ │ │ ├── tcp.c │ │ │ ├── tcp.h │ │ │ ├── udp.c │ │ │ └── udp.h │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── pci │ │ ├── source │ │ │ ├── device.c │ │ │ ├── interface.c │ │ │ ├── list.c │ │ │ ├── list.h │ │ │ ├── main.c │ │ │ ├── main.h │ │ │ ├── pci.c │ │ │ ├── pcie.c │ │ │ └── pcie.h │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── ps2 │ │ ├── source │ │ │ ├── core.c │ │ │ ├── core.h │ │ │ ├── keyboard.c │ │ │ ├── main.c │ │ │ └── mouse.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── rtc │ │ ├── source │ │ │ ├── core.c │ │ │ ├── core.h │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── storage │ │ ├── source │ │ │ ├── interface.c │ │ │ ├── interface.h │ │ │ ├── main.c │ │ │ ├── main.h │ │ │ ├── partition.c │ │ │ ├── partition.h │ │ │ └── partition │ │ │ │ ├── crc32.c │ │ │ │ ├── crc32.h │ │ │ │ ├── gpt.c │ │ │ │ ├── gpt.h │ │ │ │ ├── mbr.c │ │ │ │ └── mbr.h │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ ├── test │ │ ├── source │ │ │ └── main.c │ │ └── target │ │ │ └── amd64 │ │ │ ├── .gitignore │ │ │ └── makefile │ │ └── vfs │ │ ├── source │ │ ├── core.c │ │ ├── core.h │ │ ├── initrd.c │ │ ├── main.c │ │ ├── system.c │ │ └── system.h │ │ └── target │ │ └── amd64 │ │ ├── .gitignore │ │ └── makefile ├── extern │ ├── .gitignore │ └── makefile └── tools │ ├── .gitignore │ ├── build.sh │ └── ksym.c └── target ├── .gitignore ├── boot-disk.sh ├── build └── liamd.sh ├── disk.cfg ├── host-installer.sh ├── initrd ├── system │ ├── console │ │ └── fonts │ │ │ └── vga.bin │ ├── default │ │ └── scancode.scd │ └── starter │ │ └── modules.cfg └── tools │ ├── .gitignore │ ├── build.sh │ └── ksym.c ├── limine.cfg └── makefile /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Ignore languages on linguist 5 | *.bat linguist-vendored=true 6 | *.sh linguist-vendored=true 7 | *.txt linguist-vendored=true 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.link 2 | *.xbstrap 3 | 4 | tools/*/ 5 | bundled/ 6 | sysroot/ 7 | packages/ 8 | toolchain/ 9 | pkg-builds/ 10 | tool-builds/ 11 | -------------------------------------------------------------------------------- /bootstrap/cross-file.ini: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'x86_64-kot-gcc' 3 | cpp = 'x86_64-kot-g++' 4 | ar = 'x86_64-kot-ar' 5 | ld = 'x86_64-kot-ld' 6 | 7 | [host_machine] 8 | system = 'kot' 9 | cpu_family = 'x86_64' 10 | cpu = 'x86_64' 11 | endian = 'little' -------------------------------------------------------------------------------- /meta/images/laptop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/images/laptop.png -------------------------------------------------------------------------------- /meta/screenshots/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/0.png -------------------------------------------------------------------------------- /meta/screenshots/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/1.png -------------------------------------------------------------------------------- /meta/screenshots/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/10.png -------------------------------------------------------------------------------- /meta/screenshots/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/2.png -------------------------------------------------------------------------------- /meta/screenshots/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/3.png -------------------------------------------------------------------------------- /meta/screenshots/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/4.png -------------------------------------------------------------------------------- /meta/screenshots/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/5.png -------------------------------------------------------------------------------- /meta/screenshots/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/6.png -------------------------------------------------------------------------------- /meta/screenshots/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/7.png -------------------------------------------------------------------------------- /meta/screenshots/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/8.png -------------------------------------------------------------------------------- /meta/screenshots/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/meta/screenshots/9.png -------------------------------------------------------------------------------- /sources/core/apps/datetime/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/bash.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/bash.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/default.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/default.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/doom.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/doom.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/explorer.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/explorer.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/lock.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/lock.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/lua.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/lua.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/nyancat.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/nyancat.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/reboot.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/reboot.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/shutdown.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/shutdown.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/store-ui.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/store-ui.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/weather-ui.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/weather-ui.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/icons/welcome.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/icons/welcome.tga -------------------------------------------------------------------------------- /sources/core/apps/desktop/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/desktop/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/desktop/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/desktop/res/desktop.json: -------------------------------------------------------------------------------- 1 | { 2 | "default_icon_path": "/usr/bin/icons/default.tga", 3 | "font_path": "/usr/bin/res/desktop/default_font.ttf", 4 | "wallpaper_path": "/usr/bin/res/desktop/default_wallpaper.jpg" 5 | } 6 | -------------------------------------------------------------------------------- /sources/core/apps/desktop/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/default.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/default.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/directory.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/directory.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/file.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/file.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/image.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/image.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/json.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/json.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/text.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/text.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/res/ttf.tga: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/explorer/res/ttf.tga -------------------------------------------------------------------------------- /sources/core/apps/explorer/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/image-reader/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/image-reader/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/image-reader/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/image-reader/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/image-reader/res/image-reader.json: -------------------------------------------------------------------------------- 1 | { 2 | "font_path": "/usr/bin/res/image-reader/default_font.ttf", 3 | "wallpaper_path": "/usr/bin/res/image-reader/default_wallpaper.jpg" 4 | } 5 | -------------------------------------------------------------------------------- /sources/core/apps/image-reader/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/init/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/ip/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar -------------------------------------------------------------------------------- /sources/core/apps/llm/docs/jan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/llm/docs/jan.png -------------------------------------------------------------------------------- /sources/core/apps/llm/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar -------------------------------------------------------------------------------- /sources/core/apps/lock/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/lock/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/lock/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/lock/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/lock/res/lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "font_path": "/usr/bin/res/lock/default_font.ttf", 3 | "wallpaper_path": "/usr/bin/res/lock/default_wallpaper.jpg", 4 | "pin_expected": "" 5 | } 6 | -------------------------------------------------------------------------------- /sources/core/apps/lock/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/lua/.gitignore: -------------------------------------------------------------------------------- 1 | source/ -------------------------------------------------------------------------------- /sources/core/apps/lua/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/reboot/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar -------------------------------------------------------------------------------- /sources/core/apps/shutdown/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar -------------------------------------------------------------------------------- /sources/core/apps/store-ui/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/store-ui/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/store-ui/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/store-ui/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/store-ui/res/store-ui.json: -------------------------------------------------------------------------------- 1 | { 2 | "font_path": "/usr/bin/res/store-ui/default_font.ttf", 3 | "wallpaper_path": "/usr/bin/res/store-ui/default_wallpaper.jpg" 4 | } 5 | -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/deps/deps.h: -------------------------------------------------------------------------------- 1 | #ifndef DEPS_H 2 | #define DEPS_H 3 | 4 | int check_dependencies(char* app_info_json_path, char** installation_file_url, char** executable_relative_path); 5 | 6 | #endif // DEPS_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/download/download.h: -------------------------------------------------------------------------------- 1 | #ifndef DOWNLOAD_H 2 | #define DOWNLOAD_H 3 | 4 | #include 5 | #include 6 | 7 | int download_file(CURL* curl, char* url, char* path, bool force_download); 8 | 9 | #endif // DOWNLOAD_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/icon/icon.h: -------------------------------------------------------------------------------- 1 | #ifndef ICON_H 2 | #define ICON_H 3 | 4 | int add_element_to_json(const char* cwd_path, const char* icon_path, const char* executable_path, const char* app_name); 5 | int remove_element_from_json(const char* app_name); 6 | 7 | #endif // ICON_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/install/install.h: -------------------------------------------------------------------------------- 1 | #ifndef INSTALL_H 2 | #define INSTALL_H 3 | 4 | #include 5 | #include 6 | 7 | int install_app(CURL* curl, char* url, char* name, bool reinstall); 8 | char** get_installed_apps(char* name); 9 | void free_get_installed_apps(char** apps); 10 | 11 | #endif // INSTALL_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/launch/launch.h: -------------------------------------------------------------------------------- 1 | #ifndef LAUNCH_H 2 | #define LAUNCH_H 3 | 4 | int launch_app(char* name, int argc, char *argv[]); 5 | 6 | #endif // LAUNCH_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/remove/remove.h: -------------------------------------------------------------------------------- 1 | #ifndef REMOVE_H 2 | #define REMOVE_H 3 | 4 | int remove_app(char* name, bool check_user); 5 | 6 | #endif // REMOVE_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/untar/untar.h: -------------------------------------------------------------------------------- 1 | #ifndef UNTAR_H 2 | #define UNTAR_H 3 | 4 | #include 5 | 6 | int untar(const char* tar_path, const char* dst_path); 7 | 8 | #endif // UNTAR_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/source/update/update.h: -------------------------------------------------------------------------------- 1 | #ifndef UPDATE_H 2 | #define UPDATE_H 3 | 4 | typedef struct{ 5 | char* buffer; 6 | size_t size; 7 | }fetch_app_info_t; 8 | 9 | #include 10 | #include 11 | 12 | int update_app(CURL* curl, char* name); 13 | 14 | #endif // UPDATE_H -------------------------------------------------------------------------------- /sources/core/apps/store-ui/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/text-reader/res/default_bitmap_font.pcf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/text-reader/res/default_bitmap_font.pcf -------------------------------------------------------------------------------- /sources/core/apps/text-reader/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/text-reader/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/text-reader/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/text-reader/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/text-reader/res/text-reader.json: -------------------------------------------------------------------------------- 1 | { 2 | "font_path": "/usr/bin/res/text-reader/default_font.ttf", 3 | "font_bitmap_path": "/usr/bin/res/text-reader/default_bitmap_font.pcf", 4 | "background_color": 2566178, 5 | "line_count_color": 6974309, 6 | "wallpaper_path": "/usr/bin/res/text-reader/default_wallpaper.jpg" 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/apps/text-reader/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/clear.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/clear.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/cloudy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/cloudy.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/default_font.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/default_font.ttf -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/default_wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/default_wallpaper.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/mist.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/mist.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/overcast.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/overcast.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/partly_cloudy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/partly_cloudy.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/sunny.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/weather-ui/res/sunny.jpg -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/res/weather-ui.json: -------------------------------------------------------------------------------- 1 | { 2 | "font_path": "/usr/bin/res/weather-ui/default_font.ttf", 3 | "wallpaper_path": "/usr/bin/res/weather-ui/" 4 | } 5 | -------------------------------------------------------------------------------- /sources/core/apps/weather-ui/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/apps/weather/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | **/tar 4 | -------------------------------------------------------------------------------- /sources/core/apps/welcome/res/welcome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/welcome/res/welcome.ttf -------------------------------------------------------------------------------- /sources/core/apps/welcome/res/welcome0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/welcome/res/welcome0.jpg -------------------------------------------------------------------------------- /sources/core/apps/welcome/res/welcome1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/welcome/res/welcome1.jpg -------------------------------------------------------------------------------- /sources/core/apps/welcome/res/welcome2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/welcome/res/welcome2.jpg -------------------------------------------------------------------------------- /sources/core/apps/welcome/res/welcome3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/apps/welcome/res/welcome3.jpg -------------------------------------------------------------------------------- /sources/core/apps/welcome/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/aarch64/impl/pmm.h: -------------------------------------------------------------------------------- 1 | #ifndef _AARCH64_IMPL_PMM_H 2 | #define _AARCH64_IMPL_PMM_H 3 | 4 | #define PAGE_SIZE 0x1000 5 | 6 | #endif // _AARCH64_IMPL_PMM_H -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/aarch64/serial.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | // this is the qemu port!! 4 | static volatile unsigned int * const UART0DR = (unsigned int *) 0x09000000; 5 | 6 | int serial_init(void) { 7 | return 0; 8 | } 9 | 10 | void serial_write(char chr) { 11 | *UART0DR = chr; 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/aarch64/vmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/boot.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_BOOT_H 2 | #define _AMD64_BOOT_H 1 3 | 4 | void acpi_init(void); 5 | 6 | #endif -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/context.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_CONTEXT_H 2 | #define _AMD64_CONTEXT_H 3 | 4 | #include 5 | 6 | #endif -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/idt.s: -------------------------------------------------------------------------------- 1 | section .text 2 | 3 | global idt_update 4 | 5 | idt_update: 6 | lidt [rdi] 7 | ret -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/impl/arguments.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_IMPL_ARGUMENTS_H 2 | #define _AMD64_IMPL_ARGUMENTS_H 3 | 4 | #define MAX_ARGUMENTS_COUNT 6 5 | 6 | #endif -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/impl/pmm.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_IMPL_PMM_H 2 | #define _AMD64_IMPL_PMM_H 3 | 4 | #define PAGE_SIZE 0x1000 5 | 6 | #endif // _AMD64_IMPL_PMM_H 7 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/impl/scheduler.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_IMPL_SCHEDULER_H 2 | #define _AMD64_IMPL_SCHEDULER_H 3 | 4 | typedef struct{ 5 | 6 | } thread_arch_state_t; 7 | 8 | #endif // _AMD64_IMPL_SCHEDULER_H -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/impl/time.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/kernel/source/arch/amd64/impl/time.h -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/impl/vmm.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #ifndef _AMD64_IMPL_VMM_H 4 | #define _AMD64_IMPL_VMM_H 5 | 6 | typedef void* vmm_space_t; 7 | 8 | #define VMM_USERSPACE_TOP_ADDRESS hhdm_address 9 | #define VMM_USERSPACE_BOTTOM_ADDRESS PAGE_SIZE 10 | 11 | #endif // _AMD64_IMPL_VMM_H 12 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/interrupts.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_INTERRUPTS_H 2 | #define _AMD64_INTERRUPTS_H 1 3 | 4 | #define IRQ_START 0x20 5 | 6 | #define INT_SCHEDULE_APIC_TIMER 0x40 7 | #define INT_SCHEDULE 0x41 8 | 9 | #endif // _AMD64_INTERRUPTS_H -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/io.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_IO_H 2 | #define _AMD64_IO_H 1 3 | 4 | #include 5 | 6 | #include 7 | #include ARCH_INCLUDE(asm.h) 8 | 9 | #endif // _AMD64_IO_H 10 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/panic.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | noreturn void panic(const char *fmt, ...) { 6 | log_print("[kernel] \e[0;91mpnc:\e[0m "); 7 | va_list args; 8 | va_start(args, fmt); 9 | log_printv(fmt, args); 10 | va_end(args); 11 | arch_idle(); 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/simd.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_SIMD_H 2 | #define _AMD64_SIMD_H 1 3 | 4 | void simd_init(void); 5 | 6 | void* simd_create_context(void); 7 | void simd_free_context(void* ctx); 8 | void simd_save_context(void* ctx); 9 | void simd_restore_context(void* ctx); 10 | 11 | #endif -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/syscall.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_SYSCALL_H 2 | #define _AMD64_SYSCALL_H 3 | 4 | #include 5 | 6 | void syscall_enable(uint16_t kernel_segment, uint16_t user_segment); 7 | 8 | #endif // _AMD64_SYSCALL_H -------------------------------------------------------------------------------- /sources/core/kernel/source/arch/amd64/vmm.h: -------------------------------------------------------------------------------- 1 | #ifndef _AMD64_VMM_H 2 | #define _AMD64_VMM_H 3 | 4 | #include 5 | 6 | int vmm_clear_lower_half_entries(vmm_space_t space); 7 | int vmm_preload_higher_half_entries(vmm_space_t space); 8 | 9 | #endif // _AMD64_VMM_H 10 | -------------------------------------------------------------------------------- /sources/core/kernel/source/boot/limine/aarch64/vmm.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | void vmm_init(void) { 4 | // todo 5 | } 6 | -------------------------------------------------------------------------------- /sources/core/kernel/source/global/apps.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLOBAL_APPS_H 2 | #define _GLOBAL_APPS_H 1 3 | 4 | #include 5 | #include 6 | 7 | void apps_init(void); 8 | 9 | #endif // _GLOBAL_APPS_H -------------------------------------------------------------------------------- /sources/core/kernel/source/global/devfs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int devfs_add_dev(const char* path, file_open_fs_t open_handler){ 6 | return devfs_handler->add_dev(path, open_handler); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/kernel/source/global/devfs.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLOBAL_DEVFS_H 2 | #define _GLOBAL_DEVFS_H 1 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | int devfs_add_dev(const char* path, file_open_fs_t open_handler); 9 | 10 | #endif // _GLOBAL_DEVFS_H -------------------------------------------------------------------------------- /sources/core/kernel/source/global/exec.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLOBAL_EXEC_H 2 | #define _GLOBAL_EXEC_H 1 3 | 4 | #include 5 | #include 6 | 7 | #include 8 | 9 | int create_exec(process_t* parent, char* path, int argc, char* args[], char* envp[]); 10 | 11 | #endif // _GLOBAL_EXEC_H -------------------------------------------------------------------------------- /sources/core/kernel/source/global/syscall.h: -------------------------------------------------------------------------------- 1 | #ifndef _GLOBAL_SYSCALL_H 2 | #define _GLOBAL_SYSCALL_H 1 3 | 4 | #include 5 | 6 | typedef void (*syscall_handler_t)(cpu_context_t*); 7 | 8 | void syscall_handler(cpu_context_t* ctx); 9 | 10 | #endif // _GLOBAL_SYSCALL_H -------------------------------------------------------------------------------- /sources/core/kernel/source/impl/boot.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMPL_BOOT_H 2 | #define _IMPL_BOOT_H 3 | 4 | #include 5 | 6 | #ifndef BOOT_PROTOCOL 7 | #define BOOT_PROTOCOL "unknown" 8 | #endif 9 | 10 | void boot_loading(void); 11 | 12 | #endif // _BOOT_H 13 | -------------------------------------------------------------------------------- /sources/core/kernel/source/impl/hw_interrupt.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMPL_HW_INTERRUPT_H 2 | #define _IMPL_HW_INTERRUPT_H 3 | 4 | #include 5 | 6 | int hw_interrupt_set_state(int id, bool is_enable); 7 | 8 | #endif // _IMPL_HW_INTERRUPT_H 9 | -------------------------------------------------------------------------------- /sources/core/kernel/source/impl/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMPL_MEMORY_H 2 | #define _IMPL_MEMORY_H 1 3 | 4 | void memory_init(void); 5 | 6 | #endif -------------------------------------------------------------------------------- /sources/core/kernel/source/impl/panic.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMPL_PANIC_H 2 | #define _IMPL_PANIC_H 1 3 | 4 | #include 5 | 6 | noreturn void panic(const char *fmt, ...); 7 | 8 | #endif // _PANIC_H 9 | -------------------------------------------------------------------------------- /sources/core/kernel/source/impl/serial.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMPL_SERIAL_H 2 | #define _IMPL_SERIAL_H 1 3 | 4 | int serial_init(void); 5 | void serial_write(char chr); 6 | 7 | #endif // _SERIAL_H 8 | -------------------------------------------------------------------------------- /sources/core/kernel/source/lib/assert.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | void __assert_fail(const char *__assertion, const char *__file, unsigned int __line, const char *__function) { 5 | panic("Assertion failed: %s, file %s, function %s, line %d", __assertion, __file, __function, __line); 6 | } -------------------------------------------------------------------------------- /sources/core/kernel/source/lib/assert.h: -------------------------------------------------------------------------------- 1 | #ifndef LIB_ASSERT_H 2 | #define LIB_ASSERT_H 1 3 | 4 | void __assert_fail(const char *__assertion, const char *__file, unsigned int __line, const char *__function); 5 | 6 | #define assert(expr) ((expr) ? (void)0 : __assert_fail(#expr, __FILE__, __LINE__, __func__)) 7 | 8 | #endif // LIB_ASSERT_H -------------------------------------------------------------------------------- /sources/core/kernel/source/lib/bitmap.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | void bitmap_init(void* address, size_t size, bitmap_t* bitmap, bool default_value) { 5 | memset(address, default_value ? 0xff : 0, size); 6 | *bitmap = (bitmap_t)address; 7 | } -------------------------------------------------------------------------------- /sources/core/kernel/source/lib/guid.h: -------------------------------------------------------------------------------- 1 | #ifndef LIB_GUID_H 2 | #define LIB_GUID_H 1 3 | 4 | #include 5 | 6 | typedef struct{ 7 | uint32_t data0; 8 | 9 | uint16_t data1; 10 | uint16_t data2; 11 | uint16_t data3; 12 | 13 | uint8_t data4[6]; 14 | }__attribute__((packed)) guid_t; 15 | 16 | #endif // LIB_GUID_H -------------------------------------------------------------------------------- /sources/core/kernel/source/lib/time.h: -------------------------------------------------------------------------------- 1 | #ifndef LIB_TIME_H 2 | #define LIB_TIME_H 1 3 | 4 | #include 5 | #include 6 | 7 | #define TM_YEAR_BASE 1900 8 | 9 | time_t mktime(struct tm* timeinfo); 10 | 11 | #endif // LIB_TIME_H -------------------------------------------------------------------------------- /sources/core/kernel/source/parameters.h: -------------------------------------------------------------------------------- 1 | #ifndef _PARAMETERS_H 2 | #define _PARAMETERS_H 1 3 | 4 | // #define DEBUG_HEAP 5 | #define DEBUG_MODULES 6 | // #define DEBUG_SYSCALL 7 | 8 | #endif // _PARAMETERS_H -------------------------------------------------------------------------------- /sources/core/kernel/target/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/kernel/target/limine/makefile.cfg: -------------------------------------------------------------------------------- 1 | PROTOCOL = \"limine\" 2 | 3 | CFLAGS := -DBOOT_PROTOCOL=$(PROTOCOL) -------------------------------------------------------------------------------- /sources/core/kernel/target/opensbi/makefile.cfg: -------------------------------------------------------------------------------- 1 | PROTOCOL = \"opensbi\" 2 | 3 | CFLAGS := -DBOOT_PROTOCOL=$(PROTOCOL) -------------------------------------------------------------------------------- /sources/core/kernel/target/opensbi/riscv64/kernel.ld: -------------------------------------------------------------------------------- 1 | OUTPUT_FORMAT(elf64-littleriscv) 2 | OUTPUT_ARCH(riscv) 3 | 4 | ENTRY(kernel_entry) 5 | 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/kot-graphics/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/bin 2 | **/lib 3 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/.gitignore: -------------------------------------------------------------------------------- 1 | subprojects/* 2 | !subprojects/*.wrap 3 | *.xbstrap 4 | # editor configs: 5 | .vscode 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/aero/auxv.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_AUXV_H 2 | #define _ABIBITS_AUXV_H 3 | 4 | #define AT_EXECPATH 15 5 | #define AT_SECURE 23 6 | #define AT_RANDOM 25 7 | #define AT_EXECFN 31 8 | 9 | #endif // _ABIBITS_AUXV_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/dripos/auxv.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_AUXV_H 2 | #define _ABIBITS_AUXV_H 3 | 4 | #define AT_SECURE 23 5 | #define AT_RANDOM 25 6 | #define AT_EXECFN 31 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/ironclad/auxv.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_AUXV_H 2 | #define _ABIBITS_AUXV_H 3 | 4 | #define AT_SECURE 23 5 | #define AT_RANDOM 25 6 | #define AT_EXECFN 31 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/ironclad/seek-whence.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_SEEK_WHENCE_H 2 | #define _ABIBITS_SEEK_WHENCE_H 3 | 4 | #define SEEK_SET 1 5 | #define SEEK_CUR 2 6 | #define SEEK_END 4 7 | 8 | #endif // _ABIBITS_SEEK_WHENCE_H 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/lemon/auxv.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_AUXV_H 2 | #define _ABIBITS_AUXV_H 3 | 4 | #define AT_EXECPATH 15 5 | #define AT_SECURE 23 6 | #define AT_RANDOM 25 7 | #define AT_EXECFN 31 8 | 9 | #endif 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/access.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_ACCESS_H 2 | #define _ABIBITS_ACCESS_H 3 | 4 | #define F_OK 0 5 | #define X_OK 1 6 | #define W_OK 2 7 | #define R_OK 4 8 | 9 | #endif // _ABIBITS_ACCESS_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/auxv.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_AUXV_H 2 | #define _ABIBITS_AUXV_H 3 | 4 | #define AT_PLATFORM 15 5 | #define AT_HWCAP 16 6 | #define AT_CLKTCK 17 7 | #define AT_FPUCW 18 8 | #define AT_SECURE 23 9 | #define AT_RANDOM 25 10 | #define AT_EXECFN 31 11 | #define AT_SYSINFO_EHDR 33 12 | 13 | #endif // _ABIBITS_AUXV_H 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_BLKCNT_T_H 2 | #define _ABIBITS_BLKCNT_T_H 3 | 4 | #include 5 | 6 | typedef __mlibc_int64 blkcnt_t; 7 | 8 | #endif // _ABIBITS_BLKCNT_T_H 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/blksize_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_BLKSIZE_T_H 3 | #define _ABIBITS_BLKSIZE_T_H 4 | 5 | typedef long blksize_t; 6 | 7 | #endif // _ABIBITS_BLKSIZE_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/clockid_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_CLOCKID_T_H 2 | #define _ABIBITS_CLOCKID_T_H 3 | 4 | typedef int clockid_t; 5 | 6 | #endif /* _ABIBITS_CLOCKID_T_H */ 7 | 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/dev_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_DEV_T_H 3 | #define _ABIBITS_DEV_T_H 4 | 5 | #include 6 | 7 | typedef __mlibc_uint64 dev_t; 8 | 9 | #endif // _ABIBITS_DEV_T_H 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/epoll.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_EPOLL_H 2 | #define _ABIBITS_EPOLL_H 3 | 4 | #define EPOLL_CLOEXEC 02000000 // Same as __MLIBC_O_CLOEXEC 5 | 6 | #endif // _ABIBITS_EPOLL_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_FSBLKCNT_T_H 2 | #define _ABIBITS_FSBLKCNT_T_H 3 | 4 | #include 5 | 6 | typedef __mlibc_uint64 fsblkcnt_t; 7 | 8 | #endif /* _ABIBITS_FSBLKCNT_T_H */ 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_FSFILCNT_T_H 2 | #define _ABIBITS_FSFILCNT_T_H 3 | 4 | #include 5 | 6 | typedef __mlibc_uint64 fsfilcnt_t; 7 | 8 | #endif /* _ABIBITS_FSFILCNT_T_H */ 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/gid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_GID_T_H 3 | #define _ABIBITS_GID_T_H 4 | 5 | typedef int gid_t; 6 | 7 | #endif // _ABIBITS_GID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/ino_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_INO_T_H 3 | #define _ABIBITS_INO_T_H 4 | 5 | #include 6 | 7 | typedef __mlibc_uint64 ino_t; 8 | 9 | #endif // _ABIBITS_INO_T_H 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/inotify.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_INOTIFY_H 2 | #define _ABIBITS_INOTIFY_H 3 | 4 | #include 5 | 6 | #define IN_CLOEXEC O_CLOEXEC 7 | #define IN_NONBLOCK O_NONBLOCK 8 | 9 | #endif // _ABIBITS_INOTIFY_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/ioctls.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_IOCTLS_H 2 | #define _ABIBITS_IOCTLS_H 3 | 4 | #define SIOCPROTOPRIVATE 0x89E0 5 | #define SIOCGIFNAME 0x8910 6 | #define SIOCGIFCONF 0x8912 7 | #define SIOCGIFFLAGS 0x8913 8 | #define SIOCSIFFLAGS 0x8914 9 | #define SIOCGIFINDEX 0x8933 10 | 11 | #endif /* _ABIBITS_IOCTLS_H */ 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/limits.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_LIMITS_H 2 | #define _ABIBITS_LIMITS_H 3 | 4 | #define IOV_MAX 1024 5 | #define LOGIN_NAME_MAX 256 6 | #define NAME_MAX 255 7 | #define OPEN_MAX 256 8 | 9 | #endif //_ABIBITS_LIMITS_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/mode_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_MODE_T_H 3 | #define _ABIBITS_MODE_T_H 4 | 5 | typedef unsigned int mode_t; 6 | 7 | #endif // _ABIBITS_MODE_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/nlink_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_NLINK_T_H 3 | #define _ABIBITS_NLINK_T_H 4 | 5 | typedef unsigned long nlink_t; 6 | 7 | #endif // _ABIBITS_NLINK_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/packet.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_PACKET_H 2 | #define _ABIBITS_PACKET_H 3 | 4 | #define PACKET_HOST 0 5 | 6 | #endif // _ABIBITS_PACKET_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/pid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_PID_T_H 3 | #define _ABIBITS_PID_T_H 4 | 5 | typedef int pid_t; 6 | 7 | #endif // _ABIBITS_PID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/seek-whence.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_SEEK_WHENCE_H 2 | #define _ABIBITS_SEEK_WHENCE_H 3 | 4 | #define SEEK_SET 0 5 | #define SEEK_CUR 1 6 | #define SEEK_END 2 7 | 8 | #endif // _ABIBITS_SEEK_WHENCE_H 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/socklen_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_SOCKLEN_T_H 2 | #define _ABIBITS_SOCKLEN_T_H 3 | 4 | typedef unsigned socklen_t; 5 | 6 | #endif /* _ABIBITS_SOCKLEN_T_H */ 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/suseconds_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_SUSECONDS_T_H 2 | #define _ABIBITS_SUSECONDS_T_H 3 | 4 | #include 5 | 6 | typedef __mlibc_int64 suseconds_t; 7 | 8 | #endif /* _ABIBITS_SUSECONDS_T_H */ 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/uid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_UID_T_H 3 | #define _ABIBITS_UID_T_H 4 | 5 | typedef int uid_t; 6 | 7 | #endif // _ABIBITS_UID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/linux/utsname.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_UTSNAME_T_H 2 | #define _ABIBITS_UTSNAME_T_H 3 | 4 | struct utsname { 5 | char sysname[65]; 6 | char nodename[65]; 7 | char release[65]; 8 | char version[65]; 9 | char machine[65]; 10 | char domainname[65]; 11 | }; 12 | 13 | #endif // _ABIBITS_UTSNAME_T_H 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/access.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_ACCESS_H 2 | #define _ABIBITS_ACCESS_H 3 | 4 | #define F_OK 1 5 | #define R_OK 2 6 | #define W_OK 4 7 | #define X_OK 8 8 | 9 | #endif // _ABIBITS_ACCESS_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_BLKCNT_T_H 2 | #define _ABIBITS_BLKCNT_T_H 3 | 4 | // TODO: use int64_t? 5 | typedef long blkcnt_t; 6 | 7 | #endif // _ABIBITS_BLKCNT_T_H 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/blksize_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_BLKSIZE_T_H 3 | #define _ABIBITS_BLKSIZE_T_H 4 | 5 | // TODO: use int64_t? 6 | typedef long blksize_t; 7 | 8 | #endif // _ABIBITS_BLKSIZE_T_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/clockid_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_CLOCKID_T_H 2 | #define _ABIBITS_CLOCKID_T_H 3 | 4 | typedef long clockid_t; 5 | 6 | #endif /* _ABIBITS_CLOCKID_T_H */ 7 | 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/dev_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_DEV_T_H 3 | #define _ABIBITS_DEV_T_H 4 | 5 | typedef unsigned long dev_t; 6 | 7 | #endif // _ABIBITS_DEV_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/epoll.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_EPOLL_H 2 | #define _ABIBITS_EPOLL_H 3 | 4 | #define EPOLL_CLOEXEC 1 5 | 6 | #endif // _ABIBITS_EPOLL_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/gid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_GID_T_H 3 | #define _ABIBITS_GID_T_H 4 | 5 | typedef unsigned int gid_t; 6 | 7 | #endif // _ABIBITS_GID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/ino_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_INO_T_H 3 | #define _ABIBITS_INO_T_H 4 | 5 | // TODO: use (u)int64_t? 6 | typedef long ino_t; 7 | 8 | #endif // _ABIBITS_INO_T_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/inotify.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_INOTIFY_H 2 | #define _ABIBITS_INOTIFY_H 3 | 4 | #define IN_CLOEXEC 1 5 | #define IN_NONBLOCK 2 6 | 7 | #endif // _ABIBITS_INOTIFY_H 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/limits.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_LIMITS_H 2 | #define _ABIBITS_LIMITS_H 3 | 4 | #define IOV_MAX 1024 5 | 6 | // Niceness related 7 | #define NZERO 20 8 | 9 | // Maximum hostname length, posix defines it as 255 10 | #define HOST_NAME_MAX 255 11 | 12 | #define OPEN_MAX 256 13 | 14 | #endif //_ABIBITS_LIMITS_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/mode_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_MODE_T_H 3 | #define _ABIBITS_MODE_T_H 4 | 5 | typedef int mode_t; 6 | 7 | #endif // _ABIBITS_MODE_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/nlink_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_NLINK_T_H 3 | #define _ABIBITS_NLINK_T_H 4 | 5 | typedef int nlink_t; 6 | 7 | #endif // _ABIBITS_NLINK_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/packet.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_PACKET_H 2 | #define _ABIBITS_PACKET_H 3 | 4 | #define PACKET_HOST 0 5 | 6 | #endif // _ABIBITS_PACKET_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/pid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_PID_T_H 3 | #define _ABIBITS_PID_T_H 4 | 5 | typedef int pid_t; 6 | 7 | #endif // _ABIBITS_PID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/seek-whence.h: -------------------------------------------------------------------------------- 1 | #ifndef _ABIBITS_SEEK_WHENCE_H 2 | #define _ABIBITS_SEEK_WHENCE_H 3 | 4 | #define SEEK_CUR 1 5 | #define SEEK_END 2 6 | #define SEEK_SET 3 7 | #define SEEK_DATA 4 8 | #define SEEK_HOLE 5 9 | 10 | #endif // _ABIBITS_SEEK_WHENCE_H 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/abis/mlibc/uid_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ABIBITS_UID_T_H 3 | #define _ABIBITS_UID_T_H 4 | 5 | typedef unsigned int uid_t; 6 | 7 | #endif // _ABIBITS_UID_T_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/abidiff_suppress.ini: -------------------------------------------------------------------------------- 1 | [suppress_function] 2 | name_regexp = ^(mlibc|frg|std)::.* 3 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/aero.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'gcc-10' 3 | cpp = 'g++-10' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'aero' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/dripos.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'gcc-10' 3 | cpp = 'g++-10' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'dripos' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/ironclad.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'gcc-10' 3 | cpp = 'g++-10' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'ironclad' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/kot.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'x86_64-kot-gcc' 3 | cpp = 'x86_64-kot-g++' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'kot' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/lemon.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'gcc-10' 3 | cpp = 'g++-10' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'lemon' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/linux-aarch64.cross-file: -------------------------------------------------------------------------------- 1 | [properties] 2 | skip_sanity_check = true 3 | 4 | [binaries] 5 | c = ['aarch64-linux-gnu-gcc-10'] 6 | cpp = ['aarch64-linux-gnu-g++-10'] 7 | exe_wrapper = 'qemu-aarch64' 8 | 9 | [host_machine] 10 | system = 'linux' 11 | cpu_family = 'aarch64' 12 | cpu = 'unknown' 13 | endian = 'little' 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/linux-riscv64.cross-file: -------------------------------------------------------------------------------- 1 | [properties] 2 | skip_sanity_check = true 3 | 4 | [binaries] 5 | c = ['riscv64-linux-gnu-gcc-10'] 6 | cpp = ['riscv64-linux-gnu-g++-10'] 7 | exe_wrapper = 'qemu-riscv64' 8 | 9 | [host_machine] 10 | system = 'linux' 11 | cpu_family = 'riscv64' 12 | cpu = 'unknown' 13 | endian = 'little' 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/linux-x86_64.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = ['gcc-10'] 3 | cpp = ['g++-10'] 4 | 5 | [host_machine] 6 | system = 'linux' 7 | cpu_family = 'x86_64' 8 | cpu = 'x86_64' 9 | endian = 'little' 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/ci/lyre.cross-file: -------------------------------------------------------------------------------- 1 | [binaries] 2 | c = 'gcc-10' 3 | cpp = 'g++-10' 4 | 5 | [properties] 6 | needs_exe_wrapper = true 7 | 8 | [host_machine] 9 | system = 'lyre' 10 | cpu_family = 'x86_64' 11 | cpu = 'x86_64' 12 | endian = 'little' 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libcrypt/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libcrypt because shadow expects -lcrypt 3 | // The actual crypt functions reside inside libc 4 | 5 | extern "C" void __mlibc_libcrypt_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libdl/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libdl because g++ always links with -ldl 3 | // The actual functions reside inside libc 4 | 5 | extern "C" void __mlibc_libdl_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libm/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libm because g++ always links with -lm 3 | // The actual math functions reside inside libc 4 | 5 | extern "C" void __mlibc_libm_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libpthread/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libpthread because g++ always links with -lpthread 3 | // The actual functions reside inside libc 4 | 5 | extern "C" void __mlibc_libpthread_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libresolv/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libresolv because some programs always links with -lresolv 3 | // The actual functions reside inside libc 4 | 5 | extern "C" void __mlibc_libresolv_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/librt/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty librt because g++ always links with -lrt 3 | // The actual functions reside inside libc 4 | 5 | extern "C" void __mlibc_librt_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/dummy-libs/libutil/src/dummy.cpp: -------------------------------------------------------------------------------- 1 | 2 | // We build an empty libutil because g++ always links with -lutil 3 | // The actual functions reside inside libc 4 | 5 | extern "C" void __mlibc_libutil_dummy(void) { } 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/internal-config.h.in: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #mesondefine MLIBC_SYSTEM_NAME 4 | #mesondefine MLIBC_MAP_DSO_SEGMENTS 5 | #mesondefine MLIBC_MMAP_ALLOCATE_DSO 6 | #mesondefine MLIBC_MAP_FILE_WINDOWS 7 | #mesondefine MLIBC_STATIC_BUILD 8 | #mesondefine MLIBC_DEBUG_ALLOCATOR 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/generic/complex-stubs.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern "C" { 4 | 5 | long double cimagl(long double complex z) { 6 | return __imag__(z); 7 | } 8 | 9 | long double creall(long double complex z) { 10 | return __real__(z); 11 | } 12 | 13 | 14 | } 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/generic/complex/cephes_subr.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: cephes_subr.h,v 1.1 2007/08/20 16:01:33 drochner Exp $ */ 2 | 3 | void __mlibc_cchsh(double, double *, double *); 4 | double __mlibc_redupi(double); 5 | double __mlibc_ctans(double complex); 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/generic/complex/cephes_subrf.h: -------------------------------------------------------------------------------- 1 | /* $NetBSD: cephes_subrf.h,v 1.1 2007/08/20 16:01:34 drochner Exp $ */ 2 | 3 | void __mlibc_cchshf(float, float *, float *); 4 | float __mlibc_redupif(float); 5 | float __mlibc_ctansf(float complex); 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/generic/wctype.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | wctrans_t wctrans(const char *) MLIBC_STUB_BODY 8 | wint_t towctrans(wint_t, wctrans_t) MLIBC_STUB_BODY 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/include/alloca.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _ALLOCA_H 3 | #define _ALLOCA_H 4 | 5 | #define alloca __builtin_alloca 6 | 7 | #endif // _ALLOCA_H 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/include/bits/ansi/time_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MLIBC_TIME_T 3 | #define MLIBC_TIME_T 4 | 5 | typedef long time_t; 6 | 7 | #endif 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/include/bits/ansi/timespec.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MLIBC_TIMESPEC_H 3 | #define MLIBC_TIMESPEC_H 4 | 5 | #include 6 | 7 | struct timespec { 8 | time_t tv_sec; 9 | long tv_nsec; 10 | }; 11 | 12 | #endif // MLIBC_TIMESPEC_H 13 | 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/include/mlibc/environment.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_ENVIRONMENT_HPP 2 | #define MLIBC_ENVIRONMENT_HPP 3 | 4 | namespace mlibc { 5 | 6 | int putenv(char *string); 7 | 8 | } // namespace mlibc 9 | 10 | #endif // MLIBC_ENVIRONMENT_HPP 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/__invtrigl.h: -------------------------------------------------------------------------------- 1 | /* shared by acosl, asinl and atan2l */ 2 | #define pio2_hi __pio2_hi 3 | #define pio2_lo __pio2_lo 4 | extern const long double pio2_hi, pio2_lo; 5 | 6 | long double __invtrigl_R(long double z); 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/__signbit.c: -------------------------------------------------------------------------------- 1 | #include "libm.h" 2 | 3 | // FIXME: macro in math.h 4 | int __signbit(double x) 5 | { 6 | union { 7 | double d; 8 | uint64_t i; 9 | } y = { x }; 10 | return y.i>>63; 11 | } 12 | 13 | 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/__signbitf.c: -------------------------------------------------------------------------------- 1 | #include "libm.h" 2 | 3 | // FIXME: macro in math.h 4 | int __signbitf(float x) 5 | { 6 | union { 7 | float f; 8 | uint32_t i; 9 | } y = { x }; 10 | return y.i>>31; 11 | } 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/copysign.c: -------------------------------------------------------------------------------- 1 | #include "libm.h" 2 | 3 | double copysign(double x, double y) { 4 | union {double f; uint64_t i;} ux={x}, uy={y}; 5 | ux.i &= -1ULL/2; 6 | ux.i |= uy.i & 1ULL<<63; 7 | return ux.f; 8 | } 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/copysignf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | float copysignf(float x, float y) 5 | { 6 | union {float f; uint32_t i;} ux={x}, uy={y}; 7 | ux.i &= 0x7fffffff; 8 | ux.i |= uy.i & 0x80000000; 9 | return ux.f; 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fabs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | double fabs(double x) 5 | { 6 | union {double f; uint64_t i;} u = {x}; 7 | u.i &= -1ULL/2; 8 | return u.f; 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fabsf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | float fabsf(float x) 5 | { 6 | union {float f; uint32_t i;} u = {x}; 7 | u.i &= 0x7fffffff; 8 | return u.f; 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fdim.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | double fdim(double x, double y) 4 | { 5 | if (isnan(x)) 6 | return x; 7 | if (isnan(y)) 8 | return y; 9 | return x > y ? x - y : 0; 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fdimf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float fdimf(float x, float y) 4 | { 5 | if (isnan(x)) 6 | return x; 7 | if (isnan(y)) 8 | return y; 9 | return x > y ? x - y : 0; 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/finite.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | 4 | int finite(double x) 5 | { 6 | return isfinite(x); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/finitef.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | 4 | int finitef(float x) 5 | { 6 | return isfinite(x); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fmax.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | double fmax(double x, double y) 4 | { 5 | if (isnan(x)) 6 | return y; 7 | if (isnan(y)) 8 | return x; 9 | /* handle signed zeros, see C99 Annex F.9.9.2 */ 10 | if (signbit(x) != signbit(y)) 11 | return signbit(x) ? y : x; 12 | return x < y ? y : x; 13 | } 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fmaxf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float fmaxf(float x, float y) 4 | { 5 | if (isnan(x)) 6 | return y; 7 | if (isnan(y)) 8 | return x; 9 | /* handle signed zeroes, see C99 Annex F.9.9.2 */ 10 | if (signbit(x) != signbit(y)) 11 | return signbit(x) ? y : x; 12 | return x < y ? y : x; 13 | } 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/fminf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float fminf(float x, float y) 4 | { 5 | if (isnan(x)) 6 | return y; 7 | if (isnan(y)) 8 | return x; 9 | /* handle signed zeros, see C99 Annex F.9.9.2 */ 10 | if (signbit(x) != signbit(y)) 11 | return signbit(x) ? x : y; 12 | return x < y ? x : y; 13 | } 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/ldexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | double ldexp(double x, int n) 4 | { 5 | return scalbn(x, n); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/ldexpf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float ldexpf(float x, int n) 4 | { 5 | return scalbnf(x, n); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/ldexpl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long double ldexpl(long double x, int n) 4 | { 5 | return scalbnl(x, n); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lgamma.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int __signgam; 4 | double __lgamma_r(double, int *); 5 | 6 | double lgamma(double x) 7 | { 8 | return __lgamma_r(x, &__signgam); 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lgammaf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | extern int __signgam; 4 | float __lgammaf_r(float, int *); 5 | 6 | float lgammaf(float x) 7 | { 8 | return __lgammaf_r(x, &__signgam); 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/llrint.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* uses LLONG_MAX > 2^53, see comments in lrint.c */ 4 | 5 | long long llrint(double x) 6 | { 7 | return rint(x); 8 | } 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/llrintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* uses LLONG_MAX > 2^24, see comments in lrint.c */ 4 | 5 | long long llrintf(float x) 6 | { 7 | return rintf(x); 8 | } 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/llround.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long long llround(double x) 4 | { 5 | return round(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/llroundf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long long llroundf(float x) 4 | { 5 | return roundf(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/llroundl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long long llroundl(long double x) 4 | { 5 | return roundl(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/logbf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float logbf(float x) 4 | { 5 | if (!isfinite(x)) 6 | return x * x; 7 | if (x == 0) 8 | return -1/(x*x); 9 | return ilogbf(x); 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lrintf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | /* uses LONG_MAX > 2^24, see comments in lrint.c */ 4 | 5 | long lrintf(float x) 6 | { 7 | return rintf(x); 8 | } 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lround.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long lround(double x) 4 | { 5 | return round(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lroundf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long lroundf(float x) 4 | { 5 | return roundf(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/lroundl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long lroundl(long double x) 4 | { 5 | return roundl(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/nan.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | double nan(const char *s) 4 | { 5 | return NAN; 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/nanf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float nanf(const char *s) 4 | { 5 | return NAN; 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/nanl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long double nanl(const char *s) 4 | { 5 | return NAN; 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/nexttowardl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long double nexttowardl(long double x, long double y) 4 | { 5 | return nextafterl(x, y); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/remainder.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "weak_alias.h" 3 | //#include "libc.h" 4 | 5 | double remainder(double x, double y) 6 | { 7 | int q; 8 | return remquo(x, y, &q); 9 | } 10 | 11 | weak_alias(remainder, drem); 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/remainderf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "weak_alias.h" 3 | //#include "libc.h" 4 | 5 | float remainderf(float x, float y) 6 | { 7 | int q; 8 | return remquof(x, y, &q); 9 | } 10 | 11 | weak_alias(remainderf, dremf); 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/scalbln.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "libm.h" 4 | 5 | double scalbln(double x, long n) 6 | { 7 | if (n > INT_MAX) 8 | n = INT_MAX; 9 | else if (n < INT_MIN) 10 | n = INT_MIN; 11 | return scalbn(x, n); 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/scalblnf.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "libm.h" 4 | 5 | float scalblnf(float x, long n) 6 | { 7 | if (n > INT_MAX) 8 | n = INT_MAX; 9 | else if (n < INT_MIN) 10 | n = INT_MIN; 11 | return scalbnf(x, n); 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/signgam.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include "weak_alias.h" 3 | //#include "libc.h" 4 | 5 | int signgam = 0; 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/significand.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | 4 | double significand(double x) 5 | { 6 | return scalbn(x, -ilogb(x)); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/significandf.c: -------------------------------------------------------------------------------- 1 | #define _GNU_SOURCE 2 | #include 3 | 4 | float significandf(float x) 5 | { 6 | return scalbnf(x, -ilogbf(x)); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/sqrtl.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | long double sqrtl(long double x) 4 | { 5 | /* FIXME: implement in C, this is for LDBL_MANT_DIG == 64 only */ 6 | return sqrt(x); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/tgammaf.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | float tgammaf(float x) 4 | { 5 | return tgamma(x); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/ansi/musl-generic-math/weak_alias.h: -------------------------------------------------------------------------------- 1 | #ifndef _WEAK_ALIAS_H 2 | #define _WEAK_ALIAS_H 3 | 4 | #define weak_alias(name, alias_to) \ 5 | extern __typeof (name) alias_to __attribute__ ((weak, alias(#name))); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/bsd/generic/getopt.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #if __MLIBC_GLIBC_OPTION 4 | 5 | int __optreset = 0; 6 | extern int optreset __attribute__((weak, alias("__optreset"))); 7 | 8 | #endif //__MLIBC_GLIBC_OPTION 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/bsd/include/arpa/nameser_compat.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/bsd/include/bits/bsd/bsd_unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _BSD_UNISTD_H 2 | #define _BSD_UNISTD_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void *sbrk(intptr_t increment); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif /* _BSD_UNISTD_H */ 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/bsd/include/mlibc/bsd-sysdeps.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_BSD_SYSDEPS 2 | #define MLIBC_BSD_SYSDEPS 3 | 4 | namespace [[gnu::visibility("hidden")]] mlibc { 5 | 6 | [[gnu::weak]] int sys_brk(void **out); 7 | 8 | } // namespace mlibc 9 | 10 | #endif // MLIBC_BSD_SYSDEPS 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/crypt/generic/crypt-stubs.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | char *crypt(const char *, const char *) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/crypt/include/crypt.h: -------------------------------------------------------------------------------- 1 | #ifndef _CRYPT_H 2 | #define _CRYPT_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | char *crypt(const char *, const char *); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif // _CRYPT_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/crypt/meson.build: -------------------------------------------------------------------------------- 1 | if disable_crypt_option 2 | subdir_done() 3 | endif 4 | 5 | libc_sources += files( 6 | 'generic/crypt-stubs.cpp', 7 | ) 8 | 9 | if not no_headers 10 | install_headers( 11 | 'include/crypt.h', 12 | ) 13 | endif 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/elf/meson.build: -------------------------------------------------------------------------------- 1 | libc_sources += files( 2 | 'generic/startup.cpp', 3 | 'generic/phdr.cpp', 4 | ) 5 | 6 | if not no_headers 7 | install_headers( 8 | 'include/elf.h', 9 | 'include/link.h', 10 | ) 11 | endif 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/generic/gshadow.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int getsgnam_r(const char *, struct sgrp *, char *, size_t, struct sgrp **) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/generic/printf.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | size_t parse_printf_format(const char * __restrict, size_t, int * __restrict) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/bits/glibc/glibc_signal.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_GLIBC_SIGNAL_H 2 | #define MLIBC_GLIBC_SIGNAL_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | int tgkill(int, int, int); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif // MLIBC_GLIBC_SIGNAL_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/features.h: -------------------------------------------------------------------------------- 1 | #ifndef FEATURES_H 2 | #define FEATURES_H 3 | 4 | // This header is a stub 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/memory.h: -------------------------------------------------------------------------------- 1 | #ifndef _MEMORY_H 2 | #define _MEMORY_H 3 | 4 | #include 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/netinet/in_systm.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _NETINET_IN_SYSTM_H 3 | #define _NETINET_IN_SYSTM_H 4 | 5 | 6 | 7 | #endif // _NETINET_IN_SYSTM_H 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/dir.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_DIR_H 2 | #define _SYS_DIR_H 3 | 4 | #include 5 | 6 | #define direct dirent 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/endian.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/sources/core/libs/mlibc/options/glibc/include/sys/endian.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/errno.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/signal.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/timeb.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TIMEB_H 2 | #define _SYS_TIMEB_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif // _SYS_TIMEB_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/glibc/include/sys/ucontext.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UCONTEXT_H 2 | #define _SYS_UCONTEXT_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif // _SYS_UCONTEXT_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/iconv/meson.build: -------------------------------------------------------------------------------- 1 | if disable_iconv_option 2 | subdir_done() 3 | endif 4 | libc_sources += files( 5 | 'generic/iconv-stubs.cpp', 6 | ) 7 | 8 | if not no_headers 9 | install_headers( 10 | 'include/iconv.h', 11 | ) 12 | endif 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/aarch64-include/mlibc/arch-defs.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_ARCH_DEFS_HPP 2 | #define MLIBC_ARCH_DEFS_HPP 3 | 4 | #include 5 | 6 | namespace mlibc { 7 | 8 | inline constexpr size_t page_size = 0x1000; 9 | 10 | } // namespace mlibc 11 | 12 | #endif // MLIBC_ARCH_DEFS_HPP 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/ether_addr.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_ETHER_ADDR_H 2 | #define MLIBC_ETHER_ADDR_H 3 | 4 | #include 5 | 6 | struct ether_addr { 7 | uint8_t ether_addr_octet[6]; 8 | } __attribute__ ((__packed__)); 9 | 10 | #endif // MLIBC_ETHER_ADDR_H 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/mbstate.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_MBSTATE_H 2 | #define MLIBC_MBSTATE_H 3 | 4 | struct __mlibc_mbstate { 5 | short __progress; 6 | short __shift; 7 | unsigned int __cpoint; 8 | }; 9 | 10 | #define __MLIBC_MBSTATE_INITIALIZER {0, 0, 0} 11 | 12 | #endif // MLIBC_MBSTATE_H 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/null.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MLIBC_NULL_H 3 | #define MLIBC_NULL_H 4 | 5 | #define __need_NULL 6 | #include 7 | 8 | #endif // MLIBC_NULL_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/off_t.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_OFF_T_H 2 | #define MLIBC_OFF_T_H 3 | 4 | // TODO: use something like int64_t instead? 5 | typedef long off_t; 6 | typedef long off64_t; 7 | 8 | #endif // MLIBC_OFF_T_H 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/size_t.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_SIZE_T_H 2 | #define MLIBC_SIZE_T_H 3 | 4 | #define __need_size_t 5 | #include 6 | 7 | #endif // MLIBC_SIZE_T_H 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/ssize_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MLIBC_SSIZE_T_H 3 | #define MLIBC_SSIZE_T_H 4 | 5 | // TODO: use ptrdiff_t instead? 6 | typedef long ssize_t; 7 | 8 | #endif // MLIBC_SSIZE_T_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/wchar.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_WCHAR_H 2 | #define MLIBC_WCHAR_H 3 | 4 | #include 5 | 6 | #define WCHAR_MAX __MLIBC_WCHAR_MAX 7 | #define WCHAR_MIN __MLIBC_WCHAR_MIN 8 | 9 | #endif // MLIBC_WCHAR_H 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/wchar_t.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef MLIBC_WCHAR_T_H 3 | #define MLIBC_WCHAR_T_H 4 | 5 | #define __need_wchar_t 6 | #include 7 | 8 | #endif // MLIBC_WCHAR_T_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/bits/wint_t.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_WINT_T_H 2 | #define MLIBC_WINT_T_H 3 | 4 | #define __need_wint_t 5 | #include 6 | 7 | #endif // MLIBC_WINT_T_H 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/mlibc/fsfd_target.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_FSFD_TARGET 2 | #define MLIBC_FSFD_TARGET 3 | 4 | namespace mlibc { 5 | 6 | enum class fsfd_target { 7 | none, 8 | path, 9 | fd, 10 | fd_path 11 | }; 12 | 13 | } // namespace mlibc 14 | 15 | #endif // MLIBC_FSFD_TARGET 16 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/mlibc/locale.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_LOCALE 2 | #define MLIBC_LOCALE 3 | 4 | #include 5 | 6 | namespace mlibc { 7 | 8 | char *nl_langinfo(nl_item item); 9 | 10 | } // namespace mlibc 11 | 12 | #endif // MLIBC_LOCALE 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/mlibc/stack_protector.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_STACK_PROTECTOR_HPP 2 | #define MLIBC_STACK_PROTECTOR_HPP 3 | 4 | namespace mlibc { 5 | 6 | void initStackGuard(void *); 7 | 8 | } // namespace mlibc 9 | 10 | #endif // MLIBC_STACK_PROTECTOR_HPP 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/include/mlibc/strings.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_STRINGS 2 | #define MLIBC_STRINGS 3 | 4 | #include 5 | 6 | namespace mlibc { 7 | 8 | int strncasecmp(const char *a, const char *b, size_t size); 9 | 10 | } // namespace mlibc 11 | 12 | #endif // MLIBC_STRINGS 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/riscv64-include/mlibc/arch-defs.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_ARCH_DEFS_HPP 2 | #define MLIBC_ARCH_DEFS_HPP 3 | 4 | #include 5 | 6 | namespace mlibc { 7 | 8 | inline constexpr size_t page_size = 0x1000; 9 | 10 | } // namespace mlibc 11 | 12 | #endif // MLIBC_ARCH_DEFS_HPP 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/internal/x86_64-include/mlibc/arch-defs.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_ARCH_DEFS_HPP 2 | #define MLIBC_ARCH_DEFS_HPP 3 | 4 | #include 5 | 6 | namespace mlibc { 7 | 8 | inline constexpr size_t page_size = 0x1000; 9 | 10 | } // namespace mlibc 11 | 12 | #endif // MLIBC_ARCH_DEFS_HPP 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/intl/meson.build: -------------------------------------------------------------------------------- 1 | if disable_intl_option 2 | subdir_done() 3 | endif 4 | libc_sources += files( 5 | 'generic/libintl-stubs.cpp', 6 | ) 7 | 8 | if not no_headers 9 | install_headers( 10 | 'include/libintl.h', 11 | ) 12 | endif 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/generic/malloc.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | size_t malloc_usable_size(void *) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | 9 | void *memalign(size_t, size_t) { 10 | __ensure(!"Not implemented"); 11 | __builtin_unreachable(); 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/generic/sys-fsuid.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int setfsuid(uid_t) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | 9 | int setfsgid(gid_t) { 10 | __ensure(!"Not implemented"); 11 | __builtin_unreachable(); 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/generic/sys-quota.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int quotactl(int, const char *, int, caddr_t) { 5 | __ensure(!"Not implemented"); 6 | __builtin_unreachable(); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/generic/sys-sendfile-stubs.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | ssize_t sendfile(int, int, off_t *, size_t) { 6 | __ensure(!"Not implemented"); 7 | __builtin_unreachable(); 8 | } 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/lastlog.h: -------------------------------------------------------------------------------- 1 | // Maches glibc 2 | #include -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/memory.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _MEMORY_H 3 | #define _MEMORY_H 4 | 5 | // This is a linux extension 6 | #include 7 | 8 | #endif // _MEMORY_H 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/scsi/scsi_ioctl.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _LINUX_SCSI_SCSI_IOCTL_H 3 | #define _LINUX_SCSI_SCSI_IOCTL_H 4 | 5 | #endif // _LINUX_SCSI_SCSI_IOCTL_H 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/sys/klog.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_KLOG_H 2 | #define _SYS_KLOG_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | int klogctl(int type, char *bufp, int len); 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif /* _SYS_KLOG_H */ 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/sys/reboot.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_SYS_REBOOT_H 2 | #define MLIBC_SYS_REBOOT_H 3 | 4 | #include 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | int reboot(int arg); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | #endif // MLIBC_SYS_REBOOT_H 17 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/sys/sendfile.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SYS_SENDFILE_H_ 3 | #define _SYS_SENDFILE_H_ 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | #include 10 | 11 | ssize_t sendfile(int, int, off_t *, size_t); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif // _SYS_SENDFILE_H_ 18 | 19 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/linux/include/sys/vt.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_VT_H 2 | #define _SYS_VT_H 3 | 4 | #include 5 | 6 | #endif // _SYS_VT_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/lsb/meson.build: -------------------------------------------------------------------------------- 1 | 2 | lsb_sources = files( 3 | 'generic/auxv.cpp', 4 | 'generic/dso_exit.cpp', 5 | 'generic/tls.cpp', 6 | ) 7 | 8 | if not no_headers 9 | install_headers( 10 | 'include/sys/auxv.h', 11 | subdir: 'sys' 12 | ) 13 | endif 14 | 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/generic/sys-ipc.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | 5 | key_t ftok(const char *, int) { 6 | __ensure(!"Not implemented"); 7 | __builtin_unreachable(); 8 | } 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/generic/sys-msg.cpp: -------------------------------------------------------------------------------- 1 | 2 | #include 3 | #include 4 | 5 | int msgget(key_t, int) { 6 | __ensure(!"Not implemented"); 7 | __builtin_unreachable(); 8 | } 9 | 10 | int msgctl(int, int, struct msqid_ds *) { 11 | __ensure(!"Not implemented"); 12 | __builtin_unreachable(); 13 | } 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/id_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _MLIBC_ID_T_H 2 | #define _MLIBC_ID_T_H 3 | 4 | typedef unsigned int id_t; 5 | 6 | #endif // _MLIBC_ID_T_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/in_addr_t.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_IN_ADDR_H 2 | #define MLIBC_IN_ADDR_H 3 | 4 | typedef uint32_t in_addr_t; 5 | 6 | #endif // MLIBC_IN_ADDR_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/in_port_t.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_IN_PORT_H 2 | #define MLIBC_IN_PORT_H 3 | 4 | typedef uint16_t in_port_t; 5 | 6 | #endif // MLIBC_IN_PORT_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/iovec.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_IOVEC_H 2 | #define MLIBC_IOVEC_H 3 | 4 | #include 5 | 6 | struct iovec { 7 | void *iov_base; 8 | __mlibc_size iov_len; 9 | }; 10 | 11 | #endif // MLIBC_IOVEC_H 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/locale_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _LOCALE_T_H 2 | #define _LOCALE_T_H 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | typedef void *locale_t; 9 | 10 | #ifdef __cplusplus 11 | } 12 | #endif 13 | 14 | #endif // _LOCALE_T_H 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/pthread_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _MLIBC_BITS_PTHREAD_T_HPP 2 | #define _MLIBC_BITS_PTHREAD_T_HPP 3 | 4 | struct __mlibc_thread_data; 5 | typedef struct __mlibc_thread_data *pthread_t; 6 | 7 | #endif // _MLIBC_BITS_PTHREAD_T_HPP 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/timer_t.h: -------------------------------------------------------------------------------- 1 | #ifndef _MLIBC_TIMER_T_H 2 | #define _MLIBC_TIMER_T_H 3 | 4 | typedef void * timer_t; 5 | 6 | #endif // _MLIBC_TIMER_T_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/bits/posix/timeval.h: -------------------------------------------------------------------------------- 1 | #ifndef MLIBC_TIMEVAL_H 2 | #define MLIBC_TIMEVAL_H 3 | 4 | #include 5 | #include 6 | 7 | struct timeval { 8 | time_t tv_sec; 9 | suseconds_t tv_usec; 10 | }; 11 | 12 | #endif // MLIBC_TIMEVAL_H 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/nl_types.h: -------------------------------------------------------------------------------- 1 | #ifndef NL_TYPES_H 2 | #define NL_TYPES_H 3 | 4 | 5 | 6 | #endif // NL_TYPES_H -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/poll.h: -------------------------------------------------------------------------------- 1 | #ifndef _POLL_H 2 | #define _POLL_H 3 | 4 | #include 5 | 6 | #endif // _POLL_H 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/sys/syslog.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/sys/termios.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SYS_TERMIOS_H 3 | #define _SYS_TERMIOS_H 4 | #include 5 | #endif // _SYS_TERMIOS_H 6 | 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/sys/utsname.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SYS_UTSNAME_H 3 | #define _SYS_UTSNAME_H 4 | 5 | #include 6 | 7 | #ifdef __cplusplus 8 | extern "C" { 9 | #endif 10 | 11 | int uname(struct utsname *); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif // _SYS_UTSNAME_H 18 | 19 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/posix/include/sys/vfs.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _SYS_VFS_H 3 | #define _SYS_VFS_H 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | #include 10 | 11 | #ifdef __cplusplus 12 | } 13 | #endif 14 | 15 | #endif // _SYS_VFS_H 16 | 17 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/rtdl/aarch64/entry.S: -------------------------------------------------------------------------------- 1 | 2 | .global _start 3 | _start: 4 | bl relocateSelf 5 | 6 | mov x0, sp 7 | bl interpreterMain 8 | 9 | br x0 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/rtdl/riscv64/entry.S: -------------------------------------------------------------------------------- 1 | .global _start 2 | _start: 3 | call relocateSelf 4 | 5 | mv a0, sp 6 | call interpreterMain 7 | 8 | jr a0 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/rtdl/riscv64/runtime.S: -------------------------------------------------------------------------------- 1 | .global pltRelocateStub 2 | pltRelocateStub: 3 | unimp // TODO 4 | .section .note.GNU-stack,"",%progbits 5 | 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/options/rtdl/x86_64/entry.S: -------------------------------------------------------------------------------- 1 | 2 | .global _start 3 | _start: 4 | call relocateSelf 5 | 6 | mov %rsp, %rdi 7 | call interpreterMain 8 | 9 | jmp *%rax 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/subprojects/cxxshim.wrap: -------------------------------------------------------------------------------- 1 | [wrap-git] 2 | directory = cxxshim 3 | url = https://github.com/managarm/cxxshim.git 4 | revision = 1abc678c17a8b54bf9497065443c1d4b292accb9 5 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/subprojects/frigg.wrap: -------------------------------------------------------------------------------- 1 | [wrap-git] 2 | directory = frigg 3 | url = https://github.com/managarm/frigg.git 4 | revision = cd20c20d1390e06a46983dbd8209125087f5d7da 5 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/crt-x86_64/crt0.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | 3 | .global _start 4 | _start: 5 | mov $main, %rdi 6 | call __mlibc_entry 7 | 8 | .size _start, . - _start 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/generic/signals.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global __mlibc_signal_restore 3 | 4 | __mlibc_signal_restore: 5 | mov $39, %rax 6 | syscall 7 | ud2 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/generic/thread_entry.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global __mlibc_start_thread 3 | 4 | __mlibc_start_thread: 5 | pop %rdi 6 | pop %rsi 7 | pop %rdx 8 | call __mlibc_enter_thread 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/aero/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/aero/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/crt-x86_64/crt1.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global _start 4 | _start: 5 | mov $main, %rdi 6 | call __mlibc_entry 7 | 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/generic/thread_entry.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_start_thread 4 | __mlibc_start_thread: 5 | pop %rdi 6 | pop %rsi 7 | pop %rdx 8 | call __mlibc_enter_thread 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/dripos/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/dripos/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/dripos/include/mlibc/thread-entry.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | extern "C" void __mlibc_start_thread(void); 6 | extern "C" void __mlibc_enter_thread(void *entry, void *user_arg, Tcb *tcb); 7 | 8 | namespace mlibc { 9 | void *prepare_stack(void *entry, void *user_arg, void *tcb); 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/crt-x86_64/crt0.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global _start 4 | _start: 5 | mov $main, %rdi 6 | call __mlibc_entry 7 | 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/ironclad/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/ironclad/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/ironclad/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/ironclad/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/generic/signal.s: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global __mlibc_signal_restore 3 | 4 | __mlibc_signal_restore: 5 | mov $15, %rax 6 | syscall 7 | ud2 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/vt.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/vt.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/kot/x86_64/crt-src/crt0.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | 3 | .global _start 4 | _start: 5 | mov $main, %rsi 6 | mov %rsp, %rdi 7 | call __mlibc_entry 8 | 9 | .size _start, . - _start 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/crt-x86_64/crt0.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | 3 | .global _start 4 | _start: 5 | mov $main, %rdi 6 | call __mlibc_entry 7 | 8 | .size _start, . - _start 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/generic/thread_entry.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_start_thread 4 | __mlibc_start_thread: 5 | pop %rdi 6 | pop %rsi 7 | pop %rdx 8 | call __mlibc_enter_thread 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/lemon/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lemon/include/mlibc/thread-entry.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | extern "C" void __mlibc_start_thread(void); 6 | extern "C" void __mlibc_enter_thread(void *entry, void *user_arg, Tcb *tcb); 7 | 8 | namespace mlibc { 9 | void *prepare_stack(void *entry, void *user_arg, void *tcb); 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/aarch64/crt-src/Scrt1.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | mov x0, sp 5 | adr x1, main 6 | 7 | bl __mlibc_entry 8 | brk #0 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/aarch64/crt-src/crt1.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | mov x0, sp 5 | adrp x1, main 6 | add x1, x1, :lo12:main 7 | bl __mlibc_entry 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/aarch64/crt-src/crti.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | .global _init 3 | _init: 4 | stp x29, x30, [sp, -16]! 5 | mov x29, sp 6 | 7 | .section .fini 8 | .global _fini 9 | _fini: 10 | stp x29, x30, [sp, -16]! 11 | mov x29, sp 12 | .section .note.GNU-stack,"",%progbits 13 | 14 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/aarch64/crt-src/crtn.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | ldp x29, x30, [sp], #16 3 | ret 4 | 5 | .section .fini 6 | ldp x29, x30, [sp], #16 7 | ret 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/aarch64/signals.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global __mlibc_signal_restore 3 | .type __mlibc_signal_restore, @function 4 | __mlibc_signal_restore: 5 | mov x8,#139 // SYS_rt_sigreturn 6 | svc 0 7 | .section .note.GNU-stack,"",%progbits 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include-internal/linux/unistd.h: -------------------------------------------------------------------------------- 1 | /* stub header not present in practice, redirects to our internal syscallnos */ 2 | #include 3 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/vt.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/vt.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/include/syscall.h: -------------------------------------------------------------------------------- 1 | #include 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/mlibc-gcc.in: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | exec "${REALGCC:-gcc}" "$@" -specs "@PREFIX@/@LIBDIR@/mlibc-gcc.specs" 3 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/riscv64/crt-src/crti.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | .global _init 3 | _init: 4 | unimp 5 | 6 | .section .fini 7 | .global _fini 8 | _fini: 9 | unimp 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/riscv64/crt-src/crtn.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | unimp 3 | 4 | .section .fini 5 | unimp 6 | .section .note.GNU-stack,"",%progbits 7 | 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/riscv64/signals.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | nop // TODO: why is this needed? 3 | .global __mlibc_signal_restore 4 | .type __mlibc_signal_restore, @function 5 | __mlibc_signal_restore: 6 | unimp // TODO 7 | .section .note.GNU-stack,"",%progbits 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/x86_64/crt-src/Scrt1.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | mov %rsp, %rdi 5 | lea main(%rip), %rsi 6 | call __mlibc_entry 7 | .section .note.GNU-stack,"",%progbits 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/x86_64/crt-src/crt1.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | mov %rsp, %rdi 5 | mov $main, %rsi 6 | call __mlibc_entry 7 | .section .note.GNU-stack,"",%progbits 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/x86_64/crt-src/crti.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | .global _init 3 | _init: 4 | push %rax 5 | 6 | .section .fini 7 | .global _fini 8 | _fini: 9 | push %rax 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/x86_64/crt-src/crtn.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | pop %rax 3 | ret 4 | 5 | .section .fini 6 | pop %rax 7 | ret 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/linux/x86_64/signals.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | nop 4 | .global __mlibc_signal_restore 5 | .type __mlibc_signal_restore, @function 6 | __mlibc_signal_restore: 7 | mov $15, %rax 8 | syscall 9 | ud2 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/generic/thread.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global __mlibc_thread_entry 3 | __mlibc_thread_entry: 4 | pop %rdi 5 | pop %rsi 6 | pop %rdx 7 | call __mlibc_thread_trampoline 8 | 9 | .section .note.GNU-stack,"",%progbits 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/x86_64/crt-src/crt0.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | mov $main, %rdi 5 | call __mlibc_entry 6 | .section .note.GNU-stack,"",%progbits 7 | 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/x86_64/crt-src/crti.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | .global _init 3 | _init: 4 | push %rax 5 | 6 | .section .fini 7 | .global _fini 8 | _fini: 9 | push %rax 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/lyre/x86_64/crt-src/crtn.S: -------------------------------------------------------------------------------- 1 | .section .init 2 | pop %rax 3 | ret 4 | 5 | .section .fini 6 | pop %rax 7 | ret 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/aarch64/crt-src/crt0.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global _start 4 | _start: 5 | adrp x0, main 6 | add x0, x0, :lo12:main 7 | bl __mlibc_entry 8 | 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/aarch64/signals.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_signal_restore 4 | __mlibc_signal_restore: 5 | ldr x0, =0x80000006 6 | svc 0 7 | brk #1 8 | 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/aarch64/thread_entry.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_start_thread 4 | __mlibc_start_thread: 5 | ldp x0, x1, [sp] 6 | ldr x2, [sp, #16] 7 | add sp, sp, #24 8 | bl __mlibc_enter_thread 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/access.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/access.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/auxv.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/managarm/auxv.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/blkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/blksize_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/blksize_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/clockid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/clockid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/dev_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/dev_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/epoll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/epoll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/errno.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/errno.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/fcntl.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/fcntl.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/fsblkcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsblkcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/fsfilcnt_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/fsfilcnt_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/gid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/gid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/in.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/in.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/ino_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ino_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/inotify.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/inotify.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/ioctls.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/ioctls.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/limits.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/limits.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/mode_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/mode_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/mqueue.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/mqueue.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/nlink_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/nlink_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/packet.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/packet.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/pid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/pid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/poll.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/poll.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/ptrace.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/ptrace.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/reboot.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/reboot.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/resource.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/resource.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/seek-whence.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/seek-whence.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/shm.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/shm.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/signal.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/signal.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/socket.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/socket.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/socklen_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/socklen_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/stat.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/stat.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/statfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/statvfs.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/statvfs.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/suseconds_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/suseconds_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/termios.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/termios.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/time.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/time.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/uid_t.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/uid_t.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/utsname.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/utsname.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/vm-flags.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/mlibc/vm-flags.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/wait.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/wait.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/abi-bits/xattr.h: -------------------------------------------------------------------------------- 1 | ../../../../abis/linux/xattr.h -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/include/mlibc/thread-entry.hpp: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | 5 | extern "C" void __mlibc_start_thread(void); 6 | extern "C" void __mlibc_enter_thread(void *entry, void *user_arg, Tcb *tcb); 7 | 8 | namespace mlibc { 9 | void *prepare_stack(void *entry, void *user_arg, void *tcb); 10 | } 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/x86_64/crt-src/Scrt1.S: -------------------------------------------------------------------------------- 1 | .section .text 2 | .global _start 3 | _start: 4 | lea main(%rip), %rdi 5 | call __mlibc_entry 6 | .section .note.GNU-stack,"",%progbits 7 | 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/x86_64/crt-src/crt0.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global _start 4 | _start: 5 | mov $main, %rdi 6 | call __mlibc_entry 7 | 8 | .section .note.GNU-stack,"",%progbits 9 | 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/x86_64/signals.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_signal_restore 4 | __mlibc_signal_restore: 5 | mov $0x80000006, %rdi 6 | syscall 7 | ud2 8 | 9 | .section .note.GNU-stack,"",%progbits 10 | 11 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/sysdeps/managarm/x86_64/thread_entry.S: -------------------------------------------------------------------------------- 1 | 2 | .section .text 3 | .global __mlibc_start_thread 4 | __mlibc_start_thread: 5 | pop %rdi 6 | pop %rsi 7 | pop %rdx 8 | call __mlibc_enter_thread 9 | 10 | .section .note.GNU-stack,"",%progbits 11 | 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/ansi/strrchr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | char str[] = "This is a sample string"; 6 | char *pch; 7 | pch = strrchr(str, 's'); 8 | // The last occurence of 's' is at position 18 9 | assert(pch - str + 1 == 18); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/ansi/wcsrtombs.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | int main() { 7 | const wchar_t str[] = L"wcsrtombs"; 8 | const wchar_t *p = str; 9 | int ret = wcsrtombs(NULL, &p, 343245234, NULL); 10 | assert(ret == 9); 11 | return 0; 12 | } 13 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/bsd/reallocarray.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() { 4 | void *ret = reallocarray(NULL, 69, 0xCB7); 5 | free(ret); 6 | return !ret; 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/bsd/sbrk.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main() { 6 | void *ret = sbrk(0); 7 | assert(ret != (void *) -1); 8 | assert(ret); 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/glibc/error.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | error(0, EINVAL, "test: %s", "error"); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/glibc/error.py: -------------------------------------------------------------------------------- 1 | import subprocess 2 | import sys 3 | from pyexpect import expect 4 | 5 | output = subprocess.check_output([sys.argv[1]], stderr=subprocess.STDOUT) 6 | 7 | expect(bytes(sys.argv[1], 'utf-8') + b': test: error: Invalid argument (EINVAL)\n').to_equal(output) 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/glibc/error_at_line.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | error_at_line(0, EINVAL, "error_at_line", 5, "test: %s", "error"); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/glibc/error_at_line.py: -------------------------------------------------------------------------------- 1 | import subprocess 2 | import sys 3 | from pyexpect import expect 4 | 5 | output = subprocess.check_output([sys.argv[1]], stderr=subprocess.STDOUT) 6 | 7 | expect(bytes(sys.argv[1], 'utf-8') + b':error_at_line:5: test: error: Invalid argument (EINVAL)\n').to_equal(output) 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/glibc/error_expect_fail.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | error(1, EINVAL, "test error #1"); 6 | } 7 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/posix/if_indextoname.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int main() { 6 | char name[IF_NAMESIZE]; 7 | 8 | assert(name == if_indextoname(1, name)); 9 | printf("test: name '%s'\n", name); 10 | assert(1 == if_nametoindex(name)); 11 | } 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/posix/rindex.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int main() { 5 | char str[] = "This is a sample string"; 6 | char *pch; 7 | pch = rindex(str, 's'); 8 | // The last occurence of 's' is at position 18 9 | assert(pch - str + 1 == 18); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/dl_iterate_phdr/libbar.c: -------------------------------------------------------------------------------- 1 | // Bar needs to have a relocation against foo in order to set DT_NEEDED. 2 | int foo(void); 3 | int bar() { return foo(); } 4 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/dl_iterate_phdr/libfoo.c: -------------------------------------------------------------------------------- 1 | int foo() { return 0; } 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/noload-promote/libfoo.c: -------------------------------------------------------------------------------- 1 | void foo() {} 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/noload-promote/meson.build: -------------------------------------------------------------------------------- 1 | libfoo = shared_library('foo', 'libfoo.c') 2 | test_depends = [libfoo] 3 | 4 | libfoo_native = shared_library('native-foo', 'libfoo.c', native: true) 5 | test_native_depends = [libfoo_native] 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope1/libbar.c: -------------------------------------------------------------------------------- 1 | char *foo(void); 2 | char *foo_global(void); 3 | 4 | char *bar() { 5 | return "bar"; 6 | } 7 | 8 | char *bar_calls_foo() { 9 | return foo(); 10 | } 11 | 12 | char *bar_calls_foo_global() { 13 | return foo_global(); 14 | } 15 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope1/libfoo.c: -------------------------------------------------------------------------------- 1 | char *foo() { 2 | return "foo"; 3 | } 4 | 5 | char global[] = "foo global"; 6 | 7 | char *foo_global() { 8 | return global; 9 | } 10 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope2/libbar.c: -------------------------------------------------------------------------------- 1 | char *foo_baz_conflict(void); 2 | 3 | char *bar_calls_foo_baz_conflict() { 4 | return foo_baz_conflict(); 5 | } 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope2/libbaz.c: -------------------------------------------------------------------------------- 1 | char *foo_baz_conflict() { 2 | return "resolved to baz"; 3 | } 4 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope2/libfoo.c: -------------------------------------------------------------------------------- 1 | char *foo_baz_conflict() { 2 | return "resolved to foo"; 3 | } 4 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope3/libbar.c: -------------------------------------------------------------------------------- 1 | int g = 1; 2 | 3 | int call_foo(); 4 | 5 | int call_bar() { 6 | return call_foo(); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope3/libbaz.c: -------------------------------------------------------------------------------- 1 | int g = 2; 2 | 3 | int call_foo(); 4 | 5 | int call_baz() { 6 | return call_foo(); 7 | } 8 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope3/libfoo.c: -------------------------------------------------------------------------------- 1 | int g = 0; 2 | 3 | int call_foo() { 4 | return g; 5 | } 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope4/libbar.c: -------------------------------------------------------------------------------- 1 | // Bar needs to have a relocation against foo in order to set DT_NEEDED. 2 | void foo(void); 3 | void bar() { foo(); } 4 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope4/libbaz.c: -------------------------------------------------------------------------------- 1 | void baz() {} 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope4/libfoo.c: -------------------------------------------------------------------------------- 1 | // Foo needs to have a relocation against baz in order to set DT_NEEDED. 2 | void baz(void); 3 | void foo() { baz(); } 4 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope5/libfoo.c: -------------------------------------------------------------------------------- 1 | void foo() {} 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/scope5/meson.build: -------------------------------------------------------------------------------- 1 | libfoo = shared_library('foo', 'libfoo.c') 2 | test_link_with = [libfoo] 3 | 4 | libfoo_native = shared_library('native-foo', 'libfoo.c', native: true) 5 | test_native_link_with = [libfoo_native] 6 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/soname/libbar.c: -------------------------------------------------------------------------------- 1 | char *name() { return "bar"; } 2 | -------------------------------------------------------------------------------- /sources/core/libs/mlibc/tests/rtdl/soname/libfoo.c: -------------------------------------------------------------------------------- 1 | char *name() { return "foo"; } 2 | -------------------------------------------------------------------------------- /sources/core/modules/ahci/source/device.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODULE_AHCI_DEVICE_H 2 | #define _MODULE_AHCI_DEVICE_H 3 | 4 | int ahci_device_read(struct storage_device_t* storage, uint64_t start, size_t size, void* buffer); 5 | int ahci_device_write(struct storage_device_t* storage, uint64_t start, size_t size, void* buffer); 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /sources/core/modules/ahci/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/boot/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/devconsole/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/devfb/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/devfs/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/devpower/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/e1000/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/fat32/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/hid/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/net/source/dhcp.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODULE_NET_DHCP_H 2 | #define _MODULE_NET_DHCP_H 3 | 4 | #include 5 | #include 6 | 7 | int init_dhcp(void); 8 | int get_dhcp_info(net_device_t* net_device); 9 | 10 | #endif // _MODULE_NET_DHCP_H -------------------------------------------------------------------------------- /sources/core/modules/net/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/pci/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/ps2/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/rtc/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/storage/source/interface.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODULE_STORAGE_INTERFACE_H 2 | #define _MODULE_STORAGE_INTERFACE_H 3 | 4 | void interface_init(void); 5 | 6 | #endif // _MODULE_STORAGE_INTERFACE_H 7 | -------------------------------------------------------------------------------- /sources/core/modules/storage/source/partition/crc32.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODULE_STORAGE_PARTITION_CRC32_H 2 | #define _MODULE_STORAGE_PARTITION_CRC32_H 3 | 4 | #include 5 | #include 6 | 7 | uint32_t partition_crc32(uint32_t crc, const char *buf, size_t len); 8 | 9 | #endif // _MODULE_STORAGE_PARTITION_CRC32_H -------------------------------------------------------------------------------- /sources/core/modules/storage/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/test/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/core/modules/vfs/source/system.h: -------------------------------------------------------------------------------- 1 | #ifndef _MODULE_VFS_SYSTEM_H 2 | #define _MODULE_VFS_SYSTEM_H 3 | 4 | void system_tasks_mount(fs_t* new_fs); 5 | void system_tasks_init(void); 6 | 7 | #endif // _MODULE_VFS_SYSTEM_H 8 | -------------------------------------------------------------------------------- /sources/core/modules/vfs/target/amd64/.gitignore: -------------------------------------------------------------------------------- 1 | **/disk 2 | **/bin 3 | **/lib 4 | -------------------------------------------------------------------------------- /sources/extern/.gitignore: -------------------------------------------------------------------------------- 1 | ** 2 | !.gitignore 3 | !makefile 4 | -------------------------------------------------------------------------------- /sources/tools/.gitignore: -------------------------------------------------------------------------------- 1 | ** 2 | !.gitignore 3 | !build.sh 4 | !ksym.c -------------------------------------------------------------------------------- /sources/tools/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | gcc -o $CWD/ksym -Wall $CWD/ksym.c -------------------------------------------------------------------------------- /target/.gitignore: -------------------------------------------------------------------------------- 1 | liamd 2 | liarm 3 | boot_disk_kot_mount 4 | *.bin 5 | serial_output.txt -------------------------------------------------------------------------------- /target/disk.cfg: -------------------------------------------------------------------------------- 1 | ROOT_MOUNT_DIR_PATH=/usr 2 | ROOT_MOUNT_DIR_PATH=/etc 3 | -------------------------------------------------------------------------------- /target/initrd/system/console/fonts/vga.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/target/initrd/system/console/fonts/vga.bin -------------------------------------------------------------------------------- /target/initrd/system/default/scancode.scd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kot-org/Kot/a0cca9355e5cf9b79af51e2386cc665fa4e0c266/target/initrd/system/default/scancode.scd -------------------------------------------------------------------------------- /target/initrd/tools/.gitignore: -------------------------------------------------------------------------------- 1 | ** 2 | !.gitignore 3 | !build.sh 4 | !ksym.c 5 | -------------------------------------------------------------------------------- /target/initrd/tools/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | gcc -o $CWD/ksym -Wall $CWD/ksym.c --------------------------------------------------------------------------------