diff options
-rw-r--r-- | src/include/gnunet_disk_lib.h | 16 |
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 | */ |
288 | off_t | 287 | off_t |
289 | GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, off_t offset, | 288 | GNUNET_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 |