aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-10-08 09:30:27 +0000
committerLRN <lrn1986@gmail.com>2013-10-08 09:30:27 +0000
commit3e996078dc075428545ac4646937f437a02802cb (patch)
tree50a5a9ccb3b9c738deffdadea08dea691ad1def8 /src/include/gnunet_disk_lib.h
parentfecec16a940ab10dd028385d09bf3c31c5f85739 (diff)
downloadgnunet-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.h20
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 */
310OFF_T 304off_t
311GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, OFF_T offset, 305GNUNET_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 */
409int 403int
410GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, 404GNUNET_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 */
768int 762int
769GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, 763GNUNET_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 */
782int 776int
783GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, 777GNUNET_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/**