aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-11-14 22:29:33 +0100
committerChristian Grothoff <christian@grothoff.org>2020-11-14 22:29:33 +0100
commita940a11add69f86f09033da6dbb540d5e630af65 (patch)
tree86f5f750691e52f7cc71c2d5a524590166363eba
parent395cea2596aa14e88a97e665c860afdc67a4862a (diff)
downloadgnunet-a940a11add69f86f09033da6dbb540d5e630af65.tar.gz
gnunet-a940a11add69f86f09033da6dbb540d5e630af65.zip
-minor style fixes
-rw-r--r--src/include/gnunet_disk_lib.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 51ae7d8d5..3f29dc2e4 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -268,9 +268,8 @@ GNUNET_DISK_file_test (const char *fil);
268 268
269 269
270/** 270/**
271 * Move a file out of the way (create a backup) by 271 * Move a file out of the way (create a backup) by renaming it to "orig.NUM~"
272 * renaming it to "orig.NUM~" where NUM is the smallest 272 * where NUM is the smallest number that is not used yet.
273 * number that is not used yet.
274 * 273 *
275 * @param fil name of the file to back up 274 * @param fil name of the file to back up
276 */ 275 */
@@ -283,10 +282,11 @@ GNUNET_DISK_file_backup (const char *fil);
283 * @param h handle of an open file 282 * @param h handle of an open file
284 * @param offset position to move to 283 * @param offset position to move to
285 * @param whence specification to which position the offset parameter relates to 284 * @param whence specification to which position the offset parameter relates to
286 * @return the new position on success, GNUNET_SYSERR otherwise 285 * @return the new position on success, #GNUNET_SYSERR otherwise
287 */ 286 */
288off_t 287off_t
289GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, off_t offset, 288GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h,
289 off_t offset,
290 enum GNUNET_DISK_Seek whence); 290 enum GNUNET_DISK_Seek whence);
291 291
292 292
@@ -680,8 +680,7 @@ GNUNET_DISK_directory_test (const char *fil, int is_readable);
680 680
681 681
682/** 682/**
683 * Remove all files in a directory (rm -rf). Call with 683 * Remove all files in a directory (rm -rf). Call with caution.
684 * caution.
685 * 684 *
686 * @param filename the file to remove 685 * @param filename the file to remove
687 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error 686 * @return #GNUNET_OK on success, #GNUNET_SYSERR on error
@@ -738,7 +737,8 @@ struct GNUNET_DISK_MapHandle;
738 737
739 738
740/** 739/**
741 * Map a file into memory 740 * Map a file into memory.
741 *
742 * @param h open file handle 742 * @param h open file handle
743 * @param m handle to the new mapping (will be set) 743 * @param m handle to the new mapping (will be set)
744 * @param access access specification, GNUNET_DISK_MAP_TYPE_xxx 744 * @param access access specification, GNUNET_DISK_MAP_TYPE_xxx