diff options
author | Ulrich Drepper <drepper@gmail.com> | 2011-08-09 09:57:55 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-08-09 09:57:55 -0400 |
commit | c55fbd1ea768f9fdef34a01377702c0d72cbc213 (patch) | |
tree | 0e67d339ad240756843292384535c40cad03df95 /dirent/opendir.c | |
parent | 879165f25a1a6b13995e43c11e88b1a21b6f101e (diff) | |
download | glibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.zip glibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.tar.gz glibc-c55fbd1ea768f9fdef34a01377702c0d72cbc213.tar.bz2 |
Implement scandirat function
Diffstat (limited to 'dirent/opendir.c')
-rw-r--r-- | dirent/opendir.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/dirent/opendir.c b/dirent/opendir.c index 771013f..6375b67 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) |