Annotation of 43BSDReno/usr.sbin/amd/rpcx/mount.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1990 Jan-Simon Pendry
                      3:  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
                      4:  * Copyright (c) 1990 The Regents of the University of California.
                      5:  * All rights reserved.
                      6:  *
                      7:  * This code is derived from software contributed to Berkeley by
                      8:  * Jan-Simon Pendry at Imperial College, London.
                      9:  *
                     10:  * Redistribution and use in source and binary forms are permitted provided
                     11:  * that: (1) source distributions retain this entire copyright notice and
                     12:  * comment, and (2) distributions including binaries display the following
                     13:  * acknowledgement:  ``This product includes software developed by the
                     14:  * University of California, Berkeley and its contributors'' in the
                     15:  * documentation or other materials provided with the distribution and in
                     16:  * all advertising materials mentioning features or use of this software.
                     17:  * Neither the name of the University nor the names of its contributors may
                     18:  * be used to endorse or promote products derived from this software without
                     19:  * specific prior written permission.
                     20:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
                     21:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
                     22:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
                     23:  *
                     24:  *     @(#)mount.h     5.1 (Berkeley) 7/19/90
                     25:  */
                     26: 
                     27: #define MNTPATHLEN 1024
                     28: #define MNTNAMLEN 255
                     29: #define FHSIZE 32
                     30: 
                     31: typedef char fhandle[FHSIZE];
                     32: bool_t xdr_fhandle();
                     33: 
                     34: 
                     35: struct fhstatus {
                     36:        u_int fhs_status;
                     37:        union {
                     38:                fhandle fhs_fhandle;
                     39:        } fhstatus_u;
                     40: };
                     41: typedef struct fhstatus fhstatus;
                     42: bool_t xdr_fhstatus();
                     43: 
                     44: 
                     45: typedef char *dirpath;
                     46: bool_t xdr_dirpath();
                     47: 
                     48: 
                     49: typedef char *name;
                     50: bool_t xdr_name();
                     51: 
                     52: 
                     53: typedef struct mountbody *mountlist;
                     54: bool_t xdr_mountlist();
                     55: 
                     56: 
                     57: struct mountbody {
                     58:        name ml_hostname;
                     59:        dirpath ml_directory;
                     60:        mountlist ml_next;
                     61: };
                     62: typedef struct mountbody mountbody;
                     63: bool_t xdr_mountbody();
                     64: 
                     65: 
                     66: typedef struct groupnode *groups;
                     67: bool_t xdr_groups();
                     68: 
                     69: 
                     70: struct groupnode {
                     71:        name gr_name;
                     72:        groups gr_next;
                     73: };
                     74: typedef struct groupnode groupnode;
                     75: bool_t xdr_groupnode();
                     76: 
                     77: 
                     78: typedef struct exportnode *exports;
                     79: bool_t xdr_exports();
                     80: 
                     81: 
                     82: struct exportnode {
                     83:        dirpath ex_dir;
                     84:        groups ex_groups;
                     85:        exports ex_next;
                     86: };
                     87: typedef struct exportnode exportnode;
                     88: bool_t xdr_exportnode();
                     89: 
                     90: 
                     91: #define MOUNTPROG ((u_long)100005)
                     92: #define MOUNTVERS ((u_long)1)
                     93: #define MOUNTPROC_NULL ((u_long)0)
                     94: extern voidp mountproc_null_1();
                     95: #define MOUNTPROC_MNT ((u_long)1)
                     96: extern fhstatus *mountproc_mnt_1();
                     97: #define MOUNTPROC_DUMP ((u_long)2)
                     98: extern mountlist *mountproc_dump_1();
                     99: #define MOUNTPROC_UMNT ((u_long)3)
                    100: extern voidp mountproc_umnt_1();
                    101: #define MOUNTPROC_UMNTALL ((u_long)4)
                    102: extern voidp mountproc_umntall_1();
                    103: #define MOUNTPROC_EXPORT ((u_long)5)
                    104: extern exports *mountproc_export_1();
                    105: #define MOUNTPROC_EXPORTALL ((u_long)6)
                    106: extern exports *mountproc_exportall_1();
                    107: 

unix.superglobalmegacorp.com

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