mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
8deb6182c6
This is modeled after glib's g_file_set_contents. It doesn't use that function directly because the writing is done with GIOChannel streaming-like writes and g_file_set_contents expects the whole thing to be in-memory. Main differences with g_file_set_contents: - complete lack of win32 special casing (cygwin/WSL should work though) - no fallocate() (linux only, but we don't know the size upfront, anyway) - always calls fsync (glib skips it on btrfs or when not overwriting) Other than that, it's the same old mkstemp + fsync + rename. |
||
---|---|---|
.. | ||
get.c | ||
iconfig.h | ||
Makefile.am | ||
module.h | ||
parse.c | ||
set.c | ||
write.c |