/* * File: fileattr.h * Author: Ganesh V * * Created on May 25, 2008, 10:53 AM */ #ifndef _FILEATTR_H #define _FILEATTR_H #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define FALSE 0 #define TRUE !FALSE #define DEBUG 0 #if DEBUG #define PRINTF(a...) do { printf(a) ; fflush(stdout); } while (0) #else #define PRINTF(a...) #endif /* ArgStatus --> Indicates the status of the curent argument that is * being dealt with. */ #define ARG_NOT_REG_FILE 0 /* Neither a file nor a directory, skip */ #define ARG_IS_FILE 1 /* File */ #define ARG_IS_DIR 2 /* Directory */ struct FileAttr { unsigned char pathname[PATH_MAX]; mode_t mode; off_t filesize; time_t atime; time_t mtime; time_t ctime; }; MPI_Datatype MPI_FileAttr; /*The corresponding MPI Datatype */ #endif /* _FILEATTR_H */