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/] [sparc64/] [sys/] [dirent.h] - Diff between revs 148 and 158

Only display areas with differences | Details | Blame | View Log

Rev 148 Rev 158
/* FIXME: From sys/sysvi386/sys */
/* FIXME: From sys/sysvi386/sys */
#ifndef _SYS_DIRENT_H
#ifndef _SYS_DIRENT_H
# define _SYS_DIRENT_H
# define _SYS_DIRENT_H
 
 
/*
/*
 * This file was written to be compatible with the BSD directory
 * This file was written to be compatible with the BSD directory
 * routines, so it looks like it.  But it was written from scratch.
 * routines, so it looks like it.  But it was written from scratch.
 * Sean Eric Fagan, sef@Kithrup.COM
 * Sean Eric Fagan, sef@Kithrup.COM
 */
 */
 
 
typedef struct __dirdesc {
typedef struct __dirdesc {
        int     dd_fd;
        int     dd_fd;
        long    dd_loc;
        long    dd_loc;
        long    dd_size;
        long    dd_size;
        char    *dd_buf;
        char    *dd_buf;
        int     dd_len;
        int     dd_len;
        long    dd_seek;
        long    dd_seek;
} DIR;
} DIR;
 
 
# define __dirfd(dp)    ((dp)->dd_fd)
# define __dirfd(dp)    ((dp)->dd_fd)
 
 
DIR *opendir (const char *);
DIR *opendir (const char *);
struct dirent *readdir (DIR *);
struct dirent *readdir (DIR *);
void rewinddir (DIR *);
void rewinddir (DIR *);
int closedir (DIR *);
int closedir (DIR *);
 
 
#include <sys/types.h>
#include <sys/types.h>
 
 
#undef  MAXNAMLEN       /* from unistd.h */
#undef  MAXNAMLEN       /* from unistd.h */
#ifdef __svr4__
#ifdef __svr4__
#define MAXNAMLEN       512
#define MAXNAMLEN       512
#else
#else
#define MAXNAMLEN       255
#define MAXNAMLEN       255
#endif
#endif
 
 
#define d_ino   d_fileno        /* compatibility */
#define d_ino   d_fileno        /* compatibility */
 
 
struct dirent {
struct dirent {
        off_t           d_off;
        off_t           d_off;
        unsigned long   d_fileno;
        unsigned long   d_fileno;
        unsigned short  d_reclen;
        unsigned short  d_reclen;
        unsigned short  d_namlen;
        unsigned short  d_namlen;
        char            d_name[MAXNAMLEN + 1];
        char            d_name[MAXNAMLEN + 1];
};
};
 
 
/* FIXME: include definition of DIRSIZ() ? */
/* FIXME: include definition of DIRSIZ() ? */
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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