diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-06 20:55:28 +0000 |
commit | 61c39c60565b386e0e12ea669556b030e8cd7180 (patch) | |
tree | 59109aeab8297bdc996faca8c4e38ec7426c36cf /src/include/gnunet_disk_lib.h | |
parent | 780eb09dd8040ecf8649d40ddf8314464e0fc48e (diff) | |
download | gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.tar.gz gnunet-61c39c60565b386e0e12ea669556b030e8cd7180.zip |
-remove trailing whitespace
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index 0a3abce49..369f09492 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -43,8 +43,8 @@ enum GNUNET_FILE_Type | |||
43 | { | 43 | { |
44 | /** | 44 | /** |
45 | * Handle represents a file. | 45 | * Handle represents a file. |
46 | */ | 46 | */ |
47 | GNUNET_DISK_HANLDE_TYPE_FILE, | 47 | GNUNET_DISK_HANLDE_TYPE_FILE, |
48 | 48 | ||
49 | /** | 49 | /** |
50 | * Handle represents a pipe. | 50 | * Handle represents a pipe. |
@@ -157,7 +157,7 @@ enum GNUNET_DISK_MapType | |||
157 | * Read-only memory map. | 157 | * Read-only memory map. |
158 | */ | 158 | */ |
159 | GNUNET_DISK_MAP_TYPE_READ = 1, | 159 | GNUNET_DISK_MAP_TYPE_READ = 1, |
160 | 160 | ||
161 | /** | 161 | /** |
162 | * Write-able memory map. | 162 | * Write-able memory map. |
163 | */ | 163 | */ |
@@ -328,7 +328,7 @@ GNUNET_DISK_file_seek (const struct GNUNET_DISK_FileHandle *h, OFF_T offset, | |||
328 | */ | 328 | */ |
329 | int | 329 | int |
330 | GNUNET_DISK_file_size (const char *filename, uint64_t *size, | 330 | GNUNET_DISK_file_size (const char *filename, uint64_t *size, |
331 | int include_symbolic_links, | 331 | int include_symbolic_links, |
332 | int single_file_mode); | 332 | int single_file_mode); |
333 | 333 | ||
334 | 334 | ||
@@ -348,7 +348,7 @@ GNUNET_DISK_file_size (const char *filename, uint64_t *size, | |||
348 | * @return GNUNET_OK on success | 348 | * @return GNUNET_OK on success |
349 | */ | 349 | */ |
350 | int | 350 | int |
351 | GNUNET_DISK_file_get_identifiers (const char *filename, | 351 | GNUNET_DISK_file_get_identifiers (const char *filename, |
352 | uint64_t *dev, | 352 | uint64_t *dev, |
353 | uint64_t *ino); | 353 | uint64_t *ino); |
354 | 354 | ||
@@ -394,7 +394,7 @@ GNUNET_DISK_mkdtemp (const char *t); | |||
394 | * @return IO handle on success, NULL on error | 394 | * @return IO handle on success, NULL on error |
395 | */ | 395 | */ |
396 | struct GNUNET_DISK_FileHandle * | 396 | struct GNUNET_DISK_FileHandle * |
397 | GNUNET_DISK_file_open (const char *fn, | 397 | GNUNET_DISK_file_open (const char *fn, |
398 | enum GNUNET_DISK_OpenFlags flags, | 398 | enum GNUNET_DISK_OpenFlags flags, |
399 | enum GNUNET_DISK_AccessPermissions perm); | 399 | enum GNUNET_DISK_AccessPermissions perm); |
400 | 400 | ||
@@ -421,9 +421,9 @@ GNUNET_DISK_file_handle_size (struct GNUNET_DISK_FileHandle *fh, | |||
421 | * @return handle to the new pipe, NULL on error | 421 | * @return handle to the new pipe, NULL on error |
422 | */ | 422 | */ |
423 | struct GNUNET_DISK_PipeHandle * | 423 | struct GNUNET_DISK_PipeHandle * |
424 | GNUNET_DISK_pipe (int blocking_read, | 424 | GNUNET_DISK_pipe (int blocking_read, |
425 | int blocking_write, | 425 | int blocking_write, |
426 | int inherit_read, | 426 | int inherit_read, |
427 | int inherit_write); | 427 | int inherit_write); |
428 | 428 | ||
429 | 429 | ||
@@ -438,8 +438,8 @@ GNUNET_DISK_pipe (int blocking_read, | |||
438 | * @return handle to the new pipe, NULL on error | 438 | * @return handle to the new pipe, NULL on error |
439 | */ | 439 | */ |
440 | struct GNUNET_DISK_PipeHandle * | 440 | struct GNUNET_DISK_PipeHandle * |
441 | GNUNET_DISK_pipe_from_fd (int blocking_read, | 441 | GNUNET_DISK_pipe_from_fd (int blocking_read, |
442 | int blocking_write, | 442 | int blocking_write, |
443 | int fd[2]); | 443 | int fd[2]); |
444 | 444 | ||
445 | 445 | ||
@@ -544,7 +544,7 @@ GNUNET_DISK_get_handle_from_native (FILE *fd); | |||
544 | * @return the number of bytes read on success, #GNUNET_SYSERR on failure | 544 | * @return the number of bytes read on success, #GNUNET_SYSERR on failure |
545 | */ | 545 | */ |
546 | ssize_t | 546 | ssize_t |
547 | GNUNET_DISK_file_read (const struct GNUNET_DISK_FileHandle *h, | 547 | GNUNET_DISK_file_read (const struct GNUNET_DISK_FileHandle *h, |
548 | void *result, | 548 | void *result, |
549 | size_t len); | 549 | size_t len); |
550 | 550 | ||
@@ -575,7 +575,7 @@ GNUNET_DISK_file_read_non_blocking (const struct GNUNET_DISK_FileHandle * h, | |||
575 | */ | 575 | */ |
576 | ssize_t | 576 | ssize_t |
577 | GNUNET_DISK_fn_read (const char *fn, | 577 | GNUNET_DISK_fn_read (const char *fn, |
578 | void *result, | 578 | void *result, |
579 | size_t len); | 579 | size_t len); |
580 | 580 | ||
581 | 581 | ||
@@ -589,7 +589,7 @@ GNUNET_DISK_fn_read (const char *fn, | |||
589 | */ | 589 | */ |
590 | ssize_t | 590 | ssize_t |
591 | GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h, | 591 | GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h, |
592 | const void *buffer, | 592 | const void *buffer, |
593 | size_t n); | 593 | size_t n); |
594 | 594 | ||
595 | 595 | ||
@@ -603,7 +603,7 @@ GNUNET_DISK_file_write (const struct GNUNET_DISK_FileHandle *h, | |||
603 | */ | 603 | */ |
604 | ssize_t | 604 | ssize_t |
605 | GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle *h, | 605 | GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle *h, |
606 | const void *buffer, | 606 | const void *buffer, |
607 | size_t n); | 607 | size_t n); |
608 | 608 | ||
609 | 609 | ||
@@ -619,7 +619,7 @@ GNUNET_DISK_file_write_blocking (const struct GNUNET_DISK_FileHandle *h, | |||
619 | */ | 619 | */ |
620 | ssize_t | 620 | ssize_t |
621 | GNUNET_DISK_fn_write (const char *fn, | 621 | GNUNET_DISK_fn_write (const char *fn, |
622 | const void *buffer, | 622 | const void *buffer, |
623 | size_t n, | 623 | size_t n, |
624 | enum GNUNET_DISK_AccessPermissions mode); | 624 | enum GNUNET_DISK_AccessPermissions mode); |
625 | 625 | ||
@@ -766,7 +766,7 @@ GNUNET_DISK_directory_create (const char *dir); | |||
766 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 766 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
767 | */ | 767 | */ |
768 | int | 768 | int |
769 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, | 769 | GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, |
770 | OFF_T lock_start, | 770 | OFF_T lock_start, |
771 | OFF_T lock_end, int excl); | 771 | OFF_T lock_end, int excl); |
772 | 772 | ||
@@ -780,7 +780,7 @@ GNUNET_DISK_file_lock (struct GNUNET_DISK_FileHandle *fh, | |||
780 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error | 780 | * @return #GNUNET_OK on success, #GNUNET_SYSERR on error |
781 | */ | 781 | */ |
782 | int | 782 | int |
783 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, | 783 | GNUNET_DISK_file_unlock (struct GNUNET_DISK_FileHandle *fh, |
784 | OFF_T unlock_start, | 784 | OFF_T unlock_start, |
785 | OFF_T unlock_end); | 785 | OFF_T unlock_end); |
786 | 786 | ||