home *** CD-ROM | disk | FTP | other *** search
- #ifndef _FILEUTIL_H_
- #define _FILEUTIL_H_
-
-
- #define _isSymLink(b) (((b)->st_mode & S_IFMT) == S_IFLNK)
- #define _isDirectory(b) (((b)->st_mode & S_IFMT) == S_IFDIR)
-
-
- /* functions providing information about files and directories */
- extern int isManPage(char *s);
- extern char *manFile(char *s);
- extern char *firstLine(char *file);
- extern char *_firstLine(int fd);
- extern unsigned short fileMode(char *f);
- extern long fileInode(char *f);
- extern int isDirectory(char *s);
- extern long writeDate(char *f);
- extern long fdWriteDate(int fd);
- extern long fileSize(char *f);
- extern long fdSize(int fd);
- extern int _loadFileTypeTable(char *file);
- extern char *filetype(char *file, struct stat *statbuf, char *desc);
-
-
- #endif
-
-