this post was submitted on 02 Jul 2026
23 points (64.6% liked)

Programmer Humor

32173 readers
1044 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 6 points 5 days ago (2 children)

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

[–] ace@lemmy.ananace.dev 24 points 5 days ago (2 children)

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

[–] onlinepersona@programming.dev 4 points 5 days 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 15 points 5 days ago* (last edited 5 days ago)

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

[–] MonkderVierte@lemmy.zip 1 points 5 days ago* (last edited 5 days ago)