diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-09 07:44:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-09 07:44:54 +0000 |
commit | a1d89c2e90376f4e806aa9a2850dc87b37d10ddd (patch) | |
tree | 24d83c2d917804942468ce5ea123d9134fa7a01b /src/include/gnunet_disk_lib.h | |
parent | ea91185b426f29135dc94a6375a14986adbf0314 (diff) | |
download | gnunet-a1d89c2e90376f4e806aa9a2850dc87b37d10ddd.tar.gz gnunet-a1d89c2e90376f4e806aa9a2850dc87b37d10ddd.zip |
-minor code cleanup
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index 12d3345c5..9f106db11 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -722,7 +722,7 @@ GNUNET_DISK_directory_test (const char *fil, int is_readable); | |||
722 | * caution. | 722 | * caution. |
723 | * | 723 | * |
724 | * @param filename the file to remove | 724 | * @param filename the file to remove |
725 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 725 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
726 | */ | 726 | */ |
727 | int | 727 | int |
728 | GNUNET_DISK_directory_remove (const char *filename); | 728 | GNUNET_DISK_directory_remove (const char *filename); |
@@ -732,7 +732,7 @@ GNUNET_DISK_directory_remove (const char *filename); | |||
732 | * Implementation of "mkdir -p" | 732 | * Implementation of "mkdir -p" |
733 | * | 733 | * |
734 | * @param dir the directory to create | 734 | * @param dir the directory to create |
735 | * @returns GNUNET_SYSERR on failure, GNUNET_OK otherwise | 735 | * @returns #GNUNET_SYSERR on failure, #GNUNET_OK otherwise |
736 | */ | 736 | */ |
737 | int | 737 | int |
738 | GNUNET_DISK_directory_create (const char *dir); | 738 | GNUNET_DISK_directory_create (const char *dir); |
@@ -744,8 +744,8 @@ GNUNET_DISK_directory_create (const char *dir); | |||
744 | * @param fh file handle | 744 | * @param fh file handle |
745 | * @param lockStart absolute position from where to lock | 745 | * @param lockStart absolute position from where to lock |
746 | * @param lockEnd absolute position until where to lock | 746 | * @param lockEnd absolute position until where to lock |
747 | * @param excl GNUNET_YES for an exclusive lock | 747 | * @param excl #GNUNET_YES for an exclusive lock |
748 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 748 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
749 | */ | 749 | */ |
750 | int | 750 | int |
751 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, OFF_T lockStart, | 751 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, OFF_T lockStart, |
@@ -753,11 +753,12 @@ GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, OFF_T lockStart, | |||
753 | 753 | ||
754 | 754 | ||
755 | /** | 755 | /** |
756 | * Unlock a part of a file | 756 | * Unlock a part of a file. |
757 | * | ||
757 | * @param fh file handle | 758 | * @param fh file handle |
758 | * @param unlockStart absolute position from where to unlock | 759 | * @param unlockStart absolute position from where to unlock |
759 | * @param unlockEnd absolute position until where to unlock | 760 | * @param unlockEnd absolute position until where to unlock |
760 | * @return GNUNET_OK on success, GNUNET_SYSERR on error | 761 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
761 | */ | 762 | */ |
762 | int | 763 | int |
763 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, OFF_T unlockStart, | 764 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, OFF_T unlockStart, |
@@ -776,7 +777,7 @@ GNUNET_DISK_filename_canonicalize (char *fn); | |||
776 | * @brief Change owner of a file | 777 | * @brief Change owner of a file |
777 | * @param filename file to change | 778 | * @param filename file to change |
778 | * @param user new owner of the file | 779 | * @param user new owner of the file |
779 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 780 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on failure |
780 | */ | 781 | */ |
781 | int | 782 | int |
782 | GNUNET_DISK_file_change_owner (const char *filename, const char *user); | 783 | GNUNET_DISK_file_change_owner (const char *filename, const char *user); |
@@ -823,7 +824,7 @@ GNUNET_DISK_file_map (const struct GNUNET_DISK_FileHandle *h, | |||
823 | * Unmap a file | 824 | * Unmap a file |
824 | * | 825 | * |
825 | * @param h mapping handle | 826 | * @param h mapping handle |
826 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise | 827 | * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise |
827 | */ | 828 | */ |
828 | int | 829 | int |
829 | GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h); | 830 | GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h); |