Annotation of xinu/h/rfile.h, revision 1.1.1.1

1.1       root        1: /* rfile.h */
                      2: 
                      3: #include <file.h>
                      4: 
                      5: /* Remote file device control block and defined constants */
                      6: 
                      7: /* Constants for server device control functions */
                      8: 
                      9: #define        RFCLEAR         1               /* Clear incoming messages      */
                     10: 
                     11: /* Constants for controlling retrys for server communication */
                     12: 
                     13: #define        RTIMOUT         5               /* Timeout for server response  */
                     14: #define        RMAXTRY         2               /* Number of retrys per op.     */
                     15: 
                     16: /* Constants for rf pseudo-device state variable */
                     17: 
                     18: #define        RFREE           -1              /* This pseudo-device is unused */
                     19: #define        RUSED           1               /* This pseudo-device is used   */
                     20: 
                     21: /* Declaration of rf pseudo-device I/O control block */
                     22: 
                     23: struct rfblk   {                       /* Remote file control block    */
                     24:        int     rf_dnum;                /* File's device num in devtab  */
                     25:        char    rf_name[RNAMLEN];       /* Name of remote file          */
                     26:        int     rf_state;               /* State of this pseudo device  */
                     27:        int     rf_mode;                /* FLREAD, FLWRITE or both      */
                     28:        int     rf_mutex;               /* exclusion for this file      */
                     29:        long    rf_pos;                 /* current byte offset in file  */
                     30: };
                     31: 
                     32: #ifndef        Nrf
                     33: #define        Nrf     1
                     34: #endif
                     35: struct rfinfo  {                       /* all remote server info.      */
                     36:        int     device;                 /* device descriptor for server */
                     37:        int     rmutex;                 /* mutual exclusion for server  */
                     38:        struct  rfblk   rftab[Nrf];     /* remote file control blocks   */
                     39: };
                     40: 
                     41: extern struct  rfinfo  Rf;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.