Debian Codegraph @

lock.c

raw symbols SCIP
1 /* -*- Mode: C; c-file-style: "stroustrup" -*- */cxx . . $ `<file>/lock.c`/
2
3 #include "lock.h"cxx . . $ `<file>/lock.h`/
4
5 #if defined( _WIN32 )
6
7 int lock_write( FILE* f ) { return 1; }
8 int lock_read( FILE* f ) { return 1; }
9 int lock_unlock( FILE* f ) { return 1; }
10
11 #else
12
13 int lock_writecxx . . $ lock_write(89bc1efcdac0ca22).( FILEcxx . . $ FILE#* f )
14 {
15 return flockcxx . . $ flock(9b79fb6aee4c0440).( filenocxx . . $ fileno(89bc1efcdac0ca22).(f), LOCK_EXcxx . . $ `<external>/8566841665215861632/file.h:41:9`! ) == 0;
16 }
17
18 int lock_readcxx . . $ lock_read(89bc1efcdac0ca22).( FILEcxx . . $ FILE#* f )
19 {
20 return flockcxx . . $ flock(9b79fb6aee4c0440).( filenocxx . . $ fileno(89bc1efcdac0ca22).(f), LOCK_SHcxx . . $ `<external>/8566841665215861632/file.h:40:9`! ) == 0;
21 }
22
23 int lock_unlockcxx . . $ lock_unlock(89bc1efcdac0ca22).( FILEcxx . . $ FILE#* f )
24 {
25 return flockcxx . . $ flock(9b79fb6aee4c0440).( filenocxx . . $ fileno(89bc1efcdac0ca22).(f), LOCK_UNcxx . . $ `<external>/8566841665215861632/file.h:42:9`! ) == 0;
26 }
27
28 #endif