xref: /netbsd/lib/libc/compat/include/fstypes.h (revision ce099b40)
1*ce099b40Smartin /*	$NetBSD: fstypes.h,v 1.4 2008/04/28 20:22:59 martin Exp $	*/
2b4cb63a6Smartin 
3b4cb63a6Smartin /*-
4b4cb63a6Smartin  * Copyright (c) 2006 The NetBSD Foundation, Inc.
5b4cb63a6Smartin  * All rights reserved.
6b4cb63a6Smartin  *
7b4cb63a6Smartin  * This code is derived from software contributed to The NetBSD Foundation
8b4cb63a6Smartin  * by Martin Husemann <martin@NetBSD.org>.
9b4cb63a6Smartin  *
10b4cb63a6Smartin  * Redistribution and use in source and binary forms, with or without
11b4cb63a6Smartin  * modification, are permitted provided that the following conditions
12b4cb63a6Smartin  * are met:
13b4cb63a6Smartin  * 1. Redistributions of source code must retain the above copyright
14b4cb63a6Smartin  *    notice, this list of conditions and the following disclaimer.
15b4cb63a6Smartin  * 2. Redistributions in binary form must reproduce the above copyright
16b4cb63a6Smartin  *    notice, this list of conditions and the following disclaimer in the
17b4cb63a6Smartin  *    documentation and/or other materials provided with the distribution.
18b4cb63a6Smartin  *
19b4cb63a6Smartin  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20b4cb63a6Smartin  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21b4cb63a6Smartin  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22b4cb63a6Smartin  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23b4cb63a6Smartin  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24b4cb63a6Smartin  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25b4cb63a6Smartin  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26b4cb63a6Smartin  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27b4cb63a6Smartin  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28b4cb63a6Smartin  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29b4cb63a6Smartin  * POSSIBILITY OF SUCH DAMAGE.
30b4cb63a6Smartin  */
31b4cb63a6Smartin 
32b4cb63a6Smartin #ifndef _COMPAT_FSTYPES_H_
33b4cb63a6Smartin #define _COMPAT_FSTYPES_H_
34b4cb63a6Smartin 
35b4cb63a6Smartin #include <stddef.h>
36b4cb63a6Smartin 
37b4cb63a6Smartin /* Old, fixed size filehandle structures (used upto (including) 3.x) */
38b4cb63a6Smartin struct compat_30_fid {
39b4cb63a6Smartin 	unsigned short	fid30_len;
40b4cb63a6Smartin 	unsigned short	fid30_reserved;
41b4cb63a6Smartin 	char		fid30_data[16];
42b4cb63a6Smartin };
43b4cb63a6Smartin struct compat_30_fhandle {
44b4cb63a6Smartin 	fsid_t	fh_fsid;
45b4cb63a6Smartin 	struct compat_30_fid fh_fid;
46b4cb63a6Smartin };
47b4cb63a6Smartin 
486e8d813fSyamt #define	FHANDLE30_SIZE	sizeof(struct compat_30_fhandle) /* 28 */
49b4cb63a6Smartin 
50b4cb63a6Smartin #endif /* _COMPAT_FSTYPES_H_ */
51