this is how you read/write files properly in a linux (or any unix e.g. bsd) userspace application:

browse.libreboot.org/lbmk.git/

mit licensed btw. i plan to make this its own library at some point.

have a nice day

and now that i got this out of my system, i have literally everything else other than editing nvmutil.c to do

browse.libreboot.org

nvmutil.c\nvmutil\util - lbmk.git - libreboot build system (LibreBoot MaKe)

I follow you work for some time now and its just another nice implementation.
I hope this will find its way to being a library eventually. I had situations, when i did similar things just not as holistic and clean.
Also compliments for you structured commenting.
:anarchoheart2:

Leah Rowe ist kein Roweboter

@libreleah@mas.to

i plan to tidy this up and submit it to the bsd projects, for their libc implementations. i think this should be in libc

a few currently hardcoded checks could be removed, or made configurable, but i t's pretty much all there

it's an obsessively over-engineered implementation, to be sure. i can rest comfortable, knowing that my Intel GbE NVM configs will never be corrupted by this tool.

March 14, 2026 at 4:56:13 PM
Web

idk... isn't 'pure libc' an indicator for living on the edge?
being an adventurous creature?
better have a new libSafe if you want your file r/w to be boring. 馃檭

i tend to avoid using large libraries. i just implement what i need. better to be small and portable.

'pure libc' is the 'holding your head out of the trainwindow before entering a tunnel'.

okay i am done now.

how else are you going to properly take in the sights?

Elk Logo

Elk is in Preview!

Thanks for your interest in trying out Elk, our work-in-progress Mastodon web client!

Expect some bugs and missing features here and there. we are working hard on the development and improving it over time.

Elk is Open Source. If you'd like to help with testing, giving feedback, or contributing, reach out to us on GitHub and get involved.

To boost development, you can sponsor the Team through GitHub Sponsors. We hope you enjoy Elk!

涓夊挷鏅哄瓙 Kevin DengDaniel RoePatakAnthony Fu

The Elk Team