summaryrefslogtreecommitdiff
path: root/src/common/lock.hpp
blob: f7ce2d8177afe1042c5e3512029336b77deb1b3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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