aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2024-09-16 05:59:22 +0000
committerNIIBE Yutaka <[email protected]>2024-09-16 05:59:22 +0000
commitc2a713fe11e35b4567e0c7d2a20d8ab416b366ad (patch)
tree19d2e658967524bcbbf3d4f613f50c6ad8db5fad
parentw32: Clarify the environment block encoding. (diff)
downloadlibgpg-error-c2a713fe11e35b4567e0c7d2a20d8ab416b366ad.tar.gz
libgpg-error-c2a713fe11e35b4567e0c7d2a20d8ab416b366ad.zip
w32:spawn: Remove unused function get_max_fds.
* src/spawn-w32.c (get_max_fds): Remove. -- Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--src/spawn-w32.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/spawn-w32.c b/src/spawn-w32.c
index ccd1733..a5d6295 100644
--- a/src/spawn-w32.c
+++ b/src/spawn-w32.c
@@ -90,27 +90,6 @@ struct gpgrt_process {
};
-
-/* Return the maximum number of currently allowed open file
- * descriptors. Only useful on POSIX systems but returns a value on
- * other systems too. */
-int
-get_max_fds (void)
-{
- int max_fds = -1;
-
-#ifdef OPEN_MAX
- if (max_fds == -1)
- max_fds = OPEN_MAX;
-#endif
-
- if (max_fds == -1)
- max_fds = 256; /* Arbitrary limit. */
-
- return max_fds;
-}
-
-
/* Helper function to build_w32_commandline. */
static char *
build_w32_commandline_copy (char *buffer, const char *string)