Annotation of xinu/h/fserver.h, revision 1.1

1.1     ! root        1: /* fserver.h */
        !             2: 
        !             3: #ifndef        RSERVER
        !             4: #define        RSERVER         "128.10.2.8:2001"/* remote file server address  */
        !             5: #endif
        !             6: 
        !             7: /* Definitions of remote file server constants and packet format */
        !             8: 
        !             9: /* Codes for operations */
        !            10: 
        !            11: #define        FS_ERROR        -1              /* returned for error on op.    */
        !            12: #define        FS_OPEN         0               /* open a file                  */
        !            13: #define        FS_CLOSE        1               /* close a file                 */
        !            14: #define        FS_READ         2               /* read data from a file        */
        !            15: #define        FS_WRITE        3               /* write data to a file         */
        !            16: #define        FS_UNLINK       4               /* unlink a file from directory */
        !            17: #define        FS_RENAME       5               /* change the name of file (data*/
        !            18:                                        /*  area in packet is new name) */
        !            19: #define        FS_MKDIR        6               /* make a directory (count=mode)*/
        !            20: #define        FS_RMDIR        7               /* remove a directory           */
        !            21: #define        FS_ACCESS       8               /* determine file accessibility */
        !            22: #define        FS_TRANS        9               /* other transaction            */
        !            23: 
        !            24: #define        RDATLEN         512             /* Maximum bytes transferred    */
        !            25: #define        RNAMLEN         80              /* Maximum bytes in file name   */
        !            26: #define        RCLOSED         -1              /* server device not opened     */
        !            27: 
        !            28: struct fphdr   {                       /* Format of server packet hdr  */
        !            29:        long    f_pos;                  /* byte position in file        */
        !            30:        short   f_count;                /* count of data bytes          */
        !            31:        short   f_op;                   /* Operation requested          */
        !            32:        char    f_name[RNAMLEN];        /* Name of remote file          */
        !            33: };
        !            34: 
        !            35: 
        !            36: struct fpacket {                       /* Format of packet to/from rfs */
        !            37:        struct  fphdr   fp_h;           /* packet header                */
        !            38:        char    fpdata[RDATLEN];        /* data sent to/from server     */
        !            39: };
        !            40: 
        !            41: #define        FPHLEN  sizeof(struct fphdr)    /* size of server packet header */
        !            42: #define        FPPLEN  sizeof(struct fpacket)  /* size of server packet        */

unix.superglobalmegacorp.com

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