Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #include <libc/stubs.h>
  3. #include <string.h>
  4. #include <dirent.h>
  5. #include <errno.h>
  6. #include <ctype.h>
  7. #include "dirstruc.h"
  8.  
  9. struct dirent *
  10. readdir(DIR *dir)
  11. {
  12.         dir->fileinfo.file_offset_low++;
  13.         if (__kolibri__system_tree_access2(&dir->fileinfo))
  14.                 return NULL;
  15.         dir->entry.d_namlen = strlen(dir->bdfename);
  16.         strcpy(dir->entry.d_name, dir->bdfename);
  17.         return &dir->entry;
  18. }
  19.