Jump to content
  • Advertisement
Sign in to follow this  
Starfox

Atomic File Library - C, BSD Licensed.

This topic is 2142 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I wrote a small library that provides atomic files with transaction support on platforms that don't have native transactional filesystems. I basically wrote that to avoid potential file corruption when writing out things like save game files etc., but it should be widely useful especially since the transactions can be nested.

 

The library can be found at bitbucket: https://bitbucket.org/sherief/ext-atomic-file .It's BSD licensed and has only one dependency (SQLite 3). The repository contains Visual Studio 2012 and Xcode 4.x projects. The code is in C (though it's compiled as C++ on VS since it uses some C99 features) and should be portable. 

 

Questions and comments welcome. 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!