home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / lan / soss.arj / SRC / EXPORTS.H < prev    next >
C/C++ Source or Header  |  1991-02-22  |  945b  |  34 lines

  1. /*
  2.  *  exports.h --
  3.  *      Interface file for the exports module.
  4.  *
  5.  *  Author:
  6.  *      See-Mong Tan
  7.  */
  8.  
  9. #define EXPORTS "export.us"
  10.  
  11. /* export list specification */
  12. #define MAXEXPSCLNTS 50
  13. typedef struct EXPS {
  14.     int drive;                    /* drive # */
  15.     char *pn;                    /* path name */
  16.     char *clnts[MAXEXPSCLNTS];            /* client names */
  17.     long clnts_ip[MAXEXPSCLNTS];               /* client IP addrs */
  18.     int fsys;                    /* file system number */
  19.     struct EXPS *next;                /* next entry */
  20. } Exports;
  21.  
  22.   /* parses the exports file */
  23. extern bool_t exps_parse(void);
  24.   /* show exports */
  25. extern void exps_showexps(void);
  26.   /* get exports */
  27. extern struct exports *exps_get(void);
  28.   /* TRUE iff file is in export list */
  29. extern Exports *exps_isexport(char *);
  30.   /* true if the address is one of an exported client */
  31. extern bool_t exps_isclnt(char *, long);
  32.   /* convert DOS path to Unix format */
  33. extern char *pathd2u (int, char *, char *);
  34.