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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sun4/] [sys/] [dirent.h] - Blame information for rev 438

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

Line No. Rev Author Line
1 148 jeremybenn
/* 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
 */
12
 
13
typedef struct __dirdesc {
14
        int     dd_fd;
15
        long    dd_loc;
16
        long    dd_size;
17
        long    dd_bsize;
18
        long    dd_off;
19
        char    *dd_buf;
20
} DIR;
21
 
22
# define __dirfd(dp)    ((dp)->dd_fd)
23
 
24
DIR *opendir (const char *);
25
struct dirent *readdir (DIR *);
26
void rewinddir (DIR *);
27
int closedir (DIR *);
28
 
29
#include <sys/types.h>
30
 
31
#define MAXNAMLEN       255
32
 
33
#define d_ino   d_fileno        /* compatibility */
34
 
35
struct dirent {
36
        off_t           d_off;
37
        unsigned long   d_fileno;
38
        unsigned short  d_reclen;
39
        unsigned short  d_namlen;
40
        char            d_name[MAXNAMLEN + 1];
41
};
42
 
43
/* FIXME: include definition of DIRSIZ() ? */
44
 
45
#endif

powered by: WebSVN 2.1.0

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