summaryrefslogtreecommitdiff
path: root/src/common/lock.hpp
blob: 5ca1aed974de658a38f2caab2e5f6d9b2c036214 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef LOCK_HPP
#define LOCK_HPP

#include "sanity.hpp"

#include <cstdio>

#include "../strings/fwd.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