steeznson, (edited )

In GNU coreutils the implementation of rm doesn’t allocate memory however I believe alternative implementations do.

Here’s an example from the OpenBSD source code - github.com/openbsd/src/blob/…/rm.c#L335

Presumably other *BSDs use something similar? Didn’t check out FreeBSD or anything.

Edit: So I suppose if you are using a BSD-type system (maybe including macOS?), and memory safety was important to you (to the point of extreme paranoia), then you might want to look into this rust project. Or just use the GNU implementation.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • opensource@lemmy.ml
  • fightinggames
  • All magazines