MCPcopy Create free account
hub / github.com/acl-dev/acl / open_write

Method open_write

lib_acl_cpp/src/stream/ofstream.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16bool ofstream::open_write(const char* path, bool otrunc /* = true */)
17{
18 if (otrunc) {
19 return open(path, O_WRONLY | O_TRUNC | O_CREAT, 0600);
20 } else {
21 return open(path, O_WRONLY | O_CREAT, 0600);
22 }
23}
24
25bool ofstream::open_append(const char* path)
26{

Callers 15

save_toMethod · 0.45
save_mailMethod · 0.45
save_asMethod · 0.45
pop3_retr_oneMethod · 0.45
file_copyMethod · 0.45
file_copyFunction · 0.45
transferMethod · 0.45
save_toMethod · 0.45
doPutMethod · 0.45
onUploadMethod · 0.45
onUploadMethod · 0.45
TransformFileMethod · 0.45

Calls 1

openFunction · 0.85

Tested by

no test coverage detected