xref: /csrg-svn/usr.sbin/amd/rpcx/amq.h (revision 61800)
144928Smckusick /*
244928Smckusick  * Copyright (c) 1990 Jan-Simon Pendry
344928Smckusick  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
4*61800Sbostic  * Copyright (c) 1990, 1993
5*61800Sbostic  *	The Regents of the University of California.  All rights reserved.
644928Smckusick  *
744928Smckusick  * This code is derived from software contributed to Berkeley by
844928Smckusick  * Jan-Simon Pendry at Imperial College, London.
944928Smckusick  *
1044928Smckusick  * %sccs.include.redist.c%
1144928Smckusick  *
12*61800Sbostic  *	@(#)amq.h	8.1 (Berkeley) 06/06/93
1349685Spendry  *
1452457Spendry  * $Id: amq.h,v 5.2.2.1 1992/02/09 15:09:22 jsp beta $
1549685Spendry  *
1644928Smckusick  */
1744928Smckusick 
1844928Smckusick #define AMQ_STRLEN 1024
1944928Smckusick 
2044928Smckusick typedef char *amq_string;
2144928Smckusick bool_t xdr_amq_string();
2244928Smckusick 
2344928Smckusick 
2444928Smckusick typedef long *time_type;
2544928Smckusick bool_t xdr_time_type();
2644928Smckusick 
2744928Smckusick 
2844928Smckusick struct amq_mount_tree {
2944928Smckusick 	amq_string mt_mountinfo;
3044928Smckusick 	amq_string mt_directory;
3144928Smckusick 	amq_string mt_mountpoint;
3244928Smckusick 	amq_string mt_type;
3344928Smckusick 	time_type mt_mounttime;
3444928Smckusick 	u_short mt_mountuid;
3544928Smckusick 	int mt_getattr;
3644928Smckusick 	int mt_lookup;
3744928Smckusick 	int mt_readdir;
3844928Smckusick 	int mt_readlink;
3944928Smckusick 	int mt_statfs;
4044928Smckusick 	struct amq_mount_tree *mt_next;
4144928Smckusick 	struct amq_mount_tree *mt_child;
4244928Smckusick };
4344928Smckusick typedef struct amq_mount_tree amq_mount_tree;
4444928Smckusick bool_t xdr_amq_mount_tree();
4544928Smckusick 
4644928Smckusick 
4744928Smckusick typedef amq_mount_tree *amq_mount_tree_p;
4844928Smckusick bool_t xdr_amq_mount_tree_p();
4944928Smckusick 
5044928Smckusick 
5144928Smckusick struct amq_mount_info {
5244928Smckusick 	amq_string mi_type;
5344928Smckusick 	amq_string mi_mountpt;
5444928Smckusick 	amq_string mi_mountinfo;
5544928Smckusick 	amq_string mi_fserver;
5644928Smckusick 	int mi_error;
5744928Smckusick 	int mi_refc;
5844928Smckusick 	int mi_up;
5944928Smckusick };
6044928Smckusick typedef struct amq_mount_info amq_mount_info;
6144928Smckusick bool_t xdr_amq_mount_info();
6244928Smckusick 
6344928Smckusick 
6444928Smckusick typedef struct {
6544928Smckusick 	u_int amq_mount_info_list_len;
6644928Smckusick 	amq_mount_info *amq_mount_info_list_val;
6744928Smckusick } amq_mount_info_list;
6844928Smckusick bool_t xdr_amq_mount_info_list();
6944928Smckusick 
7044928Smckusick 
7144928Smckusick typedef struct {
7244928Smckusick 	u_int amq_mount_tree_list_len;
7344928Smckusick 	amq_mount_tree_p *amq_mount_tree_list_val;
7444928Smckusick } amq_mount_tree_list;
7544928Smckusick bool_t xdr_amq_mount_tree_list();
7644928Smckusick 
7744928Smckusick 
7844928Smckusick struct amq_mount_stats {
7944928Smckusick 	int as_drops;
8044928Smckusick 	int as_stale;
8144928Smckusick 	int as_mok;
8244928Smckusick 	int as_merr;
8344928Smckusick 	int as_uerr;
8444928Smckusick };
8544928Smckusick typedef struct amq_mount_stats amq_mount_stats;
8644928Smckusick bool_t xdr_amq_mount_stats();
8744928Smckusick 
8844928Smckusick 
8944928Smckusick enum amq_opt {
9044928Smckusick 	AMOPT_DEBUG = 0,
9144928Smckusick 	AMOPT_LOGFILE = 1,
9244928Smckusick 	AMOPT_XLOG = 2,
9344928Smckusick 	AMOPT_FLUSHMAPC = 3
9444928Smckusick };
9544928Smckusick typedef enum amq_opt amq_opt;
9644928Smckusick bool_t xdr_amq_opt();
9744928Smckusick 
9844928Smckusick 
9944928Smckusick struct amq_setopt {
10044928Smckusick 	amq_opt as_opt;
10144928Smckusick 	amq_string as_str;
10244928Smckusick };
10344928Smckusick typedef struct amq_setopt amq_setopt;
10444928Smckusick bool_t xdr_amq_setopt();
10544928Smckusick 
10644928Smckusick 
10744928Smckusick #define AMQ_PROGRAM ((u_long)300019)
10844928Smckusick #define AMQ_VERSION ((u_long)1)
10944928Smckusick #define AMQPROC_NULL ((u_long)0)
11044928Smckusick extern voidp amqproc_null_1();
11144928Smckusick #define AMQPROC_MNTTREE ((u_long)1)
11244928Smckusick extern amq_mount_tree_p *amqproc_mnttree_1();
11344928Smckusick #define AMQPROC_UMNT ((u_long)2)
11444928Smckusick extern voidp amqproc_umnt_1();
11544928Smckusick #define AMQPROC_STATS ((u_long)3)
11644928Smckusick extern amq_mount_stats *amqproc_stats_1();
11744928Smckusick #define AMQPROC_EXPORT ((u_long)4)
11844928Smckusick extern amq_mount_tree_list *amqproc_export_1();
11944928Smckusick #define AMQPROC_SETOPT ((u_long)5)
12044928Smckusick extern int *amqproc_setopt_1();
12144928Smckusick #define AMQPROC_GETMNTFS ((u_long)6)
12244928Smckusick extern amq_mount_info_list *amqproc_getmntfs_1();
12347532Spendry #define AMQPROC_MOUNT ((u_long)7)
12447532Spendry extern int *amqproc_mount_1();
12547532Spendry #define AMQPROC_GETVERS ((u_long)8)
12647532Spendry extern amq_string *amqproc_getvers_1();
12744928Smckusick 
128