home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume34 / fsp / part04 / client_def.h next >
Encoding:
C/C++ Source or Header  |  1992-12-18  |  1.6 KB  |  42 lines

  1.     /*********************************************************************\
  2.     *  Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu)   *
  3.     *                                                                     *
  4.     *  You may copy or modify this file in any manner you wish, provided  *
  5.     *  that this notice is always included, and that you hold the author  *
  6.     *  harmless for any loss or damage resulting from the installation or *
  7.     *  use of this software.                                              *
  8.     \*********************************************************************/
  9.  
  10. #include "common_def.h"
  11.  
  12. /****************************************************************************
  13. * These structures are used to implement a opendir/readdir mechanism similar
  14. * to that of the normal opendir/reader mechanism in unix.
  15. ****************************************************************************/
  16.  
  17. typedef struct DDLIST {    struct DDLIST *next;
  18.             char          *path;
  19.             RDIRENT  **dep_root;
  20.             int         ref_cnt; } DDLIST;
  21.  
  22. typedef struct RDIR { DDLIST   *ddp;
  23.               RDIRENT **dep; } RDIR;
  24.  
  25. typedef struct rdirent { unsigned long  d_fileno;
  26.              unsigned short d_reclen;
  27.              unsigned short d_namlen;
  28.              char          *d_name; } rdirent;
  29.  
  30. extern UBUF     *client_interact();
  31. extern RDIRENT **get_dir_blk();
  32. extern rdirent  *util_readdir();
  33. extern RDIR     *util_opendir();
  34.  
  35. extern int client_trace;
  36. extern int client_intr_state;
  37. extern int key_persists;
  38. extern unsigned long target_delay;
  39. extern unsigned long udp_sent_time;
  40. extern unsigned short client_buf_len;
  41. extern unsigned short client_net_len;
  42.