summaryrefslogtreecommitdiff
path: root/klibc/include/sys/dirent.h
blob: eec470ce1a42d7d0b90e097b769f3c4fea492793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * sys/dirent.h
 */

#ifndef _SYS_DIRENT_H
#define _SYS_DIRENT_H

#include <stdint.h>

/* The kernel calls this struct dirent64 */
struct dirent {
  uint64_t		d_ino;
  int64_t		d_off;
  unsigned short	d_reclen;
  unsigned char		d_type;
  char			d_name[256];
};

__extern int getdents(unsigned int, struct dirent *, unsigned int);

#endif /* _SYS_DIRENT_H */