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 https://opensource.org/licenses/CDDL-1.0. 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 _LIBSPL_SYS_PARAM_H 28#define _LIBSPL_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 may 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 MAXNAMELEN 256 47 48#define UID_NOACCESS 60002 /* user ID no access */ 49 50#define MAXUID UINT32_MAX /* max user id */ 51#define MAXPROJID MAXUID /* max project id */ 52 53#ifdef PAGESIZE 54#undef PAGESIZE 55#endif /* PAGESIZE */ 56 57extern size_t spl_pagesize(void); 58#define PAGESIZE (spl_pagesize()) 59 60#ifndef HAVE_EXECVPE 61extern int execvpe(const char *name, char * const argv[], char * const envp[]); 62#endif 63 64#endif 65