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.

42 lines
808B

  1. /* FIXME: From sys/sysvi386/sys */
  2. #ifndef _SYS_DIRENT_H
  3. # define _SYS_DIRENT_H
  4. /*
  5. * This file was written to be compatible with the BSD directory
  6. * routines, so it looks like it. But it was written from scratch.
  7. * Sean Eric Fagan, sef@Kithrup.COM
  8. *
  9. * Modified by dje@cygnus.com for sun.
  10. * Modified by eichin@cygnus.com for decstation (ultrix 4.2)
  11. */
  12. typedef struct __dirdesc {
  13. int dd_fd;
  14. long dd_loc;
  15. long dd_size;
  16. long dd_bbase;
  17. long dd_entno;
  18. long dd_bsize;
  19. char *dd_buf;
  20. } DIR;
  21. # define __dirfd(dp) ((dp)->dd_fd)
  22. #include <sys/types.h>
  23. #define MAXNAMLEN 255
  24. #define d_ino d_fileno /* compatibility */
  25. struct dirent {
  26. unsigned long d_fileno;
  27. unsigned short d_reclen;
  28. unsigned short d_namlen;
  29. char d_name[MAXNAMLEN + 1];
  30. };
  31. /* FIXME: include definition of DIRSIZ() ? */
  32. #endif