1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23*0Sstevel@tonic-gate /* All Rights Reserved */ 24*0Sstevel@tonic-gate 25*0Sstevel@tonic-gate 26*0Sstevel@tonic-gate /* 27*0Sstevel@tonic-gate * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 28*0Sstevel@tonic-gate * Use is subject to license terms. 29*0Sstevel@tonic-gate */ 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate #ifndef _SYS_SYSCONFIG_H 32*0Sstevel@tonic-gate #define _SYS_SYSCONFIG_H 33*0Sstevel@tonic-gate 34*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */ 35*0Sstevel@tonic-gate 36*0Sstevel@tonic-gate #ifdef __cplusplus 37*0Sstevel@tonic-gate extern "C" { 38*0Sstevel@tonic-gate #endif 39*0Sstevel@tonic-gate 40*0Sstevel@tonic-gate #ifdef _KERNEL 41*0Sstevel@tonic-gate extern int mach_sysconfig(int); 42*0Sstevel@tonic-gate #endif /* KERNEL */ 43*0Sstevel@tonic-gate 44*0Sstevel@tonic-gate /* 45*0Sstevel@tonic-gate * cmd values for _sysconfig system call. 46*0Sstevel@tonic-gate * WARNING: This is an undocumented system call, 47*0Sstevel@tonic-gate * therefore future compatibility can not 48*0Sstevel@tonic-gate * guaranteed. 49*0Sstevel@tonic-gate */ 50*0Sstevel@tonic-gate 51*0Sstevel@tonic-gate #define UNUSED 1 52*0Sstevel@tonic-gate #define _CONFIG_NGROUPS 2 /* # configured supplemental groups */ 53*0Sstevel@tonic-gate #define _CONFIG_CHILD_MAX 3 /* max # of processes per uid session */ 54*0Sstevel@tonic-gate #define _CONFIG_OPEN_FILES 4 /* max # of open files per process */ 55*0Sstevel@tonic-gate #define _CONFIG_POSIX_VER 5 /* POSIX version */ 56*0Sstevel@tonic-gate #define _CONFIG_PAGESIZE 6 /* system page size */ 57*0Sstevel@tonic-gate #define _CONFIG_CLK_TCK 7 /* ticks per second */ 58*0Sstevel@tonic-gate #define _CONFIG_XOPEN_VER 8 59*0Sstevel@tonic-gate 60*0Sstevel@tonic-gate /* 61*0Sstevel@tonic-gate * NOTE: XOPEN VERSION. This is process dependent. The kernel will return 62*0Sstevel@tonic-gate * the default value, currently 3. 63*0Sstevel@tonic-gate */ 64*0Sstevel@tonic-gate 65*0Sstevel@tonic-gate #define _CONFIG_PROF_TCK 10 /* profiling ticks per second */ 66*0Sstevel@tonic-gate #define _CONFIG_NPROC_CONF 11 /* processors configured */ 67*0Sstevel@tonic-gate #define _CONFIG_NPROC_ONLN 12 /* processors online */ 68*0Sstevel@tonic-gate 69*0Sstevel@tonic-gate /* posix dot4 names */ 70*0Sstevel@tonic-gate #define _CONFIG_AIO_LISTIO_MAX 13 /* # of operation in a list I/O call */ 71*0Sstevel@tonic-gate #define _CONFIG_AIO_MAX 14 /* # of outstanding async I/O op. */ 72*0Sstevel@tonic-gate #define _CONFIG_AIO_PRIO_DELTA_MAX 15 /* amount I/O priority decrease */ 73*0Sstevel@tonic-gate #define _CONFIG_DELAYTIMER_MAX 16 /* timer timer expiration overruns */ 74*0Sstevel@tonic-gate #define _CONFIG_MQ_OPEN_MAX 17 /* # message queues open per process */ 75*0Sstevel@tonic-gate #define _CONFIG_MQ_PRIO_MAX 18 /* # of message priorities supported */ 76*0Sstevel@tonic-gate #define _CONFIG_RTSIG_MAX 19 /* # of realtime signal numbers */ 77*0Sstevel@tonic-gate #define _CONFIG_SEM_NSEMS_MAX 20 /* No. of semaphore per process */ 78*0Sstevel@tonic-gate #define _CONFIG_SEM_VALUE_MAX 21 /* max. value a semaphore may have */ 79*0Sstevel@tonic-gate #define _CONFIG_SIGQUEUE_MAX 22 /* # of pending queued signal */ 80*0Sstevel@tonic-gate #define _CONFIG_SIGRT_MIN 23 /* first highest-pri realtime signal */ 81*0Sstevel@tonic-gate #define _CONFIG_SIGRT_MAX 24 /* last realtime signal */ 82*0Sstevel@tonic-gate #define _CONFIG_TIMER_MAX 25 /* # of timers per process */ 83*0Sstevel@tonic-gate 84*0Sstevel@tonic-gate #define _CONFIG_PHYS_PAGES 26 /* phys mem installed in pages */ 85*0Sstevel@tonic-gate #define _CONFIG_AVPHYS_PAGES 27 /* available phys mem in pages */ 86*0Sstevel@tonic-gate #define _CONFIG_COHERENCY 28 /* # bytes coherency */ 87*0Sstevel@tonic-gate #define _CONFIG_SPLIT_CACHE 29 /* split i and d or not */ 88*0Sstevel@tonic-gate #define _CONFIG_ICACHESZ 30 /* icache size in bytes */ 89*0Sstevel@tonic-gate #define _CONFIG_DCACHESZ 31 /* dcache size in bytes */ 90*0Sstevel@tonic-gate #define _CONFIG_ICACHELINESZ 32 /* linesize bytes */ 91*0Sstevel@tonic-gate #define _CONFIG_DCACHELINESZ 33 /* linesize bytes */ 92*0Sstevel@tonic-gate #define _CONFIG_ICACHEBLKSZ 34 /* block size bytes */ 93*0Sstevel@tonic-gate #define _CONFIG_DCACHEBLKSZ 35 /* block size bytes */ 94*0Sstevel@tonic-gate #define _CONFIG_DCACHETBLKSZ 36 /* block size bytes when touched */ 95*0Sstevel@tonic-gate #define _CONFIG_ICACHE_ASSOC 37 /* associativity 1, 2, 3 whatever */ 96*0Sstevel@tonic-gate #define _CONFIG_DCACHE_ASSOC 38 /* associativity 1, 2, 3 whatever */ 97*0Sstevel@tonic-gate #define _CONFIG_MAXPID 42 /* highest PID available */ 98*0Sstevel@tonic-gate #define _CONFIG_STACK_PROT 43 /* default stack protection */ 99*0Sstevel@tonic-gate #define _CONFIG_NPROC_MAX 44 /* maximum # of processors possible */ 100*0Sstevel@tonic-gate #define _CONFIG_CPUID_MAX 45 /* maximum CPU id */ 101*0Sstevel@tonic-gate 102*0Sstevel@tonic-gate /* UNIX 03 names */ 103*0Sstevel@tonic-gate #define _CONFIG_SYMLOOP_MAX 46 /* maximum # of symlinks in pathname */ 104*0Sstevel@tonic-gate 105*0Sstevel@tonic-gate #ifdef __cplusplus 106*0Sstevel@tonic-gate } 107*0Sstevel@tonic-gate #endif 108*0Sstevel@tonic-gate 109*0Sstevel@tonic-gate #endif /* _SYS_SYSCONFIG_H */ 110