MISR Toolkit  1.5.1
Macros | Typedefs | Functions
dirent.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <errno.h>
#include <dirent_win32.h>
#include <windows.h>

Go to the source code of this file.

Macros

#define WIN32_LEAN_AND_MEAN
 
#define FILE_NAME_E   cFileName
 
#define OS_CloseFH(a)   FindClose (a)
 
#define FIND_BUFFER   WIN32_FIND_DATA
 
#define DISABLE_HARD_ERRORS   SetErrorMode (0)
 
#define ENABLE_HARD_ERRORS
 
#define ERROR_EMPTY_DIR   ERROR_FILE_NOT_FOUND
 
#define ATTRIBUTES
 
#define ENOTDIR   120 /* Not a directory */
 
#define S_IFMT   0xf000 /* type of file */
 
#define S_ISDIR(m)   ((((m) & S_IFMT) == S_IFDIR))
 

Typedefs

typedef struct _dircontents DIRCONT
 

Functions

static void free_dircontents (DIRCONT *)
 
DIRopendir (char *name) const
 
int closedir (DIR *dirp)
 
struct direntreaddir (DIR *dirp)
 
void rewinddir (DIR *dirp)
 
void seekdir (DIR *dirp, off_t off)
 
off_t telldir (DIR *dirp)
 
bool IsHPFSFileSystem (char *directory)
 

Macro Definition Documentation

◆ ATTRIBUTES

#define ATTRIBUTES
Value:
(_A_SUBDIR | _A_HIDDEN | _A_SYSTEM | \
_A_NORMAL | _A_RDONLY | _A_ARCH)

Definition at line 47 of file dirent.c.

◆ DISABLE_HARD_ERRORS

#define DISABLE_HARD_ERRORS   SetErrorMode (0)

Definition at line 41 of file dirent.c.

◆ ENABLE_HARD_ERRORS

#define ENABLE_HARD_ERRORS
Value:
SetErrorMode (SEM_FAILCRITICALERRORS | \
SEM_NOOPENFILEERRORBOX);

Definition at line 42 of file dirent.c.

◆ ENOTDIR

#define ENOTDIR   120 /* Not a directory */

Definition at line 55 of file dirent.c.

◆ ERROR_EMPTY_DIR

#define ERROR_EMPTY_DIR   ERROR_FILE_NOT_FOUND

Definition at line 45 of file dirent.c.

◆ FILE_NAME_E

#define FILE_NAME_E   cFileName

Definition at line 38 of file dirent.c.

◆ FIND_BUFFER

#define FIND_BUFFER   WIN32_FIND_DATA

Definition at line 40 of file dirent.c.

◆ OS_CloseFH

#define OS_CloseFH (   a)    FindClose (a)

Definition at line 39 of file dirent.c.

◆ S_IFMT

#define S_IFMT   0xf000 /* type of file */

Definition at line 59 of file dirent.c.

◆ S_ISDIR

#define S_ISDIR (   m)    ((((m) & S_IFMT) == S_IFDIR))

Definition at line 63 of file dirent.c.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 35 of file dirent.c.

Typedef Documentation

◆ DIRCONT

typedef struct _dircontents DIRCONT

Definition at line 70 of file dirent.c.

Function Documentation

◆ closedir()

int closedir ( DIR dirp)

Definition at line 225 of file dirent.c.

◆ free_dircontents()

static void free_dircontents ( DIRCONT dp)
static

Definition at line 308 of file dirent.c.

◆ IsHPFSFileSystem()

bool IsHPFSFileSystem ( char *  directory)

Definition at line 329 of file dirent.c.

◆ opendir()

DIR* opendir ( char *  name) const

Definition at line 78 of file dirent.c.

◆ readdir()

struct dirent* readdir ( DIR dirp)

Definition at line 242 of file dirent.c.

◆ rewinddir()

void rewinddir ( DIR dirp)

Definition at line 263 of file dirent.c.

◆ seekdir()

void seekdir ( DIR dirp,
off_t  off 
)

Definition at line 274 of file dirent.c.

◆ telldir()

off_t telldir ( DIR dirp)

Definition at line 297 of file dirent.c.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53