about summary refs log tree commit diff
path: root/dirent/opendir.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-08-09 09:57:55 -0400
committerUlrich Drepper <drepper@gmail.com>2011-08-09 09:57:55 -0400
commitc55fbd1ea768f9fdef34a01377702c0d72cbc213 (patch)
tree0e67d339ad240756843292384535c40cad03df95 /dirent/opendir.c
parent879165f25a1a6b13995e43c11e88b1a21b6f101e (diff)
downloadglibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.tar.gz
glibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.tar.xz
glibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.zip
Implement scandirat function
Diffstat (limited to 'dirent/opendir.c')
-rw-r--r--dirent/opendir.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/dirent/opendir.c b/dirent/opendir.c
index 771013f6eb..6375b6786a 100644
--- a/dirent/opendir.c
+++ b/dirent/opendir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 2011 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
@@ -21,13 +21,20 @@
 #include <dirent.h>
 
 
-/* Open a directory stream on NAME.  */
 DIR *
-__opendir (const char *name)
+__opendirat (int dfd, const char *name)
 {
   __set_errno (ENOSYS);
   return NULL;
 }
+
+
+/* Open a directory stream on NAME.  */
+DIR *
+__opendir (const char *name)
+{
+  return __opendirat (AT_FDCWD, name);
+}
 weak_alias (__opendir, opendir)
 
 stub_warning (opendir)