• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 struct __dirstream
2 {
3 	off_t tell;
4 	int fd;
5 	int buf_pos;
6 	int buf_end;
7 	volatile int lock[1];
8 #ifdef __LITEOS_A__
9 	// change buf len from 2048 to 4096 to support read 14 dirs at one readdir syscall
10 	char buf[4096];
11 #else
12 	/* Any changes to this struct must preserve the property:
13 	 * offsetof(struct __dirent, buf) % sizeof(off_t) == 0 */
14 	char buf[2048];
15 #endif
16 };
17