mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
2005-10-15 Thomas Schwinge <tschwinge@gnu.org>
* include/dirent.h: Include <stdbool.h>. * sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>. (fdopendir): Correct argument to _hurd_fd_get(). * sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.
This commit is contained in:
parent
9b0c3f38d3
commit
4b2faf49ce
@ -2,6 +2,7 @@
|
||||
# include <dirstream.h>
|
||||
# include <dirent/dirent.h>
|
||||
# include <sys/stat.h>
|
||||
# include <stdbool.h>
|
||||
|
||||
/* Now define the internal interfaces. */
|
||||
extern DIR *__opendir (__const char *__name);
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <errno.h>
|
||||
#include <hurd.h>
|
||||
#include <hurd/fd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */
|
||||
|
||||
@ -28,7 +29,7 @@ DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */
|
||||
DIR *
|
||||
fdopendir (int fd)
|
||||
{
|
||||
struct hurd_fd *d = _hurd_fd_get (d);
|
||||
struct hurd_fd *d = _hurd_fd_get (fd);
|
||||
|
||||
if (d == NULL)
|
||||
{
|
||||
|
@ -110,8 +110,6 @@ __opendir (const char *name)
|
||||
if (dirp == NULL)
|
||||
__close (fd);
|
||||
|
||||
}
|
||||
|
||||
return dirp;
|
||||
}
|
||||
weak_alias (__opendir, opendir)
|
||||
|
Loading…
Reference in New Issue
Block a user