summaryrefslogtreecommitdiff
path: root/libs/ui/FramebufferNativeWindow.cpp
diff options
context:
space:
mode:
author Christopher Tate <ctate@google.com> 2009-06-23 17:35:11 -0700
committer Christopher Tate <ctate@google.com> 2009-06-23 17:40:44 -0700
commitfbb92385f2fb0ae1146bb8f3d73547d90bda6db1 (patch)
tree3c02712ab875ae1889d3b0a2df244ef3cc205410 /libs/ui/FramebufferNativeWindow.cpp
parent3fbd946bacdc202dc23c84887d2ad47402b5015b (diff)
Preserve file access mode when backing up / restoring files
This change adds a fixed-size metadata block at the head of each file's content entity. The block is versioned, and fixed-size on the theory that it might be nice to be able to recover the content (if not the full metadata) of the files if we're ever confronted with data backed up some hypothetical future helper that stored expanded metadata. The net effect is that now on restore, we assign the same access mode to the file that it originally had when backed up. Also, some of the code was failing to properly free transient heap-based buffers when it encountered errors. This has been fixed with the addition of a tiny stack-based object whose job it is to free() its designated pointer from its destructor.
Diffstat (limited to 'libs/ui/FramebufferNativeWindow.cpp')
0 files changed, 0 insertions, 0 deletions