this post was submitted on 02 Jul 2026
20 points (61.6% liked)

Programmer Humor

32437 readers
1219 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] onlinepersona@programming.dev 4 points 3 weeks ago (2 children)

Can somebody explain why they are using libc in the first place?

[–] ace@lemmy.ananace.dev 29 points 3 weeks ago (2 children)

Because it's a rust implementation of coreutils, and not a rust implementation of coreutils and libc?

[–] onlinepersona@programming.dev 3 points 3 weeks ago (1 children)

But why is libc necessary in the first place? Are the functions not provided by the stdlib of rust?

[–] ace@lemmy.ananace.dev 22 points 3 weeks ago* (last edited 3 weeks ago)

No, the Rust standard library only contains functions useful for standard Rust, not POSIX/Linux user-space -specific functionality from libc.