aboutsummaryrefslogtreecommitdiff
path: root/src/util/disk.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-11-01 20:47:52 +0000
committerChristian Grothoff <christian@grothoff.org>2009-11-01 20:47:52 +0000
commit652e89b59ed2207c2c12172fdabcd6e659995c81 (patch)
treef054c819d483c1056e18c1099afd4c7fcd2582a0 /src/util/disk.h
parent5e4113e83368849500792e57946c3d8dd9e548d8 (diff)
downloadgnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.tar.gz
gnunet-652e89b59ed2207c2c12172fdabcd6e659995c81.zip
fixing bio testcase and a bug in bio.c, also indenting
Diffstat (limited to 'src/util/disk.h')
-rw-r--r--src/util/disk.h52
1 files changed, 25 insertions, 27 deletions
diff --git a/src/util/disk.h b/src/util/disk.h
index 96324e120..21c1ab9a1 100644
--- a/src/util/disk.h
+++ b/src/util/disk.h
@@ -16,41 +16,40 @@
16 along with GNUnet; see the file COPYING. If not, write to the 16 along with GNUnet; see the file COPYING. If not, write to the
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20 20
21/** 21/**
22 * @file util/disk.h 22 * @file util/disk.h
23 * @brief Internal DISK related helper functions 23 * @brief Internal DISK related helper functions
24 * @author Nils Durner 24 * @author Nils Durner
25 */ 25 */
26 26
27
28#ifndef GNUNET_DISK_H_ 27#ifndef GNUNET_DISK_H_
29#define GNUNET_DISK_H_ 28#define GNUNET_DISK_H_
30 29
31#include "gnunet_disk_lib.h" 30#include "gnunet_disk_lib.h"
32 31
33
34/** 32/**
35 * Handle used to access files (and pipes). 33 * Handle used to access files (and pipes).
36 */ 34 */
37struct GNUNET_DISK_FileHandle 35struct GNUNET_DISK_FileHandle
38{ 36{
37
39#ifdef MINGW 38#ifdef MINGW
40 /** 39 /**
41 * File handle under W32. 40 * File handle under W32.
42 */ 41 */
43 HANDLE h; 42 HANDLE h;
44#else 43
44#else /* */
45 /** 45 /**
46 * File handle on other OSes. 46 * File handle on other OSes.
47 */ 47 */
48 int fd; 48 int fd;
49#endif 49
50}; 50#endif /* */
51 51};
52 52
53
54/** 53/**
55 * Retrieve OS file handle 54 * Retrieve OS file handle
56 * 55 *
@@ -59,9 +58,8 @@ struct GNUNET_DISK_FileHandle
59 * @param dst destination buffer 58 * @param dst destination buffer
60 * @param dst_len length of dst 59 * @param dst_len length of dst
61 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise 60 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
62 */ 61 */
63int GNUNET_DISK_internal_file_handle_ (const struct GNUNET_DISK_FileHandle *fh, 62int GNUNET_DISK_internal_file_handle_ (const struct GNUNET_DISK_FileHandle
64 void *dst, 63 *fh, void *dst, size_t dst_len);
65 size_t dst_len); 64
66 65#endif /* GNUNET_DISK_H_ */
67#endif /* GNUNET_DISK_H_ */