Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8758 → Rev 8759

/contrib/sdk/sources/newlib/libc/include/sys/dir.h
7,4 → 7,8
 
#define direct dirent
 
extern int chdir(char* dir);
extern int rmdir(const char* dir);
extern int mkdir(const char* dir, unsigned fake_mode);
 
#endif /*_SYS_DIR_H_*/
/contrib/sdk/sources/newlib/libc/include/sys/dirent.h
8,25 → 8,34
extern "C" {
#endif
 
#define DT_DIR 16
#define DT_REG 0
 
#include <limits.h>
#include <sys/types.h>
struct dirent {
char d_namlen;
ino_t d_ino;
unsigned d_type;
char d_name[256];
};
 
typedef struct
{
// struct systree_info2 fileinfo;
struct dirent entry;
// __u8 bdfeheader[0x20];
// struct bdfe_item bdfebase;
// __u8 bdfename[264];
typedef struct{
struct dirent* objs;
ino_t pos;
ino_t num_objs;
} DIR;
 
int closedir(DIR *dirp);
DIR * opendir(const char *_dirname);
struct dirent * readdir(DIR *_dirp);
void rewinddir(DIR *_dirp);
extern int closedir(DIR *dir);
extern DIR* opendir(const char *path);
extern struct dirent* readdir(DIR *);
extern void rewinddir(DIR *dir);
extern void seekdir(DIR *dir, unsigned pos);
extern unsigned telldir(DIR *dir);
 
extern int scandir(const char *path, struct dirent ***res, int (*sel)(const struct dirent *), int (*cmp)(const struct dirent **, const struct dirent **));
extern int alphasort(const struct dirent **a, const struct dirent **b);
 
#ifdef __cplusplus
}
#endif