Initial Linux ZFS GIT Repo
[zfs.git] / zfs / lib / libsolcompat / include / sys / param.h
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26
27 #ifndef _SOL_SYS_PARAM_H
28 #define _SOL_SYS_PARAM_H
29
30 #include_next <sys/param.h>
31 #include <unistd.h>
32
33 /*
34  * File system parameters and macros.
35  *
36  * The file system is made out of blocks of at most MAXBSIZE units,
37  * with smaller units (fragments) only in the last direct block.
38  * MAXBSIZE primarily determines the size of buffers in the buffer
39  * pool. It may be made larger without any effect on existing
40  * file systems; however making it smaller make make some file
41  * systems unmountable.
42  *
43  * Note that the blocked devices are assumed to have DEV_BSIZE
44  * "sectors" and that fragments must be some multiple of this size.
45  */
46 #define MAXBSIZE   8192
47 #define DEV_BSIZE  512
48 #define DEV_BSHIFT 9     /* log2(DEV_BSIZE) */
49
50 #define MAXNAMELEN 256
51 #define MAXOFFSET_T 0x7fffffffffffffffl
52
53 #define UID_NOBODY      60001   /* user ID no body */
54 #define GID_NOBODY      UID_NOBODY
55 #define UID_NOACCESS    60002   /* user ID no access */
56
57 #define MAXUID          2147483647      /* max user id */
58 #define MAXPROJID       MAXUID          /* max project id */
59
60 #define PAGESIZE (sysconf(_SC_PAGESIZE))
61
62 #endif