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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [decstation/] [sys/] [dirent.h] - Blame information for rev 1773

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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