diff options
author | LRN <lrn1986@gmail.com> | 2013-10-08 09:30:27 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-10-08 09:30:27 +0000 |
commit | 3e996078dc075428545ac4646937f437a02802cb (patch) | |
tree | 50a5a9ccb3b9c738deffdadea08dea691ad1def8 /src/include/gnunet_disk_lib.h | |
parent | fecec16a940ab10dd028385d09bf3c31c5f85739 (diff) | |
download | gnunet-3e996078dc075428545ac4646937f437a02802cb.tar.gz gnunet-3e996078dc075428545ac4646937f437a02802cb.zip |
Replace OFF_T with off_t
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index 369f09492..bf49b71f8 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -25,12 +25,6 @@ | |||
25 | #ifndef GNUNET_DISK_LIB_H | 25 | #ifndef GNUNET_DISK_LIB_H |
26 | #define GNUNET_DISK_LIB_H | 26 | #define GNUNET_DISK_LIB_H |
27 | 27 | ||
28 | #if WINDOWS | ||
29 | #define OFF_T uint64_t | ||
30 | #else | ||
31 | #define OFF_T off_t | ||
32 | #endif | ||
33 | |||
34 | /** | 28 | /** |
35 | * Handle used to manage a pipe. | 29 | * Handle used to manage a pipe. |
36 | */ | 30 | */ |
@@ -307,8 +301,8 @@ GNUNET_DISK_file_backup (const char *fil); | |||
307 | * @param whence specification to which position the offset parameter relates to | 301 | * @param whence specification to which position the offset parameter relates to |
308 | * @return the new position on success, GNUNET_SYSERR otherwise | 302 | * @return the new position on success, GNUNET_SYSERR otherwise |
309 | */ | 303 | */ |
310 | OFF_T | 304 | off_t |
311 | GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, OFF_T offset, | 305 | GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, off_t offset, |
312 | enum GNUNET_DISK_Seek whence); | 306 | enum GNUNET_DISK_Seek whence); |
313 | 307 | ||
314 | 308 | ||
@@ -408,7 +402,7 @@ GNUNET_DISK_file_open (const char *fn, | |||
408 | */ | 402 | */ |
409 | int | 403 | int |
410 | GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, | 404 | GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, |
411 | OFF_T *size); | 405 | off_t *size); |
412 | 406 | ||
413 | 407 | ||
414 | /** | 408 | /** |
@@ -767,8 +761,8 @@ GNUNET_DISK_directory_create (const char *dir); | |||
767 | */ | 761 | */ |
768 | int | 762 | int |
769 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, | 763 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, |
770 | OFF_T lock_start, | 764 | off_t lock_start, |
771 | OFF_T lock_end, int excl); | 765 | off_t lock_end, int excl); |
772 | 766 | ||
773 | 767 | ||
774 | /** | 768 | /** |
@@ -781,8 +775,8 @@ GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, | |||
781 | */ | 775 | */ |
782 | int | 776 | int |
783 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, | 777 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, |
784 | OFF_T unlock_start, | 778 | off_t unlock_start, |
785 | OFF_T unlock_end); | 779 | off_t unlock_end); |
786 | 780 | ||
787 | 781 | ||
788 | /** | 782 | /** |