Skip to content

Commit

Permalink
i#58 MacOS: no SYS_getdents on MacOS: not needed for now so disabled
Browse files Browse the repository at this point in the history
SVN-Revision: 2454
  • Loading branch information
derekbruening committed Jan 9, 2014
1 parent a81a331 commit a14805c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/unix/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -7375,6 +7375,13 @@ os_dir_iterator_start(dir_iterator_t *iter, file_t fd)
static bool
os_dir_iterator_next(dir_iterator_t *iter)
{
#ifdef MACOS
/* We can use SYS_getdirentries, but do we even need a dir iterator?
* On Linux it's only used to enumerate /proc/pid/task.
*/
ASSERT_NOT_IMPLEMENTED(false);
return false;
#else
if (iter->off < iter->end) {
/* Have existing dents, get the next offset. */
iter->off += CURRENT_DIRENT(iter)->d_reclen;
Expand All @@ -7401,6 +7408,7 @@ os_dir_iterator_next(dir_iterator_t *iter)
}
iter->name = CURRENT_DIRENT(iter)->d_name;
return true;
#endif
}

/***************************************************************************
Expand Down

0 comments on commit a14805c

Please sign in to comment.