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

                
 

                     

                 

                      

                            

                                                        

                                                        
 
                  
#ifndef LOCK_HPP
#define LOCK_HPP

#include "sanity.hpp"

#include <cstdio>

#include "strings.hpp"

// TODO replace with a class

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

#endif // LOCK_HPP