diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-03 10:03:40 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-03 10:07:18 +0100 |
commit | 6c55425a7de23a71d0abc3137f0015e878188bae (patch) | |
tree | e5183f130ea90cce0a11637afb9e40d09556aac3 /tools/save.h | |
parent | 3acf285916968a05ea42b3ef0f9654a33e308da7 (diff) |
Windows doesn't support symlinks, chmod, or atomic renames
* Don't create symlinks on windows
* No atomic renames, so delete and then rename
* Make sure to close files before unlinking on windows
* No chmod permissions on windows
Diffstat (limited to 'tools/save.h')
-rw-r--r-- | tools/save.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/save.h b/tools/save.h index 3e877ae..bfa0990 100644 --- a/tools/save.h +++ b/tools/save.h @@ -68,11 +68,15 @@ p11_save_file * p11_save_open_file_in (p11_save_dir *directory, const char *extension, const char **filename); +#ifdef OS_UNIX + bool p11_save_symlink_in (p11_save_dir *dir, const char *linkname, const char *extension, const char *destination); +#endif /* OS_UNIX */ + bool p11_save_finish_directory (p11_save_dir *dir, bool commit); |