repo.or.cz
/
bitcoinplatinum.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge #11747: Fix: Open files read only if requested
[bitcoinplatinum.git]
/
src
/
fs.cpp
blob
570ed3e2ee2c6828475bae26bc44539f7e8e8567
1
#include <fs.h>
2
3
namespace
fsbridge
{
4
5
FILE
*
fopen
(
const
fs
::
path
&
p
,
const char
*
mode
)
6
{
7
return
::
fopen
(
p
.
string
().
c_str
(),
mode
);
8
}
9
10
FILE
*
freopen
(
const
fs
::
path
&
p
,
const char
*
mode
,
FILE
*
stream
)
11
{
12
return
::
freopen
(
p
.
string
().
c_str
(),
mode
,
stream
);
13
}
14
15
}
// fsbridge