diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:39:01 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:39:01 +0000 |
commit | 0feb9db220a276a2f8f29621dc8f04072bbfdd22 (patch) | |
tree | 926d3ec04fbe095eb6465e66c25c10c46aebd62c /gl/lib/opendir.c | |
parent | Releasing progress-linux version 2.12.0-4~progress7.99u1. (diff) | |
download | man-db-0feb9db220a276a2f8f29621dc8f04072bbfdd22.tar.xz man-db-0feb9db220a276a2f8f29621dc8f04072bbfdd22.zip |
Merging upstream version 2.12.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gl/lib/opendir.c')
-rw-r--r-- | gl/lib/opendir.c | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/gl/lib/opendir.c b/gl/lib/opendir.c index ceb0e28..df76807 100644 --- a/gl/lib/opendir.c +++ b/gl/lib/opendir.c @@ -1,5 +1,5 @@ /* Start reading the entries of a directory. - Copyright (C) 2006-2023 Free Software Foundation, Inc. + Copyright (C) 2006-2024 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -44,11 +44,6 @@ # include <unistd.h> #endif -#ifdef __KLIBC__ -# include <io.h> -# include <fcntl.h> -#endif - #if defined _WIN32 && ! defined __CYGWIN__ /* Don't assume that UNICODE is not defined. */ # undef WIN32_FIND_DATA @@ -93,23 +88,6 @@ opendir (const char *dir_name) return NULL; # endif -# ifdef __KLIBC__ - { - int fd = open (dir_name, O_RDONLY); - if (fd == -1 || _gl_register_dirp_fd (fd, dirp)) - { - int saved_errno = errno; - - close (fd); - closedir (dirp); - - errno = saved_errno; - - return NULL; - } - } -# endif - #else char dir_name_mask[MAX_PATH + 1 + 1 + 1]; |