Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

ndir.c File Reference

#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dos.h>
#include <ndir.h>

Include dependency graph for ndir.c:

Include dependency graph

Go to the source code of this file.

Defines

#define ATTRIBUTES   (_A_RDONLY | _A_HIDDEN | _A_SYSTEM | _A_SUBDIR)

Functions

void free_dircontents (struct _dircontents *)
DIRopendir (const char *name)
void closedir (DIR *dirp)
directreaddir (DIR *dirp)
void seekdir (DIR *dirp, long off)
long telldir (DIR *dirp)


Define Documentation

#define ATTRIBUTES   (_A_RDONLY | _A_HIDDEN | _A_SYSTEM | _A_SUBDIR)
 

Definition at line 41 of file ndir.c.


Function Documentation

void closedir DIR dirp  ) 
 

Definition at line 119 of file ndir.c.

References _dirdesc::dd_contents, and free_dircontents().

void free_dircontents struct _dircontents  )  [static]
 

Definition at line 171 of file ndir.c.

References _dircontents::_d_entry, and _dircontents::_d_next.

Referenced by closedir(), and opendir().

DIR* opendir const char *  name  ) 
 

Definition at line 46 of file ndir.c.

References free_dircontents(), strcpy, and strlen.

struct direct* readdir DIR dirp  ) 
 

Definition at line 127 of file ndir.c.

References _dircontents::_d_entry, _dircontents::_d_next, direct::d_ino, direct::d_name, direct::d_namlen, direct::d_reclen, _dirdesc::dd_cp, _dirdesc::dd_loc, strcpy, and strlen.

void seekdir DIR dirp,
long  off
 

Definition at line 147 of file ndir.c.

References _dircontents::_d_next, _dirdesc::dd_contents, _dirdesc::dd_cp, and _dirdesc::dd_loc.

long telldir DIR dirp  ) 
 

Definition at line 162 of file ndir.c.

References _dirdesc::dd_loc.


Generated on Tue Feb 8 04:10:25 2005 for E32frodo by doxygen 1.3.3