Mercurial > geeqie
view src/secure_save.h @ 313:a955b7fd626b
Secure save now unlinks temporary file on error by default.
It will prevent left-behind temporary files, but also prevent
potential data recovery from partially written files (it
should not be a problem here).
author | zas_ |
---|---|
date | Fri, 11 Apr 2008 16:46:21 +0000 |
parents | 99139bf9f380 |
children | 48c8e49b571c |
line wrap: on
line source
/* * Geeqie * * Author: Vladimir Nadvornik * based on the code developped for ELinks by Laurent Monin * * This software is released under the GNU General Public License (GNU GPL). * Please read the included file COPYING for more information. * This software comes with no warranty of any kind, use at your own risk! */ #ifndef SECURE_SAVE_H #define SECURE_SAVE_H extern SecureSaveErrno secsave_errno; /**< internal secsave error number */ SecureSaveInfo *secure_open(const gchar *); gint secure_close(SecureSaveInfo *); gint secure_fputs(SecureSaveInfo *, const gchar *); gint secure_fputc(SecureSaveInfo *, gint); gint secure_fprintf(SecureSaveInfo *, const gchar *, ...); gchar *secsave_strerror(SecureSaveErrno); #endif /* SECURE_SAVE_H */