26 lines
417 B
C
26 lines
417 B
C
|
#ifndef _LUNA_DIRENT_H
|
||
|
#define _LUNA_DIRENT_H
|
||
|
|
||
|
#include <sys/types.h>
|
||
|
|
||
|
struct luna_dirent
|
||
|
{
|
||
|
ino_t inode;
|
||
|
char name[64];
|
||
|
size_t total;
|
||
|
off_t offset;
|
||
|
};
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C"
|
||
|
{
|
||
|
#endif
|
||
|
|
||
|
/* Retrieve directory entries from the kernel. This is the raw interface, use readdir() instead. */
|
||
|
ssize_t getdents(int fd, struct luna_dirent* buf, size_t count);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|