diff options
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index abca17370..5f6a37840 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -103,37 +103,37 @@ enum GNUNET_DISK_OpenFlags | |||
103 | { | 103 | { |
104 | 104 | ||
105 | /** | 105 | /** |
106 | * Open the file for reading | 106 | * Open the file for reading |
107 | */ | 107 | */ |
108 | GNUNET_DISK_OPEN_READ = 1, | 108 | GNUNET_DISK_OPEN_READ = 1, |
109 | 109 | ||
110 | /** | 110 | /** |
111 | * Open the file for writing | 111 | * Open the file for writing |
112 | */ | 112 | */ |
113 | GNUNET_DISK_OPEN_WRITE = 2, | 113 | GNUNET_DISK_OPEN_WRITE = 2, |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Open the file for both reading and writing | 116 | * Open the file for both reading and writing |
117 | */ | 117 | */ |
118 | GNUNET_DISK_OPEN_READWRITE = 3, | 118 | GNUNET_DISK_OPEN_READWRITE = 3, |
119 | 119 | ||
120 | /** | 120 | /** |
121 | * Fail if file already exists | 121 | * Fail if file already exists |
122 | */ | 122 | */ |
123 | GNUNET_DISK_OPEN_FAILIFEXISTS = 4, | 123 | GNUNET_DISK_OPEN_FAILIFEXISTS = 4, |
124 | 124 | ||
125 | /** | 125 | /** |
126 | * Truncate file if it exists | 126 | * Truncate file if it exists |
127 | */ | 127 | */ |
128 | GNUNET_DISK_OPEN_TRUNCATE = 8, | 128 | GNUNET_DISK_OPEN_TRUNCATE = 8, |
129 | 129 | ||
130 | /** | 130 | /** |
131 | * Create file if it doesn't exist | 131 | * Create file if it doesn't exist |
132 | */ | 132 | */ |
133 | GNUNET_DISK_OPEN_CREATE = 16, | 133 | GNUNET_DISK_OPEN_CREATE = 16, |
134 | 134 | ||
135 | /** | 135 | /** |
136 | * Append to the file | 136 | * Append to the file |
137 | */ | 137 | */ |
138 | GNUNET_DISK_OPEN_APPEND = 32 | 138 | GNUNET_DISK_OPEN_APPEND = 32 |
139 | }; | 139 | }; |
@@ -342,7 +342,7 @@ GNUNET_DISK_file_get_identifiers (const char *filename, uint64_t * dev, | |||
342 | * an absolute path, the current 'TMPDIR' will be prepended. In any case, | 342 | * an absolute path, the current 'TMPDIR' will be prepended. In any case, |
343 | * 6 random characters will be appended to the name to create a unique | 343 | * 6 random characters will be appended to the name to create a unique |
344 | * filename. | 344 | * filename. |
345 | * | 345 | * |
346 | * @param t component to use for the name; | 346 | * @param t component to use for the name; |
347 | * does NOT contain "XXXXXX" or "/tmp/". | 347 | * does NOT contain "XXXXXX" or "/tmp/". |
348 | * @return NULL on error, otherwise name of fresh | 348 | * @return NULL on error, otherwise name of fresh |
@@ -463,7 +463,7 @@ GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h, | |||
463 | * @param fn file name | 463 | * @param fn file name |
464 | * @param buffer the data to write | 464 | * @param buffer the data to write |
465 | * @param n number of bytes to write | 465 | * @param n number of bytes to write |
466 | * @param mode file permissions | 466 | * @param mode file permissions |
467 | * @return number of bytes written on success, GNUNET_SYSERR on error | 467 | * @return number of bytes written on success, GNUNET_SYSERR on error |
468 | */ | 468 | */ |
469 | ssize_t | 469 | ssize_t |