Initial import from FreeBSD RELENG_4:
[games.git] / sys / vfs / nwfs / nwfs_mount.h
1 /*
2  * Copyright (c) 1999, Boris Popov
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  * 3. All advertising materials mentioning features or use of this software
14  *    must display the following acknowledgement:
15  *    This product includes software developed by Boris Popov.
16  * 4. Neither the name of the author nor the names of any co-contributors
17  *    may be used to endorse or promote products derived from this software
18  *    without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
21  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
24  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30  * SUCH DAMAGE.
31  *
32  * $FreeBSD: src/sys/nwfs/nwfs_mount.h,v 1.5.2.1 2000/04/17 08:34:19 bp Exp $
33  */
34 #ifndef _NWFS_MOUNT_H_
35 #define _NWFS_MOUNT_H_
36
37 #ifndef _NCP_NCP_NLS_H_
38 #include <netncp/ncp_nls.h>
39 #endif
40
41 #define NWFS_VERMAJ     1
42 #define NWFS_VERMIN     3400
43 #define NWFS_VERSION    (NWFS_VERMAJ*100000 + NWFS_VERMIN)
44
45 /* Values for flags */
46 #define NWFS_MOUNT_SOFT         0x0001
47 #define WNFS_MOUNT_INTR         0x0002
48 #define NWFS_MOUNT_STRONG       0x0004
49 #define NWFS_MOUNT_NO_OS2       0x0008
50 #define NWFS_MOUNT_NO_NFS       0x0010
51 #define NWFS_MOUNT_NO_LONG      0x0020
52 #define NWFS_MOUNT_GET_SYSENT   0x0040  /* special case, look to vfsops :) */
53 #define NWFS_MOUNT_HAVE_NLS     0x0080
54
55 #define NWFS_VOLNAME_LEN        48
56
57
58 /* Layout of the mount control block for a netware file system. */
59 struct nwfs_args {
60         int             connRef;                /* connection reference */
61         char            mount_point[MAXPATHLEN];
62         u_int           flags;
63         u_char          mounted_vol[NWFS_VOLNAME_LEN + 1];
64         u_char          root_path[512+1];
65         int             version;
66         uid_t           uid;
67         gid_t           gid;
68         mode_t          file_mode;
69         mode_t          dir_mode;
70         struct ncp_nlstables nls;
71         int             tz;
72 };
73
74 #ifdef _KERNEL
75
76 #ifdef MALLOC_DECLARE
77 MALLOC_DECLARE(M_NWFSMNT);
78 #endif
79
80 #endif
81 #endif /* !_NWFS_MOUNT_H_ */