File: mountd.h

package info (click to toggle)
nfs-user-server 2.2beta47-25
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,016 kB
  • ctags: 1,435
  • sloc: ansic: 12,067; sh: 653; makefile: 265
file content (62 lines) | stat: -rw-r--r-- 1,573 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
 * mountd.h	This program implements a user-space NFS server.
 *
 * Authors:	Mark A. Shand, May 1988
 *		Rick Sladkey, <jrs@world.std.com>
 *		Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 *
 *		Copyright 1988 Mark A. Shand
 *		This software maybe be used for any purpose provided
 *		the above copyright notice is retained.  It is supplied
 *		as is, with no warranty expressed or implied.
 */

#ifndef MOUNTD_H
#define MOUNTD_H

#include "system.h"
#include "mount.h"
#include "nfs_prot.h"
#include "extensions.h"

#define MOUNT_PORT 0

union argument_types {
	dirpath			dirpath;
};

union result_types {
	fhstatus		fstatus;
	mountlist		mountlist;
	exports			exports;
	ppathcnf		pathconf;
};

/* Global variables. */
extern union argument_types	argument;
extern union result_types	result;
extern int			need_reinit;
extern int			need_flush;

/* Include the other module definitions. */
#include "auth.h"
#include "fh.h"
#include "logging.h"

/* Global Function prototypes. */
extern void		mount_dispatch(struct svc_req *, SVCXPRT *);
extern RETSIGTYPE	reinitialize(int sig);

/* This is obsolete as we now ship the generated files */
#if 0 && !defined(HAVE_RPCGEN_C)
#define mountproc_null_1_svc		mountproc_null_1
#define mountproc_mnt_1_svc		mountproc_mnt_1
#define mountproc_dump_1_svc		mountproc_dump_1
#define mountproc_umnt_1_svc		mountproc_umnt_1
#define mountproc_umntall_1_svc		mountproc_umntall_1
#define mountproc_export_1_svc		mountproc_export_1
#define mountproc_exportall_1_svc	mountproc_exportall_1
#endif

/* End of mountd.h. */
#endif /* MOUNTD_H */