]>
Commit | Line | Data |
---|---|---|
879165f2 UD |
1 | /* Copyright (C) 1992-1998,2000,2002,2003,2009,2011 |
2 | Free Software Foundation, Inc. | |
47707456 | 3 | This file is part of the GNU C Library. |
28f540f4 | 4 | |
47707456 | 5 | The GNU C Library is free software; you can redistribute it and/or |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
28f540f4 | 9 | |
47707456 UD |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
28f540f4 | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
16 | License along with the GNU C Library; if not, see |
17 | <http://www.gnu.org/licenses/>. */ | |
28f540f4 | 18 | |
28f540f4 | 19 | #include <dirent.h> |
c55fbd1e | 20 | #include <fcntl.h> |
28f540f4 | 21 | |
56ddf355 | 22 | #ifndef SCANDIR |
879165f2 | 23 | # define SCANDIR scandir |
c55fbd1e | 24 | # define SCANDIRAT scandirat |
879165f2 | 25 | # define DIRENT_TYPE struct dirent |
56ddf355 UD |
26 | #endif |
27 | ||
70e1c930 | 28 | |
28f540f4 | 29 | int |
56ddf355 | 30 | SCANDIR (dir, namelist, select, cmp) |
c4029823 | 31 | const char *dir; |
56ddf355 UD |
32 | DIRENT_TYPE ***namelist; |
33 | int (*select) (const DIRENT_TYPE *); | |
eee6b143 | 34 | int (*cmp) (const DIRENT_TYPE **, const DIRENT_TYPE **); |
28f540f4 | 35 | { |
c55fbd1e | 36 | return SCANDIRAT (AT_FDCWD, dir, namelist, select, cmp); |
28f540f4 | 37 | } |