00001 /* 00002 Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin 00003 Copyright (C) 2005- The University of Notre Dame 00004 This software is distributed under a BSD-style license. 00005 See the file COPYING for details. 00006 */ 00007 00008 #ifndef SAFE_FILE_H 00009 #define SAFE_FILE_H 00010 00011 #include <stdio.h> 00012 00013 struct safe_file * safe_file_begin( const char *name ); 00014 FILE * safe_file_stream( struct safe_file *s ); 00015 int safe_file_commit( struct safe_file *s ); 00016 void safe_file_abort( struct safe_file *s ); 00017 00018 #endif