Re: g_file_write()
- From: Soeren Sandmann <sandmann daimi au dk>
- To: gtk-devel-list gnome org
- Cc: tml iki fi, scott asofyet org, mclasen redhat com, alexis cecm usp br, mortenw gnome org
- Subject: Re: g_file_write()
- Date: 08 Mar 2005 20:49:08 +0100
I have put up a new patch at
http://www.daimi.au.dk/~sandmann/filewrite2.patch
that should take care of most of the comments:
- Function is now called g_file_replace(). (I think
g_file_replace_contents() suggests that permissions etc. are
preserved).
- Documentation mentions that the write is atomic, and some of the
traps.
- Uses fdopen(). Since we are already using fdopen() on Unix
in one place, and Tor says that it works as expected on Windows I
don't think this makes glib any less portable than it already is.
- Test/unlink is only done on Windows and only when an initial rename
attempt failed.
Søren
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]