summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/sys/readdir.c
blob: d2a8c0397c685bcda6aa34925fc457784a07e9a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * readdir.c
 */

#include <dirent.h>
#include <stdio.h>
#include <errno.h>

#include <com32.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdlib.h>

#include <syslinux/pmapi.h>

DIR *opendir(const char *pathname)
{
    return __com32.cs_pm->opendir(pathname);
}

struct dirent *readdir(DIR *dir)
{
    return __com32.cs_pm->readdir(dir);
}

int closedir(DIR *dir)
{
    return __com32.cs_pm->closedir(dir);
}