2023-03-25 02:08:33 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
|
|
struct DIR;
|
|
|
|
|
|
|
|
struct dirent
|
|
|
|
{
|
|
|
|
ino_t d_ino;
|
|
|
|
char d_name[];
|
|
|
|
};
|
|
|
|
|
2023-05-11 01:42:52 +03:00
|
|
|
int alphasort(const struct dirent**, const struct dirent**);
|
|
|
|
int closedir(DIR*);
|
|
|
|
int dirfd(DIR*);
|
|
|
|
DIR* fdopendir(int);
|
|
|
|
DIR* opendir(const char*);
|
|
|
|
struct dirent* readdir(DIR*);
|
|
|
|
int readdir_r(DIR*, struct dirent*, struct dirent**);
|
|
|
|
void rewinddir(DIR*);
|
|
|
|
int scandir(const char*, struct dirent***, int (*)(const struct dirent*), int (*)(const struct dirent**, const struct dirent**));
|
|
|
|
void seekdir(DIR*, long);
|
|
|
|
long telldir(DIR*);
|
|
|
|
|
2023-03-25 02:08:33 +02:00
|
|
|
__END_DECLS
|