frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Gathering Linux Syscall Numbers in a C Table

https://t-cadet.github.io/programming-wisdom/#2026-01-17-gathering-linux-syscall-numbers
31•phi-system•4d ago

Comments

jesse__•1h ago
I've been thinking about doing this for a little side project for some time. Looking forward to the eventual conclusion :)
halb•1h ago
There is an existing project that tracks and gather syscalls in the linux kernel, for all ABIs: https://github.com/mebeim/systrack . The author maintains a table here, which is incredibly useful: https://syscalls.mebeim.net/?table=x86/64/x64/latest
rwmj•32m ago
And https://gpages.juszkiewicz.com.pl/syscalls-table/syscalls.ht... , https://github.com/hrw/syscalls-table/
pjmlp•22m ago
> In an ideal world, there would be a header-only C library provided by the Linux kernel; we would include that file and be done with it. As it turns out, there is no such file, and interfacing with syscalls is complicated.

Because Linux is the exception, UNIX public API is the C library as defined later by POSIX.

The goal to create C and rewrite UNIX V4 into C was exactly to move away from this kind of platform details.

Also UNIX can be seen as C's runtime, in a way, thus traditionally the C compiler was the same of the platform vendor, there were not pick and chose among C compilers and standard libraries, that was left for non-UNIX platforms.

adrian_b•4m ago
Even if one would want to use Linux only through libc, that is not always possible.

Linux has evolved beyond POSIX and many newer syscalls, which can enhance performance in certain scenarios, are not available as libc functions.

They may be invoked either using the generic syscall wrappers provided by glibc besides the standard functions, or by using custom wrappers or possibly by using some special libraries, if such libraries are available.

leni536•12m ago
> In an ideal world, there would be a header-only C library provided by the Linux kernel; we would include that file and be done with it. As it turns out, there is no such file, and interfacing with syscalls is complicated.

Isn't that nolibc.h?

jmgao•3m ago
> I was expecting a unified interface across all architectures, with perhaps one or two architecture-specific syscalls to access architecture-specific capabilities; but Linux syscalls are more like Swiss cheese.

There's lots of historical weirdness, mostly around stuff where the kernel went "oops, we need 64-bit time_t or off_t or whatever" and added, for example, getdents64 to old platforms, but new platforms never got the broken 32-bit version. There are some more interesting cases, though, like how until fairly recently (i.e. about a decade ago for the mainline kernel), on x86 (and maybe other platforms?) there weren't individual syscalls for each socket syscall, they were all multiplexed through socketcall.

Show HN: Sweep, Open-weights 1.5B model for next-edit autocomplete

https://huggingface.co/sweepai/sweep-next-edit-1.5B
265•williamzeng0•9h ago•39 comments

Doctors in Brazil using tilapia fish skin to treat burn victims

https://www.pbs.org/newshour/health/brazilian-city-uses-tilapia-fish-skin-treat-burn-victims
79•kaycebasques•4h ago•41 comments

In Praise of APL (1977)

https://www.jsoftware.com/papers/perlis77.htm
6•tosh•36m ago•0 comments

From stealth blackout to whitelisting: Inside the Iranian shutdown

https://www.kentik.com/blog/from-stealth-blackout-to-whitelisting-inside-the-iranian-shutdown/
103•oavioklein•9h ago•50 comments

Hands-On Introduction to Unikernels

https://labs.iximiuz.com/tutorials/unikernels-intro-93976514
44•valyala•5d ago•6 comments

Threat actors expand abuse of Microsoft Visual Studio Code

https://www.jamf.com/blog/threat-actors-expand-abuse-of-visual-studio-code/
165•vinnyglennon•9h ago•113 comments

Gathering Linux Syscall Numbers in a C Table

https://t-cadet.github.io/programming-wisdom/#2026-01-17-gathering-linux-syscall-numbers
31•phi-system•4d ago•7 comments

Your brain on ChatGPT: Accumulation of cognitive debt when using an AI assistant

https://www.media.mit.edu/publications/your-brain-on-chatgpt/
166•misswaterfairy•10h ago•118 comments

Claude's new constitution

https://www.anthropic.com/news/claude-new-constitution
445•meetpateltech•17h ago•447 comments

Show HN: ChartGPU – WebGPU-powered charting library (1M points at 60fps)

https://github.com/ChartGPU/ChartGPU
586•huntergemmer•18h ago•170 comments

Waiting for dawn in search: Search index, Google rulings and impact on Kagi

https://blog.kagi.com/waiting-dawn-search
308•josephwegner•15h ago•165 comments

eBay explicitly bans AI "buy for me" agents in user agreement update

https://www.valueaddedresource.net/ebay-bans-ai-agents-updates-arbitration-user-agreement-feb-2026/
126•bdcravens•12h ago•129 comments

Binary fuse filters: Fast and smaller than xor filters (2022)

https://arxiv.org/abs/2201.01174
97•redbell•4d ago•7 comments

Skip is now free and open source

https://skip.dev/blog/skip-is-free/
393•dayanruben•18h ago•180 comments

Lix – universal version control system for binary files

https://lix.dev/blog/introducing-lix/
57•onecommit•9h ago•27 comments

TrustTunnel: AdGuard VPN protocol goes open-source

https://adguard-vpn.com/en/blog/adguard-vpn-protocol-goes-open-source-meet-trusttunnel.html
136•kumrayu•16h ago•40 comments

Show HN: Rails UI

https://railsui.com/
168•justalever•14h ago•86 comments

JPEG XL Test Page

https://tildeweb.nl/~michiel/jxl/
195•roywashere•16h ago•123 comments

Significant US farm losses persist, despite federal assistance

https://www.fb.org/market-intel/significant-farm-losses-persist-despite-federal-assistance
161•toomuchtodo•8h ago•161 comments

Satya Nadella: a masterclass in saying everything while promising nothing

https://jpcaparas.medium.com/satya-nadella-at-davos-a-masterclass-in-saying-everything-while-prom...
15•pjmlp•1h ago•1 comments

Tell HN: 2 years building a kids audio app as a solo dev – lessons learned

115•oliverjanssen•19h ago•47 comments

Show HN: High speed graphics rendering research with tinygrad/tinyJIT

https://github.com/quantbagel/gtinygrad
23•quantbagel•5h ago•8 comments

Show HN: RatatuiRuby wraps Rust Ratatui as a RubyGem – TUIs with the joy of Ruby

https://www.ratatui-ruby.dev/
120•Kerrick•4d ago•21 comments

SpaceX lowering orbits of 4,400 Starlink satellites for safety's sake

https://www.space.com/space-exploration/satellites/spacex-lowering-orbits-of-4-400-starlink-satel...
10•thread_id•1h ago•4 comments

Letting Claude play text adventures

https://borretti.me/article/letting-claude-play-text-adventures
114•varjag•5d ago•49 comments

The WebRacket language is a subset of Racket that compiles to WebAssembly

https://github.com/soegaard/webracket
126•mfru•4d ago•26 comments

Show HN: An opinionated fork of micro, built for vibe coders who enjoy code

https://github.com/elleryfamilia/thicc
5•e-clinton•5d ago•0 comments

Jerry (YC S17) Is Hiring

https://www.ycombinator.com/companies/jerry-inc/jobs/QaoK3rw-software-engineer-core-automation-ma...
1•linaz•11h ago

Show HN: Differentiable Quantum Chemistry

https://github.com/lowdanie/hartree-fock-solver
32•lowdanie•4d ago•6 comments

Evolution Unleashed (2018)

https://aeon.co/essays/science-in-flux-is-a-revolution-brewing-in-evolutionary-theory
11•DiabloD3•3d ago•0 comments