summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2009-06-23 17:35:11 -0700
committerChristopher Tate <ctate@google.com>2009-06-23 17:40:44 -0700
commit5c2882b25c5f50ad5fe0dd658e4076b0c857dddc (patch)
tree8d629574bc30b1d9946144ab8cdfb1a5c19ad6dc /opengl/tests/gl_basic/gl_basic.cpp
parent4b1af267542e07c65df1270343ebbbbf53ef7f8e (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 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions