A C standard library for sh3eb-elf.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
553B

  1. #ifndef _SYS_DIRENT_H
  2. # define _SYS_DIRENT_H
  3. /*
  4. * This file was written to be compatible with the BSD directory
  5. * routines, so it looks like it. But it was written from scratch.
  6. * Sean Eric Fagan, sef@Kithrup.COM
  7. */
  8. typedef struct _dirdesc {
  9. int dd_fd;
  10. long dd_loc;
  11. long dd_size;
  12. char *dd_buf;
  13. int dd_len;
  14. long dd_seek;
  15. } DIR;
  16. # define __dirfd(dp) ((dp)->dd_fd)
  17. #include <sys/types.h>
  18. struct dirent {
  19. long d_ino;
  20. off_t d_off;
  21. unsigned short d_reclen;
  22. /* we need better syntax for variable-sized arrays */
  23. char d_name[1];
  24. };
  25. #endif