Graphviz 13.0.0~dev.20250210.0415
Loading...
Searching...
No Matches
lockfile.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include <stdio.h>
7
8static inline void lockfile(FILE *file) {
9#if defined(_WIN32) && !defined(__CYGWIN__)
10 _lock_file(file);
11#else
12 flockfile(file);
13#endif
14}
15
16static inline void unlockfile(FILE *file) {
17#if defined(_WIN32) && !defined(__CYGWIN__)
18 _unlock_file(file);
19#else
20 funlockfile(file);
21#endif
22}
static void unlockfile(FILE *file)
Definition lockfile.h:16
static void lockfile(FILE *file)
Definition lockfile.h:8