David Sommerseth
dde1574596
Reformatting source code to new coding style
...
This is the result after running 'clang-format -i' on all C++ files and
headers, with the defined formatting rules in .clang-format.
Only the openvpn/common/unicode-impl.hpp has been excluded, as that is
mostly a copy of an external project.
Signed-off-by: David Sommerseth <davids@openvpn.net>
2023-01-18 19:24:15 +01:00
David Sommerseth
8c94a8f774
copyright: Update to 2022
...
Signed-off-by: David Sommerseth <davids@openvpn.net>
2022-09-29 12:00:26 +02:00
James Yonan
50b066ddef
file_mod_time_nanoseconds(): accept filename as either const std::string& or const char *
...
Also prefix standard C library methods with "::"
Signed-off-by: James Yonan <james@openvpn.net>
2022-02-07 13:56:13 -07:00
James Yonan
5460d176c6
Added is_directory() method
...
Signed-off-by: James Yonan <james@openvpn.net>
2020-09-02 20:38:09 +02:00
James Yonan
1692e1cd43
fileunix, stat, json: allow file read methods to obtain nanosecond-scale mod time
...
Signed-off-by: James Yonan <james@openvpn.net>
2020-08-19 18:52:44 +02:00
David Sommerseth
3fbe0a2701
Update copyrights
...
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-18 19:37:32 +01:00
Arne Schwabe
54fbe7604c
Fix file modifcation time retrieval stat.hpp on macOS
...
Signed-off-by: Arne Schwabe <arne@openvpn.net>
2019-11-07 09:58:54 +01:00
David Sommerseth
16b10559f2
[OVPN3-140] Update company names in copyrights
...
OpenVPN Technologies, Inc. change their name to OpenVPN Inc. during the
autumn of 2017.
Signed-off-by: David Sommerseth <davids@openvpn.net>
2017-12-22 17:59:39 +08:00
David Sommerseth
6caca2c313
[OVPN3-140] Relicense back to AGPLv3
...
This is essentially a revert of commit 04b2a3c9b7
and commit
ef42e59e05
.
Signed-off-by: David Sommerseth <davids@openvpn.net>
2017-12-22 17:59:39 +08:00
James Yonan
b2cd82a5bf
copyright: updated to 2017.
...
Signed-off-by: James Yonan <james@openvpn.net>
2017-03-18 13:11:09 -06:00
James Yonan
295a999fef
stat : added file_mod_time_nanoseconds() and
...
file_mod_time_milliseconds().
2017-03-18 12:24:54 -06:00
Samuli Seppänen
04b2a3c9b7
Switch from AGPLv3 to GPLv3
...
Signed-off-by: Samuli Seppänen <samuli@openvpn.net>
2017-03-16 14:43:55 +02:00
James Yonan
971abda88f
copyright : updated to 2016
2016-09-03 23:29:23 -06:00
James Yonan
433ba64f59
stat.hpp : added file_mod_time() method.
2016-07-02 00:56:53 -06:00
James Yonan
1e907bc0e6
In file_exists(), if filename is the empty string,
...
return false before calling stat().
2016-03-08 12:59:09 -07:00
James Yonan
95e11e9172
Added openvpn/common/stat.hpp with file_exists() method.
2015-04-22 17:53:12 -06:00