diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-12-13 17:30:08 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-12-13 17:30:16 +0100 |
commit | bdb3420bc937f0ab9187695a56f0e63d7c227f00 (patch) | |
tree | 14e1995fbb0d12c2049afd04515ed3337261627a /src/util/disk.c | |
parent | fe4f3105b7b0f6bc3160b1396fe7af07bde0bd8d (diff) | |
download | gnunet-bdb3420bc937f0ab9187695a56f0e63d7c227f00.tar.gz gnunet-bdb3420bc937f0ab9187695a56f0e63d7c227f00.zip |
add function to obtain monotonic time
Diffstat (limited to 'src/util/disk.c')
-rw-r--r-- | src/util/disk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index dc38d1137..d723303d8 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -236,7 +236,8 @@ GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, | |||
236 | * @return the new position on success, #GNUNET_SYSERR otherwise | 236 | * @return the new position on success, #GNUNET_SYSERR otherwise |
237 | */ | 237 | */ |
238 | off_t | 238 | off_t |
239 | GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, off_t offset, | 239 | GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, |
240 | off_t offset, | ||
240 | enum GNUNET_DISK_Seek whence) | 241 | enum GNUNET_DISK_Seek whence) |
241 | { | 242 | { |
242 | if (h == NULL) | 243 | if (h == NULL) |
@@ -1034,7 +1035,8 @@ GNUNET_DISK_fn_read (const char *fn, | |||
1034 | */ | 1035 | */ |
1035 | ssize_t | 1036 | ssize_t |
1036 | GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle * h, | 1037 | GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle * h, |
1037 | const void *buffer, size_t n) | 1038 | const void *buffer, |
1039 | size_t n) | ||
1038 | { | 1040 | { |
1039 | if (NULL == h) | 1041 | if (NULL == h) |
1040 | { | 1042 | { |