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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [sparc64/] [sys/] [dirent.h] - Blame information for rev 855

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

powered by: WebSVN 2.1.0

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