aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-09-09 19:17:18 +0000
committerng0 <ng0@n0.is>2019-09-09 19:17:18 +0000
commit483b0139a218a5f8a8311bda3eb23bcd88f57688 (patch)
treed9e7a0f5053cdaa1a720485b93e9927f08466958 /src/include/gnunet_disk_lib.h
parentec472b1aae122481f4f7e760e5242753eba9bf87 (diff)
downloadgnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.tar.gz
gnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.zip
Remove win32 and cygwin support
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index f693615f1..d1e1e0333 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -59,32 +59,10 @@ enum GNUNET_FILE_Type {
59 * Handle used to access files (and pipes). 59 * Handle used to access files (and pipes).
60 */ 60 */
61struct GNUNET_DISK_FileHandle { 61struct GNUNET_DISK_FileHandle {
62#if WINDOWS
63 /** 62 /**
64 * File handle under W32. 63 * File handle on Unix-like systems.
65 */
66 HANDLE h;
67
68 /**
69 * Type
70 */
71 enum GNUNET_FILE_Type type;
72
73 /**
74 * Structure for overlapped reading (for pipes)
75 */
76 OVERLAPPED *oOverlapRead;
77
78 /**
79 * Structure for overlapped writing (for pipes)
80 */
81 OVERLAPPED *oOverlapWrite;
82#else
83 /**
84 * File handle on other OSes.
85 */ 64 */
86 int fd; 65 int fd;
87#endif
88}; 66};
89 67
90 68
@@ -495,19 +473,6 @@ const struct GNUNET_DISK_FileHandle *
495GNUNET_DISK_pipe_handle(const struct GNUNET_DISK_PipeHandle *p, 473GNUNET_DISK_pipe_handle(const struct GNUNET_DISK_PipeHandle *p,
496 enum GNUNET_DISK_PipeEnd n); 474 enum GNUNET_DISK_PipeEnd n);
497 475
498
499#if WINDOWS
500/**
501 * Get a GNUnet file handle from a W32 handle (W32-only).
502 * Do not call on non-W32 platforms (returns NULL).
503 *
504 * @param handle native handle
505 * @return GNUnet file handle corresponding to the W32 handle
506 */
507struct GNUNET_DISK_FileHandle *
508GNUNET_DISK_get_handle_from_w32_handle(HANDLE osfh);
509#endif
510
511/** 476/**
512 * Update POSIX permissions mask of a file on disk. If both argumets 477 * Update POSIX permissions mask of a file on disk. If both argumets
513 * are #GNUNET_NO, the file is made world-read-write-executable (777). 478 * are #GNUNET_NO, the file is made world-read-write-executable (777).