aboutsummaryrefslogtreecommitdiff
path: root/dirent/dirent.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-09-28 21:19:53 +0000
committerUlrich Drepper <drepper@redhat.com>2005-09-28 21:19:53 +0000
commit1812d50bc9ad034c8406f5e3de83b5a6c668f3a9 (patch)
tree54c88f0ffa5e7ccdece3941a630f5c19f59d3f70 /dirent/dirent.h
parenta898514259e9fef06feddbe74df4d11fb94baf66 (diff)
downloadglibc-1812d50bc9ad034c8406f5e3de83b5a6c668f3a9.tar
glibc-1812d50bc9ad034c8406f5e3de83b5a6c668f3a9.tar.gz
glibc-1812d50bc9ad034c8406f5e3de83b5a6c668f3a9.tar.bz2
glibc-1812d50bc9ad034c8406f5e3de83b5a6c668f3a9.zip
* dirent/dirent.h: Declare fdopendir.
* dirent/Versions: Export fdopendir for GLIBC_2.4. * dirent/Makefile (routines): Add fdopendir. (tests): Add tst-fdopendir. * dirent/tst-fdopendir.c: New file. * include/dirent.h: Declare __alloc_dir. * sysdeps/generic/fdopendir.c: New file. * sysdeps/unix/fdopendir.c: New file. * sysdeps/unix/opendir.c: Split off back part of opendir into new function __alloc_dir.
Diffstat (limited to 'dirent/dirent.h')
-rw-r--r--dirent/dirent.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/dirent/dirent.h b/dirent/dirent.h
index a5e8a004e2..ed4147dbca 100644
--- a/dirent/dirent.h
+++ b/dirent/dirent.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-2000, 2003, 2004 Free Software Foundation, Inc.
+/* Copyright (C) 1991-2000, 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -134,6 +134,14 @@ typedef struct __dirstream DIR;
marked with __THROW. */
extern DIR *opendir (__const char *__name) __nonnull ((1));
+#ifdef __USE_GNU
+/* Same as opendir, but open the stream on the file descriptor FD.
+
+ This function is a possible cancellation point and therefore not
+ marked with __THROW. */
+extern DIR *fdopendir (int __fd);
+#endif
+
/* Close the directory stream DIRP.
Return 0 if successful, -1 if not.