Hacker GitHub

← All repos

matheusmoreira/liblinux

View on GitHub ↗ ★ 4 Rust

Linux system calls in Rust

22 mentions on Hacker News by 4 people: 2 stories, 20 comments · first 2020-03-26 · latest 2026-08-19

Mentions per year 22 mentions · busiest year 2021 (9)
20082026
  1. …it my mission to fix it. Maybe lisp isn't the answer, Rust is. I've revived my liblinux crate too. https://github.com/matheusmoreira/liblinux I'm going to add system calls to this thing every day until I have every single one. Then I'll…
    comment by matheusmoreira · 2026-08-19 · in Solo – a .so loader for static Linux binaries
  2. …_start functions which did nothing but pass argc, argv, envp and auxv to the actual main function: https://github.com/matheusmoreira/liblinux/blob/master/start... https://github.com/matheusmoreira/liblinux/blob/master/start... You can get…
    comment by matheusmoreira · 2025-10-26 · in The Journey Before main()
  3. …send a patch in and don't get a response. This was my approach when I received similar questions: https://github.com/matheusmoreira/liblinux/issues/16 I think it's better to just be sincere and provide the necessary context.
    comment by matheusmoreira · 2023-11-15 · in Please Don't Ask If an Open Source Project Is Dead
  4. …system call wrappers. Researched quite a bit about glibc's attitude towards Linux to justify it: https://github.com/matheusmoreira/liblinux#why The more I used this stuff, the more I enjoyed it. I was writing freestanding C and interfacing…
    comment by matheusmoreira · 2023-11-07 · in A standalone zero-dependency Lisp for Linux
  5. …of legacy C library crap. Years ago I wrote a rationale for such a thing in my liblinux project: https://github.com/matheusmoreira/liblinux/blob/master/READM... I don't maintain it anymore because nolibc is better but there's a lot of…
  6. …with stable ABIs to enable other libc's, absolutely! I worked on this a few years ago: liblinux. https://github.com/matheusmoreira/liblinux It's still a nice proof of concept but I abandoned it when I found out the Linux kernel itself has…
    comment by matheusmoreira · 2022-08-16 · in Win32 Is the Only Stable ABI on Linux?
  7. …and reply. I published some of my work in the form of a liblinux that I use to make system calls: https://github.com/matheusmoreira/liblinux I'm not developing it anymore though because I found out the kernel itself has a superior nolibc…
    comment by matheusmoreira · 2022-08-15 · in Oasis: Small statically-linked Linux system
  8. …find it. I think my function is needlessly complicated compared to rwildcard. Here's my code: https://github.com/matheusmoreira/liblinux/blob/modular-buil... https://github.com/matheusmoreira/liblinux/blob/modular-buil... The file? and…
    comment by matheusmoreira · 2022-08-06 · in A Tutorial on Portable Makefiles (2017)
  9. …to do literally anything on x86_64 Linux from writing to a file descriptor to graphics card ioctls: https://github.com/matheusmoreira/liblinux/blob/master/sourc... In all others, interfacing with the kernel directly eventually leads to…
  10. https://github.com/matheusmoreira/liblinux/tree/master/sourc... "access to a very limited subset of Linux system calls" :P Still a cool project though and a good base.
  11. …program directly. I used to develop a liblinux that illustrates all this with much simpler code: https://github.com/matheusmoreira/liblinux/blob/master/start... https://github.com/matheusmoreira/liblinux/blob/master/start... The entry…
  12. ….com/linux/latest/source/tools/include... My code is in a bad state but if you'd like to take a look: https://github.com/matheusmoreira/liblinux It's amazing how this really lets you do everything... Want a JIT compiler? Map some…
  13. …do everything yourself. It is easy to get started. Here's a system call function for x86_64 Linux: https://github.com/matheusmoreira/liblinux/blob/master/sourc... With this single function, it is possible to do anything . You can rewrite…
    comment by matheusmoreira · 2021-06-21 · in Ask HN: How to learn proper systems programming?
  14. …but the Linux system call interface. Turns out the Linux system call interface is so much nicer. https://github.com/matheusmoreira/liblinux/blob/master/examp...
    comment by matheusmoreira · 2021-03-05 · in Git's list of banned C functions
  15. > What I wouldn't give for a liblinux, similar to NTDLL. Hey I actually tried to make such a thing. https://github.com/matheusmoreira/liblinux It provides access to Linux system calls and process start up code that gets all the arguments,…
    comment by matheusmoreira · 2021-03-01 · in Actually Portable Executables
  16. …the README describes part of my journey learning about this system call stuff. Lots of LWN sources! https://github.com/matheusmoreira/liblinux/blob/master/READM... I've been thinking about expanding on it in order to describe everything I…
    comment by matheusmoreira · 2021-02-27 · in Actually Portable Executable
  17. …find this pointer is loop through it until it goes out of bounds. I wrote this code and it works: https://github.com/matheusmoreira/liblinux/blob/master/start... struct auxiliary { Elf64_Off type; Elf64_Off value; }; static void…
    comment by matheusmoreira · 2021-02-27 · in Actually Portable Executable
  18. …to access everything. I found it during my research for my own Linux system calls library project: https://github.com/matheusmoreira/liblinux There's some additional details implemented by my project such as process start up functions…
    comment by matheusmoreira · 2020-09-15 · in Project Oberon
  19. …free time these days nor the willpower to make it happen. I created a liblinux but it's incomplete: https://github.com/matheusmoreira/liblinux I also found out the Linux kernel itself has an excellent system call stubs header which they…
  20. …official Linux system call library! ¹ https://git.musl-libc.org/cgit/musl/commit/?id=1e21e78bf7a5 ² https://github.com/matheusmoreira/liblinux ³ https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...
    comment by matheusmoreira · 2020-03-26 · in About Musl