diff options
author | ng0 <ng0@n0.is> | 2019-09-09 19:17:18 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-09-09 19:17:18 +0000 |
commit | 483b0139a218a5f8a8311bda3eb23bcd88f57688 (patch) | |
tree | d9e7a0f5053cdaa1a720485b93e9927f08466958 /src/include/gnunet_network_lib.h | |
parent | ec472b1aae122481f4f7e760e5242753eba9bf87 (diff) | |
download | gnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.tar.gz gnunet-483b0139a218a5f8a8311bda3eb23bcd88f57688.zip |
Remove win32 and cygwin support
Diffstat (limited to 'src/include/gnunet_network_lib.h')
-rw-r--r-- | src/include/gnunet_network_lib.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/include/gnunet_network_lib.h b/src/include/gnunet_network_lib.h index 2a91621a3..bdf568385 100644 --- a/src/include/gnunet_network_lib.h +++ b/src/include/gnunet_network_lib.h | |||
@@ -60,25 +60,6 @@ struct GNUNET_NETWORK_FDSet { | |||
60 | */ | 60 | */ |
61 | fd_set sds; | 61 | fd_set sds; |
62 | 62 | ||
63 | #ifdef WINDOWS | ||
64 | /** | ||
65 | * Array of file handles (from pipes) that are also in | ||
66 | * the FDSet. Needed as those cannot go into @e sds | ||
67 | * on W32. | ||
68 | */ | ||
69 | const struct GNUNET_DISK_FileHandle **handles; | ||
70 | |||
71 | /** | ||
72 | * Size of the @e handles array | ||
73 | */ | ||
74 | unsigned int handles_size; | ||
75 | |||
76 | /** | ||
77 | * Number of @e handles slots in use. Always | ||
78 | * smaller than @e handles_size. | ||
79 | */ | ||
80 | unsigned int handles_pos; | ||
81 | #endif | ||
82 | }; | 63 | }; |
83 | 64 | ||
84 | #include "gnunet_disk_lib.h" | 65 | #include "gnunet_disk_lib.h" |
@@ -107,7 +88,6 @@ char * | |||
107 | GNUNET_NETWORK_shorten_unixpath(char *unixpath); | 88 | GNUNET_NETWORK_shorten_unixpath(char *unixpath); |
108 | 89 | ||
109 | 90 | ||
110 | #ifndef WINDOWS | ||
111 | /** | 91 | /** |
112 | * If services crash, they can leave a unix domain socket file on the | 92 | * If services crash, they can leave a unix domain socket file on the |
113 | * disk. This needs to be manually removed, because otherwise both | 93 | * disk. This needs to be manually removed, because otherwise both |
@@ -119,7 +99,6 @@ GNUNET_NETWORK_shorten_unixpath(char *unixpath); | |||
119 | */ | 99 | */ |
120 | void | 100 | void |
121 | GNUNET_NETWORK_unix_precheck(const struct sockaddr_un *un); | 101 | GNUNET_NETWORK_unix_precheck(const struct sockaddr_un *un); |
122 | #endif | ||
123 | 102 | ||
124 | 103 | ||
125 | /** | 104 | /** |
@@ -406,19 +385,6 @@ GNUNET_NETWORK_fdset_set(struct GNUNET_NETWORK_FDSet *fds, | |||
406 | const struct GNUNET_NETWORK_Handle *desc); | 385 | const struct GNUNET_NETWORK_Handle *desc); |
407 | 386 | ||
408 | 387 | ||
409 | #if WINDOWS | ||
410 | /** | ||
411 | * Add a W32 file handle to the fd set | ||
412 | * | ||
413 | * @param fds fd set | ||
414 | * @param h the file handle to add | ||
415 | */ | ||
416 | void | ||
417 | GNUNET_NETWORK_fdset_handle_set_native_w32_handle(struct GNUNET_NETWORK_FDSet *fds, | ||
418 | HANDLE h); | ||
419 | #endif | ||
420 | |||
421 | |||
422 | /** | 388 | /** |
423 | * Check whether a socket is part of the fd set | 389 | * Check whether a socket is part of the fd set |
424 | * | 390 | * |