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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [go32/] [dir.h] - Diff between revs 1010 and 1765

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

Rev 1010 Rev 1765
#ifndef _DIR_H_
#ifndef _DIR_H_
#define _DIR_H_
#define _DIR_H_
 
 
struct ffblk {
struct ffblk {
  char ff_reserved[21];
  char ff_reserved[21];
  char ff_attrib;
  char ff_attrib;
  short ff_ftime;
  short ff_ftime;
  short ff_fdate;
  short ff_fdate;
  short ff_filler;
  short ff_filler;
  long ff_fsize;
  long ff_fsize;
  char ff_name[16];
  char ff_name[16];
};
};
 
 
#define FA_RDONLY       1
#define FA_RDONLY       1
#define FA_HIDDEN       2
#define FA_HIDDEN       2
#define FA_SYSTEM       4
#define FA_SYSTEM       4
#define FA_LABEL        8
#define FA_LABEL        8
#define FA_DIREC        16
#define FA_DIREC        16
#define FA_ARCH         32
#define FA_ARCH         32
 
 
/* for fnmerge/fnsplit */
/* for fnmerge/fnsplit */
#define MAXPATH   80
#define MAXPATH   80
#define MAXDRIVE  3
#define MAXDRIVE  3
#define MAXDIR    66
#define MAXDIR    66
#define MAXFILE   9
#define MAXFILE   9
#define MAXEXT    5
#define MAXEXT    5
 
 
#define WILDCARDS 0x01
#define WILDCARDS 0x01
#define EXTENSION 0x02
#define EXTENSION 0x02
#define FILENAME  0x04
#define FILENAME  0x04
#define DIRECTORY 0x08
#define DIRECTORY 0x08
#define DRIVE     0x10
#define DRIVE     0x10
 
 
#ifdef __cplusplus
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
#endif
 
 
int findfirst(const char *pathname, struct ffblk *ffblk, int attrib);
int findfirst(const char *pathname, struct ffblk *ffblk, int attrib);
int findnext(struct ffblk *ffblk);
int findnext(struct ffblk *ffblk);
 
 
void fnmerge (char *path, const char *drive, const char *dir,
void fnmerge (char *path, const char *drive, const char *dir,
                                 const char *name, const char *ext);
                                 const char *name, const char *ext);
int fnsplit (const char *path, char *drive, char *dir,
int fnsplit (const char *path, char *drive, char *dir,
                                 char *name, char *ext);
                                 char *name, char *ext);
 
 
int getdisk(void);
int getdisk(void);
int setdisk(int drive);
int setdisk(int drive);
 
 
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#endif
 
 
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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