| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 #ifndef _GLIBCEMU_SYS_DIRENT_H | 6 #ifndef _GLIBCEMU_SYS_DIRENT_H |
| 7 #define _GLIBCEMU_SYS_DIRENT_H | 7 #define _GLIBCEMU_SYS_DIRENT_H |
| 8 | 8 |
| 9 #include <sys/cdefs.h> | 9 #include <sys/cdefs.h> |
| 10 #include_next <sys/dirent.h> | 10 #include_next <sys/dirent.h> |
| 11 | 11 |
| 12 /* Work around a dirent.h wrapping includes in extern "C". */ | 12 /* Work around a dirent.h wrapping includes in extern "C". */ |
| 13 #if defined(_DIRENT_H_) | 13 #if defined(_DIRENT_H_) |
| 14 __BEGIN_DECLS | 14 __BEGIN_DECLS |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 int dirfd(DIR *dirp); |
| 17 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); | 18 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); |
| 19 int alphasort(const void *a, const void *b); |
| 20 int scandir(const char *dirp, struct dirent ***namelist, |
| 21 int (*filter)(const struct dirent *), |
| 22 int (*compar)(const struct dirent **, const struct dirent **)); |
| 23 DIR *fdopendir(int fd); |
| 18 | 24 |
| 19 /* Work around a dirent.h wrapping includes in extern "C". */ | 25 /* Work around a dirent.h wrapping includes in extern "C". */ |
| 20 #if defined(_DIRENT_H_) | 26 #if defined(_DIRENT_H_) |
| 21 __END_DECLS | 27 __END_DECLS |
| 22 #endif | 28 #endif |
| 23 | 29 |
| 24 #endif | 30 #endif |
| OLD | NEW |