aboutsummaryrefslogtreecommitdiff
path: root/src/util/disk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-12-13 17:30:08 +0100
committerChristian Grothoff <christian@grothoff.org>2018-12-13 17:30:16 +0100
commitbdb3420bc937f0ab9187695a56f0e63d7c227f00 (patch)
tree14e1995fbb0d12c2049afd04515ed3337261627a /src/util/disk.c
parentfe4f3105b7b0f6bc3160b1396fe7af07bde0bd8d (diff)
downloadgnunet-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.c6
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 */
238off_t 238off_t
239GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle * h, off_t offset, 239GNUNET_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 */
1035ssize_t 1036ssize_t
1036GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle * h, 1037GNUNET_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 {