hdf_write_file_atomic(3)
π hdf_write_file_atomic(3) π
okay bestie, so this one lives in the util/neo_hdf.h manual β that's the whole manual name, we're just folding it up here at the top like a cute lil' intro instead of doing the boring header-line thing. it's giving utility function, it's giving ClearSilver energy, and honestly? it's a bop. π
β¨ NAME β¨
hdf_write_file_atomic β write an HDF data file atomically π
π¦ SYNOPSIS π¦
#include <util/neo_hdf.h>
NEOERR* hdf_write_file_atomic (HDF *hdf, const char *path);
πΈ DESCRIPTION πΈ
okay so here's the tea, bestie β β hdf_write_file_atomic is basically hdf_write_file's cooler, more careful sibling. the way that it works? instead of just writing straight over your file like some reckless icon, it makes the new file under a unique name first, and then it calls rename(2) to swap the new file in and atomically replace the old one. no half-written file, no in-between state, no drama. π«Ά
that's literally it. that's the whole glow-up.
and then the page just says:
Input: Output:
β¦and nothing else?? π literally trailing off mid-thought, main character energy fr fr, she said "and as for the inputs and outputsβ¦ anyway π". we're keeping it exactly as she left it, no notes, periodt.
π SEE ALSO π
go read these too, they're all part of the same friend group π:
hdf_set_symlink(3), hdf_get_valuef(3), compareFunc)(3), hdf_dump_str(3), hdf_get_int_value(3), hdf_read_string_ignore(3), hdf_copy(3), hdf_get_node(3), hdf_set_value(3), hdf_obj_child(3), hdf_read_string(3), hdf_set_buf(3), hdf_register_fileload(3), hdf_get_obj(3), hdf_get_attr(3), hdf_obj_top(3), hdf_dump_format(3), hdf_destroy(3), hdf_init(3), hdf_obj_value(3), hdf_write_string(3), hdf_set_valuevf(3), hdf_sort_obj(3), hdf_write_file_atomic(3), hdf_obj_attr(3), hdf_set_valuef(3), hdf_get_copy(3), hdf_write_file(3), hdf_get_valuevf(3), hdf_set_int_value(3), hdf_dump(3), hdf_get_value(3), hdf_set_copy(3), hdf_obj_next(3), hdf_search_path(3), hdf_obj_name(3), hdf_set_attr(3), hdf_get_child(3), hdf_remove_tree
(yes queen hdf_write_file_atomic(3) is in her own SEE ALSO list β self-love, we stan π
β¨)
aaaand that's the page!! π no cap, you now know everything this manpage knows. this lil' baddie came to you courtesy of ClearSilver, dated 12 July 2007 β vintage, iconic, still slaying. mwah πππ§
π¦ where this page comes from
- debian bookworm: clearsilver-dev 0.10.5-4+b5
- debian trixie: clearsilver-dev 0.10.5-6+b1
- epel 10: clearsilver 0.10.5-80.el10_2 Β· Apache-1.1
- epel 9: clearsilver 0.10.5-74.el9 Β· Apache-1.1
- fedora 43: clearsilver 0.10.5-80.fc43 Β· Apache-1.1
- fedora 44: clearsilver 0.10.5-82.fc44 Β· Apache-1.1
- ubuntu jammy: clearsilver-dev 0.10.5-4build3
- ubuntu noble: clearsilver-dev 0.10.5-4build7
- ubuntu questing: clearsilver-dev 0.10.5-6build1
- ubuntu resolute: clearsilver-dev 0.10.5-7
- ubuntu stonking: clearsilver-dev 0.10.5-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms