10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*4321Scasper * Common Development and Distribution License (the "License"). 6*4321Scasper * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 220Sstevel@tonic-gate /* All Rights Reserved */ 230Sstevel@tonic-gate 240Sstevel@tonic-gate 250Sstevel@tonic-gate /* 26*4321Scasper * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 270Sstevel@tonic-gate * Use is subject to license terms. 280Sstevel@tonic-gate */ 290Sstevel@tonic-gate 300Sstevel@tonic-gate #ifndef _SYS_SYSCONFIG_H 310Sstevel@tonic-gate #define _SYS_SYSCONFIG_H 320Sstevel@tonic-gate 330Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.5 */ 340Sstevel@tonic-gate 350Sstevel@tonic-gate #ifdef __cplusplus 360Sstevel@tonic-gate extern "C" { 370Sstevel@tonic-gate #endif 380Sstevel@tonic-gate 390Sstevel@tonic-gate #ifdef _KERNEL 400Sstevel@tonic-gate extern int mach_sysconfig(int); 410Sstevel@tonic-gate #endif /* KERNEL */ 420Sstevel@tonic-gate 430Sstevel@tonic-gate /* 440Sstevel@tonic-gate * cmd values for _sysconfig system call. 450Sstevel@tonic-gate * WARNING: This is an undocumented system call, 460Sstevel@tonic-gate * therefore future compatibility can not 470Sstevel@tonic-gate * guaranteed. 480Sstevel@tonic-gate */ 490Sstevel@tonic-gate 500Sstevel@tonic-gate #define UNUSED 1 510Sstevel@tonic-gate #define _CONFIG_NGROUPS 2 /* # configured supplemental groups */ 520Sstevel@tonic-gate #define _CONFIG_CHILD_MAX 3 /* max # of processes per uid session */ 530Sstevel@tonic-gate #define _CONFIG_OPEN_FILES 4 /* max # of open files per process */ 540Sstevel@tonic-gate #define _CONFIG_POSIX_VER 5 /* POSIX version */ 550Sstevel@tonic-gate #define _CONFIG_PAGESIZE 6 /* system page size */ 560Sstevel@tonic-gate #define _CONFIG_CLK_TCK 7 /* ticks per second */ 570Sstevel@tonic-gate #define _CONFIG_XOPEN_VER 8 580Sstevel@tonic-gate 590Sstevel@tonic-gate /* 600Sstevel@tonic-gate * NOTE: XOPEN VERSION. This is process dependent. The kernel will return 610Sstevel@tonic-gate * the default value, currently 3. 620Sstevel@tonic-gate */ 630Sstevel@tonic-gate 640Sstevel@tonic-gate #define _CONFIG_PROF_TCK 10 /* profiling ticks per second */ 650Sstevel@tonic-gate #define _CONFIG_NPROC_CONF 11 /* processors configured */ 660Sstevel@tonic-gate #define _CONFIG_NPROC_ONLN 12 /* processors online */ 670Sstevel@tonic-gate 680Sstevel@tonic-gate /* posix dot4 names */ 690Sstevel@tonic-gate #define _CONFIG_AIO_LISTIO_MAX 13 /* # of operation in a list I/O call */ 700Sstevel@tonic-gate #define _CONFIG_AIO_MAX 14 /* # of outstanding async I/O op. */ 710Sstevel@tonic-gate #define _CONFIG_AIO_PRIO_DELTA_MAX 15 /* amount I/O priority decrease */ 720Sstevel@tonic-gate #define _CONFIG_DELAYTIMER_MAX 16 /* timer timer expiration overruns */ 730Sstevel@tonic-gate #define _CONFIG_MQ_OPEN_MAX 17 /* # message queues open per process */ 740Sstevel@tonic-gate #define _CONFIG_MQ_PRIO_MAX 18 /* # of message priorities supported */ 750Sstevel@tonic-gate #define _CONFIG_RTSIG_MAX 19 /* # of realtime signal numbers */ 760Sstevel@tonic-gate #define _CONFIG_SEM_NSEMS_MAX 20 /* No. of semaphore per process */ 770Sstevel@tonic-gate #define _CONFIG_SEM_VALUE_MAX 21 /* max. value a semaphore may have */ 780Sstevel@tonic-gate #define _CONFIG_SIGQUEUE_MAX 22 /* # of pending queued signal */ 790Sstevel@tonic-gate #define _CONFIG_SIGRT_MIN 23 /* first highest-pri realtime signal */ 800Sstevel@tonic-gate #define _CONFIG_SIGRT_MAX 24 /* last realtime signal */ 810Sstevel@tonic-gate #define _CONFIG_TIMER_MAX 25 /* # of timers per process */ 820Sstevel@tonic-gate 830Sstevel@tonic-gate #define _CONFIG_PHYS_PAGES 26 /* phys mem installed in pages */ 840Sstevel@tonic-gate #define _CONFIG_AVPHYS_PAGES 27 /* available phys mem in pages */ 850Sstevel@tonic-gate #define _CONFIG_COHERENCY 28 /* # bytes coherency */ 860Sstevel@tonic-gate #define _CONFIG_SPLIT_CACHE 29 /* split i and d or not */ 870Sstevel@tonic-gate #define _CONFIG_ICACHESZ 30 /* icache size in bytes */ 880Sstevel@tonic-gate #define _CONFIG_DCACHESZ 31 /* dcache size in bytes */ 890Sstevel@tonic-gate #define _CONFIG_ICACHELINESZ 32 /* linesize bytes */ 900Sstevel@tonic-gate #define _CONFIG_DCACHELINESZ 33 /* linesize bytes */ 910Sstevel@tonic-gate #define _CONFIG_ICACHEBLKSZ 34 /* block size bytes */ 920Sstevel@tonic-gate #define _CONFIG_DCACHEBLKSZ 35 /* block size bytes */ 930Sstevel@tonic-gate #define _CONFIG_DCACHETBLKSZ 36 /* block size bytes when touched */ 940Sstevel@tonic-gate #define _CONFIG_ICACHE_ASSOC 37 /* associativity 1, 2, 3 whatever */ 950Sstevel@tonic-gate #define _CONFIG_DCACHE_ASSOC 38 /* associativity 1, 2, 3 whatever */ 960Sstevel@tonic-gate #define _CONFIG_MAXPID 42 /* highest PID available */ 970Sstevel@tonic-gate #define _CONFIG_STACK_PROT 43 /* default stack protection */ 980Sstevel@tonic-gate #define _CONFIG_NPROC_MAX 44 /* maximum # of processors possible */ 990Sstevel@tonic-gate #define _CONFIG_CPUID_MAX 45 /* maximum CPU id */ 1000Sstevel@tonic-gate 1010Sstevel@tonic-gate /* UNIX 03 names */ 1020Sstevel@tonic-gate #define _CONFIG_SYMLOOP_MAX 46 /* maximum # of symlinks in pathname */ 1030Sstevel@tonic-gate 104*4321Scasper #define _CONFIG_EPHID_MAX 47 /* maximum ephemeral uid */ 105*4321Scasper 1060Sstevel@tonic-gate #ifdef __cplusplus 1070Sstevel@tonic-gate } 1080Sstevel@tonic-gate #endif 1090Sstevel@tonic-gate 1100Sstevel@tonic-gate #endif /* _SYS_SYSCONFIG_H */ 111