diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/atomic.erl | 8 | ||||
-rw-r--r-- | src/db.erl | 2 | ||||
-rw-r--r-- | src/frontend.erl | 2 | ||||
-rw-r--r-- | src/fsyncport.erl | 2 | ||||
-rw-r--r-- | src/index.erl | 2 | ||||
-rw-r--r-- | src/permdb.erl | 2 | ||||
-rw-r--r-- | src/plop.erl | 2 | ||||
-rw-r--r-- | src/plop.hrl | 2 | ||||
-rw-r--r-- | src/plop_app.erl | 2 | ||||
-rw-r--r-- | src/plop_compat.erl | 3 | ||||
-rw-r--r-- | src/sign.erl | 2 | ||||
-rw-r--r-- | src/timeouts.hrl | 2 | ||||
-rw-r--r-- | src/util.erl | 2 |
13 files changed, 21 insertions, 12 deletions
diff --git a/src/atomic.erl b/src/atomic.erl index 36fba81..580fd17 100644 --- a/src/atomic.erl +++ b/src/atomic.erl @@ -2,7 +2,7 @@ %%% See LICENSE for licensing information. -module(atomic). --export([replacefile/2, readfile/1]). +-export([replacefile/2, readfile/1, openfile/2, readline/1]). -spec replacefile(string(), binary()) -> ok. replacefile(Path, Content) -> @@ -20,3 +20,9 @@ readfile(Path) -> {error, Error} -> util:exit_with_error(readfile, Error, "Error reading file") end. + +openfile(Path, Modes) -> + file:open(Path, Modes). + +readline(IoDevice) -> + file:read_line(IoDevice). @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. -module(db). diff --git a/src/frontend.erl b/src/frontend.erl index a3ea885..e4d8e40 100644 --- a/src/frontend.erl +++ b/src/frontend.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. %%% @doc Frontend node API diff --git a/src/fsyncport.erl b/src/fsyncport.erl index f6a8ae3..55d21ff 100644 --- a/src/fsyncport.erl +++ b/src/fsyncport.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014, NORDUnet A/S. +%%% Copyright (c) 2014-2015, NORDUnet A/S. %%% See LICENSE for licensing information. -module(fsyncport). diff --git a/src/index.erl b/src/index.erl index 5fe1dd6..bb9a7c9 100644 --- a/src/index.erl +++ b/src/index.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. %% Implements an interface to a file pair (basename and diff --git a/src/permdb.erl b/src/permdb.erl index ba9fd72..0a1765e 100644 --- a/src/permdb.erl +++ b/src/permdb.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2015, NORDUnet A/S. +%%% Copyright (c) 2015-2016, NORDUnet A/S. %%% See LICENSE for licensing information. -module(permdb). diff --git a/src/plop.erl b/src/plop.erl index 3c2b8a5..4ad0b98 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. %%% %%% @doc Server holding log entries in a database and hashes in a diff --git a/src/plop.hrl b/src/plop.hrl index e388b6f..9737743 100644 --- a/src/plop.hrl +++ b/src/plop.hrl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014, NORDUnet A/S. +%%% Copyright (c) 2014,2016, NORDUnet A/S. %%% See LICENSE for licensing information. %%% Plop data structures. Heavily based on RFC 6962. Some are for diff --git a/src/plop_app.erl b/src/plop_app.erl index 721623c..12f52ee 100644 --- a/src/plop_app.erl +++ b/src/plop_app.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. -module(plop_app). diff --git a/src/plop_compat.erl b/src/plop_compat.erl index 7466cbc..4c212de 100644 --- a/src/plop_compat.erl +++ b/src/plop_compat.erl @@ -1,3 +1,6 @@ +%%% Copyright (c) 2016, NORDUnet A/S. +%%% See LICENSE for licensing information. + -module(plop_compat). -export([unpack_spki/1, timestamp/0]). -include_lib("public_key/include/public_key.hrl"). diff --git a/src/sign.erl b/src/sign.erl index 2c55429..b656f8e 100644 --- a/src/sign.erl +++ b/src/sign.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014-2015, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. %%% %%% @doc Signing service diff --git a/src/timeouts.hrl b/src/timeouts.hrl index 495ea90..2c2b626 100644 --- a/src/timeouts.hrl +++ b/src/timeouts.hrl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014, NORDUnet A/S. +%%% Copyright (c) 2014-2015, NORDUnet A/S. %%% See LICENSE for licensing information. -define(SYNC_INDEXFORHASH_TIMEOUT, 300000). diff --git a/src/util.erl b/src/util.erl index 234b040..206bdd3 100644 --- a/src/util.erl +++ b/src/util.erl @@ -1,4 +1,4 @@ -%%% Copyright (c) 2014, NORDUnet A/S. +%%% Copyright (c) 2014-2016, NORDUnet A/S. %%% See LICENSE for licensing information. -module(util). |