summaryrefslogblamecommitdiff
path: root/src/common/lock.hpp
blob: f7ce2d8177afe1042c5e3512029336b77deb1b3b (plain) (tree)
1
2
3
4
5
6
7
8
9

                
 

                     

                 

                            

                                                        

                                                             
 
                  
#ifndef LOCK_HPP
#define LOCK_HPP

#include "sanity.hpp"

#include <cstdio>

// TODO replace with a class

/// Locked FILE I/O
// Changes are made in a separate file until lock_fclose
FILE *lock_fopen(const char *filename, int *info);
void lock_fclose(FILE * fp, const char *filename, int *info);

#endif // LOCK_HPP