home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 13 / MA_Cover_13.bin / source / c / nfsd / src / nfs_utils.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-24  |  806 b   |  32 lines

  1. /*  Header for utility functions
  2.  
  3.     ©1998, 1999 Joseph Walton
  4.  
  5.     This software is distributed under the terms of the GNU General Public
  6.     License; either version 2 of the License, or (at your option) any
  7.     later version.
  8. */
  9.  
  10. #ifndef NFSD_NFS_UTILS_H
  11. #define NFSD_NFS_UTILS_H
  12.  
  13. #include "nfs.h"
  14. #include "handle_list.h"
  15.  
  16. #include <exec/types.h>
  17. #include <dos/dos.h>
  18.  
  19. void printSocketError(STRPTR s);
  20. nfsstat NFS_err(LONG errno);
  21. nfsstat NFS_wt_err(nfsstat wrongtype);
  22. STRPTR reason(nfsstat err);
  23. u_int NFS_mode(ULONG amiga_mode);
  24. ULONG Amiga_prot(u_int mode);
  25. void Unix_date(struct DateStamp *ds, struct nfstime *tv);
  26. void Amiga_date(struct nfstime *tv, struct DateStamp *ds);
  27. ftype NFS_type(LONG type);
  28. STRPTR name_of_diropargs(STRPTR filename, struct LocalFile *dir_lf,
  29.     nfsstat *stat);
  30. #endif
  31.  
  32.