aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-07-28 15:26:55 +0200
committerFlorian Dold <florian@dold.me>2021-07-28 15:27:39 +0200
commit94ea7a1fab12d1ad81209f84087c04a5a5b790dc (patch)
treedc33d6aaefd9ec6e8b781e000569c7029bd51cf8 /src/include/gnunet_disk_lib.h
parent7615d46b09275383bd244a0ef1d94b3a77559b88 (diff)
downloadgnunet-94ea7a1fab12d1ad81209f84087c04a5a5b790dc.tar.gz
gnunet-94ea7a1fab12d1ad81209f84087c04a5a5b790dc.zip
implement @inline-secret@ directive
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index df5d3ba21..7dfd9ccf1 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -266,6 +266,16 @@ GNUNET_DISK_handle_invalid (const struct GNUNET_DISK_FileHandle *h);
266enum GNUNET_GenericReturnValue 266enum GNUNET_GenericReturnValue
267GNUNET_DISK_file_test (const char *fil); 267GNUNET_DISK_file_test (const char *fil);
268 268
269/**
270 * Check that fil corresponds to a filename and the file has read permissions.
271 *
272 * @param fil filename to check
273 * @return #GNUNET_YES if yes, #GNUNET_NO if file doesn't exist or
274 * has no read permissions, #GNUNET_SYSERR if something else
275 * (will print an error message in that case, too).
276 */
277enum GNUNET_GenericReturnValue
278GNUNET_DISK_file_test_read (const char *fil);
269 279
270/** 280/**
271 * Move a file out of the way (create a backup) by renaming it to "orig.NUM~" 281 * Move a file out of the way (create a backup) by renaming it to "orig.NUM~"