home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / NeXTtext / text / fileutil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-06  |  715 b   |  27 lines

  1. #ifndef    _FILEUTIL_H_
  2. #define    _FILEUTIL_H_
  3.  
  4.  
  5. #define    _isSymLink(b)    (((b)->st_mode & S_IFMT) == S_IFLNK)
  6. #define    _isDirectory(b)    (((b)->st_mode & S_IFMT) == S_IFDIR)
  7.  
  8.  
  9. /* functions providing information about files and directories */
  10. extern int isManPage(char *s);
  11. extern char *manFile(char *s);
  12. extern char *firstLine(char *file);
  13. extern char *_firstLine(int fd);
  14. extern unsigned short fileMode(char *f);
  15. extern long fileInode(char *f);
  16. extern int isDirectory(char *s);
  17. extern long writeDate(char *f);
  18. extern long fdWriteDate(int fd);
  19. extern long fileSize(char *f);
  20. extern long fdSize(int fd);
  21. extern int _loadFileTypeTable(char *file);
  22. extern char *filetype(char *file, struct stat *statbuf, char *desc);
  23.  
  24.  
  25. #endif
  26.  
  27.