MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / PersistentFile

Method PersistentFile

openvpn/common/persistfile.hpp:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 {
43 public:
44 PersistentFile(const std::string& fn_arg)
45 : fn(fn_arg)
46 {
47 const int f = ::open(fn.c_str(), O_WRONLY|O_CREAT|O_CLOEXEC, S_IRUSR|S_IWUSR);
48 if (f < 0)
49 syserr("open");
50 fd.reset(f);
51 }
52
53 void write(const void *buf, size_t count)
54 {

Callers

nothing calls this directly

Calls 2

c_strMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected