| 29 |
* * |
* * |
| 30 |
************************************************************************/ |
************************************************************************/ |
| 31 |
|
|
| 32 |
|
#ifndef __OFM_FILDIR__ |
| 33 |
|
#define __OFM_FILDIR__ |
| 34 |
|
|
| 35 |
#include <sys/stat.h> |
#include <sys/stat.h> |
| 36 |
#include <dirent.h> |
#include <dirent.h> |
| 48 |
|
|
| 49 |
/* given entry is the file */ |
/* given entry is the file */ |
| 50 |
|
|
| 51 |
#define DP_FILE 1 //podany wpis jest plikiem |
#define DP_FILE 1 /* podany wpis jest plikiem */ |
| 52 |
|
|
| 53 |
/* directory after input */ |
/* directory after input */ |
| 54 |
|
|
| 55 |
#define DP_DIRIN 2 //katalogiem po wejsciu |
#define DP_DIRIN 2 /* katalogiem po wejsciu */ |
| 56 |
|
|
| 57 |
/* directory after output */ |
/* directory after output */ |
| 58 |
|
|
| 98 |
DirStruct *dirFind(DirStruct *ds, char *name); |
DirStruct *dirFind(DirStruct *ds, char *name); |
| 99 |
int dirProcess(DirStruct *ds, void (*fptr)(DirStruct *,int) ,int all); |
int dirProcess(DirStruct *ds, void (*fptr)(DirStruct *,int) ,int all); |
| 100 |
void dirProcessBreak(int errno); |
void dirProcessBreak(int errno); |
| 101 |
|
|
| 102 |
|
#endif /* __OFM_FILDIR_ */ |