OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [sysvi386/] [sys/] [dirent.h] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#ifndef _SYS_DIRENT_H
2
# define _SYS_DIRENT_H
3
 
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
 
10
typedef struct _dirdesc {
11
        int     dd_fd;
12
        long    dd_loc;
13
        long    dd_size;
14
        char    *dd_buf;
15
        int     dd_len;
16
        long    dd_seek;
17
} DIR;
18
 
19
# define __dirfd(dp)    ((dp)->dd_fd)
20
 
21
DIR *opendir (const char *);
22
struct dirent *readdir (DIR *);
23
void rewinddir (DIR *);
24
int closedir (DIR *);
25
 
26
#include <sys/types.h>
27
 
28
struct dirent {
29
        long    d_ino;
30
        off_t   d_off;
31
        unsigned short  d_reclen;
32
        /* we need better syntax for variable-sized arrays */
33
        char    d_name[1];
34
};
35
 
36
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.