Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/gen/scandir.c
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
#ifdef I_AM_SCANDIR_B | #ifdef I_AM_SCANDIR_B | ||||
typedef DECLARE_BLOCK(int, select_block, const struct dirent *); | typedef DECLARE_BLOCK(int, select_block, const struct dirent *); | ||||
typedef DECLARE_BLOCK(int, dcomp_block, const struct dirent **, | typedef DECLARE_BLOCK(int, dcomp_block, const struct dirent **, | ||||
const struct dirent **); | const struct dirent **); | ||||
#else | #else | ||||
static int alphasort_thunk(void *thunk, const void *p1, const void *p2); | static int alphasort_thunk(void *thunk, const void *p1, const void *p2); | ||||
#endif | #endif | ||||
#ifdef I_AM_SCANDIR_B | |||||
int scandir_b(const char *dirname, struct dirent ***namelist, select_block select, dcomp_block dcomp); | |||||
#endif | |||||
int | int | ||||
#ifdef I_AM_SCANDIR_B | #ifdef I_AM_SCANDIR_B | ||||
scandir_b(const char *dirname, struct dirent ***namelist, select_block select, | scandir_b(const char *dirname, struct dirent ***namelist, select_block select, | ||||
dcomp_block dcomp) | dcomp_block dcomp) | ||||
#else | #else | ||||
scandir(const char *dirname, struct dirent ***namelist, | scandir(const char *dirname, struct dirent ***namelist, | ||||
int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **, | int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **, | ||||
const struct dirent **)) | const struct dirent **)) | ||||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |